CodeError

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
HBELG
Posts: 28
Joined: Mon Mar 26, 2018 12:27 pm

Re: CodeError

Post by HBELG »

this is what i get, but I don't see any error, I don't get it
----------------
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from /usr/bin/mpicc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /usr/bin/mpicc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/mpicc supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/mpicc option to produce PIC... -fPIC -DPIC
checking if /usr/bin/mpicc PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/mpicc static flag -static works... no
checking if /usr/bin/mpicc supports -c -o file.o... yes
checking if /usr/bin/mpicc supports -c -o file.o... (cached) yes
checking whether the /usr/bin/mpicc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/home/hbelgacem/Téléchargements/code_saturne-5.0.8.build':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
----------------------------
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: CodeError

Post by Yvan Fournier »

Hello,

Could you post the config.og ? It seems the compiler / preprocessor is not working correctly. I may move this thread to the installation issues forum as this is an install problem. Could you provide the recommended info for that section ?

Best regards,

Yvan
HBELG
Posts: 28
Joined: Mon Mar 26, 2018 12:27 pm

Re: CodeError

Post by HBELG »

Here I attached the file requested,
and thanks for your help so far,

Best regards

Houda
Attachments
config.log
(52.14 KiB) Downloaded 194 times
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: CodeError

Post by Yvan Fournier »

Hello,

It seems (line 172 of your config.log) that you do not have a C++ compiler installed.

Regards,

Yvan
HBELG
Posts: 28
Joined: Mon Mar 26, 2018 12:27 pm

Re: CodeError

Post by HBELG »

Thanks, I run again the installation, and I add a C++ compiler, with the following steps:

sudo apt-get install build-essential
gcc -v
make -v

then I add an other package missing (pyqt4), and it works well now, despite some minor things missing in the GUI (like sign + and -), but the code run correctly,

Thanks again for your reply, best regards
Houda
Post Reply