From owner-freebsd-arm@FreeBSD.ORG Sun May 11 10:22:14 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 73CDFF61 for ; Sun, 11 May 2014 10:22:14 +0000 (UTC) Received: from server1.xenet.de (server1out.xenet.de [213.221.94.200]) by mx1.freebsd.org (Postfix) with ESMTP id DE8ED269F for ; Sun, 11 May 2014 10:22:13 +0000 (UTC) Received: from [10.1.0.50] (tubercel-gate.xenet.de [213.221.94.54]) (authenticated bits=0) by server1.xenet.de (8.12.5/8.12.5) with ESMTP id s4BAM6BJ042782; Sun, 11 May 2014 12:22:10 +0200 (CEST) (envelope-from meyser@xenet.de) Message-ID: <536F4F4E.6050900@xenet.de> Date: Sun, 11 May 2014 12:22:06 +0200 From: Matthias Meyser Organization: XeNET GmbH User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Warner Losh Subject: Re: cross compiling & Native installing References: <536DDB0B.7040502@xenet.de> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.38 Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2014 10:22:14 -0000 Am 10.05.2014 17:48, schrieb Warner Losh: > > On May 10, 2014, at 1:53 AM, Matthias Meyser wrote: [...] > > Have you considered setting COMPILER_TYPE to “clang” or something? > The problem is that the cross build is trying to invoke the compiler that runs on the x86 box. > There are likely other issues similar to this, but give it a try. make installkernel KERNCONF=BBB MAKEOBJDIRPREFIX=/usr/obj/arm.armv6 COMPILER_TYPE=clang or make installkernel KERNCONF=BBB CROSS_BUILD_TESTING=yes COMPILER_TYPE=clang gives ------8<-------------------------------8<------------------------- -------------------------------------------------------------- >>> Installing kernel BBB -------------------------------------------------------------- cd /usr/obj/arm.armv6/usr/src/sys/BBB; MAKEOBJDIRPREFIX=/usr/obj/arm.armv6 MACHINE_ARCH=armv6 MACHINE=arm CPUTYPE= GROFF_BIN_PATH=/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/sbin:/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/games:/usr/obj/arm.armv6/usr/src/tmp/legacy/bin:/usr/obj/arm.armv6/usr/src/tmp/usr/sbin:/usr/obj/arm.armv6/usr/src/tmp/usr/bin:/usr/obj/arm.armv6/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin make KERNEL=kernel install thiskernel=`sysctl -n kern.bootfile` ; if [ ! "`dirname "$thiskernel"`" -ef /boot/kernel ] ; then chflags -R noschg /boot/kernel ; rm -rf /boot/kernel ; else if [ -d /boot/kernel.old ] ; then chflags -R noschg /boot/kernel.old ; rm -rf /boot/kernel.old ; fi ; mv /boot/kernel /boot/kernel.old ; sysctl kern.bootfile=/boot/kernel.old/"`basename "$thiskernel"`" ; fi mkdir -p /boot/kernel install -p -m 555 -o root -g wheel kernel /boot/kernel /usr/obj/arm.armv6/usr/src/tmp/legacy/usr/bin/install: ÄH=ì/uL=ì/IE ö~4I Àt+ëfffff. HÿÀHör-ëHÿù/té ÉuñžH Àt: not found PuTTY/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/bin/install:ELF: not found /usr/obj/arm.armv6/usr/src/tmp/legacy/usr/bin/install: 1: Syntax error: Unterminated quoted string /usr/obj/arm.armv6/usr/src/tmp/legacy/usr/bin/install: 6: Syntax error: Error in command substitution *** Error code 2 Stop. make[2]: stopped in /usr/obj/arm.armv6/usr/src/sys/BBB *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src ------8<-------------------------------8<------------------------- > Or do as Ian suggested and install from the compile host over NFS. I will do as a workaround. But I still believe this this "schould" work. -- Matthias