building cross-compiling tools on -CURRENT

Warner Losh imp at bsdimp.com
Sun Nov 2 19:06:22 UTC 2014


I’ve never had an issue building mips32 / arm on a amd64 host.

On Nov 2, 2014, at 1:08 AM, Zsolt Udvari <udvzsolt at gmail.com> wrote:

> I've tried similar about a one month ago and I ran into linker error
> too. I've read this:
> " For 64-bit targets (i.e. mips64) use an 64-bit host (i.e. amd64).
> For 32-bit targets (i.e. armv6) use an 32-bit host (i.e. i386) or
> compat-32. It may be possible to emulate 32-bit targets on a 64-bit
> host in the future but currently that is not possible. "
> https://wiki.freebsd.org/QemuUserModeHowTo
> I don't find the url but as I remember it was written somewhere that
> it maybe causes linker errors.
> 
> 2014-10-30 18:15 GMT+01:00 George Rosamond <george at ceetonetechnology.com>:
>> Using a new build box running head with r273764, and running into an
>> issue building the cross compiler tools.  Using source based in /usr/src
>> on an amd64 box.  I do have devel/gperf installed as per /usr/src/UPDATING.
>> 
>> Running this from /usr/src:
>> 
>> make TARGET=arm TARGET_ARCH=armv6 WITH_GCC=1 WITH_GCC_BOOTSTRAP=1
>> WITHOUT_CLANG=1 WITHOUT_CLANG_BOOTSTRAP=1 WITHOUT_CLANG_IS_CC=1 xdev
>> 
>> I changed "XDEV" and "XDEV_ARCH to "TARGET" and "TARGET_ARCH" as per
>> /usr/src/UPDATING from 20140723, but also tried "XDEV" "XDEV_ARCH".  If
>> I'm reading this right, Crochet should take that into account.
>> 
>> I did clear out /usr/obj, updated and cleaned /usr/src...
>> 
>> Anyone else?  Here's the relevant end of the failure AFAIK:
>> 
>> except.o: In function `nothrow_libfn_p':
>> /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/except.c:(.text+0x10fb):
>> undefined reference to `libc_name_p'
>> cc: error: linker command failed with exit code 1 (use -v to see invocation)
>> *** Error code 1
>> 
>> Stop.
>> make[3]: stopped in /usr/src/gnu/usr.bin/cc/cc1plus
>> *** Error code 1
>> 
>> Stop.
>> make[2]: stopped in /usr/src/gnu/usr.bin/cc
>> *** Error code 1
>> 
>> Stop.
>> make[1]: stopped in /usr/src
>> *** Error code 1
>> 
>> Stop.
>> make: stopped in /usr/src
>> _______________________________________________
>> 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"
> _______________________________________________
> 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"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20141102/dcfb3065/attachment.sig>


More information about the freebsd-arm mailing list