Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832770 - sci-chemistry/mpqc-2.3.1-r4 - /.../ld: .../libint.a(init_libint.o): relocation R_X86_64_PC32 against symbol build_eri can not be u
Summary: sci-chemistry/mpqc-2.3.1-r4 - /.../ld: .../libint.a(init_libint.o): relocatio...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Chemistry-Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-05 21:59 UTC by Toralf Förster
Modified: 2023-07-30 22:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.73 KB, text/plain)
2022-02-05 21:59 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,242.20 KB, text/plain)
2022-02-05 21:59 UTC, Toralf Förster
Details
environment (environment,72.30 KB, text/plain)
2022-02-05 21:59 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,25.65 KB, application/x-bzip)
2022-02-05 21:59 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,15.44 KB, application/x-bzip)
2022-02-05 21:59 UTC, Toralf Förster
Details
sci-chemistry:mpqc-2.3.1-r4:20220205-215123.log.bz2 (sci-chemistry:mpqc-2.3.1-r4:20220205-215123.log.bz2,18.32 KB, application/x-bzip)
2022-02-05 21:59 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,40.62 KB, application/x-bzip)
2022-02-05 22:00 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-02-05 21:59:52 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2022-02-05 21:59:53 UTC
Created attachment 764421 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-02-05 21:59:55 UTC
Created attachment 764422 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-02-05 21:59:56 UTC
Created attachment 764423 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-02-05 21:59:57 UTC
Created attachment 764424 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-02-05 21:59:58 UTC
Created attachment 764425 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-02-05 21:59:59 UTC
Created attachment 764426 [details]
sci-chemistry:mpqc-2.3.1-r4:20220205-215123.log.bz2
Comment 7 Toralf Förster gentoo-dev 2022-02-05 22:00:01 UTC
Created attachment 764427 [details]
temp.tar.bz2
Comment 8 Jeremy Stent 2023-07-30 22:06:53 UTC
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.