mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] unknown type name '__gnuc_va_list'
@ 2023-03-07 13:48 Max R. Dechantsreiter
  2023-03-07 19:37 ` Szabolcs Nagy
  2023-03-07 20:28 ` Ralo Kossovo
  0 siblings, 2 replies; 15+ messages in thread
From: Max R. Dechantsreiter @ 2023-03-07 13:48 UTC (permalink / raw)
  To: musl

My musl-1.2.3 fails to compile the simple test:

cat > hello.c <<EOF
#include <stdio.h>
int main()
{
  printf("Hello, world!\n");
  return 0;
}
EOF
$INSTALL/bin/musl-gcc hello.c
/usr/include/stdio.h:52:9: error: unknown type name '__gnuc_va_list'
   52 | typedef __gnuc_va_list va_list;
      |         ^~~~~~~~~~~~~~
/usr/include/stdio.h:52:24: error: conflicting types for 'va_list'; have 'int'
   52 | typedef __gnuc_va_list va_list;
      |                        ^~~~~~~
.
.
.

I configured musl as follows:

CC=gcc ./configure \
        --prefix=$INSTALL \
        --target=x86_64 \
        --disable-shared \
>& configure.log
# CROSS_COMPILE configured to "x86_64-":
sed -i 's/\(CROSS_COMPILE = \).*/\1/' config.mak

and built (cleanly) with GCC 12.1.0 on

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

I had the same problem with GCC 10.2.1.

Is there a known fix/workaround someone could provide?

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-03-09  6:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 13:48 [musl] unknown type name '__gnuc_va_list' Max R. Dechantsreiter
2023-03-07 19:37 ` Szabolcs Nagy
2023-03-07 20:28 ` Ralo Kossovo
2023-03-08 11:21   ` Max R. Dechantsreiter
2023-03-08 11:27     ` Max R. Dechantsreiter
2023-03-08 12:43       ` Ralo Kossovo
2023-03-08 12:47         ` Max R. Dechantsreiter
2023-03-08 13:09           ` Max R. Dechantsreiter
2023-03-08 13:24             ` Rich Felker
2023-03-08 13:27               ` Max R. Dechantsreiter
2023-03-08 13:51             ` Ralo Kossovo
2023-03-08 14:10               ` Max R. Dechantsreiter
2023-03-08 14:52                 ` Ralo Kossovo
2023-03-08 15:36                   ` Max R. Dechantsreiter
2023-03-09  6:48                     ` Ralo Kossovo

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).