tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Missing predefs.h on x64 Linux?


From: Stephan Beal
Subject: [Tinycc-devel] Missing predefs.h on x64 Linux?
Date: Sat, 4 May 2013 15:12:20 +0200

Hiho,

i just updated to "the latest" tcc:

address@hidden:~/cvs/tinycc]$ git pull
...
From git://repo.or.cz/tinycc
...

And i am seeing what is probably a portability problem on x64 Ubuntu 12.04:

address@hidden:~/cvs/fossil/cpdo]$ CC=tcc make
Generating dependencies...
+ tcc -Wall -Werror -fPIC -g -I. -I./include -I/home/stephan/include -UNDEBUG -DDEBUG=1 -DCPDO_ENABLE_SQLITE3=1 -DCPDO_ENABLE_SQLITE4=1 -DCPDO_ENABLE_MYSQL5=1 -c -o test.o test.c
In file included from test.c:25:
In file included from /usr/include/assert.h:37:
/usr/include/features.h:324: error: include file 'bits/predefs.h' not found
make: *** [test.o] Error 1


i haven't compiled this code with tcc in many months, so i cannot say when this started happening (and my git-fu is not powerful enough to figure it out :( ).

i get the same even if i disable assert by setting NDEBUG:

address@hidden:~/cvs/fossil/cpdo]$ CC=tcc make DEBUG=0
+ tcc ... -UDEBUG -DNDEBUG=1 ...
In file included from /usr/include/assert.h:37:
/usr/include/features.h:324: error: include file 'bits/predefs.h' not found
make: *** [test.o] Error 1

Setting CC=gcc or CC=clang compiles as expected.

Any tips on working around this?

--
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal

reply via email to

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