From owner-freebsd-java@freebsd.org Thu Jan 25 06:20:41 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 B0CFEEC2120 for ; Thu, 25 Jan 2018 06:20:41 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) 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 48BA46D5EA for ; Thu, 25 Jan 2018 06:20:41 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: by mailman.ysv.freebsd.org (Postfix) id 098F1EC211D; Thu, 25 Jan 2018 06:20:41 +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 D8EC9EC211B for ; Thu, 25 Jan 2018 06:20:40 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from sonic317-22.consmr.mail.gq1.yahoo.com (sonic317-22.consmr.mail.gq1.yahoo.com [98.137.66.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 60A316D5E3 for ; Thu, 25 Jan 2018 06:20:39 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) X-YMail-OSG: w1wdEaAVM1lOR5LVxuEKSii_XFg8VF5NoY3G9OZc3VQGvC2NpW0VAvkBZkcstdi 5ZilwAvH7v2Q31A3vdYEeXQjmAoI.CQXWZf_theG9xHVQiyBpvjBTG2jFgyW97EltO10_KrUUPBq vAyFgr83tvP8UEO5hROXUSxRgQ31Hco8Aa2BdsTlMFFT8RVfejcjdlZj66yvh3X8e0c7Zd7tXaIX V5zv3unU2JuaXfgiFsDUx.a7.AagK3aT.yMgbfKX0ueAXARzWr3J02la_tgIjAHbiwo9dC6Ayd1E SmapGKtoePEvS8P8bYwxAPBmFZmze7iGM76PoYUtuQ5Xn4IyfI0Oc9f.KbSQ02O8R7EobOdg40TM 3rk0.zTGOx4GR.IGqI01BxSxH9vR6QcINaxqBcgn9gvH9udAOU615U6PoQ3r.pr_LRahSIJipHEG lcN.iC2gRXYPFPKaAgfm4FAmoLHkFgIjUVrGcW48GgqmHa5XbmSf1GFcZ2F5DqBD75mlufloLIuX Z32o7KL_5 Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Thu, 25 Jan 2018 06:20:38 +0000 Received: from smtp102.rhel.mail.gq1.yahoo.com (EHLO ajenkins-hplaptop.mydomain.local) ([216.39.57.211]) by smtp404.mail.gq1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID a8f795863d21a4149cea68d2a0d56e37; Thu, 25 Jan 2018 05:40:08 +0000 (UTC) From: Anthony Jenkins Subject: SOLVED (was Re: Ports with binary bootstrap packages and CURRENT+ino64) To: Don Lewis Cc: Dmytro Bilokha , =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= , openjdk8 Port Maintainer , rust Port Maintainer , FreeBSD Ports References: <4b19d0a5-3910-607f-b7e8-b649bd0d591e@yahoo.com> <277de38c-8a20-b5c0-872f-9140d27160fa@dumbbell.fr> <20180104171558.GA3619@wstan> Message-ID: <601b5242-a8c9-61a5-548c-64f210b39bb0@yahoo.com> Date: Thu, 25 Jan 2018 00:40:05 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US 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 06:20:41 -0000 On 01/24/18 19:37, Don Lewis wrote: > 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ébastien Pédron wrote: >>>> 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).  The ports that fail are ones that >>>>> require a binary bootstrap package (e.g. lang/rust and java/openjdk8).  >>>>> 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. >> 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. >> >> I've been looking into the lang/rust problem, and it looks like the >> cargo binary is built against a pre-ino64 FreeBSD.  The cargo binary >> comes from >> distfiles/rust/2017-10-12/cargo-0.22.0-x86_64-unknown-freebsd.tar.gz: >> >> [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  0 2000   2000 14719904 Oct  9 18:21 >> cargo-0.22.0-x86_64-unknown-freebsd/cargo/bin/cargo >> >> This binary is not affected by the patch Jan referred to, AFAICT.  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().  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.  Here's my OSVERSION >> variable: >> >> [ajenkins@ajenkins-hplaptop /usr/ports/lang/rust]$ make -v OSVERSION >> 1200053 >> >> 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. [ajenkins@ajenkins-hplaptop ~]$ grep COMPAT /usr/src/sys/amd64/conf/MYKERNEL options         COMPAT_FREEBSD32        # Compatible with i386 binaries options         COMPAT_FREEBSD4         # Compatible with FreeBSD4 options         COMPAT_FREEBSD5         # Compatible with FreeBSD5 options         COMPAT_FREEBSD6         # Compatible with FreeBSD6 options         COMPAT_FREEBSD7         # Compatible with FreeBSD7 options         COMPAT_FREEBSD9         # Compatible with FreeBSD9 options         COMPAT_FREEBSD10        # Compatible with FreeBSD10 Am I missing a COMPAT_FREEBSD11?  I see it in the GENERIC config.  I'll add that, rebuild the kernel and try again. GRRR.... that was it!  It's building now on my laptop, I'll whip up a new kernel for my poudriere box I put together and see if that fixes this issue. Thanks for the help, sorry for the noise. Anthonuy