From nobody Sun Jun 01 06:06:32 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 4b961f1npXz5x8Ny for ; Sun, 01 Jun 2025 06:06:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4b961d5SjLz3Q26 for ; Sun, 01 Jun 2025 06:06:45 +0000 (UTC) (envelope-from kostikbel@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1] (may be forged)) by kib.kiev.ua (8.18.1/8.18.1) with ESMTP id 55166XrB073361; Sun, 1 Jun 2025 09:06:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 55166XrB073361 Received: (from kostik@localhost) by tom.home (8.18.1/8.18.1/Submit) id 55166WlU073352; Sun, 1 Jun 2025 09:06:32 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 1 Jun 2025 09:06:32 +0300 From: Konstantin Belousov To: Cy Schubert Cc: "Herbert J. Skuhra" , current@freebsd.org Subject: Re: Building lang/go* and go ports broken on main (amd64)? Message-ID: References: <87jz5y2njf.wl-herbert@gojira.at> <20250601041116.0A5642A9@slippy.cwsent.com> <20250601050516.BED6410D@slippy.cwsent.com> 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 Content-Disposition: inline In-Reply-To: <20250601050516.BED6410D@slippy.cwsent.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on tom.home X-Rspamd-Queue-Id: 4b961d5SjLz3Q26 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:6939, ipnet:2001:470::/32, country:US] 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 to 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 patch > > > as well? > > > > > > > It's a bad system call. Yesterday's buildworld/installworld made the system > > 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.