This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/14165] GCC can't find libraries while compiling AVR cross compiler


------- Additional Comments From cmosis5 at hotmail dot com  2004-02-16 19:16 -------
(In reply to comment #1)
> You have to build in a seperate objdir, read http://gcc.gnu.org/install.html.
 Also for some reasons the 
> fortran 77 libraries are being built.


No, the same problem even when doing that.

So basically I run configure  from /usr/delme, and I put my source in
/usr/delme/gcc-3.3.3 and this should fix that it can't find headers.


creating config.h
config.h is unchanged
echo timestamp > stamp-h
/bin/sh ../libtool --mode=compile /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
/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




Why is it making fortran libraries, and how would I stop it? I DID use
--enable-language-c

Those directions need a bit more work... 
"If you obtained the sources via CVS, srcdir must refer to the top gcc
directory, the one where the MAINTAINERS can be found, and not its gcc
subdirectory, otherwise the build will fail. "

??What are MAINTAINERS??
??What do you mean not its gcc subdirectory?? what directory are you talking about?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14165


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]