From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1e7o97-0000uz-Rx for ptxdist@pengutronix.de; Thu, 26 Oct 2017 21:48:54 +0200 Received: by mail-qt0-x232.google.com with SMTP id n61so5801423qte.10 for ; Thu, 26 Oct 2017 12:48:53 -0700 (PDT) MIME-Version: 1.0 From: Sandy Patterson Date: Thu, 26 Oct 2017 15:48:46 -0400 Message-ID: Subject: [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="===============1771807969==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============1771807969== Content-Type: multipart/alternative; boundary="001a113f4424e3c511055c78753f" --001a113f4424e3c511055c78753f Content-Type: text/plain; charset="UTF-8" I am attempting to specify a host compiler via the file ~/.ptxdist/ptxdistrc-2015.02 PTXCONF_SETUP_HOST_CPP="cpp-4.8" PTXCONF_SETUP_HOST_CC="gcc-4.8" PTXCONF_SETUP_HOST_CXX="g++-4.8" PTXCONF_SETUP_HOST_MAKE="make" I think this is ptxdist setup developer options. I expected ptxdist to use these compilers to build host-* packages, but instead it is using gcc and g++. I'm including a patch which behaves more the way I expect below. Would you guys care to comment on how I should have done this? I would like to build my firmware on different ubuntu versions which come with different compilers. Thanks, Sandy Patterson --- ptxdist-2015.02.0-orig/rules/other/Namespace.make 2017-10-26 15:20:35.925028016 -0400 +++ ptxdist-2015.02.0/rules/other/Namespace.make 2017-10-26 15:21:19.248999794 -0400 @@ -19,8 +19,8 @@ PTXCONF_COMPILER_PREFIX := $(call remove_quotes, $(PTXCONF_COMPILER_PREFIX)) COMPILER_PREFIX := $(PTXCONF_COMPILER_PREFIX) -HOSTCC := gcc -HOSTCXX := g++ +HOSTCC := $(call remove_quotes, $(PTXCONF_SETUP_HOST_CC)) +HOSTCXX := $(call remove_quotes, $(PTXCONF_SETUP_HOST_CXX)) PTXCONF_ARCH_STRING := $(call remove_quotes, $(PTXCONF_ARCH_STRING)) PTXCONF_KERNEL_ARCH_STRING := $(call remove_quotes, $(PTXCONF_KERNEL_ARCH_STRING)) --001a113f4424e3c511055c78753f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am attempting to specify a host compiler via the file ~/= .ptxdist/ptxdistrc-2015.02=C2=A0

PTXCONF_SETUP_HOST_CPP= =3D"cpp-4.8"
PTXCONF_SETUP_HOST_CC=3D"gcc= -4.8"
PTXCONF_SETUP_HOST_CXX=3D"g++-4.8"=
PTXCONF_SETUP_HOST_MAKE=3D"make"

<= div>I think this is ptxdist setup developer options.

I expected ptxdist to use these compilers to build host-* packages, but = instead it is using gcc and g++.

I'm including= a patch which behaves more the way I expect below. Would you guys care to = comment on how I should have done this? I would like to build my firmware o= n different ubuntu versions which come with different compilers.
=
Thanks,
Sandy Patterson

<= div>--- ptxdist-2015.02.0-orig/rules/other/Namespace.make 2017-10-26 15:20:35.925028016 -0400
+++ ptx= dist-2015.02.0/rules/other/Namespace.make <= /span>2017-10-26 15:21:19.248999794 -0400
@@ -19,8 +19,8 @@
=
=C2=A0PTXCONF_COMPILER_PREFIX = :=3D $(call remove_quotes, $(PTXCONF_COMPILER_PREFIX))
=C2=A0COMP= ILER_PREFIX :=3D $(PTXCONF_COMPILE= R_PREFIX)
=C2=A0
-HOSTCC :=3D gcc
-HOSTCXX = :=3D g++
+HOSTCC :=3D $(call remove_quotes, $(PTXCONF_SETUP_HOST_CC))
+HOSTCXX :=3D $(call remove_quotes, $(PTXCON= F_SETUP_HOST_CXX))
=C2=A0
=C2=A0PTXCONF_ARCH_STRING :=3D $(call remove_quotes, $(PTXCONF_A= RCH_STRING))
=C2=A0PTXCONF_KERNEL_ARCH_STRING :=3D $(call remove_quotes, $(PTXCONF_KERNEL_ARCH_STRING= ))
--001a113f4424e3c511055c78753f-- --===============1771807969== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============1771807969==--