Date: Tue, 8 Jul 2014 15:52:34 -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: <9733B60C-5EDA-44A5-9D36-E62433DB8949@bsdimp.com> In-Reply-To: <1404854676.1662.29.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> <7CB79988-8221-4F00-AB79-FB24EB3CEF66@bsdimp.com> <1404854676.1662.29.camel@bruno>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_7FA79901-DC76-41E9-81DE-1CB4EDAC0C19 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1251 On Jul 8, 2014, at 3:24 PM, Sean Bruno <sbruno@ignoranthack.me> wrote: > 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? 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 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. Warner > =3D=3D=3D> usr.bin/lex/lib (obj,depend,all,install) > sh /home/sbruno/fbsd_head/tools/install.sh -C -o sbruno -g devel -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 > *** Error code 1 >=20 > Stop. > make[1]: stopped in /home/sbruno/fbsd_head > *** Error code 1 >=20 > Stop. > make: stopped in /home/sbruno/fbsd_head > sbruno@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 = WITH_INSTALL_AS_USER=3Dt Maybe=85 But this step is optional=85 And I got the patch backwards :( --Apple-Mail=_7FA79901-DC76-41E9-81DE-1CB4EDAC0C19 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 iQIcBAEBCgAGBQJTvGgiAAoJEGwc0Sh9sBEAvz0QAJGqmUQ66TGs0fmoTn7pNbHH yWIxytstPYXgyvhvrEk9ndSo1nUf6HMeM1JBNoau0Y11GDKHg9waTljzGZw9eCXN LPSbn5TJm3l8DBLQZilJPJRRAv0h8qI4Dw7qalibKoZwBGHzHJKnaQ5O78D0qG1J +ALF5mIEJtZsn/XCtB0mOJS5L4I3aLI3UEfgDPxZTJtOYT112RQZNx2/SJV/Cf/x 9Adh9roK1hR2mMvKzuFzlqNhUynIhQfjIA9HK5Ff2VHJfTztcQxDDAtvOIAaCBRA GGANyRDjdZPvrdNh1PJGReGfbSPoaD2tcZNtlNkOjuUk4rpWqAtJb7pae3c9qO3f cQelyYlYvkj2CvbNxinarCZB5E/ulOsC2biKbryZU+sibLRoAmShLAsF5Pf4VDO1 Ozigbz1xSgOYf7V1V+AsdVshaUKagZdocwYzAg5wIKN90dRu1X27Y4tDqQ3JhRMO r5p7/TWc/ErO/rzW5yM0yiKfWK1TlZ3hV07jradzbL3U7TyLRybHaKhc0cuPZmv9 822bQI5CiFC6VOkHlFd1LxXGrrqu3uESa6SbMrSdK3hAhoUGjVkh6+uHaJEa5+HT GDhDRjmvbLibi0mMmF1ILpefsNIGlGnc1U72PvmU8A8KHn1+6xQuouy7afW2Ihch XYDYn9DC5ni7+LtWp8Z8 =SUpu -----END PGP SIGNATURE----- --Apple-Mail=_7FA79901-DC76-41E9-81DE-1CB4EDAC0C19--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9733B60C-5EDA-44A5-9D36-E62433DB8949>