This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14165] New: GCC can't find libraries while compiling AVR cross compiler
- From: "cmosis5 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2004 17:56:14 -0000
- Subject: [Bug c/14165] New: GCC can't find libraries while compiling AVR cross compiler
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
RH9 system gcc3.2.2., cross compiling gcc3.3.3 source for AVR. Header files
aren't located.
After
./configure --target=avr --program-prefix="avr-" --enable-language=c
make
Then I get this error:
/usr/delme/gcc-3.3.3/gcc/xgcc -B/usr/delme/gcc-3.3.3/gcc/ -B/usr/local/avr/bin/
-B/usr/local/avr/lib/ -isystem /usr/local/avr/include -c -DSkip_f2c_Undefs
-DAllow_TYQUAD -I. -I. -I.. -I./.. -DHAVE_CONFIG_H -W -Wall -O2 -g -O2
backspace.c -o backspace.o
backspace.c:2:23: sys/types.h: No such file or directory
In file included from backspace.c:4:
fio.h:1:23: sys/types.h: No such file or directory
fio.h:2:19: stdio.h: No such file or directory
fio.h:3:19: errno.h: No such file or directory
In file included from backspace.c:4:
fio.h:43: error: parse error before "FILE"
fio.h:43: warning: no semicolon at end of struct or union
fio.h:57: error: parse error before '}' token
fio.h:58: warning: type defaults to `int' in declaration of `unit'
fio.h:58: warning: data definition has no type or storage class
fio.h:70: error: parse error before '*' token
fio.h:70: error: parse error before '*' token
fio.h:82: error: parse error before '*' token
fio.h:82: warning: type defaults to `int' in declaration of `f__cf'
fio.h:82: warning: data definition has no type or storage class
fio.h:83: error: parse error before '*' token
fio.h:83: warning: type defaults to `int' in declaration of `f__curunit'
fio.h:83: warning: data definition has no type or storage class
fio.h:84: error: parse error before "f__units"
fio.h:84: warning: type defaults to `int' in declaration of `f__units'
fio.h:84: warning: data definition has no type or storage class
backspace.c: In function `f_back':
backspace.c:8: error: `b' undeclared (first use in this function)
backspace.c:8: error: (Each undeclared identifier is reported only once
backspace.c:8: error: for each function it appears in.)
backspace.c:9: error: `off_t' undeclared (first use in this function)
backspace.c:9: error: parse error before "v"
backspace.c:11: error: `FILE' undeclared (first use in this function)
backspace.c:11: error: `f' undeclared (first use in this function)
backspace.c:17: error: `errno' undeclared (first use in this function)
backspace.c:39: error: `x' undeclared (first use in this function)
backspace.c:39: warning: implicit declaration of function `ftell'
backspace.c:40: error: `y' undeclared (first use in this function)
backspace.c:45: warning: implicit declaration of function `fseek'
backspace.c:51: error: parse error before "sizeof"
backspace.c:52: warning: implicit declaration of function `fread'
backspace.c:53: error: parse error before "n"
backspace.c:56: error: `w' undeclared (first use in this function)
backspace.c:57: error: `z' undeclared (first use in this function)
backspace.c:65: warning: implicit declaration of function `getc'
backspace.c:67: error: `v' undeclared (first use in this function)
backspace.c:76: error: `EOF' undeclared (first use in this function)
backspace.c: At top level:
fio.h:84: warning: array `f__units' assumed to have one element
make[2]: *** [backspace.lo] Error 1
make[2]: Leaving directory `/usr/delme/gcc-3.3.3/avr/libf2c/libI77'
make[1]: *** [i77] Error 2
make[1]: Leaving directory `/usr/delme/gcc-3.3.3/avr/libf2c'
make: *** [all-target-libf2c] Error 2
---------
NOTE: that I did a search for sys/types.h for example - and I do have it...
[root@mb libI77]# find / -name types.h
/usr/delme/gcc-3.3.3/gcc/ada/types.h
/usr/delme/gcc-3.3.3/gcc/fixinc/tests/base/sys/types.h
/usr/delme/binutils-2.14/include/mpw/sys/types.h
/usr/lib/bcc/include/arch/types.h
/usr/lib/bcc/include/asm/types.h
/usr/lib/bcc/include/generic/types.h
/usr/lib/bcc/include/sys/types.h
/usr/lib/bcc/include/linux/types.h
/usr/lib/bcc/include/linuxmt/types.h
/usr/lib/bcc/include/msdos/types.h
/usr/include/asm/types.h
/usr/include/linux/sunrpc/types.h
/usr/include/linux/types.h
/usr/include/kde/kjs/types.h
/usr/include/kpathsea/types.h
/usr/include/sp/include/types.h
/usr/include/dns/types.h
/usr/include/isc/types.h
/usr/include/curl/types.h
/usr/include/bits/types.h
/usr/include/rpc/types.h
/usr/include/sys/types.h
/usr/include/glibtop/types.h
/usr/include/isccc/types.h
--
Summary: GCC can't find libraries while compiling AVR cross
compiler
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: cmosis5 at hotmail dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14165