tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Build glitches for arm + GCC 5.4

I've run into some small problems trying to build netbsd-current for evbarm
(RPI2 in my case). I've mostly sorted through them, but I thought I'd share
what I needed to do.

I've tried both a cross build using FreeBSD 8.4 and a native build
on NetBSD 7.0 (PRI2).

For both build methods, the dependall step for 
failed because a generated header file had not been created. A patch
to fix this is at

See also
I'm not using a parallel build, but the serial build seems to hit it
every time. I'm curious why this hasn't been reported before.

For the cross build, I first needed to apply the patch for toolchain-51118 to
get the freebsd build to work (this does not have to do with gcc 5.4).
But the build fails, apparently because the host c++ compiler is not up to
the task:
(I suspect a newer version of freebsd would not have this problem).

I was able to get a cross build to work by asking for gcc 4.8 (HAVE_GCC=48).

The native build was failing at first by running out of memory. I needed to add
a swap file because running genautomata takes nearly 1 gig of RAM. There's a gcc
bug report about that as well:
It seems to be working now, but it is still working on compiling all the various
kernels - it does take a long time! I'm waiting for it to finish before I test the
cross-built image.

- Michael

Home | Main Index | Thread Index | Old Index