help compiling ports post crochet build (BeagleBoneBlack)

Ronald Klop ronald-freebsd8 at klop.yi.org
Tue Sep 24 19:47:58 UTC 2013


On Tue, 24 Sep 2013 19:33:39 +0200, Craig Butler  
<craig001 at lerwick.hopto.org> wrote:

> Hello Folks
>
> I'm stuck compiling webcamd and dependent ports native on the the
> BeagleBoneBlack
>
> If I try and compile normally using clang/llvm then devel/gettext kicks
> out with -
> 1.      /usr/include/c++/4.2/bits/basic_string.tcc:979:43: current
> parser token ';'
> 2.      /usr/include/c++/4.2/bits/basic_string.tcc:49:1
> <Spelling=/usr/include/c++/4.2/bits/c++config.h:76:38>: parsing
> namespace 'std'
> c++: error: unable to execute command: Bus error (core dumped)
> c++: error: clang frontend command failed due to signal (use -v to see
> invocation)
> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
> Target: armv6-unknown-freebsd10.0
> Thread model: posix
>
> with gcc -- build gets further but devel/glib20 port build kicks out
> with -
> gmake[4]: Entering directory
> `/var/ports/usr/ports/devel/glib20/work/glib-2.36.3/glib'
>   CCLD     gtester
> ./.libs/libglib-2.0.so: undefined reference to `__sync_fetch_and_xor_4'
> ./.libs/libglib-2.0.so: undefined reference to `__sync_fetch_and_sub_4'
> ./.libs/libglib-2.0.so: undefined reference to `__sync_fetch_and_add_4'
> ./.libs/libglib-2.0.so: undefined reference to
> `__sync_bool_compare_and_swap_4'
> ./.libs/libglib-2.0.so: undefined reference to `__sync_fetch_and_or_4'
> ./.libs/libglib-2.0.so: undefined reference to `__sync_fetch_and_and_4'
> gmake[4]: *** [gtester] Error 1
> gmake[4]: Leaving directory `/var/ports/usr/ports/devel/glib2

Hi,

Maybe this commit fixed your problem with gcc.
http://svnweb.freebsd.org/changeset/base/255738
It mentions the same variables at least.
NB: a kernel/system from July is fairly old in terms of ARM development. A  
lot of problems with the gcc/clang and OABI/EABI switch are solved in the  
mean time.

Ronald.


>
> root at beaglebone:~ # uname -a
> FreeBSD beaglebone 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r+044c45e: Tue
> Jul  9 08:55:47 BST 2013
> root at xxxx:/un/git/crochet-freebsd/work/obj/arm.armv6/un/git/crochet-freebsd/src/sys/BEAGLEBONE   
> arm
>
> I am a bit stuck and unsure where to look next.  Has anyone else
> experienced the same problem ??
>
> Kind Regards
>
> Craig Butler
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"


More information about the freebsd-arm mailing list