[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Error making avr-gcc (compiling libssp/ssp.c)
From: |
Eric Weddington |
Subject: |
RE: [avr-gcc-list] Error making avr-gcc (compiling libssp/ssp.c) |
Date: |
Thu, 14 Dec 2006 19:29:18 -0700 |
AFAIK, in AVR GCC 4.x, you must add this to the configure:
--disable-libssp
Eric Weddington
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Rick Mann
> Sent: Thursday, December 14, 2006 7:21 PM
> To: address@hidden
> Subject: [avr-gcc-list] Error making avr-gcc (compiling libssp/ssp.c)
>
> Hi. I've successfully built the toolchain several times before. I
> don't believe I've ever seen this error. I had gcc 4.1.0, binutils
> 2.16.1, and other bits from around that time. I just downloaded gcc
> 4.1.1, and tried to build it without updating anything else. I don't
> know if that's part of the problem.
>
> Here's what I get. Thanks for any input!
>
> $ cd gcc-4.1.1
> $ mkdir darwin
> $ cd darwin
> $ ../configure --prefix=/usr/local/avr --target=avr --enable-
> languages=c,c++
> $ make CC="cc -no-cpp-precomp"
>
>
> /Users/rmann/Projects/AVR/gcc/gcc-4.1.1/darwin/./gcc/xgcc -B/Users/
> rmann/Projects/AVR/gcc/gcc-4.1.1/darwin/./gcc/ -B/usr/local/avr/avr/
> bin/ -B/usr/local/avr/avr/lib/ -isystem /usr/local/avr/avr/include -
> isystem /usr/local/avr/avr/sys-include -DHAVE_CONFIG_H -I.
> -I../../../
> libssp -I. -Wall -O2 -g -O2 -MT ssp.lo -MD -MP -MF .deps/ssp.Tpo -
> c ../../../libssp/ssp.c -o ssp.o
> ../../../libssp/ssp.c: In function '__guard_setup':
> ../../../libssp/ssp.c:70: warning: implicit declaration of function
> 'open'
> ../../../libssp/ssp.c:70: error: 'O_RDONLY' undeclared (first use in
> this function)
> ../../../libssp/ssp.c:70: error: (Each undeclared identifier is
> reported only once
> ../../../libssp/ssp.c:70: error: for each function it appears in.)
> ../../../libssp/ssp.c:73: error: 'ssize_t' undeclared (first use in
> this function)
> ../../../libssp/ssp.c:73: error: expected ';' before 'size'
> ../../../libssp/ssp.c:75: warning: implicit declaration of function
> 'close'
> ../../../libssp/ssp.c:76: error: 'size' undeclared (first use
> in this
> function)
> ../../../libssp/ssp.c: In function 'fail':
> ../../../libssp/ssp.c:100: error: 'O_WRONLY' undeclared
> (first use in
> this function)
> ../../../libssp/ssp.c:109: warning: implicit declaration of function
> 'alloca'
> ../../../libssp/ssp.c:109: warning: incompatible implicit
> declaration
> of built-in function 'alloca'
> ../../../libssp/ssp.c:119: error: 'ssize_t' undeclared (first use in
> this function)
> ../../../libssp/ssp.c:119: error: expected ';' before 'wrote'
> ../../../libssp/ssp.c:120: error: 'wrote' undeclared (first use in
> this function)
> ../../../libssp/ssp.c:151: warning: implicit declaration of function
> '_exit'
> ../../../libssp/ssp.c:151: warning: incompatible implicit
> declaration
> of built-in function '_exit'
> make[3]: *** [ssp.lo] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-target-libssp] Error 2
> make: *** [all] Error 2
>
>
> --
> Rick
>
>
>
>
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>