Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Sep 2012 13:33:07 +0800
From:      Alie Tan <alie@affle.com>
To:        freebsd-arm@freebsd.org
Subject:   Unable to build FreeBSD xdev tools for ARM on FreeBSD 9-PRERELEASE
Message-ID:  <CANuCnH_fUVsMMdvACPuzxvW5yLySVp=Y%2BnRLuXmzmjgXHnsZWg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I got this compilation error while trying to build xdev on FreeBSD 9-STABLE

# cd /usr/src && make xdev XDEV=arm XDEV_ARCH=arm
.
.
.
clang  -O -pipe  -fpic -fvisibility=hidden -DVISIBILITY_HIDDEN -std=gnu99
-Qunused-arguments  -c
/usr/src/lib/libcompiler_rt/../../contrib/compiler-rt/lib/umodti3.c -o
umodti3.o
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.

Thanks,
Alie Tan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANuCnH_fUVsMMdvACPuzxvW5yLySVp=Y%2BnRLuXmzmjgXHnsZWg>