From owner-freebsd-arch@FreeBSD.ORG Tue Jul 8 22:00:26 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6AE5DBA4 for ; Tue, 8 Jul 2014 22:00:26 +0000 (UTC) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) (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 2F8DB2631 for ; Tue, 8 Jul 2014 22:00:26 +0000 (UTC) Received: by mail-pa0-f49.google.com with SMTP id lj1so7962485pab.22 for ; Tue, 08 Jul 2014 15:00:25 -0700 (PDT) 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=0bnkZxjoY36Cu1dgeg5bodmVtmoQUuBr8u+9aNVx33M=; b=WDa/JoEXcnunXvmaya0MJDxz/gs3jffRhTWjCM23+bdTpq6ti5Q6dh73S0Q5MH1XI6 afG8w0akh1+Q0sgDeN72qsBAG9WigS0Yw75kIQeGJW2xaEfVKEASZmGIaP0NwhZ+FEzs xZJ6s9lbjlwk45Y3fis8G5x07spsckuyqZUgBcr+Jnr0GUAT9YGj05dQ98LXG4+mqLj5 8G162BVtYo/JoGfCKwRqyQ5iA5c9n7YkvpDfqxGYy+T3n923mRyzyPIjJdB09ZjjTvgI G8Ens68N43cW5t1155zMY+4SWJUTj8lYJ3YLT+5cvonIcGMylzdoNNOpTEHK06eICGXW /JGg== X-Gm-Message-State: ALoCoQmEt9o9OfFHJggHR9+5z3It0dTAqAWHhPAARNkS4datfzW8Nw0K7dZKDJbCJA8qQk6mAIeF X-Received: by 10.66.152.35 with SMTP id uv3mr37256705pab.74.1404856825250; Tue, 08 Jul 2014 15:00:25 -0700 (PDT) Received: from [10.64.24.152] (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id ba10sm25740847pdb.73.2014.07.08.15.00.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 15:00:24 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_03EB9CF8-4AE5-4572-9716-139A549B68AA"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Total confusion over toolchain/xdev behavior From: Warner Losh In-Reply-To: <9733B60C-5EDA-44A5-9D36-E62433DB8949@bsdimp.com> Date: Tue, 8 Jul 2014 16:00:24 -0600 Message-Id: <98B42676-50A8-4034-995A-ACA9DCE83094@bsdimp.com> References: <1404688077.1059.115.camel@bruno> <1404766292.65432.43.camel@revolution.hippie.lan> <20B72004-1499-4F99-A7C7-13173C50C7C6@bsdimp.com> <1404831829.1662.7.camel@bruno> <1404835471.1662.13.camel@bruno> <1404842719.1662.15.camel@bruno> <1404851278.1662.17.camel@bruno> <7CB79988-8221-4F00-AB79-FB24EB3CEF66@bsdimp.com> <1404854676.1662.29.camel@bruno> <9733B60C-5EDA-44A5-9D36-E62433DB8949@bsdimp.com> To: sbruno@freebsd.org X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-arch X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2014 22:00:26 -0000 --Apple-Mail=_03EB9CF8-4AE5-4572-9716-139A549B68AA Content-Type: multipart/mixed; boundary="Apple-Mail=_BADE264D-389F-40B1-BD4F-9C195823F9DD" --Apple-Mail=_BADE264D-389F-40B1-BD4F-9C195823F9DD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1251 On Jul 8, 2014, at 3:52 PM, Warner Losh wrote: >=20 > On Jul 8, 2014, at 3:24 PM, Sean Bruno wrote: >=20 >> On Tue, 2014-07-08 at 15:01 -0600, Warner Losh wrote: >>> On Jul 8, 2014, at 2:27 PM, Sean Bruno = wrote: >>>=20 >>>> On Tue, 2014-07-08 at 21:02 +0200, Dimitry Andric wrote: >>>>> On 08 Jul 2014, at 20:27, Dimitry Andric wrote: >>>>>> On 08 Jul 2014, at 20:05, Sean Bruno = wrote: >>>>>> ... >>>>>>> =3D=3D=3D> lib/libproc (all) >>>>>>> building static proc library >>>>>>> ranlib -D libproc.a >>>>>>> make[5]: /var/tmp/home/sbruno/fbsd_head/lib/libproc/.depend, = 322: >>>>>>> ignoring stale .depend for /var/tmp/mips_cc/usr/lib/libstdc++.a >>>>>>> building shared library libproc.so.2 >>>>>>> /var/tmp/mips_cc/usr/bin/ld: cannot find -lsupc++ >>>>>>> *** Error code 1 >>>>>>>=20 >>>>>>> Stop. >>>>>>> make[5]: stopped in /home/sbruno/fbsd_head/lib/libproc >>>>>>> *** Error code 1 >>>>>>=20 >>>>>> Yes, libproc and it dependencies should be disabled when = MK_CXX=3Dno. Alternatively, libproc's demangling support could be = conditionally compiled out in that case. >>>>>=20 >>>>> Now with a suggested patch. >>>>>=20 >>>>> -Dimitry >>>>=20 >>>>=20 >>>> Getting closer, now we're at the point where we have some kind of >>>> path/permission failure: >>>>=20 >>>> dirty.ysv:~/fbsd_head % make xdev MAKEOBJDIRPREFIX=3D/var/tmp >>>> DESTDIR=3D/var/tmp/mips_cc XDDESTDIR=3D/var/tmp/mips_cc XDEV=3Dmips >>>> XDEV_ARCH=3Dmips WITHOUT_CLANG=3Dt WITHOUT_CLANG_BOOTSTRAP=3Dt = WITH_GCC=3Dt >>>> WITH_GCC_BOOTSTRAP=3Dt WITH_GNUCXX=3Dt WITHOUT_CXX=3Dt >>>>=20 >>>> =3D=3D=3D> secure/lib/libssh (install) >>>> sh /home/sbruno/fbsd_head/tools/install.sh -C -o root -g wheel -m = 444 >>>> libssh.a /var/tmp/mips_cc/usr/lib/private >>>> sh /home/sbruno/fbsd_head/tools/install.sh -s -o root -g wheel -m = 444 >>>> libssh.so.5 /var/tmp/mips_cc/usr/lib/private >>>> sh /home/sbruno/fbsd_head/tools/install.sh -l s >>>> libssh.so.5 /var/tmp/mips_cc/usr/lib/private/libssh.so >>>> =3D=3D=3D> usr.bin/lex/lib (obj,depend,all,install) >>>> sh /home/sbruno/fbsd_head/tools/install.sh -C -o root -g wheel -m = 444 >>>> libln.a /var/tmp/mips_cc/usr/lib >>>> /var/tmp/mips_cc/usr/lib/libl.a -> /var/tmp/mips_cc/usr/lib/libln.a >>>> /var/tmp/mips_cc/usr/lib/libfl.a -> = /var/tmp/mips_cc/usr/lib/libln.a >>>> cd /var/tmp/mips_cc/usr/bin; mkdir -p ../../../../usr/bin; for i = in *; >>>> do ln >>>> -sf ../..//usr/mips-freebsd/usr/bin/$i = ../../../../usr/bin/mips-freebsd-$i; ln -sf = ../..//usr/mips-freebsd/usr/bin/$i = ../../../../usr/bin/mips-freebsd11.0-$i; done >>>> mkdir: ../../../../usr: Permission denied >>>=20 >>> Oh! I know that one=85 >>>=20 >>> That=92s from _xi-links target (the last one!). You can safely = ignore it. >>>=20 >>> Something like the following would also eliminate the warning. Just = not too sure about it. You may also need to define = WITH_INSTALL_AS_USER=3Dt. >>>=20 >>> Warner >>>=20 >> Ah crap, is there were I need "XDTP" defined or something? >=20 > Maybe=85 But it looks like it is still trying to do the links, so I = must have messed up something in the patch=85 >=20 > And the links look kinda sketchy to me like it is reaching outside the = /usr/mips-freebsd area directly into /usr/bin, which won=92t matter for = what you are trying to do=85 You don=92t need mips-freebsd-cc binaries = in the chroot=85 though you might want different symlinks from your = chroot=92s /usr/bin/cc to /usr/mips-freebsd-cc/usr/bin/cc, etc. >=20 > Warner Try this instead: Warner --Apple-Mail=_BADE264D-389F-40B1-BD4F-9C195823F9DD Content-Disposition: attachment; filename=xdev-links Content-Type: application/octet-stream; x-unix-mode=0664; name="xdev-links" Content-Transfer-Encoding: 7bit # HG changeset patch # Parent 44a4c24f827bc29eb0ea023259e10a33961c8948 diff -r 44a4c24f827b Makefile.inc1 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1943,8 +1943,8 @@ xdev-build: _xb-worldtmp _xb-bootstrap-t mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ -p ${XDDESTDIR}/usr/include >/dev/null -.ORDER: xdev-build _xi-mtree _xi-cross-tools _xi-includes _xi-libraries _xi-links -xdev-install: xdev-build _xi-mtree _xi-cross-tools _xi-includes _xi-libraries _xi-links +.ORDER: xdev-build _xi-mtree _xi-cross-tools _xi-includes _xi-libraries xdev-links +xdev-install: xdev-build _xi-mtree _xi-cross-tools _xi-includes _xi-libraries _xi-cross-tools: @echo "_xi-cross-tools" @@ -1967,9 +1967,9 @@ xdev-install: xdev-build _xi-mtree _xi-c ${_+_}cd ${.CURDIR}; ${CD2MAKE} -f Makefile.inc1 libraries \ DESTDIR=${XDDESTDIR} -_xi-links: +xdev-links: ${_+_}cd ${XDDESTDIR}/usr/bin; \ - mkdir -p ../../../../usr/bin; \ + mkdir -p ../../../../usr/bin; \ for i in *; do \ ln -sf ../../${XDTP}/usr/bin/$$i \ ../../../../usr/bin/${XDDIR}-$$i; \ --Apple-Mail=_BADE264D-389F-40B1-BD4F-9C195823F9DD Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=windows-1251 --Apple-Mail=_BADE264D-389F-40B1-BD4F-9C195823F9DD-- --Apple-Mail=_03EB9CF8-4AE5-4572-9716-139A549B68AA 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 iQIcBAEBCgAGBQJTvGn4AAoJEGwc0Sh9sBEA9D0P/0Itccba11zeTKc0LUQF0nrv 5RYo5Hm/rruJ4ndLUaQLOtbJbDRVVz8e0dWpRNlgWrhUojZgdrY8wwPb18s/W/kP 2xqeoZp7nlxxgmewQr8wZjaIt9SOKqbYtUDnp5bSHvzzo3KyXUjFAUbNFG9A8RL/ Ek7LOW23kyW1bUIB+n2U1fDaqJFZvGYPdcTy+F31o2PdvyQ7KSidKNCC7eQmXbL/ HDqf4kLn5vVLNZ2GavA7zyFGz8aL6cx0/PKOQzy4sF5IMcGBIICkGw4zPqx7DQZn Xs7w+39vobeyTwv0Mm37cOpKG3g9kms68nqABJ/AAyGWuazBXGYJJhlw47nDsoDe /AjQlsHMa4cqdM8emDsgixodC597y+atRzEeuZo88b4aSRjqXgOdFWQB+hty+L3X naeGlMoJj6ZpmhTQfF44Igr3xoqjCLhLlH4bfM5WiMyRdv0tqxib5+Tiao0LYXpP 6puy6YdqpYm2f7RR8GO+u74HNJvspt3H1oOxSGS7FtwrrW2G2H/BOp+4Ss/XIdSv An58QdrOKyJZnB2EVjGZNZTEbCC1ypDgJc+iO8/dqVFu+bSy77c9J2IbLME2bA4d ocbPWgg7lyb8cDeheY4DteZWQPKDeDwXJCHQBL/rqDTmik0xJGARD76vJ1FMGO3Y mtQK/VNrWhyqYCnkQwbs =0QFv -----END PGP SIGNATURE----- --Apple-Mail=_03EB9CF8-4AE5-4572-9716-139A549B68AA--