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]

Error while building GCC-3.3 for sh-elf target


Hi,
I have been tried to build the gcc for sh-elf target. I got the following
error. Please let me know, any fix for the same. 
 
The procedure how I tried to build.
 
The sources I used
 
binutils-2.14
gcc-3.3
 
step 1:  [for binutils]
 
./configure --prefix=/opt/build --target=sh-elf
 
step 2. [for gcc]
 
./configure --prefix=/opt/build --target=sh-elf --enable-languages=c
--without-headers --with-newlib --disable-shared 2>&1 | tee configure.log
 
I got the following error:
 
In file included from embed-bb.c:40:
../../gcc-3.3-core/gcc/tsystem.h:72:19: stdio.h: No
such file or directory
../../gcc-3.3-core/gcc/tsystem.h:75:23: sys/types.h:
No such file or directory
../../gcc-3.3-core/gcc/tsystem.h:78:19: errno.h: No
such file or directory
embed-bb.c:1282:19: stdio.h: No such file or directory
In file included from embed-bb.c:1284:
../../gcc-3.3-core/gcc/gcov-io.h:32:19: stdio.h: No
such file or directory
../../gcc-3.3-core/gcc/gcov-io.h:33:23: sys/types.h:
No such file or directory
In file included from embed-bb.c:1284:
../../gcc-3.3-core/gcc/gcov-io.h:37: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:38: warning: function
declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h:39: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:40: warning: function
declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h:45: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:46: warning: function
declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h:47: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:48: warning: function
declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h:49: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:50: warning: function
declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h:51: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:52: warning: function
declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h:152: warning:
function declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h: In function
`__write_gcov_type':
../../gcc-3.3-core/gcc/gcov-io.h:153: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:152: warning: type of
`file' defaults to `int'
../../gcc-3.3-core/gcc/gcov-io.h:161: warning:
implicit declaration of function `fwrite'
../../gcc-3.3-core/gcc/gcov-io.h:161: warning:
comparison between signed and unsigned
../../gcc-3.3-core/gcc/gcov-io.h: At top level:
../../gcc-3.3-core/gcc/gcov-io.h:166: warning:
function declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h: In function
`__write_long':
../../gcc-3.3-core/gcc/gcov-io.h:167: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:166: warning: type of
`file' defaults to `int'
../../gcc-3.3-core/gcc/gcov-io.h:175: warning:
comparison between signed and unsigned
../../gcc-3.3-core/gcc/gcov-io.h: At top level:
../../gcc-3.3-core/gcc/gcov-io.h:189: warning:
function declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h: In function
`__read_gcov_type':
../../gcc-3.3-core/gcc/gcov-io.h:190: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:189: warning: type of
`file' defaults to `int'
../../gcc-3.3-core/gcc/gcov-io.h:195: warning:
implicit declaration of function `fread'
../../gcc-3.3-core/gcc/gcov-io.h:195: warning:
comparison between signed and unsigned
../../gcc-3.3-core/gcc/gcov-io.h: At top level:
../../gcc-3.3-core/gcc/gcov-io.h:203: warning:
function declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h: In function
`__read_long':
../../gcc-3.3-core/gcc/gcov-io.h:204: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:203: warning: type of
`file' defaults to `int'
../../gcc-3.3-core/gcc/gcov-io.h:209: warning:
comparison between signed and unsigned
../../gcc-3.3-core/gcc/gcov-io.h: At top level:
../../gcc-3.3-core/gcc/gcov-io.h:220: warning:
function declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h: In function
`__write_gcov_string':
../../gcc-3.3-core/gcc/gcov-io.h:222: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:220: warning: type of
`file' defaults to `int'
../../gcc-3.3-core/gcc/gcov-io.h:220: warning: type of
`delim' defaults to `int'
../../gcc-3.3-core/gcc/gcov-io.h:245: warning:
comparison between signed and unsigned
../../gcc-3.3-core/gcc/gcov-io.h: At top level:
../../gcc-3.3-core/gcc/gcov-io.h:260: warning:
function declaration isn't a prototype
../../gcc-3.3-core/gcc/gcov-io.h: In function
`__read_gcov_string':
../../gcc-3.3-core/gcc/gcov-io.h:262: error: parse
error before "FILE"
../../gcc-3.3-core/gcc/gcov-io.h:260: warning: type of
`file' defaults to `int'
../../gcc-3.3-core/gcc/gcov-io.h:260: warning: type of
`delim' defaults to `int'
../../gcc-3.3-core/gcc/gcov-io.h:292: warning:
implicit declaration of function `fseek'
../../gcc-3.3-core/gcc/gcov-io.h:292: error:
`SEEK_CUR' undeclared (first use in this function)
../../gcc-3.3-core/gcc/gcov-io.h:292: error: (Each
undeclared identifier is reported only once
../../gcc-3.3-core/gcc/gcov-io.h:292: error: for each
function it appears in.)
embed-bb.c:1285:20: string.h: No such file or
directory
embed-bb.c: In function `__bb_exit_func':
embed-bb.c:1334: error: `FILE' undeclared (first use
in this function)
embed-bb.c:1334: error: `da_file' undeclared (first
use in this function)
embed-bb.c:1344: warning: implicit declaration of
function `fopen'
embed-bb.c:1363: warning: implicit declaration of
function `fprintf'
embed-bb.c:1363: error: `stderr' undeclared (first use
in this function)
embed-bb.c:1393: error: `SEEK_CUR' undeclared (first
use in this function)
embed-bb.c:1398: warning: implicit declaration of
function `clearerr'
embed-bb.c:1413: warning: implicit declaration of
function `strlen'
embed-bb.c:1436: error: `SEEK_SET' undeclared (first
use in this function)
embed-bb.c:1502: warning: implicit declaration of
function `fclose'
embed-bb.c: In function `__bb_init_func':
embed-bb.c:1558: warning: implicit declaration of
function `atexit'
make[2]: *** [libgcc/./embed-bb.o] Error 1
make[2]: Leaving directory
`/root/wtengine/build-gcc-core/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory
`/root/wtengine/build-gcc-core/gcc'
make: *** [all-gcc] Error 2

Regards
Raja S


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