cross compile for rpi3 help needed

Per olof Ljungmark peo at nethead.se
Thu Aug 9 08:22:00 UTC 2018


On 8/8/18 11:12 PM, Per olof Ljungmark wrote:
> On 8/8/18 5:47 PM, Per olof Ljungmark wrote:
>> In the process of learning arm I have set up a testing platform with
>> 12-CURRENT r336739 and reading release(7).
>>
>> The only change made to src is
>> SRCBRANCH="base/head at r337160"
>> in RPI3.conf
>>
>> /etc/make.conf and src.conf are empty
>>
>> command is
>>
>> sh release.sh -c arm64/RPI3.conf
>>
>> The build goes on for a while and stops with
>> ...
>> --- installconfig_subdir_usr.bin/ofed/libibverbs/ud_pingpong ---
>> ===> usr.bin/ofed/libibverbs/ud_pingpong (installconfig)
>> --- installconfig_subdir_share ---
>> --- installconfig_subdir_share/vt ---
>> ===> share/vt (installconfig)
>> --- installconfig_subdir_share/zoneinfo ---
>> ===> share/zoneinfo (installconfig)
>> --- installconfig_subdir_share/vt ---
>> --- installconfig_subdir_share/vt/fonts ---
>> ===> share/vt/fonts (installconfig)
>> --- installconfig_subdir_share/vt/keymaps ---
>> ===> share/vt/keymaps (installconfig)
>> chroot: /etc/rc.d/ldconfig: Exec format error
>>
>> What am I missing here?
> 
> Replying to myself: Apparently I started release.sh from the wrong place
> - next try went well.

But the next failed again - twice - looks like this command is the problem:

cd /scratch/usr/src; MACHINE_ARCH=aarch64  MACHINE=arm64  CPUTYPE=
CC="cc -target aarch64-unknown-freebsd12.0
--sysroot=/scratch/tmp/obj/scratch/usr/src/arm64.aarch64/tmp
-B/scratch/tmp/obj/scratch/usr/src/arm64.aarch64/tmp/usr/bin" CXX="c++
-target aarch64-unknown-freebsd12.0
--sysroot=/scratch/tmp/obj/scratch/usr/src/arm64.aarch64/tmp
-B/scratch/tmp/obj/scratch/usr/src/arm64.aarch64/tmp/usr/bin"  CPP="cpp
-target aarch64-unknown-freebsd12.0
--sysroot=/scratch/tmp/obj/scratch/usr/src/arm64.aarch64/tmp
-B/scratch/tmp/obj/scratch/usr/src/arm64.aarch64/tmp/usr/bin"  AS="as"
AR="ar" LD="ld" LLVM_LINK=""  NM=nm OBJCOPY="objcopy"  RANLIB=ranlib
STRINGS=  SIZE="size"
PATH=/scratch/tmp/obj/scratch/usr/src/arm64.aarch64/tmp/legacy/usr/sbin:/scratch/tmp/obj/scratch/usr/src/arm64.aarch64/tmp/legacy/usr/bin:/scratch/tmp/obj/scratch/usr/src/arm64.aarch64/tmp/legacy/bin:/scratch/tmp/obj/scratch/usr/src/arm64.aarch64/tmp/usr/sbin:/scratch/tmp/obj/scratch/usr/src/arm64.aarch64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
 make -f Makefile.inc1   METALOG= MK_TESTS=no installconfig



More information about the freebsd-arm mailing list