No stdint.h generated by OS specific toolchain

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

No stdint.h generated by OS specific toolchain

Post 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
Korona
Member
Member
Posts: 1000
Joined: Thu May 17, 2007 1:27 pm
Contact:

Re: No stdint.h generated by OS specific toolchain

Post 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.
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].
Post Reply