🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.netbsd.tech.toolchain
Article #4

-mtls-dialect=gnu2

#4
From: Thomas Klausner
Date: Mon, 02 Nov 2026 07:32
29 lines
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
Technical Details
Message-ID: <aug7yhL2mqEntO0K@exadelic.gatalith.at>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Thomas Klausner <wiz@netbsd.org>
Newsgroups: muc.lists.netbsd.tech.toolchain
Subject: -mtls-dialect=gnu2
Date: Mon, 2 Nov 2026 08:32:55 +0100
Organization: Newsgate at muc.de e.V.
Sender: tech-toolchain-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <aug7yhL2mqEntO0K@exadelic.gatalith.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="90605"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org;
	s=20240131; t=1793604780;
	bh=U2hZvjM+N+dJj7WOjga9RobpMQ62ltc0DyuheBc08Jc=;
	h=Date:From:To:Subject:List-Id:List-Unsubscribe;
	b=riN56PT1MnwYN0VcjEqmAzIBRjAvpeINFWP/Xbg0yCYBNozLSdYzmh8oMS7VnUjkF
	 HB11OHstwermv/YVDhdpwk3QsCMxuI26yj/jD1HGnWjk09ok+HICiLBk/cDAVujkEw
	 8ld6p7juJLRvEzadg/QZ7GDxTT16wbj13yR0KsM4=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org;
	s=20240131; t=1793604778;
	bh=U2hZvjM+N+dJj7WOjga9RobpMQ62ltc0DyuheBc08Jc=;
	h=Date:From:To:Subject;
	b=PxcWQrwudNEuCT9vCKSChwBl/a2JletLoPdS+xnqhL+ClFlGzBJhpvmnQP6ZRezYf
	 vmcKBTr1NUMeIHFjcZMKvpCt+0SkHnNohMNEKhYD76btqKqvVS5NIAvM8+nDG9c/uC
	 hz66+so2qGOWNodqN0eauCPqXOXQ3TD7cFAhm1q8=
Content-Disposition: inline
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes