From owner-freebsd-arm@freebsd.org Fri May 27 18:37:26 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E684B4C4CB for ; Fri, 27 May 2016 18:37:26 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E0F91E2B for ; Fri, 27 May 2016 18:37:25 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3rGZW56L6SzZqp; Fri, 27 May 2016 20:37:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=mail; t= 1464374240; x=1466188641; bh=FbtoEvtG+MyeHbb5Fnb8aiAzVr42pDd3oS+ BqcNuur4=; b=R7jJoByRipJxuvemy/FeX5wLIHmFVKKfIcprtHA0MynIK1UDM7T 4Ky1RUyj/RID4sKggG4P5hJ7F+z1NGtVyDfHZweVepY2DzzRspqLz71mk7YweEM/ kRCLkcuVZOnGyI0+rX4MyaVAVGwuoCi5l5uxElakWklOV3f9cDqI9DHc= Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id jkiNhx4G5YIL; Fri, 27 May 2016 20:37:20 +0200 (CEST) Received: from tommy.madpilot.net (micro.madpilot.net [88.149.173.206]) by mail.madpilot.net (Postfix) with ESMTPSA; Fri, 27 May 2016 20:37:20 +0200 (CEST) Subject: Re: Cross building ports using poudriere on armv6 failing To: =?UTF-8?Q?Mika=c3=abl_Urankar?= References: <4a13641f-89ca-ad65-2095-49a3696662bb@madpilot.net> Cc: "freebsd-arm@freebsd.org" From: Guido Falsi Message-ID: <19196c25-2197-7599-abde-537b9f10e9d2@madpilot.net> Date: Fri, 27 May 2016 20:37:19 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2016 18:37:26 -0000 On 05/27/16 19:52, Mikaƫl Urankar wrote: > 2016-05-27 17:08 GMT+02:00 Guido Falsi : >> Hi! >> >> I'm doing some experiments with a RPI2 board and I cross build my >> packages using poudriere on amd64. >> >> Since the ABI change my poudriere jails have not been working. >> >> Now, it's quite problable I'm missing something obvious or doing >> something wrong. But I cannot really figure out how to fix this. I'm >> looking for someone to point me in the right direction. >> >> >> I successfully upgraded the jails to r300410 using poudriere jail -u. >> >> Now each time I start the jail it dies trying to compile pkg (the first >> port it tries, with this error: >> >> checking whether the C compiler works... no >> configure: error: in `/wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg-1.8.3': >> configure: error: C compiler cannot create executables >> See `config.log' for more details >> ===> Script "configure" failed unexpectedly. >> >> >> Looking at the config.log gives me this error message: >> >> configure:3581: checking whether the C compiler works >> configure:3603: /nxb-bin/usr/bin/cc -O2 -pipe -Wno-error >> -fno-strict-aliasing conftest.c >&5 >> /nxb-bin/usr/bin/ld: ERROR: a.out uses VFP register arguments, >> /tmp/conftest-808afb.o does not >> /nxb-bin/usr/bin/ld: failed to merge target specific data of file >> /tmp/conftest-808afb.o >> cc: error: linker command failed with exit code 1 (use -v to see invocation) >> >> What should I do? Did I messed up the update? > > update_jail() doesn't seem to update the native-xtools, you are > probably using an old toolchain. > Keep in mind that the native-xtools are built using /usr/src not the > 'poudriere' one, you need to update your /usr/src tree before updating > your toolchain (or creating a new jail) > Thanks a lot. This is just the pointer I needed. I always keep my jails aligned with the base system so that isn't a problem. I'll start updating my toolchain right away. -- Guido Falsi