From owner-freebsd-ports@freebsd.org Wed Jan 24 23:40:43 2018 Return-Path: Delivered-To: freebsd-ports@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 546AFECCFE7 for ; Wed, 24 Jan 2018 23:40:43 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from sonic309-21.consmr.mail.ne1.yahoo.com (sonic309-21.consmr.mail.ne1.yahoo.com [66.163.184.147]) (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 DF5CB7DCA3 for ; Wed, 24 Jan 2018 23:40:42 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) X-YMail-OSG: C3D_cxYVM1mwFdFR5sA9E5d6wKFVKAVxuyIeUirdnNuJQ6NSDRI5tBmdAECr8Vo 1mT7x5NNeiODTNuBiss64c7nkQS_Co1h5rAh3un4g7q1t.Z6UaSRGT0hsyMlDDpMzhhImidBplUi bBZLp3tD_xOCDDKCuuCEkdQa6ddaLzv8yy.L3M0I9StMg8co7GWHmYzUkmra8t99V0Qs9LqRGZH3 hex00bGrc69INdpHv6rz.iUMrBdzbKmihkob33RcxmLYX0n8AU0Ef5j3CVEB326W3vkceLlLrryW A6JDQ_WxbDk.16R8RygyWIOeeCRbffg_ut.lE0p.4vqs98c2sf9CDKG.HBEWrLSwfItMdg9tY0SN .njoUygUSkEZFb2znbDeSgiqxxCP4uWOd_LZOsrtPx_Hln8Eventi1XeiU_KpUY8JdJsmx4rFJ5A giDutvtj_AZjc0xfkDZ3eEcdylq7niOhW27vdRw6GD5AxwEXLSYSy4i1VDouf02vdbnrPtV1NK4B N9Ly9UuTv.Q-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Wed, 24 Jan 2018 23:40:36 +0000 Received: from smtp229.mail.ne1.yahoo.com (EHLO ajenkins-hplaptop.mydomain.local) ([10.218.253.212]) by smtp412.mail.ne1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID 935cac172696daf9c51bd23c6638820b; Wed, 24 Jan 2018 23:40:32 +0000 (UTC) Subject: Re: Ports with binary bootstrap packages and CURRENT+ino64 To: Dmytro Bilokha , =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= Cc: 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> From: Anthony Jenkins Message-ID: Date: Wed, 24 Jan 2018 18:40:30 -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: <20180104171558.GA3619@wstan> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 23:40:43 -0000 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. Anthony >> >> --  >> Jean-Sébastien Pédron >> > > Hi, guys! > > I have the same trouble with building java/openjdk8 with Poudriere: > > configure: Found potential Boot JDK using configure arguments > configure: Potential Boot JDK found at /usr/local/bootstrap-openjdk8 > is incorrect JDK version (Error occurred during initialization of VM); > ignoring > configure: (Your Boot JDK must be version 7 or 8) > configure: error: The path given by --with-boot-jdk does not contain a > valid Boot JDK > configure exiting with result code 1 > ===>  Script "../../configure" failed unexpectedly. > > My version is 11.1-RELEASE-p4, so it is possible that the issue is not > specific for the 12.0-CURRENT. > I have an idea, that openjdk8 build process fails in a Poudriere jail, > because of not mounted fdescfs and procfs. I've tried to mount these > fs in the Poudriere jail, but failed. >