From: Luke D. <cod...@ho...> - 2003-07-23 02:11:34
|
----- Original Message ----- From: "Dave Murphy" <win...@nt...> To: <min...@li...> Sent: Wednesday, July 23, 2003 6:18 AM Subject: [Mingw-users] gcc compiling problems > Hi > > I'm trying to build an ARM targeted gcc using mingw > > I have the following installed on my system > > msysDTK-1.0.1 > MSYS-1.0.9 > MinGW-3.0.0-rc3 > > I'm using source for gcc 3.2.2 from ftp.gnu.org > I don't know if it will help, but you could try compiling GCC 3.2.3 with patched MinGW sources, either by downloading the full source from the MinGW download page or getting the official source and the patch. Most of the patch would apply only to the mingw32 target, but some of it may also involve the mingw32 host. > binutils 2.14 has compiled & installed without problems > > I configured gcc with > > ../gcc-3.2.2/configure --target=$target --prefix=$prefix \ What is $prefix? > --enable-targets=arm-elf --with-cpu=arm7tdmi --enable-interwork --enable-m ul > tilib \ > --with-gcc --with-gnu-ld --with-gnu-as \ > --without-local-prefix \ > --with-gnu-as --with-gnu-ld \ > --disable-win32-registry --disable-threads \ > --enable-languages="c,c++" --disable-nls > > and make LANGUAGES=c If you don't want C++, then configure with "--enable-languages=c" instead of setting environment variables. > > this bit is disturbing > > make[1]: Leaving directory `/c/projects/mingw/gcc/arm-gcc/gcc' > Configuring in arm-thumb-elf/libstdc++-v3 > loading cache ../config.cache > checking host system type... arm-thumb-elf > checking target system type... arm-thumb-elf > checking build system type... i686-pc-mingw32 > checking for Cygwin environment... (cached) no > checking for mingw32 environment... (cached) no > checking for gawk... (cached) gawk > checking whether ln -s works... (cached) no > > I don't know why it hasn't detected the mingw environment This is the configure script for libstdc++ and it is using the arm cross-compiler that it just built, so it is correct that it says "no". The wording could be better though, because "mingw32 environment" here really means the mingw32 target. > > this too, something has decided to use \ instead of / in a path somewhere > > checking command to parse C:\msys\arm\arm-thumb-elf\bin\nm.exe output... > ../../../gcc-3.2.2/libstdc++-v3/../ltconfig: > C:msysarmarm-thumb-elfbinnm.exe: command not found > ../../../gcc-3.2.2/libstdc++-v3/../ltconfig: > C:msysarmarm-thumb-elfbinnm.exe: command not found > failed I'm not sure what would cause this. If you specified something like --prefix=/arm, it might be worth trying --prefix=c:/msys/arm instead if you run out of other options. However, this error _might_ not actually be a problem anyway. > > and the final error > > checking for exception model to use... configure: error: unable to detect > exception model > make: *** [configure-target-libstdc++-v3] Error 1 > > > I have no idea how to proceed from here. Anyone got any ideas > > > Dave I don't know about the exception issue, but do you actually need libstdc++ anyway? If not, there should be a way to avoid building it. Luke |