--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To post to this group, send email to sp...@googlegroups.com.
Visit this group at http://groups.google.com/group/spack.
For more options, visit https://groups.google.com/d/optout.
Hi Todd,It seems that during the link of starpu executables the path to intel libraries is missing.Indeed, adding "LDFLAGS=-L/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64" to the configure() function in the package make it compile.In my environment it links thanks to the LD_LIBRARY_PATH which is unset in Spack env. I understand that you need to have a more or less confined env. for the builds.What I don't understand is, generally, how do you find the path to intel libs and how do you use it during the link of executables? Something with the rpath?I attach my log files for the build which fails (without the modification LDFLAGS=...).Thanks,Florent
On Wednesday, April 22, 2015 at 1:29:27 AM UTC+2, Todd Gamblin wrote:
Florent,I'm not sure what that error is. I built your package without errors on an LLNL machine (TOSS / RHEL6.6) with both in...@14.0.2 and intel@15.x.If you want to see what's different about the Spack environment, you can run this:spack env starpu%in...@14.0.2That will print out the environment it uses to build. If you want to actually run bash in that environment, do this:
spack env starpu%in...@14.0.2 bash# or your favorite shell
FYI, with the Intel compilers at LLNL, we add icc.cfg, icpc.cfg, and ifort.cfg files to the bin directory of the Intel compiler that add the appropriate rpath (i.e., -Xlinker -rpath -Xlinker ${libdir}), so it’s actually not the /usr/local/bin wrappers doing the rpath magic here. For Spack, you may want to explicitly add rpaths for the Intel compilers, since the .cfg files are just a local trick that we use at LLNL.
-Greg
Todd,
We also add "-long_double", but I think this is irrelevant to Spack.
-Greg
--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To post to this group, send email to sp...@googlegroups.com.
Visit this group at https://groups.google.com/group/spack.
LLNL builds its Intel compilers so that they get their runtime lib paths from a static configuration file -- I think by default they require sourcing compilervars.
LLNL builds its Intel compilers so that they get their runtime lib paths from a static configuration file -- I think by default they require sourcing compilervars.
How exactly do you do this? Is there something more than just creating the icc.cfg, icpc.cfg, and ifort.cfg files? I just discovered that the missing environmental variable was LIBRARY_PATH, not LD_LIBRARY_PATH!
Yes, we just create the .cfg files and add “-Xlinker -rpath -Xlinker <path>”.
-Greg
From: sp...@googlegroups.com [mailto:sp...@googlegroups.com] On Behalf Of ajstew...@gmail.com
Sent: Tuesday, December 15, 2015 8:35 AM
To: Spack <sp...@googlegroups.com>
Cc: tgam...@llnl.gov; ajstew...@gmail.com
Subject: Re: [spack] building and linking with Intel libraries
LLNL builds its Intel compilers so that they get their runtime lib paths from a static configuration file -- I think by default they require sourcing compilervars.
How exactly do you do this? Is there something more than just creating the icc.cfg, icpc.cfg, and ifort.cfg files? I just discovered that the missing environmental variable was LIBRARY_PATH, not LD_LIBRARY_PATH!
--
I believe the .cfg files need to be in the actual bin directory where the mcpcom binary lives. For us this is in:
/usr/local/tools/ic-16.0.109/compilers_and_libraries_2016.0.109/linux/bin/intel64/icc.cfg
cab687@lee218:cat /usr/local/tools/ic-16.0.109/compilers_and_libraries_2016.0.109/linux/bin/intel64/icc.cfg
-Xlinker -rpath -Xlinker /usr/local/tools/ic-16.0.109/lib
You may notice we point it to a symlinked lib directory.
-Greg
From: sp...@googlegroups.com [mailto:sp...@googlegroups.com]
On Behalf Of ajstew...@gmail.com
Sent: Tuesday, December 15, 2015 8:50 AM
To: Spack <sp...@googlegroups.com>
Cc: ajstew...@gmail.com; tgam...@llnl.gov
Subject: Re: [spack] building and linking with Intel libraries
Hmm. I'm not sure why that's not working for me. Can you post the exact contents and location of icc.cfg? My icc.cfg is in:
--
I’m not certain, but could you just do a -L in the .cfg file?
From: sp...@googlegroups.com [mailto:sp...@googlegroups.com]
On Behalf Of ajstew...@gmail.com
Sent: Tuesday, December 15, 2015 9:05 AM
To: Spack <sp...@googlegroups.com>
Cc: ajstew...@gmail.com; tgam...@llnl.gov
Subject: Re: [spack] building and linking with Intel libraries
I moved my icc.cfg, icpc.cfg, and ifort.cfg files into:
/soft/spack/opt/spack/linux-x86_64/binaries/intel-16.0.1/compilers_and_libraries_2016.1.150/linux/bin/intel64
Unfortunately, still no luck. Any idea how to add LIBRARY_PATH to icc.cfg?
--
Does the -L option take a colon separated list of paths or do you need to enumerate each path as a -L option? Also, perhaps you can run icc -v to make sure the option is being passed appropriately.
I will also point out that the <prefix>/lib directory of our Intel compiler installations is a custom symlink that we add that points to the actual underlying directory that has the libraries (/usr/local/tools/ic-16.0.109/compilers_and_libraries_2016.0.109/linux/compiler/lib/intel64).
-Greg
From: sp...@googlegroups.com [mailto:sp...@googlegroups.com]
On Behalf Of ajstew...@gmail.com
Sent: Tuesday, December 15, 2015 9:31 AM
To: Spack <sp...@googlegroups.com>
Cc: ajstew...@gmail.com; tgam...@llnl.gov
Subject: Re: [spack] building and linking with Intel libraries
Still no luck, unless I'm doing something wrong. I tried:
--
-Xlinker -rpath=/ssoft/intel/15.0.0/RH6/all/x86_E5v2/composer_xe_2015.2.164/ipp/lib/intel64 -Xlinker -rpath=/soft/intel/15.0.0/RH6/all/x86_E5v2/composer_xe_2015.2.164/tbb/lib/intel64/gcc4.4-Xlinker -rpath=/ssoft/intel/15.0.0/RH6/all/x86_E5v2/composer_xe_2015.2.164/mkl/lib/intel64 -Xlinker -rpath=/ssoft/intel/15.0.0/RH6/all/x86_E5v2/composer_xe_2015.2.164/compiler/lib/intel64
$ spack compiler info intelintel@15.0.0:
cc = /gpfs/bbp.cscs.ch/apps/viz/intel/composer_xe_2015.0.090/bin/intel64/icc
cxx = /gpfs/bbp.cscs.ch/apps/viz/intel/composer_xe_2015.0.090/bin/intel64/icpc
f77 = /gpfs/bbp.cscs.ch/apps/viz/intel/composer_xe_2015.0.090/bin/intel64/ifort
fc = /gpfs/bbp.cscs.ch/apps/viz/intel/composer_xe_2015.0.090/bin/intel64/ifort
modules = []
operating system = redhat6
$ cat $ICCCFG-Xlinker -rpath=/gpfs/bbp.cscs.ch/apps/viz/intel/ipp/lib/intel64 -Xlinker -rpath=/gpfs/bbp.cscs.ch/apps/viz/intel/tbb/lib/intel64/gcc4.4-Xlinker -rpath=/gpfs/bbp.cscs.ch/apps/viz/intel/composerxe/mkl/lib/intel64 -Xlinker -rpath=/gpfs/bbp.cscs.ch/apps/viz/intel/compiler/lib/intel64
export IFORTCFG=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/cf/ifort.cfg
$ spack install -v libxml2 %intel
....
ld: .libs/testAutomata: hidden symbol `__intel_cpu_features_init_x' in /gpfs/bbp.cscs.ch/apps/viz/intel/composer_xe_2015.0.090/compiler/lib/intel64/libirc.a(cpu_feature_disp.o) is referenced by DSO
ld: final link failed: Nonrepresentable section on output
spack env libxml2%intel
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
LOADEDMODULES=git/1.8.4.3:cmake/2.8.12:slurm/14.03.4.2
KDE_IS_PRELINKED=1
SLURM_TIME_FORMAT=relative
FC=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/lib/spack/env/intel/ifort
IFORTCFG=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/cf/ifort.cfg
SPACK_FILE=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/bin/spack
CMAKE_VERSION_STRING=2.8.12
KDEDIRS=/usr
LESSOPEN=||/usr/bin/lesspipe.sh %s
SPACK_CC_RPATH_ARG=-Wl,-rpath,
SSH_CLIENT=128.179.253.248 65327 22
CVS_RSH=ssh
LOGNAME=kumbhar
USER=kumbhar
SPACK_PREFIX=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/opt/spack/linux-redhat6-x86_64/intel-15.0.0/libxml2-2.9.2-43kkhoikl2zeu2wczhqk2apt3rnvhs4y
QTDIR=/usr/lib64/qt-3.3
HISTSIZE=1000
SSH_CONNECTION=128.179.253.248 65327 148.187.84.11 22
LANG=en_US.UTF-8
QTLIB=/usr/lib64/qt-3.3/lib
TERM=xterm-256color
SHELL=/bin/bash
SPACK_SHORT_SPEC=lib...@2.9.2%in...@15.0.0~python arch=linux-redhat6-x86_64-43kkhoi
GIT_ROOT=/gpfs/bbp.cscs.ch/apps/viz/tools/git/git-1.8.4.3/install
QTINC=/usr/lib64/qt-3.3/include
DK_NODE=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/share/spack/dotkit/linux-redhat6-x86_64
SPACK_CXX_RPATH_ARG=-Wl,-rpath,
SQUEUE_FORMAT=%6i %8u %7a %.14j %.15P%.3t %.10r %.12S %.12e %.10L %.5D
APPS=/gpfs/bbp.cscs.ch/apps
SPACK_FC=/gpfs/bbp.cscs.ch/apps/viz/intel/composer_xe_2015.0.090/bin/intel64/ifort
SINFO_FORMAT=%15P %5a %8s %.10l %.6c %.6z %.7D %10T %N
CCACHE_HASHDIR=
SQUEUE_SORT=t,-e,-p
SPACK_CXX=/gpfs/bbp.cscs.ch/apps/viz/intel/composer_xe_2015.0.090/bin/intel64/icpc
SPACK_F77=/gpfs/bbp.cscs.ch/apps/viz/intel/composer_xe_2015.0.090/bin/intel64/ifort
GIT_LIBRARIES=-L$/gpfs/bbp.cscs.ch/apps/viz/tools/git/git-1.8.4.3/install/lib -lgsl -lgslcblas
G_BROKEN_FILENAMES=1
HOME=/gpfs/bbp.cscs.ch/home/kumbhar
MODULESHOME=/usr/share/Modules
GIT_INCLUDE_DIR=/gpfs/bbp.cscs.ch/apps/viz/tools/git/git-1.8.4.3/install/include
ICCCFG=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/cf/icc.cfg
CC=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/lib/spack/env/intel/icc
SPACK_INSTALL=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/opt/spack
SPACK_COMPILER_SPEC=in...@15.0.0
SCRATCH=/gpfs/bbp.cscs.ch/scratch/gss/viz/kumbhar
CMAKE_ROOT=/gpfs/bbp.cscs.ch/apps/viz/tools/cmake/cmake-2.8.12/install
SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt
GIT_FOUND=1
GIT_HOME=/gpfs/bbp.cscs.ch/apps/viz/tools/git/git-1.8.4.3/install
F77=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/lib/spack/env/intel/ifort
SPACK_CC=/gpfs/bbp.cscs.ch/apps/viz/intel/composer_xe_2015.0.090/bin/intel64/icc
_=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/bin/spack
ICPCCFG=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/cf/icpc.cfg
GIT_VERSION_STRING=1.8.4.3
SQUEUE_ALL=yes
DISPLAY=bbpviz1.cscs.ch:11.0
CXX=/gpfs/bbp.cscs.ch/home/kumbhar/workarena/systems/lugviz/softwares/sources/spack/lib/spack/env/intel/icpc
SSH_TTY=/dev/pts/2
HOSTNAME=bbpviz1.cscs.ch
NIX_REMOTE=daemon
HISTCONTROL=ignoredups
SHLVL=1
PWD=/gpfs/bbp.cscs.ch/home/kumbhar
CMAKE_FOUND=1
SPACK_DEBUG_LOG_DIR=/gpfs/bbp.cscs.ch/home/kumbhar
GIT_LIBRARY_DIRS=/gpfs/bbp.cscs.ch/apps/viz/tools/git/git-1.8.4.3/install/lib
SPACK_FC_RPATH_ARG=-Wl,-rpath,
MAIL=/var/spool/mail/kumbhar
CLUSTER=viz
SPACK_F77_RPATH_ARG=-Wl,-rpath,
BASH_FUNC_module()=() { eval `/usr/bin/modulecmd bash $*`
}
Hi,
I just started to play a little bit with Spack that I may use for the installation of complex scientific software stacks.
I tried to use the %intel in an installation process and I meet a problem with symbols coming from intel libraries that I don't encounter when I build the software outside Spack.
More specifically I want to write a package for the StarPU library (see a simplified version of the Spack package.py in attached) which is installed using autotools building system.
starpu homepage: http://starpu.gforge.inria.fr/
Spack founds compilers on my system (Ubuntu 13.10):
pruvost@hp9470m:~/work/gitwc/spack$ spack compilers
==> Available compilers
-- gcc ----------------------------------------------------------
gcc@4.8
SPACK_COMPILER_SPEC=intel@15.0.0
--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+unsubscribe@googlegroups.com.
spack load binu...@2.25which ld~/workarena/systems/lugviz/softwares/sources/spack/opt/spack/linux-redhat6-x86_64/gcc-5.4.0/binutils-2.25-p7waeodvjpj24usngrg2jdwtnblcrhpe/bin/ld
spack install -v libxml2 %intel
...end up with errors....
-L/soft/spack/opt/spack/linux-x86_64/binaries/intel-16.0.1/compilers_and_libraries_2016.1.150/linux/ipp/lib/intel64 -L/soft/spack/opt/spack/linux-x86_64/binaries/intel-16.0.1/compilers_and_libraries_2016.1.150/linux/compiler/lib/intel64 -L/soft/spack/opt/spack/linux-x86_64/binaries/intel-16.0.1/compilers_and_libraries_2016.1.150/linux/mkl/lib/intel64 -L/soft/spack/opt/spack/linux-x86_64/binaries/intel-16.0.1/compilers_and_libraries_2016.1.150/linux/tbb/lib/intel64/gcc4.4 -L/soft/spack/opt/spack/linux-x86_64/binaries/intel-16.0.1/compilers_and_libraries_2016.1.150/linux/daal/lib/intel64_lin -L/soft/spack/opt/spack/linux-x86_64/binaries/intel-16.0.1/compilers_and_libraries_2016.1.150/linux/daal/../compiler/lib/intel64_lin
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
1. Tried pre-loading binutils (which was built with gcc) :
spack load binu...@2.25which ld~/workarena/systems/lugviz/softwares/sources/spack/opt/spack/linux-redhat6-x86_64/gcc-5.4.0/binutils-2.25-p7waeodvjpj24usngrg2jdwtnblcrhpe/bin/ld
spack install -v libxml2 %intel
...end up with errors....
-Xlinker -rpath=/gpfs/bbp.cscs.ch/apps/viz/intel/composer_xe_2015.0.090/compiler/lib/intel64
configure: error: Package requirements (libffi >= 3.0.0) were not met:
No package 'libffi' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
-- linux-redhat6-x86_64 / in...@15.0.0 --------------------------bz...@1.0.6 lib...@3.2.1
$ spack load lib...@3.2.1 %intel
I don't know how to adjust PKG_CONFIG_PATH.