From owner-freebsd-arm@FreeBSD.ORG Sun Nov 2 19:06:22 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 495FD1F8 for ; Sun, 2 Nov 2014 19:06:22 +0000 (UTC) Received: from mail-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0E2B17E8 for ; Sun, 2 Nov 2014 19:06:21 +0000 (UTC) Received: by mail-ig0-f180.google.com with SMTP id h3so3580892igd.1 for ; Sun, 02 Nov 2014 11:06:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=P1dWZGgedWWX0H2TQ1L1GYVYtKtLk1ko1o+PTM2PHl4=; b=iNJVFfbnv8WqyEQBbnDX17UzoZe4i2QZsncZ3+4DrtalLbwllJIHfFC6Qc+QJGblEN yewKGc5ry+Zmx7snRuXojlJa7D0Scxdb4K8YaWmwtG0MFCqYDb7BsegZRTcexV12VvIu ZU5C2XeKkYqETxiw4Uvct+GrGNfHWfUe8nF1R1viDj5IVwKOXsDUogt/GilIUGepeg26 q7cgTDn/1AigNHPdpv1Ddl0SSeCfm9JEZ7F2Wan/36CggwxqAMh4F0zWx4yeKkiQQLd9 ZEWcGnTp788fs63FP8AL4vl5bompfyaXJwlc1OuvMZdJc+ONU0Tr7f1vbdoKunwwmFtZ /vYQ== X-Gm-Message-State: ALoCoQlhv8jWlWix5VlDiR8X+4YefmpoL3W8fF9VU6XbIrtfLhLLJaaw6lovJQnYmbSZfN1JSAjn X-Received: by 10.43.162.129 with SMTP id mk1mr18180226icc.20.1414955175760; Sun, 02 Nov 2014 11:06:15 -0800 (PST) Received: from netflix-mac.bsdimp.com ([50.253.99.174]) by mx.google.com with ESMTPSA id rj6sm2653479igc.0.2014.11.02.11.06.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Nov 2014 11:06:15 -0800 (PST) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_97E277DB-6ACC-4329-B612-93522313DC37"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: building cross-compiling tools on -CURRENT From: Warner Losh In-Reply-To: Date: Sun, 2 Nov 2014 12:06:12 -0700 Message-Id: References: <54527218.2090008@ceetonetechnology.com> To: Zsolt Udvari X-Mailer: Apple Mail (2.1878.6) Cc: George Rosamond , "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2014 19:06:22 -0000 --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 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 = : >> 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--