Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Apr 2012 01:32:38 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Tim Kientzle <kientzle@FreeBSD.org>
Cc:        arm@FreeBSD.org
Subject:   Re: Cross-buildworld works but not native build?
Message-ID:  <5C9B3F76-81BA-4C13-B003-563DF658D35B@bsdimp.com>
In-Reply-To: <9AD7075B-B85D-40DB-84B7-FD630B858A30@freebsd.org>
References:  <9AD7075B-B85D-40DB-84B7-FD630B858A30@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
sorry for the double reply...

We don't force uname quite right with the patches I did, so you are =
trying to build MACHINE_ARCH arm on a armv6 box, which will have issues =
unless you do it cross.

Warner

On Apr 27, 2012, at 12:48 AM, Tim Kientzle wrote:

> I've been working with the projects/armv6 tree and have encountered a =
very confusing situation.
>=20
> On i386, this works:
>  $ make TARGET_ARCH=3Darm TARGET_CPUTYPE=3Darmv6 buildworld
>=20
> If I take the resulting world and run it on arm, then the following =
fails (with the exact same source):
>  $ make buildworld
>  =85.=20
> cc  -O -pipe  -fpic -fvisibility=3Dhidden -DVISIBILITY_HIDDEN =
-std=3Dgnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k =
-Wno-uninitialized -Wno-pointer-sign -c =
/usr/src/lib/libcompiler_rt/../../contrib/compiler-rt/lib/umoddi3.c -o =
umoddi3.o
> cc  -O -pipe  -fpic -fvisibility=3Dhidden -DVISIBILITY_HIDDEN =
-std=3Dgnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k =
-Wno-uninitialized -Wno-pointer-sign -c =
/usr/src/lib/libcompiler_rt/../../contrib/compiler-rt/lib/umodti3.c -o =
umodti3.o
> cc  -O -pipe  -fpic -fvisibility=3Dhidden -DVISIBILITY_HIDDEN =
-std=3Dgnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k =
-Wno-uninitialized -Wno-pointer-sign -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_op_n.h:31,
>                 from =
/usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:6:
> /usr/obj/usr/src/tmp/usr/include/machine/atomic.h: In function =
'atomic_cmpset_32':
> /usr/obj/usr/src/tmp/usr/include/machine/atomic.h:491: error: =
'ARM_RAS_START' undeclared (first use in this function)
> /usr/obj/usr/src/tmp/usr/include/machine/atomic.h:491: error: (Each =
undeclared identifier is reported only once
> /usr/obj/usr/src/tmp/usr/include/machine/atomic.h:491: error: for each =
function it appears in.)
> /usr/obj/usr/src/tmp/usr/include/machine/atomic.h: In function =
'atomic_add_32':
> /usr/obj/usr/src/tmp/usr/include/machine/atomic.h:516: error: =
'ARM_RAS_START' undeclared (first use in this function)
>=20
>=20
> Looking at the source, ARM_RAS_START really does seem to be undeclared =
(it's declared in sysarch.h, but atomic.h only includes sysarch.h for =
kernel builds).
>=20
> So it looks to me like the cross-buildworld should fail also.  In any =
case, it's not clear why the two aren't behaving the same way.
>=20
> Tim
>=20
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
>=20
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5C9B3F76-81BA-4C13-B003-563DF658D35B>