public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14165] New: GCC can't find libraries while compiling AVR cross compiler
@ 2004-02-16 17:56 cmosis5 at hotmail dot com
2004-02-16 18:20 ` [Bug c/14165] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: cmosis5 at hotmail dot com @ 2004-02-16 17:56 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/14165] GCC can't find libraries while compiling AVR cross compiler
2004-02-16 17:56 [Bug c/14165] New: GCC can't find libraries while compiling AVR cross compiler cmosis5 at hotmail dot com
@ 2004-02-16 18:20 ` pinskia at gcc dot gnu dot org
2004-02-16 19:16 ` cmosis5 at hotmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-16 18:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-16 18:20 -------
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.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14165
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/14165] GCC can't find libraries while compiling AVR cross compiler
2004-02-16 17:56 [Bug c/14165] New: GCC can't find libraries while compiling AVR cross compiler cmosis5 at hotmail dot com
2004-02-16 18:20 ` [Bug c/14165] " pinskia at gcc dot gnu dot org
@ 2004-02-16 19:16 ` cmosis5 at hotmail dot com
2004-02-16 19:46 ` giovannibajo at libero dot it
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: cmosis5 at hotmail dot com @ 2004-02-16 19:16 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/14165] GCC can't find libraries while compiling AVR cross compiler
2004-02-16 17:56 [Bug c/14165] New: GCC can't find libraries while compiling AVR cross compiler cmosis5 at hotmail dot com
2004-02-16 18:20 ` [Bug c/14165] " pinskia at gcc dot gnu dot org
2004-02-16 19:16 ` cmosis5 at hotmail dot com
@ 2004-02-16 19:46 ` giovannibajo at libero dot it
2004-02-16 20:59 ` cmosis5 at hotmail dot com
2004-02-16 23:31 ` giovannibajo at libero dot it
4 siblings, 0 replies; 6+ messages in thread
From: giovannibajo at libero dot it @ 2004-02-16 19:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-02-16 19:46 -------
You need to say "--enable-languages=c" (language*S*).
MAINTAINERS is a file, you need to run the configure script located in the same
directory that hosts the MAINTAINERS file.
Can you please double-check these things?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14165
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/14165] GCC can't find libraries while compiling AVR cross compiler
2004-02-16 17:56 [Bug c/14165] New: GCC can't find libraries while compiling AVR cross compiler cmosis5 at hotmail dot com
` (2 preceding siblings ...)
2004-02-16 19:46 ` giovannibajo at libero dot it
@ 2004-02-16 20:59 ` cmosis5 at hotmail dot com
2004-02-16 23:31 ` giovannibajo at libero dot it
4 siblings, 0 replies; 6+ messages in thread
From: cmosis5 at hotmail dot com @ 2004-02-16 20:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cmosis5 at hotmail dot com 2004-02-16 20:59 -------
(In reply to comment #3)
> You need to say "--enable-languages=c" (language*S*).
> MAINTAINERS is a file, you need to run the configure script located in the same
> directory that hosts the MAINTAINERS file.
> Can you please double-check these things?
YEAY! thank you. Languages did it. I think we need some argument checking
scripts ;-)
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14165
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/14165] GCC can't find libraries while compiling AVR cross compiler
2004-02-16 17:56 [Bug c/14165] New: GCC can't find libraries while compiling AVR cross compiler cmosis5 at hotmail dot com
` (3 preceding siblings ...)
2004-02-16 20:59 ` cmosis5 at hotmail dot com
@ 2004-02-16 23:31 ` giovannibajo at libero dot it
4 siblings, 0 replies; 6+ messages in thread
From: giovannibajo at libero dot it @ 2004-02-16 23:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-02-16 23:31 -------
It's been discussed lately, and it looks like we cannot do that because of the
way autoconf is designed (that is, we can't barf on illegal --enable-xxxx
because there might be other packages in some subdirectories for which it will
be legal). I'm no autoconf master, but you can review (and join?) the
discussion at:
http://gcc.gnu.org/ml/gcc-patches/2004-02/msg01185.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14165
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-02-16 23:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-16 17:56 [Bug c/14165] New: GCC can't find libraries while compiling AVR cross compiler cmosis5 at hotmail dot com
2004-02-16 18:20 ` [Bug c/14165] " pinskia at gcc dot gnu dot org
2004-02-16 19:16 ` cmosis5 at hotmail dot com
2004-02-16 19:46 ` giovannibajo at libero dot it
2004-02-16 20:59 ` cmosis5 at hotmail dot com
2004-02-16 23:31 ` giovannibajo at libero dot it
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).