Include files seem to be missing for GCC 9 #45

Open
opened 2026-01-29 22:24:27 +00:00 by claunia · 2 comments
Owner

Originally created by @drobri on GitHub (Nov 12, 2024).

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.

Originally created by @drobri on GitHub (Nov 12, 2024). 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.
Author
Owner

@dryeo commented on GitHub (Nov 12, 2024):

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.

@dryeo commented on GitHub (Nov 12, 2024): 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.
Author
Owner

@drobri commented on GitHub (Nov 13, 2024):

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

@drobri commented on GitHub (Nov 13, 2024): Thank you for the reply. Is there a wiki or FAQ that I should have read for this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bitwiseworks/gcc-os2#45