xc icon indicating copy to clipboard operation
xc copied to clipboard

Linking CXX shared library /root/build_xc/xc/lib/libXcBib.so failed

Open GJoe2 opened this issue 2 years ago • 2 comments

Describe the bug After following the solution in #106, I upgraded g++-10 , gcc-10 and gfortran-10, then when it gets 99% [ 99%] Linking CXX shared library /root/build_xc/xc/lib/libXcBib.so It failed with :

/usr/bin/ld: CMakeFiles/XcBib.dir/solution/system_of_eqn/eigenSOE/BandArpackSOE.cpp.o: in function `XC::BandArpackSOE::save() const':
BandArpackSOE.cpp:(.text+0xa55): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/XcBib.dir/build.make:19369: /root/build_xc/xc/lib/libXcBib.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:202: CMakeFiles/XcBib.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

log.txt

What I did wrong? I have no idea CMakeOutput.log CMakeError.log

GJoe2 avatar Mar 13 '22 14:03 GJoe2

It's strange. There are many errors in your CMakeError.log and the linker complains about multiple definitions of many functions in the paving library in your log.txt file. Have you restarted the building process from scratch after upgrading the compilers?

lcpt avatar Mar 14 '22 09:03 lcpt

Any news about this?

lcpt avatar Apr 06 '22 09:04 lcpt

I imagine this is no longer an issue.

lcpt avatar Jan 24 '23 17:01 lcpt