From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12272 invoked from network); 8 Mar 2023 13:27:54 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 8 Mar 2023 13:27:54 -0000 Received: (qmail 5632 invoked by uid 550); 8 Mar 2023 13:27:51 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 5599 invoked from network); 8 Mar 2023 13:27:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=performancejones.com; s=20200504-mewmn7j8; t=1678282059; bh=MnQ9K8iWZuK6wwICodGcWiJoOiwwA0YxTzDSoGQpGYM=; h=Date:From:To:Subject:From; b=AP3UeQul7ZkXERyiqSNBc5E4jPGbNLT3ON2vy9t2N2DRlN9qyUzm2jjK8vFc8RV36 o59zSeoZfjKPH7DbsJxtH38k8M4Ct+RllQADIORtm77v48lG202NHwmbd1PV+tKLqZ d/Bi+fR0OoaAyq6wR7R6qqIB1xjItvLHlzwezf8c= X-Auth-ID: max@performancejones.com Date: Wed, 8 Mar 2023 13:27:37 +0000 From: "Max R. Dechantsreiter" To: Rich Felker Cc: musl@lists.openwall.com Message-ID: References: <20230308132442.GO4163@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230308132442.GO4163@brightrain.aerifal.cx> X-Classification-ID: a9d5ed67-b2ea-456e-bcf1-cb7e91b3d1aa-1-1 Subject: Re: [musl] unknown type name '__gnuc_va_list' On Wed, Mar 08, 2023 at 08:24:42AM -0500, Rich Felker wrote: > On Wed, Mar 08, 2023 at 01:09:25PM +0000, Max R. Dechantsreiter wrote: > > ....I got the "validation test" working by setting C_INCLUDE_PATH: > > > > cat > hello.c < > #include > > int main() > > { > > printf("Hello, world!\n"); > > return 0; > > } > > EOF > > echo $CPATH > > # /home/maxd/GNU/opt/gnu/gcc-12.1.0/include:/usr/include > > export C_INCLUDE_PATH=$CPATH > > $INSTALL/bin/musl-gcc hello.c > > ../a.out > > # Hello, world! > > I suspect you already had C_INCLUDE_PATH in your environment and gcc Actually not - it was unset. > was finding /usr/include via that despite the musl-gcc wrapper > suppressing the default. You should unset C_INCLUDE_PATH, or if you > really need to set it, ensure that any non-musl include paths (e.g. > /usr/include) do not appear in C_INCLUDE_PATH or any -I, etc. > > It's not clear to me whether the musl-gcc wrapper should try to do > anything to suppress C_INCLUDE_PATH, since you might want it for > adding intended paths when invoking the wrapper. Maybe it could be > enhanced to remove known-bad pathss but that seems fragile. > > > For what it's worth: > > > > [/home/maxd] 56> cat /proc/version > > Linux version 4.19.0 (mockbuild@builder1.eng.sw.ru) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Thu Dec 15 20:31:06 MSK 2022 > > [/home/maxd] 57> > > > > However, my application built with this musl-gcc still ends with > > > > Killed > > This is probably just a bug in the application. You could run it under > gdb to see. Are you using static or dynamic linking? I thought you > wanted static but I don't see -static in your command line above. I will check that, thanks. > > Rich