tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Can tinycc build musl libc?


From: rain1
Subject: [Tinycc-devel] Can tinycc build musl libc?
Date: Thu, 23 Nov 2017 19:10:04 +0000
User-agent: Roundcube Webmail/1.3.3

Hello

Can tinycc be used to build musl libc?

I attempted by using this command line: CC=tcc ./configure --target=x86_64-linux-musl

but I got this error:

tcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard -frounding-math -Wa,--noexecstack -D_XOPEN_SOURCE=700 -I./arch/x86_64 -I./arch/generic -Iobj/src/internal -I./src/internal -Iobj/include -I./include -Os -pipe -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -c -o obj/src/aio/aio.o src/aio/aio.c
In file included from src/aio/aio.c:10:
In file included from ./src/internal/libc.h:5:
In file included from ./include/stdio.h:22:
obj/include/bits/alltypes.h:6: error: ';' expected (got "va_list")
Makefile:155: recipe for target 'obj/src/aio/aio.o' failed
make: *** [obj/src/aio/aio.o] Error 1

obj/include/bits/alltypes.h is a generated file that, and the error happened on this typedef line:

#define _Addr long
#define _Int64 long
#define _Reg long

#if defined(__NEED_va_list) && !defined(__DEFINED_va_list)
typedef __builtin_va_list va_list;
#define __DEFINED_va_list
#endif

So I couldn't tell if this was a bug in tcc or the c preprocessor. If anybody has some insight or has tried to build musl with tcc I'd love to hear about it. Thanks!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]