ahgamut / superconfigure

wrap autotools configure scripts to build with Cosmopolitan Libc
The Unlicense
159 stars 22 forks source link

clang cannot find include file #17

Open codehz opened 7 months ago

codehz commented 7 months ago

I put related file into ~/.cosmo and try to use clang to compile a simple hello-world.c this is what i got

> ~/.cosmo/bin/clang-15 -c -o test-clang.o --include $HOME/.cosmo/include/libc/integral/c.inc -I$HOME/.cosmo/include test-clang.c
In file included from <built-in>:1:
/Users/codehz/.cosmo/include/libc/integral/c.inc:109:10: fatal error: cannot open file '/Users/codehz/.cosmo/include/libc/integral/libc/stdbool.h': No such file or directory
#include "libc/stdbool.h"
         ^
1 error generated.

(native clang works)

ahgamut commented 7 months ago

yeah @jart and I have run into this before -- would love some help in figuring out if there's a build flag or something that needs to be added.