Date: Sun, 2 Nov 2014 12:06:12 -0700 From: Warner Losh <imp@bsdimp.com> To: Zsolt Udvari <udvzsolt@gmail.com> Cc: George Rosamond <george@ceetonetechnology.com>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: building cross-compiling tools on -CURRENT Message-ID: <F3BD4BB9-FA78-4EAE-A407-B631E9E1D7B2@bsdimp.com> In-Reply-To: <CADtCJqquRhKLKitU=PK7JEonwHBo37tL%2BiucsqfnZ-%2Bx9aETCA@mail.gmail.com> References: <54527218.2090008@ceetonetechnology.com> <CADtCJqquRhKLKitU=PK7JEonwHBo37tL%2BiucsqfnZ-%2Bx9aETCA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_97E277DB-6ACC-4329-B612-93522313DC37 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I=92ve never had an issue building mips32 / arm on a amd64 host. On Nov 2, 2014, at 1:08 AM, Zsolt Udvari <udvzsolt@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. >=20 > 2014-10-30 18:15 GMT+01:00 George Rosamond = <george@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. >>=20 >> Running this from /usr/src: >>=20 >> make TARGET=3Darm TARGET_ARCH=3Darmv6 WITH_GCC=3D1 = WITH_GCC_BOOTSTRAP=3D1 >> WITHOUT_CLANG=3D1 WITHOUT_CLANG_BOOTSTRAP=3D1 WITHOUT_CLANG_IS_CC=3D1 = xdev >>=20 >> 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. >>=20 >> I did clear out /usr/obj, updated and cleaned /usr/src... >>=20 >> Anyone else? Here's the relevant end of the failure AFAIK: >>=20 >> 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 >>=20 >> Stop. >> make[3]: stopped in /usr/src/gnu/usr.bin/cc/cc1plus >> *** Error code 1 >>=20 >> Stop. >> make[2]: stopped in /usr/src/gnu/usr.bin/cc >> *** Error code 1 >>=20 >> Stop. >> make[1]: stopped in /usr/src >> *** Error code 1 >>=20 >> Stop. >> make: stopped in /usr/src >> _______________________________________________ >> 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" > _______________________________________________ > 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" --Apple-Mail=_97E277DB-6ACC-4329-B612-93522313DC37 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUVoCkAAoJEGwc0Sh9sBEAP9cP/j8d0Uj+KuHRzO+3AH+1L4Ze ll0teVjJU4siEysto/nQkvq3cyimybmFiwnoSuWhrt1dmYwKx1gsDsqFOWlKPd4w AZ/hOCuSbQiDFB3t3lW7BpzugPBO2XAfDcuIiq69hlh4yQDL79U8IMY2t0NvYs69 zMVb7VRYTp2tyaYkvGGyKyyUJDXHaAZhmeYNvb43V4JhB8t7W3otj2L3wwqLs/rv Gf00Zl58qWpPGXwssy7vrOX+zUaCW2m9WcTkCot1Df8MeX1e7/AC2RrnKzCXIQSl YAaqB0um/gwIBU3SgswsC5B7lBV7L7EwGZ6etkC6TENfuxbXGbv3FJpE0bJn5fHC LyTfYYVTwJhdsjLd+3nHib3xmqXAQbro/Q+m6+7P64HfSKrp5jzrGBW+qj5HPXQD OV3o5X4HkcujIzYFQNASdiE54sfaRRrWewtPwsK+6vBY2ySumn+NoRkx54TL9lVG /tdpBnqt6b5XWwL2Fd2yRjK5pXUGXWuIRFE2ZhgKi2fxsfPM3UmtDoUtkeS9TZ0B CxA6KZ4OtwhaL7ECZsp+/qUSC2fttKcbQIke45vxsONWdOU9nNp7YyOB0V4F8j8U XOi4UjeN2iVzy4nB6oDq1VJldQzrWv1gt9aBrYmm7youHEf5lXZ5Sdk/tmikUpzv LiWehB74x1MvLWzSo9zb =t7wb -----END PGP SIGNATURE----- --Apple-Mail=_97E277DB-6ACC-4329-B612-93522313DC37--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F3BD4BB9-FA78-4EAE-A407-B631E9E1D7B2>