Elmer/Ice can't pass 'make'
Posted: 21 Jan 2021, 11:55
dear all:
I'm a new user of the Elmer/Ice, in recent days I am trying to install Elmer/Ice, but lots of error occurred ! I was download the source code by "git clone" command, and follow the step from "http://elmerfem.org/elmerice/wiki/doku. ... ationcmake" and "readme" file in elmerice directory. when I type "make", the error occurred:
"[ 51%] Linking Fortran shared library libelmersolver.so
/usr/bin/ld: /usr/local/lib/libmmg.a(inout_3d.c.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: 最后的链结失败: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [fem/src/CMakeFiles/elmersolver.dir/build.make:1487:fem/src/libelmersolver.so] 错误 1
make[1]: *** [CMakeFiles/Makefile2:17748:fem/src/CMakeFiles/elmersolver.dir/all] 错误 2
make: *** [Makefile:163:all] 错误 2"
I have found the solution on internet, should recompile with "-fPIC", but I don't know where should add this optional, or is there has other solution to fix this problem?
My computer: CPU: AMD 2700X; Main board: ASUS X370; OS: Ubuntu 20.04
I'm preparing my Ph.D thesis, so I need numerical simulation of glacier in the Qilian mountain, west China.
So I need solve this problem!
Thanks for anyone can provide help!
Best
regards!
I'm a new user of the Elmer/Ice, in recent days I am trying to install Elmer/Ice, but lots of error occurred ! I was download the source code by "git clone" command, and follow the step from "http://elmerfem.org/elmerice/wiki/doku. ... ationcmake" and "readme" file in elmerice directory. when I type "make", the error occurred:
"[ 51%] Linking Fortran shared library libelmersolver.so
/usr/bin/ld: /usr/local/lib/libmmg.a(inout_3d.c.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: 最后的链结失败: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [fem/src/CMakeFiles/elmersolver.dir/build.make:1487:fem/src/libelmersolver.so] 错误 1
make[1]: *** [CMakeFiles/Makefile2:17748:fem/src/CMakeFiles/elmersolver.dir/all] 错误 2
make: *** [Makefile:163:all] 错误 2"
I have found the solution on internet, should recompile with "-fPIC", but I don't know where should add this optional, or is there has other solution to fix this problem?
My computer: CPU: AMD 2700X; Main board: ASUS X370; OS: Ubuntu 20.04
I'm preparing my Ph.D thesis, so I need numerical simulation of glacier in the Qilian mountain, west China.
So I need solve this problem!
Thanks for anyone can provide help!
Best
regards!