public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Errors while making gnatlib
@ 2003-11-04 21:26 Pee Seeumpornroj
  0 siblings, 0 replies; 2+ messages in thread
From: Pee Seeumpornroj @ 2003-11-04 21:26 UTC (permalink / raw)
  To: gcc-help; +Cc: pee

Dear GCC team,

    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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Errors while making gnatlib
@ 2003-11-08 11:23 Dara Hazeghi
  0 siblings, 0 replies; 2+ messages in thread
From: Dara Hazeghi @ 2003-11-08 11:23 UTC (permalink / raw)
  To: pee; +Cc: gcc-help

Hello,

this is basically what bug 6879
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6879> is
about.

To work around it, you should be able to modify
/home/pee/XComp_source/CrossGNAT/script/build-ada-tools/gcc/ada/Makefile
changing either ADA_INCLUDES, or INCLUDES to include
the  "-I $prefix/$target/include" (making sure to
substitute appropriately for prefix and target).
Cheers,

Dara

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-08 11:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-04 21:26 Errors while making gnatlib Pee Seeumpornroj
2003-11-08 11:23 Dara Hazeghi

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).