machine/acle-compat.h missing

John-Mark Gurney jmg at funkthat.com
Tue Oct 13 16:22:51 UTC 2015


jau789 at gmail.com wrote this message on Tue, Oct 13, 2015 at 02:29 +0000:
> The build environment is amd64 running 10-stable.
> The native cc is obviously clang 3.4.1.
> The build target in has been rpi2.
> To make current build possible at all CC and CXX
> are set to clang37 and clang++37 during the make
> run.

You should not need to set CC and CXX to build, and these are probably
causing your build failures...  I don't have a RPi2, but the instructions
at: https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi%202%20image
should be enough, notice the following:
 # make TARGET_ARCH=armv6 UBLDR_LOADADDR=0x2000000 buildworld
 # make TARGET_ARCH=armv6 KERNCONF=RPI2 buildkernel

Once you have those built, then comes how to install it... One method
is to do:
make TARGET_ARCH=argv6 installworld DESTDIR=<someemptydir> -DNO_ROOT
tar -czf rpi2.tgz @<someemptydir>/METALOG

which you can extract over, or follow the instructions on the wiki page
for building a new image...

Hope this helps...

> On 13/10/2015 2:29 John-Mark Gurney wrote:
> Jukka Ukkonen wrote this message on Mon, Oct 12, 2015 at 08:50 +0300:
> > After the latest clang update in current cross-compilation for arm
> > has been failing due to "missing"
> 
> Do you mean armeb? or what specific arch?
> 
> > <machine/acle-compat.h>
> > 
> > The file is apparently present...
> > 
> > src.head/sys/arm/include/acle-compat.h
> > 
> > but the compiler fails to find it because for some reason it
> > never gets copied to the path where the compiler expects to
> > find it...
> > 
> > /tank/fish/jau/Xcomp/src.head/gnu/lib/libgcc/../../../contrib/gcc/config/arm/libunwind.S:29:10:
> > fatal error: 'machine/acle-compat.h' file not found
> > #include <machine/acle-compat.h>
> >          ^
> > 1 error generated.
> > *** [libunwind.o] Error code 1
> > 
> > Has anyone else noticed this, or is it just me doing something
> > odd?
> 
> Are you using gcc, or the default of clang now?

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-arm mailing list