Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919726 - dev-games/newton-3.14 - [clang] ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol vtable for dgAABBPolygonSoup; recompile with -fPIC
Summary: dev-games/newton-3.14 - [clang] ld.lld: error: relocation R_X86_64_PC32 canno...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-11 18:20 UTC by Toralf Förster
Modified: 2023-12-11 18:20 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.79 KB, text/plain)
2023-12-11 18:20 UTC, Toralf Förster
Details
dev-games:newton-3.14:20231211-173116.log (dev-games:newton-3.14:20231211-173116.log,122.73 KB, text/plain)
2023-12-11 18:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,123.98 KB, text/plain)
2023-12-11 18:20 UTC, Toralf Förster
Details
environment (environment,105.78 KB, text/plain)
2023-12-11 18:20 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-11 18:20 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,27.50 KB, application/x-xz)
2023-12-11 18:20 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,182.10 KB, text/plain)
2023-12-11 18:20 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,40.23 KB, application/x-xz)
2023-12-11 18:20 UTC, Toralf Förster
Details
var.tmp.clang.tar.xz (var.tmp.clang.tar.xz,8.02 KB, application/x-xz)
2023-12-11 18:20 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 2023-12-11 18:20:26 UTC
too long lines were shrinked:

[94/175] /usr/lib/llvm/17/bin/clang++ -D_POSIX_VER_64 -I/var/tmp/portage/dev-games/newton-3.14/work/newton-dynamics-newton-3.14/sdk/dgCore -I/var/tmp/portage/dev-games/newton-3.14/work/newton-dynamics-newton-3.14/sdk/dgMeshUtil -I/var/tmp/portage/dev-games/newton-3.14/work/newton-dynamics-newton-3.1
[95/175] /usr/lib/llvm/17/bin/clang++ -D_POSIX_VER_64 -DdContainers_EXPORTS -I/var/tmp/portage/dev-games/newton-3.14/work/newton-dynamics-newton-3.14/sdk/dContainers -I/var/tmp/portage/dev-games/newton-3.14/work/newton-dynamics-newton-3.14/sdk/dMath  -O3 -pipe -march=native -fno-diagnostics-color -s
[96/175] : && /usr/bin/cmake -E rm -f lib/libNewton.a && /usr/lib/llvm/17/bin/llvm-ar qc lib/libNewton.a  sdk/CMakeFiles/NewtonObj.dir/dgCore/dg.cpp.o sdk/CMakeFiles/NewtonObj.dir/dgCore/dgAABBPolygonSoup.cpp.o sdk/CMakeFiles/NewtonObj.dir/dgCore/dgAsyncThread.cpp.o sdk/CMakeFiles/NewtonObj.dir/dgCo
[97/175] : && /usr/lib/llvm/17/bin/clang++ -fPIC -O3 -pipe -march=native -fno-diagnostics-color -std=c++11 -pthread  -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -shared -Wl,-soname,libNewton.so -o lib/libNewton.so sdk/CMakeFiles/NewtonObj.dir/dgCore/dg.cpp.o sdk/C
FAILED: lib/libNewton.so 
: && /usr/lib/llvm/17/bin/clang++ -fPIC -O3 -pipe -march=native -fno-diagnostics-color -std=c++11 -pthread  -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -shared -Wl,-soname,libNewton.so -o lib/libNewton.so sdk/CMakeFiles/NewtonObj.dir/dgCore/dg.cpp.o sdk/CMakeFiles
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'vtable for dgAABBPolygonSoup'; recompile with -fPIC
>>> defined in sdk/CMakeFiles/NewtonObj.dir/dgCore/dgAABBPolygonSoup.cpp.o
>>> referenced by dgAABBPolygonSoup.cpp

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd_clang-20231210-041514

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6+libcxx
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 0320764b4824ac1684e1f425d8c7b302e33a55ba
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 11 17:03:56 2023 +0000

    2023-12-11 17:03:56 UTC

emerge -qpvO dev-games/newton
[ebuild  N    ] dev-games/newton-3.14
Comment 1 Toralf Förster gentoo-dev 2023-12-11 18:20:27 UTC
Created attachment 878786 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-11 18:20:28 UTC
Created attachment 878787 [details]
dev-games:newton-3.14:20231211-173116.log
Comment 3 Toralf Förster gentoo-dev 2023-12-11 18:20:30 UTC
Created attachment 878788 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-12-11 18:20:31 UTC
Created attachment 878789 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-11 18:20:32 UTC
Created attachment 878790 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-11 18:20:33 UTC
Created attachment 878791 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-11 18:20:34 UTC
Created attachment 878792 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2023-12-11 18:20:35 UTC
Created attachment 878793 [details]
temp.tar.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-11 18:20:36 UTC
Created attachment 878794 [details]
var.tmp.clang.tar.xz