From owner-freebsd-arch@FreeBSD.ORG Tue Jul 8 21:52:37 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 09DA0D56 for ; Tue, 8 Jul 2014 21:52:37 +0000 (UTC) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) (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 C71F225AF for ; Tue, 8 Jul 2014 21:52:36 +0000 (UTC) Received: by mail-pa0-f50.google.com with SMTP id bj1so8037457pad.37 for ; Tue, 08 Jul 2014 14:52:36 -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=AlxbqCCv23fc3NiQb/HAQsNJUmObc6u+bnbfnvevpMU=; b=Z8YW7ulxg19yoKstmZbwNu4TolBRKJJMbEYpt0LVIYKeOixBvwNxdWE7ycyT5oas22 YfkNc/TxHri/0NFLirYdADhaML4jB1Ntn+tphlbpsn7TXybPiIct2IP2Wd8jOW3dfApX VCCR3C6GL1kpYsilw/rUdDqqAWflu47e+Nshw57y23wIljcfIVi9uyCIDzMl0DTnEzpk y0LqgQO+euIWH2zKxW5IbvVxcIWSGJkTO7VyevaSfVmzXRXLCtdeOiYPBQ285+N8TB4P CkADzY6ZLfB7OYK8h1HqUBqmwIW0Vx8h73SgxxKN/xZfYC2r/FOcx2QjT4LLFLgt/KI2 k7DQ== X-Gm-Message-State: ALoCoQkzYmgYqNg5T1UVTFQ3SzZLajtvhhS2TlKZkhwdEoVBhHXyFbu6d32nC/KWJlUt+nWGfFUs X-Received: by 10.70.133.7 with SMTP id oy7mr3683677pdb.153.1404856356171; Tue, 08 Jul 2014 14:52:36 -0700 (PDT) Received: from [10.64.24.152] (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id ir10sm56770335pbc.59.2014.07.08.14.52.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 14:52:35 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_7FA79901-DC76-41E9-81DE-1CB4EDAC0C19"; 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: <1404854676.1662.29.camel@bruno> Date: Tue, 8 Jul 2014 15:52:34 -0600 Message-Id: <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> <1404842719.1662.15.camel@bruno> <1404851278.1662.17.camel@bruno> <7CB79988-8221-4F00-AB79-FB24EB3CEF66@bsdimp.com> <1404854676.1662.29.camel@bruno> 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 21:52:37 -0000 --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 wrote: > 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? 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--