bitwiseworks / gcc-os2

Port of GCC compiler to OS/2
GNU General Public License v2.0
16 stars 2 forks source link

Include files seem to be missing for GCC 9 #38

Open drobri opened 2 weeks ago

drobri commented 2 weeks ago

I installed all the GCC 9 RPM Packages,

Just doing the HELLO_WORLD.C to test.

[C:\home\WRK\C_SRC]gcc HELLO_WORLD.C In file included from HELLO_WORLD.C:1: C:/usr/lib/gcc/i686-pc-os2-emx/9/include-fixed/stdio.h:64:10: fatal error: sys/c defs.h: No such file or directory 64 | #include <sys/cdefs.h> | ^~~~~ compilation terminated.

Tried using the BASH shell no luck. Any suggestions? I could not find an include file for sys/cdefs.h the sub directories of C:/usr/lib/gcc/i686-pc-os2-emx/9.

dryeo commented 2 weeks ago

The headers are in the libc-devel package. You will find a few other packages that are needed for a basic GCC development environment. libcx-dev has a few extensions to libc. kbuild-make for gnu make. watcom-wlink-hll for the preferred linker, wl.exe. IIRC, dash and dash-sh for a shell though bash should also work. Should also install gcc-c++, gcc-wlink and gcc-wrc if you need the resource compiler. Might be forgetting others.

drobri commented 2 weeks ago

Thank you for the reply. Is there a wiki or FAQ that I should have read for this?