From: Earnie B. <ear...@ya...> - 2002-12-27 12:50:29
|
This is a porting issue. Collect2 has not been officially ported to mingw32 and thus POSIXisms that MSVCRT.DLL doesn't support won't be resolved. There is a patch posted in the either this or the mingw-users list I forget which. Another possibility is to remove the reference to collect2 in the config header files. Earnie. Steve wrote: > Thank you. That made things go much further. Now they bomb out with: > > gcc -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-strings -Wstrict-prot > otypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_C > ONFIG_H -o Tcollect2.exe \ > collect2.o tlink.o hash.o intl.o underscore.o version.o > ./intl/libintl.a ../libiberty/libiberty.a > collect2.o: In function `handler': > C:/msys/1.0/home/steve/rtemsbuild/source/gcc-3.2.1/gcc/collect2.c:461: > undefined reference to `kill' > collect2.o: In function `scan_prog_file': > C:/msys/1.0/home/steve/rtemsbuild/source/gcc-3.2.1/gcc/collect2.c:2107: > undefined reference to `pipe' > C:/msys/1.0/home/steve/rtemsbuild/source/gcc-3.2.1/gcc/collect2.c:2130: > undefined reference to `fork' > make[1]: *** [collect2.exe] Error 1 > make[1]: Leaving directory `/home/steve/rtemsbuild/build/gcc/gcc' > make: *** [cross] Error 2 > > Steve > (The Duck) > > ----- Original Message ----- > From: "Earnie Boyd" <ear...@ya...> > To: "Steve" <ste...@at...> > Cc: "MSYS List" <min...@li...> > Sent: Sunday, December 22, 2002 10:20 AM > Subject: Re: [Mingw-msys] Exception in sh.exe during build cross > > > >>Steve wrote: >> >>>I'm trying to build an cross compiler (or two). Since I really don't >> > feel > >>>like I know what I'm doing, I'll try to describe exactly what I did. >>> >>>The compiler is to run on W2k and compile Ada source code targeting >>>i586-rtems, and in the future 68k-rtems. >>> >>>To set up the environment to build the compiler I installed: >>> MinGW-2.0.0-3.exe >>> MSYS-1.0.8-rc-1.exe >> >>Replace this with http://prdownloads.sf.net/mingw/MSYS-1.0.8.exe >> >>> binutils-2.13-20020808-1.tar.gz >>> gcc-3.2-Ada-20020817-1.tar.gz >>> gcc-3.2-core-20020817-1.tar.gz >>> w32api-1.5.tar.gz >> >>Uhm, well this is older than the header versions in MinGW-2.0.0-3 but >>there is even a new version. Replace with >>http://prdownloads.sf.net/mingw/w32api-2.1.tar.gz. >> >>While you're at it, download >>http://prodownloads.sf.net/mingw/mingw-runtime-2.3.tar.gz. >> >>The sh.exe.stackdump will disappear with the MSYS-1.0.8.exe upgrade. >> >>Earnie. >> >> > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Mingw-msys mailing list > Min...@li... > https://lists.sourceforge.net/lists/listinfo/mingw-msys > |