On Wed, 9 Apr 2008, Danny Backx wrote:
> On Wed, 2008-04-09 at 09:19 +0200, Vincent Torri wrote: >> I've succeeded in compiling (some parts of) cegcc with msys. > >> For that, i needed to do some hack and modifications. If some people are >> interested, i can describe a bit which problems i had and what i modified >> so that it works (i also think that those fixes will work on all >> platform). > > Yes please send that. I tried the 0.51 version Here are the problems: * build-cegcc.sh : use relative path (../../) for each call of configure, instead of full path. The problem is that some programs might not understand POSIX paths in MSYS. It is the case for gcc, for example. * in binutils, makeinfo is not detected correctly. I don't know why. But, the consequence is that the creation and installation of all the 'info' doc is broken. I had to modified by hand the corresponding Makefile.in. What is not good at all is that even if makeinfo is not detected, the Makefile's try to create the 'info' documentation. * in cegcc/importlibs: for all script files, use /bin/sh instead of /bin/bash. In some systems (MSYS :-) ) it might be missing, while /bin/sh always exist. * in cegcc/fakecegccdll: same for the install.sh script file. * in src/build-cegcc/gcc-bootstrap/gcc : ./tm.h:6:30: error: config/arm/semi.h: No such file or directory same for other files in tm.h. I have to copy the files manually. same with: fp-bit.c:51:23: error: coretypes.h: No such file or directory Note that makeinfo is correctly used when building gcc... * in gcc itself, the modifications of the previous point, plus: ../../../gcc/gcc/config/arm/gthr-win32.c:49:24: error: gthr-win32.h: No such file or directory * in cegccdll: arm-wince-cegcc-gcc -o /home/vincent/svnroot/cegcc/src/build-cegcc/cegccdll/cegcc.dll -L/usr/local/lib -L /home/vincent/svnroot/cegcc/src/build-cegcc/cegccdll -Wl,-Map,/home/vincent/svnroot/cegcc/src/build-cegcc/cegccdll/cegcc.dll.map -shared -nostdlib \ -Wl,--whole-archive /home/vincent/svnroot/cegcc/src/build-cegcc/cegccdll/_tmp/*.o /opt/cegcc/arm-wince-cegcc/lib/dllcrt1.o \ -Wl,--no-whole-archive -lcegcc -lcoredll -liphlpapi \ -Wl,--output-def=/home/vincent/svnroot/cegcc/src/build-cegcc/cegccdll/cegcc.dll.def \ -Wl,--out-implib,/home/vincent/svnroot/cegcc/src/build-cegcc/cegccdll/libcegcc.dll.a.tmp /bin/sh.exe: /opt/cegcc/bin/arm-wince-cegcc-gcc: Bad file number make: *** [/home/vincent/svnroot/cegcc/src/build-cegcc/cegccdll/cegcc.dll] Error 126 I don't know how to correct that error. It's missing permissions on a file, or a read only access and we try to write on it. I don't know. I guess it can also be a problem with the POSIX fullname wich is not supported. I stopped here, unfortunately. I think that i also compiled gdb, but without cegccdll, i can't do anything regards Vincent ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel