I'm installing code saturne latest stable version 7.0.0 and building it from source, this is my configure line:
CC=mpiicc ../configure --prefix=/program/code-saturne-7.0.0/ --with-hdf5=/program/code-saturne-7.0.0/hdf5-1.12.1/ --with-cgns=/program/code-saturne-7.0.0/cgns-4.3.0/
As you see, I have included HDF5 and CGNS (installed prior) but I'm getting the following error when running make:
Code: Select all
libtool: link: mpiicc -O2 -std=c11 -restrict -funsigned-char -Wall -Wcheck -Wshadow -Wpointer-arith -Wmissing-prototypes -Wuninitialized -Wunused -wd981 -qopenmp -O -Wl,-export-dynamic -qopenmp -o cs_io_dump cs_io_dump-cs_io_dump.o -lz -ldl
ld: /program/code-saturne-7.0.0/cgns-4.3.0//lib/libcgns.a(cgns_error.o): relocation R_X86_64_32 against `.rodata.str1.4' can not be used when making a shared object; recompile with -fPIC
ld: /program/code-saturne-7.0.0/cgns-4.3.0//lib/libcgns.a(cgns_io.o): relocation R_X86_64_32 against `.rodata.str1.4' can not be used when making a shared object; recompile with -fPIC
ld: /program/code-saturne-7.0.0/cgns-4.3.0//lib/libcgns.a(cgnslib.o): relocation R_X86_64_32 against `.rodata.str1.4' can not be used when making a shared object; recompile with -fPIC
ld: /program/code-saturne-7.0.0/cgns-4.3.0//lib/libcgns.a(ADFH.o): relocation R_X86_64_32 against `.rodata.str1.4' can not be used when making a shared object; recompile with -fPIC
ld: /program/code-saturne-7.0.0/cgns-4.3.0//lib/libcgns.a(ADF_interface.o): relocation R_X86_64_32 against `.rodata.str1.4' can not be used when making a shared object; recompile with -fPIC
ld: /program/code-saturne-7.0.0/cgns-4.3.0//lib/libcgns.a(ADF_internals.o): relocation R_X86_64_32 against `sub_node_start_tag' can not be used when making a shared object; recompile with -fPIC
ld: /program/code-saturne-7.0.0/cgns-4.3.0//lib/libcgns.a(cg_hashmap.o): relocation R_X86_64_32S against `BitLengthTable' can not be used when making a shared object; recompile with -fPIC
ld: /program/code-saturne-7.0.0/cgns-4.3.0//lib/libcgns.a(cgns_internals.o): relocation R_X86_64_32 against `.rodata.str1.4' can not be used when making a shared object; recompile with -fPIC
ld: final link failed: Nonrepresentable section on output
make[3]: *** [libsaturne.la] Error 1
make[3]: Leaving directory `/media/ephemeral0/code_saturne-7.0.0/build/src/apps'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/media/ephemeral0/code_saturne-7.0.0/build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/ephemeral0/code_saturne-7.0.0/build'
make: *** [all] Error 2