Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953364 - dev-java/snappy-java-1.1.10.7 - [llvm] ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol _cxa_unexpected_handler; recompile with -fPIC
Summary: dev-java/snappy-java-1.1.10.7 - [llvm] ld.lld: error: relocation R_X86_64_PC3...
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-04-07 18:31 UTC by Toralf Förster
Modified: 2025-04-23 08:43 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.54 KB, text/plain)
2025-04-07 18:31 UTC, Toralf Förster
Details
dev-java:snappy-java-1.1.10.7:20250407-031842.log (dev-java:snappy-java-1.1.10.7:20250407-031842.log,12.86 KB, text/plain)
2025-04-07 18:31 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,215.20 KB, text/plain)
2025-04-07 18:31 UTC, Toralf Förster
Details
environment (environment,132.65 KB, text/plain)
2025-04-07 18:31 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.61 KB, application/x-xz)
2025-04-07 18:31 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,23.27 KB, application/x-xz)
2025-04-07 18:31 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,47.52 KB, application/x-xz)
2025-04-07 18:31 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,57.51 KB, application/x-xz)
2025-04-07 18:31 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,27.43 KB, application/x-xz)
2025-04-07 18:31 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 2025-04-07 18:31:19 UTC
>>> referenced by cxa_exception_storage.cpp.o:(__cxa_get_globals) in archive /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../lib64/libc++abi.a

ld.lld: error: relocation R_X86_64_TPOFF32 against __cxxabiv1::(anonymous namespace)::__globals()::eh_globals cannot be used with -shared
>>> defined in /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../lib64/libc++abi.a(cxa_exception_storage.cpp.o)
>>> referenced by cxa_exception_storage.cpp.o:(__cxa_get_globals_fast) in archive /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../lib64/libc++abi.a

ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol '__cxa_unexpected_handler'; recompile with -fPIC
>>> defined in /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../lib64/libc++abi.a(cxa_default_handlers.cpp.o)
>>> referenced by cxa_default_handlers.cpp.o:(std::set_unexpected(void (*)())) in archive /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../lib64/libc++abi.a

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_llvm-20250403-002508

  Block bug #351559 if this looks like a parallel build issue.
  Possible reproducer: MAKEOPTS='...  shuffle=3776910520'

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
GENTOO_VM=openjdk-bin-21  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-21.0.6_p7"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang version 20.1.2+libcxx
llvm-config: 20.1.2+libcxx
Python 3.12.9
go version go1.24.1 linux/amd64
  [1]   php8.2
  [2]   php8.4 *
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.85.1
  [2]   rust-1.85.1
  [3]   rust-bin-1.86
  [4]   rust-1.86 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.14_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 1513c5555d168fa2a8db43222cbb96c9e1061f7b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Apr 7 00:35:18 2025 +0000

    2025-04-07 00:35:18 UTC

emerge -qpvO =dev-java/snappy-java-1.1.10.7
[ebuild  N    ] dev-java/snappy-java-1.1.10.7  USE="-doc -source -test"
Comment 1 Toralf Förster gentoo-dev 2025-04-07 18:31:20 UTC
Created attachment 923763 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-04-07 18:31:20 UTC
Created attachment 923764 [details]
dev-java:snappy-java-1.1.10.7:20250407-031842.log
Comment 3 Toralf Förster gentoo-dev 2025-04-07 18:31:22 UTC
Created attachment 923765 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2025-04-07 18:31:23 UTC
Created attachment 923766 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2025-04-07 18:31:24 UTC
Created attachment 923767 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-04-07 18:31:25 UTC
Created attachment 923768 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-04-07 18:31:26 UTC
Created attachment 923769 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-04-07 18:31:27 UTC
Created attachment 923770 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-04-07 18:31:28 UTC
Created attachment 923771 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2025-04-23 08:43:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b71fb8dea635baec378921adb7f5810cabfabdf2

commit b71fb8dea635baec378921adb7f5810cabfabdf2
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2025-04-13 19:06:22 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2025-04-23 08:43:08 +0000

    dev-java/snappy-java: build native library in the ebuild #953364
    
    - minor style update
    - generates native library using $(tc-getCC)
    - no longer includes native library in the jar
    - drops all Makefile related patches
    - skips one test from SnappyLoaderTest
    
    Bug: https://bugs.gentoo.org/953364
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/41603
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../snappy-java-1.1.10.7-skipFailingTest.patch     |  48 +++++++
 .../snappy-java/snappy-java-1.1.10.7-r1.ebuild     | 156 +++++++++++++++++++++
 2 files changed, 204 insertions(+)