Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2012 17:34:34 +0200
From:      Guillaume Bibaut <freebsd-current@iaelu.net>
To:        freebsd-current@freebsd.org
Subject:   Cross dev tools for arm
Message-ID:  <B5D0F46B-2E89-412B-BDCC-41F11656BC49@iaelu.net>

index | next in thread | raw e-mail

Hello,

I've been trying to build arm cross dev tools on an amd64 virtual machine with clang, and it doesn't seem to build.
The virtual machine is built on base/head svn tree with revision r236355.

Since I'm really new to the arm world, my mail might seem awkward and it might be completly normal that it doesn't build.

here is a tail of what I'm getting
(there are escaped string from clang)

/usr/src # make xdev XDEV=arm XDEV_ARCH=arm

...
===> lib/libcompiler_rt (obj,depend,all,install)
clang  -O -pipe  -fpic -fvisibility=hidden -DVISIBILITY_HIDDEN -std=gnu99 -Qunused-arguments  -c /usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c -o __sync_fetch_and_add_4.o
In file included from /usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:6:
/usr/src/lib/libcompiler_rt/__sync_fetch_and_op_n.h:34:1: error: conflicting
      types for '__sync_fetch_and_add_4'

NAME(volatile TYPE *ptr, TYPE value)
^
/usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:2:15: note: expanded from
      macro 'NAME'
#define NAME            __sync_fetch_and_add_4
                        ^
/usr/src/lib/libcompiler_rt/__sync_fetch_and_op_n.h:34:1: note: 
      '__sync_fetch_and_add_4' is a builtin with type 'int (volatile int *, int,
      ...)'
NAME(volatile TYPE *ptr, TYPE value)
^
/usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:2:15: note: expanded from
      macro 'NAME'
#define NAME            __sync_fetch_and_add_4
                        ^
In file included from /usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:6:
/usr/src/lib/libcompiler_rt/__sync_fetch_and_op_n.h:34:1: error: definition of
      builtin function '__sync_fetch_and_add_4'
NAME(volatile TYPE *ptr, TYPE value)
^
/usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:2:15: note: expanded from
      macro 'NAME'
#define NAME            __sync_fetch_and_add_4
                        ^
2 errors generated.
*** [__sync_fetch_and_add_4.o] Error code 1

Stop in /usr/src/lib/libcompiler_rt.
*** [lib/libcompiler_rt__PL] Error code 1

Stop in /usr/src.
*** [libraries] Error code 1

Stop in /usr/src.
*** [_xi-libraries] Error code 1

Stop in /usr/src.
*** [xdev] Error code 1

Stop in /usr/src.

Script done on Thu May 31 17:06:06 2012


Thanks for any answer you guys could give me, or not :)



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B5D0F46B-2E89-412B-BDCC-41F11656BC49>