too long lines were shrinked: libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I../../../../../src/lib -I/var/tmp/portage/sci-chemistry/mpqc-2.3.1-r4/work/mpqc-2.3.1/include -I/var/tmp/portage/sci-chemistry/mpqc-2.3.1-r4/work/mpqc-2.3.1/src/lib -pipe -march=native -fno-diagnostics-color -O2 -c equadrupole.cc -fPIC -D /bin/sh ../../../../../libtool --mode=link x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o ../../../../../lib/libSCcints.la cints.lo obintcints.lo tbintcints.lo tform.lo int2e.lo eri.lo comp_eri.lo storage.lo grt.lo comp_grt.lo primpairs.lo shellpairs.lo pe libtool: link: x86_64-pc-linux-gnu-g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/crtbeginS.o .libs/cints.o .libs/obintcints.o .libs/tbintcints.o .libs/tform.o .libs/int2e.o .libs/eri.o .libs/comp_eri.o .li /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../lib64/libr12.a(init_libr12.o): warning: relocation against `build_r12_grt' in read-only section `.text' /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../lib64/libint.a(init_libint.o): relocation R_X86_64_PC32 against symbol `build_eri' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_hardened-j4-20220203-140006 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.3.1 [2] x86_64-pc-linux-gnu-11.2.1 * clang/llvm (if any): /usr/lib/llvm/13 13.0.1 Python 3.9.10 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby27 (with Rubygems) [3] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.58.1 * The Glorious Glasgow Haskell Compilation System, version 8.10.4 php cli: HEAD of ::gentoo commit 2a27405ff624b79b541e36bafb91e5458ac1d7e9 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Feb 5 19:37:11 2022 +0000 2022-02-05 19:37:07 UTC emerge -qpvO sci-chemistry/mpqc [ebuild N ] sci-chemistry/mpqc-2.3.1-r4 USE="tk -doc -mpi -threads"
Created attachment 764421 [details] emerge-info.txt
Created attachment 764422 [details] emerge-history.txt
Created attachment 764423 [details] environment
Created attachment 764424 [details] etc.portage.tar.bz2
Created attachment 764425 [details] logs.tar.bz2
Created attachment 764426 [details] sci-chemistry:mpqc-2.3.1-r4:20220205-215123.log.bz2
Created attachment 764427 [details] temp.tar.bz2
Seems like sci-libs/libint has to be built with -fPIC for this to merge. I also had to set CXXFLAGS to -fpermissive and the C++ standard to an older one for MPQC to build. (-std=c++11) as it complained about c++ 17 not supporting some of the constructs.