Date: Sun, 16 Nov 2014 17:01:01 -0700 From: Warner Losh <imp@bsdimp.com> To: Garrett Cooper <yaneurabeya@gmail.com> Cc: sbruno@freebsd.org, freebsd-arch@freebsd.org Subject: Re: mips misbehaving, not respecting make.conf Message-ID: <DA067595-BD57-48C8-A79A-F6D6A17BD78A@bsdimp.com> In-Reply-To: <735BCED8-EBC1-4B65-AA34-1866ECDF3070@gmail.com> References: <1416179733.1098.1200.camel@bruno> <735BCED8-EBC1-4B65-AA34-1866ECDF3070@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Nov 16, 2014, at 4:36 PM, Garrett Cooper <yaneurabeya@gmail.com> wrote: > On Nov 16, 2014, at 15:15, Sean Bruno <sbruno@ignoranthack.me> wrote: > >> I have set make.conf to use AS=/nxb-bin/usr/bin/as and >> CC=/nxb-bin/usr/bin/cc >> >> Yet, while monitoring, I still see the ports build process >> using /usr/bin/as and /usr/bin/ld and /usr/libexec/cc1 >> >> I don't see this on armv6 when building in a jail + qemu. >> >> I'm trying to understand what is missing from our gcc toolchain here >> that is causing the builds to ignore my directives. > > It all kinds of boils down to this bug with the configuration of our base system copy of gcc: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192394 . I’ve never seen this happen in the decade or so I’ve been doing cross builds. I’ve seen gcc breakage, but always from stupid C or C++ tricks, not from how we have things setup. > The prefixing/sysroot isn’t being setup properly, which means that you have to use $PATH to tell gcc and friends which tool you want to use (which make buildworld, etc does). One way to fix this (if we used autoconf in the base system build) would be to reconfigure it with a particular sysroot: > > $ ./configure --help | grep -A 3 sysroot > --with-build-sysroot=sysroot > use sysroot as the system root during the build > --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR. > --with-gnu-ld assume the C compiler uses GNU ld default=no > --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib > --without-libiconv-prefix don't search for libiconv in includedir and libdir > $ svn info configure | grep ^URL: > URL: svn+ssh://ngie@svn.freebsd.org/base/head/contrib/gcc/configure The native-xtools builds should be setup to use the right binaries. I don’t think this is sean’s problem. Warner [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUaTq+AAoJEGwc0Sh9sBEA8agQAIhc/TRjvQ8+uCU/bYipiRjz L1jhzW9J7as48Ob3N2nMS5CVrFY/GZ18i+Dq4JsBKHKGoo6C7e5ELMJ+ZRHjEEAb T1WVCTzYDTAwj3+6JDhcgynTYdpeb8BhZmckwceaSuKWRyQCpcmqdKbqva5dgix8 +X/u+hmRET9/fde3HZfINqDeeKB3wUsOZvT1dQMxn9VRYnx0H9lsrxhrc+Y5KyhH U4NYTY8FfPsjPYEaTaJ1+TevszvvtACc3cS/eT4Ocu7A9W9oGxtB8ximj9BpzlYA pOkjf3b56dlEuU4O9wMW+Ukhkb4i/z0CEReyRPaeZKc3LdY67MDpqXF+1ytBkZhc O52APjZ+ma1XiZ9ibnnvedvxLQVw+tE2S2u41PrDa6peOUWMTTVWD5IYOy9FeugN m9EBUMV9AB263KvzatM0ARfpj883ar+eDl8/4jhUMxoru/kCQU9EpayRB9xIbED6 aY4JTyu1r+CyRsvgynA+fSXFpBPrTJKu8YZW6qEn4sE8idwy8QEiwd/27Wo2V9T9 8b7cx3BTm0egBjzvgtp5MDbZc6KOwJ/erPZNZvddBmhjRpWXPqGtE5dP1n8ZKRDe EnD1TnqiOItonV0gpjPi6x12MeManSB9UhT2IwEUZkiJTOCsaLPFMnV4LWEJVC2l /UuaBj/haZz0NioPumt5 =L8ke -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DA067595-BD57-48C8-A79A-F6D6A17BD78A>
