From owner-freebsd-questions@freebsd.org Wed Mar 22 14:09:59 2017 Return-Path: Delivered-To: freebsd-questions@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 DFFBCD178F0; Wed, 22 Mar 2017 14:09:59 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5C2281FCF; Wed, 22 Mar 2017 14:09:58 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from freyja.zeit4.iv.bundesimmobilien.de ([87.138.105.249]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Ldq55-1cPuqd1lKN-00ixaS; Wed, 22 Mar 2017 15:09:56 +0100 Date: Wed, 22 Mar 2017 15:09:48 +0100 From: "O. Hartmann" To: freebsd-current , freebsd-arm Subject: CURRENT: aarch64 /poudriere installation fails with: sh: cc: not found Message-ID: <20170322150948.5c94a5ad@freyja.zeit4.iv.bundesimmobilien.de> Organization: Walstatt X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:LGItz8T5i2SOb7a9e+QuFUFCQthFYkwbFCOivT+q7J5C/Q7UkY6 Us20cpc0nVVj0ALivVxb8BKyCya8plDKqEQxYkfmJwviITB9V2f72I2X+tzCGU2Cv+GlWOS 75sVyU+g+85OHoQObXnd7GIC6BhZXE9BO3nFKL8xMwRy/4zzh1QnTruz5bk5fW4pccdMRFM ykGfSgAOTuYM/8yI6BP/w== X-UI-Out-Filterresults: notjunk:1;V01:K0:EehVt2pZOgk=:mTf8Pi+KVyjUp7RP8PCzHr L8b3Id1/Y7WyGVbOHzHZEolvvbCdxcj+srUA/WHAaF2zY59nfIr58pPEZAiA6oxCrylXAyfhr W6iG2JSVDfp9hUv6Sq6mXOxR3w0coSAmIEUN5gCAKWLl4rxA7kyw9d5yzmgxOvdud7/am26GV TMnoa3VApaioAfc+C56vV0GlHfPSpJxjkiPYgPvJs37bnUveFb9Bnp06pG7ppGbWBYhf55wij 7Yl656M/xuJUWGjHraWuF6BV37ISn3bljJCl1dQWgHy/BymjCA5rtGIm4zaslLcandOjNZwLj GA1nJ2lOrQWhNGOl2ckDvLjtikT1FxxLRgrci4C8Io2EPyeC77lw93aVHjmrSIcSAjJySIBjJ 7QzJZflu5RXrg0AEWyKvl1+lnwD8AMrfqH0EY6mL4z2kSoQLJbgSu2qzp4QILQO07pUfezkA7 XedoT6FIPZVWRGTqYbDS0TW6VG+wHPX2EMNdYAUtuVGpBr8f8uz7JW75gmOGzW+NzJeYfxd3O ZuqVVn9iEG3hcG28zApIWd5fQrca1Bo8z1UCzoanPHUR4jEm5gLYZsjDgJO9AO/mY3Zg311O+ eKF6rh2waoKQDevgmBql9BU7QFml/CuQy4bXPTVOg8yzO6YHrslmeoE4dq1MNo1eCyNkta6Ho PgzN1m+0mQc83UwpBzKRWfEs1uCwXdAQi/5N1PhaN/uBud0AyybglKyg0dLUyDMrzFeH4CFEg aLx5+TvuSI6ncJckzXymEwYvaxoz6L77dSx4CMvrNLJxGLurtk2vwk0O5W/r+fVwcGXaohsAN uey2lul X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2017 14:10:00 -0000 Hello List(s), I'm pretty new to cross compiling on FreeBSD, so to make the introduction short: amazed by the possibilities of FreeBSD on Pine64 and poudriere as the basis of our own ports repository, I try to build a repository of selected ports via poudriere for arm64.aarch64 and - fail! When installaing the jail from a prebuilt world via "-m src=...", the installation fails with: [...] make[2]: "/pool/CURRENT/src/share/mk/bsd.compiler.mk" line 145: Unable to determine compiler type for CC=cc -target aarch64-unknown-freebsd12.0 --sysroot=/usr/obj/arm64.aarch64/pool/CURRENT/src/tmp -B/usr/local/aarch64-freebsd/bin/. Consider setting COMPILER_TYPE. *** Error code 1 Stop. make[1]: stopped in /pool/sources/CURRENT/src *** Error code 1 [...] I use the option "-m src=" with all of my jails, where for amd64 the source tree and object tree resides in /usr/src and /usr/obj respectively from a buildworld. For poudriere jails intended to be used for cross building, I checked out the whole CURRENT tree (among 11 and 10) at /pool/CURRENT/src (or /pool/11-STABLE/src or /pool/10.3-RELEASE/src) to keep the main tree clean and intact in case I have to patch too much. The hosting system is a 12-CURRENT as of recent date: 12.0-CURRENT #30 r315698: Wed Mar 22 06:09:40 CET 2017 amd64. Building a "buildworld" for the arm64.aarch64 has been performed successfully via env MAKEOBJDIRPREFIX=/pool/11-STABLE/obj SRCCONF=/dev/null \ __MAKE_CONF=/dev/null TARGET=arm64 make -j12 buildworld After a successful build, there is a object's folder structure /pool/CURRENT/obj/arm64.aarch/ containing (obviosly?) the world without a kernel. Since I use some optimisation flags and special setting in /etc/src.conf and /etc/make.conf, I needed to neutralise those settings and followed the examples and ways I've learned from using NanoBSD. Now, I try to install this world as the base of my arm64.aarch64 jail, which is supposed to build the ports tree for arm64.aarch64 platforms. As a prerequisite, I have already installed the most recent port emulators/qemu-user-static (qemu-user-static-2.8.50.g20170307) and it has been started as a service, as kldstat seems to indicate: kldstat [...] 4 1 0xffffffff81901000 23d0 filemon.ko 5 1 0xffffffff81904000 14fe imgact_binmisc.ko Well, now I try to install the jail: poudriere jail -c -j head-aarch64 -a arm64.aarch64 \ -M /pool/poudriere/jails/head-aarch64 -m src=/pool/CURRENT/src -v head and as a desperate try also with option "-x". But either way, I fail installing the jail with the error shown above. Something is missing and I think, the recommendation of setting the COMPILER_TYPE has a deeper sense here ;-) I tried to google some advices, but I stumbled only over some "simple and easy" advices which lead me to the failure seen above. Maybe nullifying the SRCCONF and __MAKE_CONF isn't a good idea at that point, but I'd like to to await the professionals advice. Thanks in advance, Oliver