Thread View: muc.lists.netbsd.tech.toolchain
1 messages
1 total messages
Started by Thomas Klausner
Mon, 02 Nov 2026 07:32
-mtls-dialect=gnu2
Author: Thomas Klausner
Date: Mon, 02 Nov 2026 07:32
Date: Mon, 02 Nov 2026 07:32
29 lines
2636 bytes
2636 bytes
Hi!
The in-tree gcc supports '-mtls-dialect=gnu2', so configure scripts
that check if it exists and returns an error succeed because it exists
and doesn't return an error.
However, when running the resulting files on NetBSD, one gets:
Unsupported relocation type 36 in non-PLT relocations
because the linker doesn't support this.
I recently saw this in py-pikepdf where the flag came from
py-nanobind. I've filed a bug report and upstream now changed it to
only check for that flag on Linux. [1] So the problem that led me here
is fixed.
But I wonder: Is there something more we should do in NetBSD about
this? I.e. add support for that relocation type, or stop accepting
the flag in our in-tree gcc?
Cheers,
Thomas
[1] https://github.com/wjakob/nanobind/issues/1461
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads