Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

openjdk issues on musl+clang

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
calebstein1
n00b
n00b
Posts: 1
Joined: Wed Nov 29, 2023 9:38 pm
Location: Bainbridge Island, WA
Contact:
Contact calebstein1
Website

openjdk issues on musl+clang

  • Quote

Post by calebstein1 » Wed Nov 29, 2023 10:29 pm

Hi all, I'm currently working on building a musl+clang system and it's all up and happening with a Plasma desktop and all that good stuff, but I'm having trouble at the moment getting my JetBrains IDEs working on the thing, since obviously the IDE's bundled Java isn't going to run on musl. Emerging virtual/jdk pulls in dev-java/openjdk-bin which seems to grab Alpine's openjdk, which makes sense because musl, but when I try to run RubyMine using that JDK, it fails with the following:

Code: Select all

kotlinx.coroutines.JobCancellationException: Parent job is Cancelling; job=DispatchedCoroutine{Cancelling}@28cfd59
Caused by: java.lang.UnsatisfiedLinkError: /opt/openjdk-bin-17.0.8.1_p1/lib/libawt_xawt.so: Error relocating /opt/openjdk-bin-17.0.8.1_p1/lib/libawt_xawt.so: __strdup: symbol not found
I don't think it's necessarily a RubyMine problem since I've heard of people running it on Alpine without problems, so I'm going to go ahead and guess this has something to do with the lack of gcc on my system, but I'm no expert in the matter. My next thought was to just compile dev-java/openjdk straight on the musl+clang system, but that's proving difficult for its own reasons. I'm going to keep poking at that in the meantime, but for now, is this something anyone's come up against before? I can't be the only guy having Java troubles on musl+clang right?
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2111
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

Re: openjdk issues on musl+clang

  • Quote

Post by GDH-gentoo » Thu Nov 30, 2023 5:26 pm

This is likely the problem:
calebstein1 wrote:

Code: Select all

Error relocating /opt/openjdk-bin-17.0.8.1_p1/lib/libawt_xawt.so: __strdup: symbol not found
A shared library contains a reference to a symbol, __strdup (seemingly corresponding to a function name) that is not defined in musl or in Clang/LLVM libraries. To make things worse, this library seems to be part of the binary OpenJDK, so it's not like you can easily recompile it to fix that.

The output of ldd /opt/openjdk-bin-17.0.8.1_p1/lib/libawt_xawt.so might help with figuring out if the package expects a GCC or GNU libc-specific library to be present.
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
Hu
Administrator
Administrator
Posts: 24386
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Nov 30, 2023 5:52 pm

It looks like glibc provides this symbol.

Code: Select all

$ nm --print-file-name -D --defined-only libc.so.6 | grep __strdup
libc.so.6:000000000009abf0 T __strdup@@GLIBC_2.2.5
Top
Post Reply

3 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic