Date: Tue, 8 Jul 2014 16:00:24 -0600 From: Warner Losh <imp@bsdimp.com> To: sbruno@freebsd.org Cc: freebsd-arch <freebsd-arch@freebsd.org> Subject: Re: Total confusion over toolchain/xdev behavior Message-ID: <98B42676-50A8-4034-995A-ACA9DCE83094@bsdimp.com> In-Reply-To: <9733B60C-5EDA-44A5-9D36-E62433DB8949@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> <B96EB5EC-A078-4CDE-AB30-CF7FD05D1287@bsdimp.com> <1404842719.1662.15.camel@bruno> <FF6728EE-7BF9-44E1-99EA-661F398F3EEB@FreeBSD.org> <B9B53E2E-FBAD-461E-86B9-8AD516F94570@FreeBSD.org> <1404851278.1662.17.camel@bruno> <7CB79988-8221-4F00-AB79-FB24EB3CEF66@bsdimp.com> <1404854676.1662.29.camel@bruno> <9733B60C-5EDA-44A5-9D36-E62433DB8949@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <imp@bsdimp.com> wrote: >=20 > On Jul 8, 2014, at 3:24 PM, Sean Bruno <sbruno@ignoranthack.me> wrote: >=20 >> On Tue, 2014-07-08 at 15:01 -0600, Warner Losh wrote: >>> On Jul 8, 2014, at 2:27 PM, Sean Bruno <sbruno@ignoranthack.me> = wrote: >>>=20 >>>> On Tue, 2014-07-08 at 21:02 +0200, Dimitry Andric wrote: >>>>> On 08 Jul 2014, at 20:27, Dimitry Andric <dim@FreeBSD.org> wrote: >>>>>> On 08 Jul 2014, at 20:05, Sean Bruno <sbruno@ignoranthack.me> = 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98B42676-50A8-4034-995A-ACA9DCE83094>