Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jun 2016 14:22:34 -0400
From:      Thomas Laus <lausts@acm.org>
To:        freebsd-arm@freebsd.org
Subject:   Crossbuild Failure on Arm
Message-ID:  <20160613182234.GA72262@mail.laus.org>

next in thread | raw e-mail | index | archive | help
I wanted to add a few NIC cards to my Beaglebone, so my next step was
to build a toolchain for the arm arch.  I used the instructions from
the khubla.com site which starts with a build of the necessary
toolchain with the command:

make XDEV=arm XDEV_ARCH=armv6 xdev

It failed!

sh /usr/src/tools/install.sh  -C -o root -g wheel -m 444  /usr/src/gnu/lib/libdialog/../../../contrib/dialog/dialog.h /usr/src/gnu/lib/libdialog/../../../contrib/dialog/dlg_colors.h /usr/src/gnu/lib/libdialog/dlg_config.h /usr/src/gnu/lib/libdialog/../../../contrib/dialog/dlg_keys.h //usr/armv6-freebsd/usr/include/
===> lib/libc++ (obj,all,install)
/usr/obj/armv6-freebsd/usr/src/lib/libc++ created for /usr/src/lib/libc++
echo libc++.so.1.full: //usr/armv6-freebsd/usr/lib/libcxxrt.a >> .depend
c++ -isystem //usr/armv6-freebsd/usr/include -L//usr/armv6-freebsd/usr/lib  --sysroot=//usr/armv6-freebsd/ -B//usr/armv6-freebsd/usr/libexec  -B//usr/armv6-freebsd/usr/bin -B//usr/armv6-freebsd/usr/lib -mlong-calls -O -pipe -isystem /usr/src/lib/libc++/../../contrib/libc++/include -isystem /usr/src/lib/libc++/../../contrib/libcxxrt -nostdinc++ -nostdlib -DLIBCXXRT -MD -MF.depend.algorithm.o -MTalgorithm.o -Qunused-arguments  -std=c++11 -Wno-c++11-extensions  -c /usr/src/lib/libc++/../../contrib/libc++/src/algorithm.cpp -o algorithm.o
In file included from /usr/src/lib/libc++/../../contrib/libc++/src/algorithm.cpp:10:
In file included from /usr/src/lib/libc++/../../contrib/libc++/include/algorithm:624:
In file included from /usr/src/lib/libc++/../../contrib/libc++/include/initializer_list:47:
/usr/src/lib/libc++/../../contrib/libc++/include/cstddef:43:15: fatal error: 
      'stddef.h' file not found
#include_next <stddef.h>
              ^
1 error generated.
*** Error code 1

Stop.
make[4]: stopped in /usr/src/lib/libc++
*** Error code 1

Stop.
make[3]: stopped in /usr/src
*** Error code 1

Stop.
make[2]: stopped in /usr/src
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src

I have made a fresh checkout of the HEAD sources about every three
days and make another attempt.  The operation faults at exactly the
same point each time.  Am I doing something wrong or is there a bug in
Clang?  The same checkout builds normally in native amd64 on an Intel
i5 PC.  I thought that the Jenkins build would have caught any Clang
bug.  Do I need to file a bug report?

Tom

-- 
Public Keys:
PGP KeyID = 0x5F22FDC1
GnuPG KeyID = 0x620836CF



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