From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qt0-x230.google.com ([2607:f8b0:400d:c0d::230]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1e84CT-0006h5-Kn for ptxdist@pengutronix.de; Fri, 27 Oct 2017 14:57:25 +0200 Received: by mail-qt0-x230.google.com with SMTP id v41so8229952qtv.12 for ; Fri, 27 Oct 2017 05:57:25 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20171027123227.p3xp2pqjq3yjtart@pengutronix.de> References: <20171027123227.p3xp2pqjq3yjtart@pengutronix.de> From: Sandy Patterson Date: Fri, 27 Oct 2017 08:57:18 -0400 Message-ID: Subject: Re: [ptxdist] problem using custom host compiler List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============1780191869==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============1780191869== Content-Type: multipart/alternative; boundary="001a11c01498300aa2055c86d42d" --001a11c01498300aa2055c86d42d Content-Type: text/plain; charset="UTF-8" Ahh, it seems as very much didn't understand. The Namespace.make sets HOSTCC to gcc for prepare, but then during compile, the path starts with that wrapper/real folder and on the command line you see just gcc. If I run gcc --version I get the correct 4.8. I also spaced and didn't realize that the symlinks in wrapper/real were relative for cc and c++ so they all point to the 4.8 versions ... lrwxrwxrwx 1 apatterson apatterson 3 Oct 27 08:20 c++ -> g++ lrwxrwxrwx 1 apatterson apatterson 3 Oct 27 08:20 cc -> gcc lrwxrwxrwx 1 apatterson apatterson 16 Oct 27 08:20 cpp -> /usr/bin/cpp-4.8 lrwxrwxrwx 1 apatterson apatterson 16 Oct 27 08:20 g++ -> /usr/bin/g++-4.8 lrwxrwxrwx 1 apatterson apatterson 16 Oct 27 08:20 gcc -> /usr/bin/gcc-4.8 I think the console output compile command starting with gcc without the 4.8 confused me, but it was using the path and symlinks to get to the correct one. Thanks, Sandy Patterson --001a11c01498300aa2055c86d42d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ahh, it seems as very much didn't understand. The= =C2=A0Namespace.make sets HOSTCC to gcc for prepare, but then during compil= e, the path starts with that wrapper/real folder and on the command line yo= u see just gcc. If I run gcc --version I get the correct 4.8.
I also spaced and didn't realize that the symlinks in wrapp= er/real were relative for cc and c++ so they all point to the 4.8 versions<= /div>
...
lrwxrwxrwx 1 apatterson apatterson=C2=A0 3 Oct 27 0= 8:20 c++ -> g++
lrwxrwxrwx 1 apatterson apatterson=C2=A0 3= Oct 27 08:20 cc -> gcc
lrwxrwxrwx 1 apatterson apatterson 16 = Oct 27 08:20 cpp -> /usr/bin/cpp-4.8
lrwxrwxrwx 1 apatterson a= patterson 16 Oct 27 08:20 g++ -> /usr/bin/g++-4.8
lrwxrwxrwx 1= apatterson apatterson 16 Oct 27 08:20 gcc -> /usr/bin/gcc-4.8

I think the console output compile command starting with gc= c without the 4.8 confused me, but it was using the path and symlinks to ge= t to the correct one.

Thanks,
Sandy Patterson
--001a11c01498300aa2055c86d42d-- --===============1780191869== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============1780191869==--