Page 1 of 1

No stdint.h generated by OS specific toolchain

Posted: Tue Nov 28, 2017 6:21 pm
by earlz
So, after quite a while I was able to finally compile an OS specific toolchain targeted to my OS. It seems to work properly, and libgcc did indeed build properly. However I've run into a big problem now. There is no stdint.h created by GCC. I see a lot of other builtins like stdarg.h, cpuid.h, vararg.h, etc.. but no stdint.h. I have compilers that are nearly identical but built to target i386-elf that do include stdint.h... I know I could just copy it over and place it there to get around my problem, but that is incredibly hacky and I'd rather find a long term solution. Why does freestandard compilers generate stdint.h but not my hosted compiler?

edit: I also do not have stdint-gcc.h

Re: No stdint.h generated by OS specific toolchain

Posted: Tue Nov 28, 2017 6:43 pm
by Korona
Generation of stdint.h is controlled by the use_gcc_stdint variable in config.gcc. There are basically three options: 1) stdint.h is part of libc and not included in GCC, 2) GCC generates a standalone stdint.h and 3) GCC generates a stdint-gcc.h that libc can wrap.