From owner-freebsd-java@freebsd.org Thu Jan 25 00:37:45 2018 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD341ECFBA8 for ; Thu, 25 Jan 2018 00:37:45 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4F03A7FF70 for ; Thu, 25 Jan 2018 00:37:45 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0B25FECFBA5; Thu, 25 Jan 2018 00:37:45 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7F1FECFBA4; Thu, 25 Jan 2018 00:37:44 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from mx2.catspoiler.org (mx2.catspoiler.org [IPv6:2607:f740:16::d18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "amnesiac", Issuer "amnesiac" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A9537FF6A; Thu, 25 Jan 2018 00:37:44 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org ([76.212.85.177]) by mx2.catspoiler.org (8.15.2/8.15.2) with ESMTPS id w0P0c7LS099889 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 25 Jan 2018 00:38:08 GMT (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.15.2/8.15.2) with ESMTPS id w0P0bWqa002498 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Jan 2018 16:37:33 -0800 (PST) (envelope-from truckman@FreeBSD.org) Date: Wed, 24 Jan 2018 16:37:26 -0800 (PST) From: Don Lewis Subject: Re: Ports with binary bootstrap packages and CURRENT+ino64 To: Anthony Jenkins cc: Dmytro Bilokha , =?iso-8859-1?Q?Jean-S=E9bastien_P=E9dron?= , openjdk8 Port Maintainer , rust Port Maintainer , FreeBSD Ports In-Reply-To: Message-ID: References: <4b19d0a5-3910-607f-b7e8-b649bd0d591e@yahoo.com> <277de38c-8a20-b5c0-872f-9140d27160fa@dumbbell.fr> <20180104171558.GA3619@wstan> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-Disposition: INLINE X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 00:37:46 -0000 On 24 Jan, Anthony Jenkins via freebsd-ports wrote: > On 01/04/18 12:15, Dmytro Bilokha wrote: >> On Thu, Jan 04, 2018 at 03:31:46PM +0100, Jean-S=E9bastien P=E9dron wrot= e: >>> On 03.01.2018 01:06, Anthony Jenkins wrote: >>>> I'm having trouble building ports with a new Poudriere rig on a >>>> 12.0-CURRENT (git commit 423586ee).=A0 The ports that fail are ones th= at >>>> require a binary bootstrap package (e.g. lang/rust and java/openjdk8).= =A0 >>>> The executables in these bootstrap packages fail with a segfault as do >>>> all executables build with a non-ino64 FreeBSD box. >>> >>> Like Jan, I'm surprised that it crashes. AFAIK, Rust builds fine in the >>> official package building cluster, which is also running FreeBSD >>> 12-CURRENT. >>> >>> I don't know what to suggest at this point, so I'll wait that you >>> provide the information requested by Jan. >=20 > Sorry for the reply delay - apparently I wasn't an actual member of the > @ports mailing list, and I've had a bunch of stuff going on. >=20 > I've been looking into the lang/rust problem, and it looks like the > cargo binary is built against a pre-ino64 FreeBSD.=A0 The cargo binary > comes from > distfiles/rust/2017-10-12/cargo-0.22.0-x86_64-unknown-freebsd.tar.gz: >=20 > [ajenkins@ajenkins-hplaptop /usr/ports/lang/rust]$ tar tvzf > /usr/ports/distfiles/rust/2017-10-12/cargo-0.22.0-x86_64-unknown-freebsd.= tar.gz > | grep bin/cargo > -rwxr-xr-x=A0 0 2000=A0=A0 2000 14719904 Oct=A0 9 18:21 > cargo-0.22.0-x86_64-unknown-freebsd/cargo/bin/cargo >=20 > This binary is not affected by the patch Jan referred to, AFAICT.=A0 I'm > trying my hand at writing a wrapper for cargo that uses LD_PRELOAD to > call a hand-rolled pre-ino64 stat() that calls the post-ino64 stat().=A0 = I > have no idea how/why a 12-CURRENT system can build the lang/rust port - > I have two CURRENT systems that fail to build it.=A0 Here's my OSVERSION > variable: >=20 > [ajenkins@ajenkins-hplaptop /usr/ports/lang/rust]$ make -v OSVERSION > 1200053 >=20 > This kicks in the patch, but I still have the issue. I haven't seen this problem here. Are you running the GENERIC kernel or a customized kernel? If the latter, does the configuration include the COMPAT_FREEBSD* options? The bootstrap is probably compiled for an older FreeBSD release, and if those options aren't present, then the syscall emulation for the pre-ino64 syscall ABI probably won't be there.