error in building process during Linking executable

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
attene
Posts: 68
Joined: Fri Jun 29, 2018 10:54 am

error in building process during Linking executable

Post by attene »

Hi everybody,

This error appeared at the end of the building process "make"
Anyone knows what should I do to solve the following error?:


Linking executable: cs_solver
icc -o cs_solver -L/home/federico/CS/code_saturne-5.0.8/src/apps/.libs -L/home/federico/CS/code_saturne-5.0.8/libple/src/.libs -L/home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6/cgns/lib -L/home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6/med/lib -L/home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6/hdf5/lib -L/home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6/libxml2/lib -O -Wl,-export-dynamic -qopenmp -lsaturne -lple -lcgns -lmedC -lhdf5 -lmetis -lxml2 -lz -ldl -L/opt/intel//clck/2017.1.016/lib/intel64 -L/opt/intel/compilers_and_libraries_2017.1.132/linux/ipp/lib/intel64 -L/opt/intel/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin -L/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin -L/opt/intel/compilers_and_libraries_2017.1.132/linux/tbb/lib/intel64/gcc4.4 -L/opt/intel/compilers_and_libraries_2017.1.132/linux/daal/lib/intel64_lin -L/opt/intel/compilers_and_libraries_2017.1.132/linux/daal/../tbb/lib/intel64_lin/gcc4.4 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/ -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/ -L/lib/../lib64 -L/lib/../lib64/ -L/usr/lib/../lib64 -L/usr/lib/../lib64/ -L/opt/intel//clck/2017.1.016/lib/intel64/ -L/opt/intel/compilers_and_libraries_2017.1.132/linux/ipp/lib/intel64/ -L/opt/intel/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/ -L/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/ -L/opt/intel/compilers_and_libraries_2017.1.132/linux/tbb/lib/intel64/gcc4.4/ -L/opt/intel/compilers_and_libraries_2017.1.132/linux/daal/lib/intel64_lin/ -L/opt/intel/compilers_and_libraries_2017.1.132/linux/daal/../tbb/lib/intel64_lin/gcc4.4/ -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../ -L/lib64 -L/lib/ -L/usr/lib64 -L/usr/lib -lifport -lifcoremt_pic -limf -lsvml -lipgo -lirc -lirc_s -ldl -lpthread -lm -Wl,-rpath -Wl,:/home/federico/CS/code_saturne-5.0.8/src/apps/.libs:/home/federico/CS/code_saturne-5.0.8/libple/src/.libs:/home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6/cgns/lib:/home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6/med/lib:/home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6/hdf5/lib:/home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6/libxml2/lib:/opt/intel//clck/2017.1.016/lib/intel64:/opt/intel/compilers_and_libraries_2017.1.132/linux/ipp/lib/intel64:/opt/intel/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin:/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin:/opt/intel/compilers_and_libraries_2017.1.132/linux/tbb/lib/intel64/gcc4.4:/opt/intel/compilers_and_libraries_2017.1.132/linux/daal/lib/intel64_lin:/opt/intel/compilers_and_libraries_2017.1.132/linux/daal/../tbb/lib/intel64_lin/gcc4.4:/opt/intel//clck/2017.1.016/lib/intel64/:/opt/intel/compilers_and_libraries_2017.1.132/linux/ipp/lib/intel64/:/opt/intel/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/:/opt/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64_lin/:/opt/intel/compilers_and_libraries_2017.1.132/linux/tbb/lib/intel64/gcc4.4/:/opt/intel/compilers_and_libraries_2017.1.132/linux/daal/lib/intel64_lin/:/opt/intel/compilers_and_libraries_2017.1.132/linux/daal/../tbb/lib/intel64_lin/gcc4.4/
icc: warning #10315: specifying -lm before files may supersede the Intel(R) math library and affect performance
make[3]: Leaving directory `/home/federico/CS/code_saturne-5.0.8/src/apps'
make[2]: Leaving directory `/home/federico/CS/code_saturne-5.0.8/src'
Making all in /home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6
make[2]: Entering directory `/home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6'
make[2]: *** No rule to make target `all'. Stop.
make[2]: Leaving directory `/home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/federico/CS/code_saturne-5.0.8'
make: *** [all] Error 2


Regards,

Federico
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: error in building process during Linking executable

Post by Yvan Fournier »

Hello,

I don't understand why your build works in /home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6 which would seem to be a SALOME install directory, not a Code_Saturne build directory.

Could you provide the other information elements recommended in this forum's usage recommendations ?

Regards,

Yvan
attene
Posts: 68
Joined: Fri Jun 29, 2018 10:54 am

Re: error in building process during Linking executable

Post by attene »

Hi Yvan,

Thank you for your answer, I hope I am providing enough information this time.
I added the config.log file (attached).

My configuration is here schematize:

$SALOME= /home/federico/salome/SALOME-8.4.0-CO6-SRC/BINARIES-CO6
$SOURCE=/home/federico/CS/code_saturne-5.0.8
$INSTALL_PATH=/home/federico/CS/CS_build

$SOURCE./configure --prefix=$INSTALL_PATH/with_salome_binaries --with-libxml2=$SALOME/libxml2 --with-hdf5=$SALOME/hdf5 --with-med=$SALOME/med --with-cgns=$SALOME/cgns --with-metis CC=icc CXX=icpc FC=ifort

I am trying to install CS as a user (I do not have admin rights). The operating system is a Linux Red Hat Enterprise 6.9.

Regards,

FA
Attachments
config.log
(372.41 KiB) Downloaded 264 times
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: error in building process during Linking executable

Post by Yvan Fournier »

Hello,

As written in the installation documentation, you should not run ./configure directly from the source tree, but from a separate build directory. I am not sure this is the cause of the issue here, but in any case, you should try again using a separate build directory (removing your source tree and starting with a new source tree, as the previous one is "polluted" by the previous build, though "make distclean" in the source tree might work also).

Regards,

Yvan
Post Reply