[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] How do build AVR-GCC under MingW?
From: |
Bob Paddock |
Subject: |
[avr-gcc-list] How do build AVR-GCC under MingW? |
Date: |
Thu, 10 Jun 2004 05:51:20 -0400 |
User-agent: |
KMail/1.6.2 |
I checked out avr-libc 1.0.4 from CVS so I could get the iotn2313 and iomx8
versions.
I built the binutils with no problem, but I've tried building several
different versions of GCC (3.3.2,3.3.3,3.4.0) and all fail with this error,
what do I have set up wrong? Seems like collect2.c is missing a header file
include.
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototy pes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_ H -o
cc1obj.exe objc-lang.o objc-parse.o objc-act.o attribs.o c-errors.o
c-lex. o c-pragma.o c-decl.o
c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o
c- format.o c-semantics.o
c-objc-common.o c-dump.o libcpp.a main.o libbackend.a
./ intl/libintl.a
../libiberty/libiberty.a
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototy pes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_ H -I. -I.
-I. -I./. -I./config -I./../include \
-DTARGET_MACHINE=\"avr\" \
-c ./collect2.c -o collect2.o
collect2.c: In function `handler':
collect2.c:447: warning: implicit declaration of function `kill'
collect2.c: In function `scan_prog_file':
collect2.c:2091: warning: implicit declaration of function `pipe'
collect2.c:2114: warning: implicit declaration of function `fork'
collect2.c:2130: warning: passing arg 2 of `execv' from incompatible
pointer typ e
collect2.c:2069: warning: unused variable `quit_handler'
gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prot otypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONF IG_H -I. -I.
-I. -I./. -I./config -I./../include tlink.c -o tlink.o
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototy pes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_ H -o
Tcollect2.exe \
collect2.o tlink.o intl.o version.o ./intl/libintl.a
../libiberty/libi berty.a
collect2.o(.text+0x269): In function `handler':
C:/msys1010/1.0/AVR/gcc-3.3.2/gcc/collect2.c:447: undefined reference to
`kill'
collect2.o(.text+0x3478): In function `scan_prog_file':
C:/msys1010/1.0/AVR/gcc-3.3.2/gcc/collect2.c:2091: undefined reference to
`pipe'
collect2.o(.text+0x3516):C:/msys1010/1.0/AVR/gcc-3.3.2/gcc/collect2.c:2114:
unde fined reference to `fork'
make[1]: *** [collect2.exe] Error 1
make[1]: Leaving directory `/AVR/gcc-3.3.2/gcc'
make: *** [all-gcc] Error 2
/AVR/gcc-3.3.2
$ which gcc
/mingw/bin/gcc
$ gcc --version
gcc.exe (GCC) 3.2.3 (mingw special 20030504-1)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-gcc-list] How do build AVR-GCC under MingW?,
Bob Paddock <=