Date: Tue, 8 Jul 2014 15:01:27 -0600 From: Warner Losh <imp@bsdimp.com> To: sbruno@freebsd.org Cc: Dimitry Andric <dim@FreeBSD.org>, freebsd-arch <freebsd-arch@freebsd.org> Subject: Re: Total confusion over toolchain/xdev behavior Message-ID: <7CB79988-8221-4F00-AB79-FB24EB3CEF66@bsdimp.com> In-Reply-To: <1404851278.1662.17.camel@bruno> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_3B0CBAFE-51C4-4997-BFF6-175121588EDD Content-Type: multipart/mixed; boundary="Apple-Mail=_705A3852-0E5D-411D-854E-5B4046E8C6C8" --Apple-Mail=_705A3852-0E5D-411D-854E-5B4046E8C6C8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Jul 8, 2014, at 2:27 PM, Sean Bruno <sbruno@ignoranthack.me> wrote: > 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 Oh! I know that one=85 That=92s from _xi-links target (the last one!). You can safely ignore = it. 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. Warner --Apple-Mail=_705A3852-0E5D-411D-854E-5B4046E8C6C8 Content-Disposition: attachment; filename=P Content-Type: application/octet-stream; name="P" Content-Transfer-Encoding: 7bit diff -r 514f7a93a473 Makefile.inc1 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1968,6 +1968,7 @@ xdev-install: xdev-build _xi-mtree _xi-c DESTDIR=${XDDESTDIR} _xi-links: +.if ${MK_INSTALL_AS_USER} == "no" ${_+_}cd ${XDDESTDIR}/usr/bin; \ mkdir -p ../../../../usr/bin; \ for i in *; do \ @@ -1977,6 +1978,9 @@ xdev-install: xdev-build _xi-mtree _xi-c ../../../../usr/bin/${XDDIR}${OSREL}-$$i; \ done .else + @true +.endif +.else xdev xdev-build xdev-install: @echo "*** Error: Both XDEV and XDEV_ARCH must be defined for \"${.TARGET}\" target" .endif --Apple-Mail=_705A3852-0E5D-411D-854E-5B4046E8C6C8 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_705A3852-0E5D-411D-854E-5B4046E8C6C8-- --Apple-Mail=_3B0CBAFE-51C4-4997-BFF6-175121588EDD 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 iQIcBAEBCgAGBQJTvFwoAAoJEGwc0Sh9sBEAZ1YP/jzNXQ0wgnZdasrLms+3FE6u wEC201TipW7/ZWEa6388/81niaPQAn6UF/DFxBpl/8jL2J1psNR3UKuUnoZQdg1G YELB/snVdoko61okFjhaP9DgsVPoAGB6GoGHJby0KLuYEgpbpNw394JiUM3xfH+g 0Ue5nmWWIqRZyfcwCdTxTzrpWIVSHQ0s1eYm5y96OO/QK9klet4tIZE6I5URlQj9 Kne/eZjxj/0jNPL/CUKjxul83lE7FapKGhkFp6tLkwdI/IzuYHYcst/cxHsm1nZf yXLhzro9zk1OOD1W1vTIqSXyOckt11szwbeU+nfsHDRSag2QL+2nuI7kr/dkNMbr CZn2+uG8drlp3kafCyKOZ24dfYhh1RkU/AqfCygOcRD7khJDbfBnkdolQxNTCowr rOHrkEBkHyu+D32u992bSfwVZZ2kI+AXyhVccFkbLGQuW9kLZmyg7EPoa6bs1KoO iCOqTEs4Ud92ISTaaJQL4vRDTUPF0dOWB3zW4OSfRPplpv9sqnOV1nu+zcYFwkGR wR0jg3qPxB+QY8xxzijXAbz1XSfdUOuqhAXYBd2swt5XjPxpVTrHD+h1v5ZhDm4Z jAVF9ftFnHRizUDLbVD+Rf9++N1HGdVY/BDqcwEuY843mIolL4owvNKVpts8T9cx uisMi1eUWacwZQf0nu+N =OZ5T -----END PGP SIGNATURE----- --Apple-Mail=_3B0CBAFE-51C4-4997-BFF6-175121588EDD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7CB79988-8221-4F00-AB79-FB24EB3CEF66>