intel compilers on cray with dynamic linking

93 views
Skip to first unread message

Brandon Cook

unread,
Jun 7, 2016, 7:02:02 PM6/7/16
to sp...@googlegroups.com
Hi all,

Cray compiler wrappers seem to be breaking with the newarch features. I'm testing on Cori at NERSC. I wonder if any on here has some ideas?


git clone -b features/newarch https://github.com/NERSC/spack.git

export CRAYPE_LINK_TYPE=dynamic

./spack install openmpi

./spack edit libpciaccess

./spack install openmpi

./spack install openmpi%in...@16.0.2.181

all I changed in libpciaccess was

if spec.satisfies('arch=darwin-elcapitan-x86_64'):




default openmpi (with gnu) installs ok


I get the following error with %intel

==> Installing openmpi

==> Installing hwloc

==> Installing libpciaccess

==> Installing libtool

==> Installing m4

==> Installing libsigsegv

==> Trying to fetch from ftp://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.10.tar.gz

######################################################################## 100.0%

==> Staging archive: /global/u1/c/cookbg/spack/var/spack/stage/libsigsegv-2.10-zcpsd24imb5swb6pdnmpdteuj6fft3xm/libsigsegv-2.10.tar.gz

==> Created stage in /global/u1/c/cookbg/spack/var/spack/stage/libsigsegv-2.10-zcpsd24imb5swb6pdnmpdteuj6fft3xm

==> No patches needed for libsigsegv

==> Building libsigsegv

==> Error: Command exited with status 1:

'./configure' '--prefix=/global/u1/c/cookbg/spack/opt/spack/cray_xc-CNL10-haswell/intel-16.0.2/libsigsegv-2.10-zcpsd24imb5swb6pdnmpdteuj6fft3xm' '--enable-shared'

See build log for details:

  /global/cscratch1/sd/cookbg/spack-stage/spack-stage-MxE_jz/libsigsegv-2.10/spack-build.out

/global/u1/c/cookbg/spack/var/spack/repos/builtin/packages/libsigsegv/package.py:36, in install:

     34       def install(self, spec, prefix):

     35           configure('--prefix=%s' % prefix,

  >> 36                     '--enable-shared')

     37

     38           make()

     39           make("install")

==> Error: Installation process had nonzero exit code.



cookbg@cori05:~/spack/bin> cat /global/cscratch1/sd/cookbg/spack-stage/spack-stage-MxE_jz/libsigsegv-2.10/spack-build.out

==> './configure' '--prefix=/global/u1/c/cookbg/spack/opt/spack/cray_xc-CNL10-haswell/intel-16.0.2/libsigsegv-2.10-zcpsd24imb5swb6pdnmpdteuj6fft3xm' '--enable-shared'

Build Tools:

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking for gcc... /global/u1/c/cookbg/spack/lib/spack/env/intel/icc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... configure: error: in `/global/cscratch1/sd/cookbg/spack-stage/spack-stage-MxE_jz/libsigsegv-2.10':

configure: error: cannot run C compiled programs.

If you meant to cross compile, use `--host'.

See `config.log' for more details





-Brandon
config.log

Adam Stewart

unread,
Jun 20, 2016, 11:05:02 AM6/20/16
to Spack
Can you check what compilers are currently available? Run `spack config get compilers`. The compiler syntax recently changed with the merge of the newarch support, so the old compilers.yaml is incompatible. Spack currently copies your old compilers.yaml to _old_compilers.yaml and creates a new compilers.yaml. For me, this didn't pick up gfortran for some reason. Not picking up gfortran is a bug that I logged: https://github.com/LLNL/spack/issues/1071

Adam
Reply all
Reply to author
Forward
0 new messages