Opened 9 years ago
Last modified 7 years ago
#124 new defect
Build problems on OS/2 with GCC 4
Reported by: | dmik | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 0.1.5 |
Component: | kBuild | Version: | 0.1.5 |
Keywords: | Cc: |
Description
An attempt to build r2786 on OS/2 brings several problems. One is:
kBuild: Linking wrapper gcc.exe: error: unrecognized command line option '-Zstack=1024'
Another one is:
kBuild: Compiling kmk - D:/Coding/kbuild/trunk/src/kmk/kmkbuiltin/mv.c D:/Coding/kbuild/trunk/src/kmk/kmkbuiltin/mv.c:113:13: error: static declaration of 'user_from_uid' follows non-static declaration const char *user_from_uid(uid_t id, int x) ^ In file included from D:/Coding/kbuild/trunk/src/kmk/kmkbuiltin/mv.c:70:0: C:/usr/include/pwd.h:180:13: note: previous declaration of 'user_from_uid' was here const char *user_from_uid(uid_t, int); ^ D:/Coding/kbuild/trunk/src/kmk/kmkbuiltin/mv.c:123:13: error: static declaration of 'group_from_gid' follows non-static declaration const char *group_from_gid(gid_t id, int x) ^ In file included from D:/Coding/kbuild/trunk/src/kmk/kmkbuiltin/mv.c:67:0: C:/usr/include/grp.h:83:13: note: previous declaration of 'group_from_gid' was here const char *group_from_gid(gid_t, int); ^ kmk: *** [D:/Coding/kbuild/trunk/out/os2.x86/release/obj/kmk/kmkbuiltin/mv.o] Error 1
Attachments (1)
Change History (3)
by , 9 years ago
Attachment: | kbuild-008-gcc4.patch added |
---|
comment:1 by , 9 years ago
comment:2 by , 7 years ago
A slightly different patch for the original problem: https://github.com/bitwiseworks/kbuild-os2/commit/e125d475fc2e607deb7b89f0e2df68847164377e.
The mentioned warnings are fixed in https://github.com/bitwiseworks/kbuild-os2/commit/0057c464b815ca97adc0a3a114b8d009253de9be.
Note:
See TracTickets
for help on using tickets.
The above patch fixes both problems. There are also a couple of warnings which I ignored and didn't fix, JFYI:
and
A new
kbuild
RPM (version 0.1.9998.7-1) with this patch is to appear shortly in the netlabs repositories.