This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Errors while making gnatlib


Hi all,

    I'm trying to build a GNAT cross compiler from host=i686-linux-pc to target=powerpc-elf.  After successfully building binutils, gcc, and newlib, I followed the intruction on GCC website to build gnat tools.  I ran into these errors while doing "make gnatlib":

make[2]: Entering directory `/home/pee/XComp_source/CrossGNAT/script/build-ada-tools/gcc/ada/rts'
/home/pee/XComp_source/CrossGNAT/script/XCompiler/bin/powerpc-elf-gcc -B../../ -c -DCROSS_COMPILE -DIN_GCC   `echo -g -O2  -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`        -I. -I.. -I../.. -I/home/pee/XComp_source/CrossGNAT/script/gcc-3.3.2/gcc/ada
-I/home/pee/XComp_source/CrossGNAT/script/gcc-3.3.2/gcc/ada/.. -I/home/pee/XComp_source/CrossGNAT/script/gcc-3.3.2/gcc/ada/../config -I/home/pee/XComp_source/CrossGNAT/script/gcc-3.3.2/gcc/ada/../../include -I./../.. adaint.c
In file included from /home/pee/XComp_source/CrossGNAT/script/XCompiler/powerpc-elf/include/dirent.h:6,
                 from adaint.h:38,
                 from adaint.c:128:
/home/pee/XComp_source/CrossGNAT/script/XCompiler/powerpc-elf/include/sys/dirent.h:12:25: no include path in which to find dirent.h
In file included from adaint.c:128:
adaint.h:71: error: parse error before '*' token
adaint.c:230: error: `MAXPATHLEN' undeclared here (not in a function)
adaint.c:725: error: parse error before "DIR"
adaint.c:725: warning: data definition has no type or storage class
adaint.c:727: error: parse error before '{' token
adaint.c: In function `__gnat_get_env_value_ptr':
adaint.c:1113: warning: assignment makes pointer from integer without a cast
adaint.c: In function `__gnat_locate_exec_on_path':
adaint.c:1827: warning: initialization makes pointer from integer without a cast
make[2]: *** [adaint.o] Error 1
make[2]: Leaving directory `/home/pee/XComp_source/CrossGNAT/script/build-ada-tools/gcc/ada/rts'
make[1]: *** [gnatlib] Error 2
make[1]: Leaving directory `/home/pee/XComp_source/CrossGNAT/script/build-ada-tools/gcc/ada'
make: *** [gnatlib] Error 2


I have dirent.h in my $prefix/$target/include, but I don't know why gcc cannot find it.  Moreover, in adaint.c and adaint.h, it doesn't recogize a type DIR.  Could you let me know if I'm missing any header file or anything?  Thank you very much for your help.

I'm currently using this configuration:

BINUTILSDISTO=binutils-2.14
GCCDISTO=gcc-3.3.2
LINUXDISTO=linux-2.4.3
NEWLIBDISTO=newlib-1.11.0


Pee

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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