Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 May 2014 12:22:06 +0200
From:      Matthias Meyser <meyser@xenet.de>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-arm@FreeBSD.org
Subject:   Re: cross compiling & Native installing
Message-ID:  <536F4F4E.6050900@xenet.de>
In-Reply-To: <CC531A20-E21E-40F5-A93E-FCF41146D5B1@bsdimp.com>
References:  <536DDB0B.7040502@xenet.de> <CC531A20-E21E-40F5-A93E-FCF41146D5B1@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 10.05.2014 17:48, schrieb Warner Losh:
>
> On May 10, 2014, at 1:53 AM, Matthias Meyser <Meyser@xenet.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?536F4F4E.6050900>