[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Problem building avr-gcc on MinGW
From: |
Ebert, Rolf |
Subject: |
[avr-gcc-list] Problem building avr-gcc on MinGW |
Date: |
Wed, 5 Feb 2003 16:44:39 +0100 |
I think I am almost through building an AVR cross compiler on MinGW. There
seems to be only a little problem left. When linking collect2.exe I get
unresolved symbols kill, pipe, and fork:
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long -DHAVE_CONFIG_H -o Tcollect2.exe \
collect2.o tlink.o intl.o version.o ../libiberty/libiberty.a
collect2.o(.text+0x2e3): In function `handler':
d:/data/Development/gcc-cvs/avr/gcc/gcc/../../../gcc-branch_3.3-2003-01-28/g
cc/collect2.c:447: undefined reference to `kill'
collect2.o(.text+0x3ab4): In function `scan_prog_file':
d:/data/Development/gcc-cvs/avr/gcc/gcc/../../../gcc-branch_3.3-2003-01-28/g
cc/collect2.c:2092: undefined reference to `pipe'
collect2.o(.text+0x3b52):d:/data/Development/gcc-cvs/avr/gcc/gcc/../../../gc
c-branch_3.3-2003-01-28/gcc/collect2.c:2115: undefined reference to `fork'
make[1]: *** [collect2.exe] Error 1
I do not have the log from building the native compiler, so I cannot tell
where the native version finds these symbols. Probably it is just missing a
library here (but which one? this ought to be in libc, doesn't it?)
Anyway, the programs built up the here seem to work correctly, even the Ada
compiler :-) If I invoke the compiler at the build location, I get the
following output:
gcc/xgcc -Bgcc/ -v -gnatv -c -Os -g -mmcu=at90s2313 toto.adb
Reading specs from gcc\specs
Configured with: ../../gcc-branch_3.3-2003-01-28/configure --disable-nls
--target=avr --enable-languages=c,ada --prefix=/usr/local/avr
Thread model: single
gcc version 3.3 20030128 (prerelease)
gcc\gnat1.exe -quiet -dumpbase toto.adb -gnatv -g -Os -mmcu=at90s2313
toto.adb -o C:\DOKUME~1\ebert\LOKALE~1\Temp/ccueaaaa.s
GNAT 3.3 20030128 (prerelease)
Copyright 1992-2002 Free Software Foundation, Inc.
Compiling: toto.adb (source file time stamp: 2003-02-05 13:44:34)
18 lines: No errors
D:\Programme\msys\1.0.8\local\avr\lib\gcc-lib\avr\3.3\..\..\..\..\avr\bin\as
.exe --traditional-format -mmcu=at90s2313 -o toto.o
C:\DOKUME~1\ebert\LOKALE~1\Temp/ccueaaaa.s
I use my own copy (via CVS) of the gcc sources, pulled from the gcc-3.3
branch on January 28. Are there any pending patches regarding the AVR port?
Rolf
- [avr-gcc-list] Problem building avr-gcc on MinGW,
Ebert, Rolf <=