cegcc-build icon indicating copy to clipboard operation
cegcc-build copied to clipboard

x86 support?

Open Stekke opened this issue 5 years ago • 7 comments

Hey, thanks for maintaining this project!

Is there any possibility of getting x86 support?
I was able to successfully compile the arm version.
However changing TARGET in build.sh to i386-mingw32ce resulted in a compilation failure while building gcc-bootstrap/gcc:

/tmp/cegcc-output/gcc-bootstrap/./gcc/xgcc -B/tmp/cegcc-output/gcc-bootstrap/./gcc/ -L/tmp/cegcc-output/gcc-bootstrap/i386-mingw32ce/winsup/mingw -L/tmp/cegcc-output/gcc-bootstrap/i386-mingw32ce/winsup/w32api/lib -isystem /home/s/cegcc-build/gcc/winsup/mingw/include -isystem /home/s/cegcc-build/gcc/winsup/w32api/include -B/opt/cegcc/i386-mingw32ce/bin/ -B/opt/cegcc/i386-mingw32ce/lib/ -isystem /opt/cegcc/i386-mingw32ce/include -isystem /opt/cegcc/i386-mingw32ce/sys-include    -g -O2 -O2 -I/home/s/cegcc-build/gcc/libgcc/../winsup/w32api/include -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -I. -I. -I../.././gcc -I/home/s/cegcc-build/gcc/libgcc -I/home/s/cegcc-build/gcc/libgcc/. -I/home/s/cegcc-build/gcc/libgcc/../gcc -I/home/s/cegcc-build/gcc/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o _trampoline.o -MT _trampoline.o -MD -MP -MF _trampoline.dep -DL_trampoline -c /home/s/cegcc-build/gcc/libgcc/libgcc2.c
/home/s/cegcc-build/gcc/libgcc/libgcc2.c:2186:10: fatal error: windows.h: No such file or directory
 #include <windows.h>
          ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:494: _trampoline.o] Error 1

I'm not sure if there is something else I need to change, or if x86 is just not supported at all. CeGCC originally supported it I think, so I was hoping it would've still worked.

Stekke avatar Apr 07 '20 06:04 Stekke

No, not possible right now. My project (based on the very old cegcc project) has arm-wince support as one special case, but there is no code for supporting i386. It would be possible to develop this (with some deeper GCC knowledge), but I'm not interested in spending time on this, because I have so many other projects fighting for my free time and I don't have any i386-CE hardware.

MaxKellermann avatar Apr 07 '20 11:04 MaxKellermann

Ah, alright.
Unfortunately I don't have much knowledge of GCC.

Stekke avatar Apr 07 '20 15:04 Stekke

For what it's worth, I just had the same requirement at work and updated the cegcc-build and gcc repos to support x86 Windows CE targets. My work is now available at https://github.com/enlyze/cegcc-build

ColinFinck avatar Jan 31 '24 16:01 ColinFinck