Success using MSYS... and failure

Steve steved94 at attbi.com
Mon Dec 23 04:15:53 UTC 2002


After updating to a newer version of MSYS, the mingw runtime, and the
w32api.  I now get much farther with my build.  Now I get an error some time
after entering "make cross":

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

Here is the content of my config.status file:
#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
/home/steve/rtemsbuild/source/gcc-3.2.1/configure --with-gcc-version-trigger
=/home/steve/rtemsbuild/source/gcc-3.2.1/gcc/version.c --host=i686-pc-mingw3
2 --verbose --target=i586-rtems --prefix=/gcc-i586-rtems --with-gnu-as --wit
h-gnu-ld --with-newlib --enable-languages=c++,ada --norecursion
# using "mh-frag"

I suspect this error is telling me that either I need to patch the source to
collect.c for a non-unix build, or I have some switch wrong in my configure
command line.

Any hints would be appreciated.  Till then I'll keep digging.
Thanks in advance,
Steve
(The Duck)

----- Original Message -----
From: "Steve" <steved94 at attbi.com>
To: "RTEMS List" <rtems-users at OARcorp.com>
Sent: Friday, December 20, 2002 7:59 PM
Subject: Any success using MSYS?


> Has anyone had any success building  gcc-3.2.1 under W2k using MinGW &
MSYS?
>
> Binutils-2.13.1 with no problems using:
>
>
>
configure --verbose --target=i586-rtems --prefix=/gcc-i586-rtems --with-gnu-
> as --with-gnu-ld
>
> But when I try to build gcc using
>
>
>
configure --verbose --target=i586-rtems --prefix=/gcc-i586-rtems --with-gnu-
> as --with-gnu-ld --with-newlib
>
> Configure does ok, but then when I try:\
>   make cross
>
> I get:
>
> $ make cross
> make[1]: Entering directory `/home/RtemsBuild/build/gcc/libiberty'
> if [ x"" != x ] && [ ! -d pic ]; then \
>   mkdir pic; \
> else true; fi
> touch stamp-picdir
> if [ x"" != x ]; then \
>
>
>
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../source/gcc-3.2.1/libiberty/../i
> nc        lude  -W -Wall -Wtraditional -pedantic
> ../../../source/gcc-3.2.1/libiberty/rege        x.c -o pic/regex.o; \
> else true; fi
>
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../source/gcc-3.2.1/libiberty/../i
> nclu        de  -W -Wall -Wtraditional -pedantic
> ../../../source/gcc-3.2.1/libiberty/regex.c
>       0 [main] sh 3412 open_stackdumpfile: Dumping stack trace to
> sh.exe.stackdu        mp
> make[1]: *** [regex.o] Segmentation fault (core dumped)
> make[1]: Leaving directory `/home/RtemsBuild/build/gcc/libiberty'
> make: *** [all-libiberty] Error 2
>
>
> Im on W2k and I'd like to give GNAT/RTEMS a shot.
>
> Steve
> (The Duck)
>
>
>
>





More information about the users mailing list