Gasperi Michael wrote: > I also tried to set the environment variables > > LD_LIBRARY_PATH=/usr/sys/include > and > CFLAGS=/usr/sys/include > ld doesn't use header files. If you want to modify the include search path, you need something like -I/usr/sys/include You need to specify library search paths consistent with the headers you used. If you are bootstrapping gcc all on one target, start with the standard libraries used by your original working gcc.