admin管理员组

文章数量:1186157

I'm trying to compile gmake with tcc in a (gentoo) musl-libc system. I first configure with CC=tcc ./configure --program-prefix=g then ./build.sh but I get the following error:

config.status: creating ./lib/alloca.h__
config.status: creating ./lib/fnmatch.h__
config.status: creating ./lib/glob.h__
compiling lib/concat-filename.c...
do tcc -DHAVE_CONFIG_H -I./lib -Ilib -I./lib -I./src -Isrc -I./src  -g  -c -o ./lib/libgnu_a-concat-filename.o ./lib/concat-filename.c
In file included from ./lib/concat-filename.c:22:
In file included from ./lib/concat-filename.h:20:
In file included from /usr/include/stdlib.h:21:
/usr/include/bits/alltypes.h:15: error: incompatible redefinition of 'wchar_t'
Compilation failed.

(the do ... part is just a line I added to print what it's trying to do).

I think tcc defines wchar_t in /usr/lib/tcc/include so that may be the conflict. Not sure what I should do. Remove #include stdlib.h?

本文标签: gnu makeCompile gmake with TCC in musl libc systemStack Overflow