From nobody Sun Jun 1 06:33:29 2025 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4b96cY2WFLz5x9dH for ; Sun, 01 Jun 2025 06:33:33 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta003.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4b96cX3rDdz3nC2 for ; Sun, 01 Jun 2025 06:33:32 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTPS id LJEEuYkt79JM2LcGBuGsnf; Sun, 01 Jun 2025 06:33:31 +0000 Received: from spqr.komquats.com ([70.66.136.217]) by cmsmtp with ESMTPSA id LcG9upeEdl5eGLcGAu9nnw; Sun, 01 Jun 2025 06:33:31 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=EO6l0EZC c=1 sm=1 tr=0 ts=683bf43b a=h7br+8Ma+Xn9xscxy5znUg==:117 a=h7br+8Ma+Xn9xscxy5znUg==:17 a=kj9zAlcOel0A:10 a=dt9VzEwgFbYA:10 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=VxmjJ2MpAAAA:8 a=YxBL1-UpAAAA:8 a=MfqgawXEhoa1fA3QlgIA:9 a=CjuIK1q_8ugA:10 a=LK5xJRSDVpKd5WXXoEvA:22 a=7gXAzLPJhVmCkEl4_tsf:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 5ADC5BF; Sat, 31 May 2025 23:33:29 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 2703AAD; Sat, 31 May 2025 23:33:29 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Konstantin Belousov cc: Cy Schubert , "Herbert J. Skuhra" , current@freebsd.org Subject: Re: Building lang/go* and go ports broken on main (amd64)? In-reply-to: References: <87jz5y2njf.wl-herbert@gojira.at> <20250601041116.0A5642A9@slippy.cwsent.com> <20250601050516.BED6410D@slippy.cwsent.com> Comments: In-reply-to Konstantin Belousov message dated "Sun, 01 Jun 2025 09:06:32 +0300." List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 31 May 2025 23:33:29 -0700 Message-Id: <20250601063329.2703AAD@slippy.cwsent.com> X-CMAE-Envelope: MS4xfFGOcvt7MX8ehTozI4Mo0IOKuswLzvkn9GKEWV1KnjhnZKUeu9cWq4THhajJkdIIKGzwvdI6iDhM3G8iGN2DemKmMwfWOcSRvEb9bGekLWfkzfap5wDd 7AHEpZsAm6JzpYntoIJilni5bVGo8isV5HchY4pj86K1E6zdrFNud7B30e4k0bZIl+OlrS4EcBDPslSQKygc2eKKz9SeZsPdVUdruajyp1kgbSlBbk/TIXBf LcaJ7gX0YsSv4epYTnwmjjQjHJ15/nlSy7eLg1t0/F4= X-Rspamd-Queue-Id: 4b96cX3rDdz3nC2 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] In message , Konstantin Belousov writes: > On Sat, May 31, 2025 at 10:05:16PM -0700, Cy Schubert wrote: > > In message <20250601041116.0A5642A9@slippy.cwsent.com>, Cy Schubert writes: > > > In message , Konstantin Belousov writes: > > > > On Fri, May 30, 2025 at 04:14:44PM +0200, Herbert J. Skuhra wrote: > > > > > On Fri, 30 May 2025 13:32:27 +0200, Konstantin Belousov wrote: > > > > > > > > > > > > On Fri, May 30, 2025 at 09:36:39AM +0200, Herbert J. Skuhra wrote: > > > > > > > Hi, > > > > > > > > > > > > > > building lang/go (e.g. 1.24) and go ports (e.g. aerc, netbird) on > mai > > > n > > > > > > > (amd64) fails with: fatal: bad g in signal handler. > > > > > > > Arm64 seems to be OK. > > > > > > > > > > > > I might have a guess. Try the following untested patch, you need t > o re > > > bu > > > > ild > > > > > > at least kernel, but ideally both kernel and userspace. Also it is > amd > > > 64 > > > > -only. > > > > > > > > > > Thanks a lot! With your patch I could build go 1.24 and netbird again > . > > > > > > > > Is there any go code that uses cgo, and which you could test with the p > atch > > > > as well? > > > > > > > > > > It's a bad system call. Yesterday's buildworld/installworld made the syst > em > > > unable to run today's installworld. > > > > > > --- installworld --- > > > make[1]: /export/obj/opt/src/git-src/amd64.amd64/toolchain-metadata.mk:1: > > > > Using cached toolchain metadata from build at stinky on Sat May 31 20:16: > 05 > > > PDT 2025 > > > --- __installcheck_UGID --- > > > --- __installcheck_sh_check --- > > > Bad system call (core dumped) > > > rescue/sh check failed, installation aborted > > > > > > make[1]: stopped making "installworld" in /opt/src/git-src > > > > > > make: stopped making "installworld installkernel" in /opt/src/git-src > > > > > > The go problem is likely related to this. > > > > The resolution is: > > > > git pull the latest 15-CURRENT. Buildkernel and installkernel. Then > > buildworld and installworld. Remember to rebuild drm-66-kmod or it will > > panic. Any Go software will build correctly. > > In fact, I am not completely sure about Go. > Pure Go binaries should work. > > The interesting case is cgo binaries, which start libpthread threads. > I am interested if they work, and if no, I have some ugly trick to apply. My thinking at the time was that the problem might have been related to the syscall table. But looking at the commits, I'm not convinced of that now. It must be something else. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0