Error installation cs_5.2.0

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
ffan
Posts: 66
Joined: Thu Jul 24, 2014 3:23 pm

Error installation cs_5.2.0

Post by ffan » Wed Apr 04, 2018 12:33 am

Hi,

I tried to build cs_5.2.0. It produced error while compiling cgns. Thank you for your help.

-ffan

/usr/bin/cmake -E cmake_progress_report /home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1.build/CMakeFiles 17
[ 62%] Building C object src/tools/CMakeFiles/cgnscheck.dir/hash.c.o
cd /home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1.build/src/tools && /usr/bin/cc -DBUILD_HDF5 -DH5_BUILT_AS_STATIC_LIB -O3 -DNDEBUG -I/home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1/src/. -I/home/fafan/Code_Saturne/5.2.0/hdf5-1.8.17/arch/Linux_x86_64/include -I/home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1.build/src -o CMakeFiles/cgnscheck.dir/hash.c.o -c /home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1/src/tools/hash.c
/usr/bin/cmake -E cmake_progress_report /home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1.build/CMakeFiles 18
[ 66%] Building C object src/tools/CMakeFiles/cgnscheck.dir/cgnames.c.o
cd /home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1.build/src/tools && /usr/bin/cc -DBUILD_HDF5 -DH5_BUILT_AS_STATIC_LIB -O3 -DNDEBUG -I/home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1/src/. -I/home/fafan/Code_Saturne/5.2.0/hdf5-1.8.17/arch/Linux_x86_64/include -I/home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1.build/src -o CMakeFiles/cgnscheck.dir/cgnames.c.o -c /home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1/src/tools/cgnames.c
Linking C executable cgnscheck
cd /home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1.build/src/tools && /usr/bin/cmake -E cmake_link_script CMakeFiles/cgnscheck.dir/link.txt --verbose=1
/usr/bin/cc -O3 -DNDEBUG CMakeFiles/cgnscheck.dir/cgnscheck.c.o CMakeFiles/cgnscheck.dir/getargs.c.o CMakeFiles/cgnscheck.dir/hash.c.o CMakeFiles/cgnscheck.dir/cgnames.c.o -o cgnscheck -L. -rdynamic ../libcgns.so.3.3 -lhdf5 -lz -lm -lm -Wl,-rpath,.:/home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1.build/src:
../libcgns.so.3.3: undefined reference to `H5P_CLS_LINK_ACCESS_ID_g'
../libcgns.so.3.3: undefined reference to `H5P_CLS_DATASET_CREATE_ID_g'
../libcgns.so.3.3: undefined reference to `H5P_CLS_GROUP_CREATE_ID_g'
../libcgns.so.3.3: undefined reference to `H5P_CLS_FILE_ACCESS_ID_g'
../libcgns.so.3.3: undefined reference to `H5P_CLS_FILE_CREATE_ID_g'
collect2: ld returned 1 exit status
make[2]: *** [src/tools/cgnscheck] Error 1
make[2]: Leaving directory `/home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1.build'
make[1]: *** [src/tools/CMakeFiles/cgnscheck.dir/all] Error 2
make[1]: Leaving directory `/home/fafan/Downloads/Code_Saturne-5.2.0/code_saturne_build/CGNS-3.3.1.build'
make: *** [all] Error 2

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

Re: Error installation cs_5.2.0

Post by Yvan Fournier » Wed Apr 04, 2018 1:11 am

Hello,

You did not specify the recommended info for this forum, so I can only guess it the issue. Did you also specify that you are using HDF5 ?

Regards,

Yvan

Post Reply