The resulting error message is 'can't find unistd.h'. Release: 3.1 How-To-Repeat: Create a combined tree that includes GCC and newlib <path>/configure --target=powerpc-eabisim make make -C gcc gnatlib
Fix: Move gnatlib out to a toplevel directory and use CC_FOR_TARGET as passed down by the toplevel Makefile.
Hello, can you confirm whether this bug is still present? Thanks, Dara
See Dara's comment.
Geoff, I'm resending this in case it wasn't forwarded. I was just wondering what the status of this bug was. Thanks, Dara
Subject: Re: gnatlib fails to build with newlib because it doesn't set up the include path > Date: 2 Jun 2003 03:08:41 -0000 > From: "dhazeghi@yahoo.com" <gcc-bugzilla@gcc.gnu.org> > I'm resending this in case it wasn't forwarded. I was just wondering what the status of this bug > was. Thanks, I don't know anything more than what's in the report.
Confirmed with gcc 3.3 branch (20030615). Combined tree build fails with: make -C gcc gnatlib_and_tools ... make -C rts CC="../../xgcc -B../../" \ INCLUDES="-I. -I.. -I../.. -I/home/dara/src/gcc/ada -I/home/dara/src/gcc/ada/.. -I/home/ dara/src/gcc/ada/../config -I/home/dara/src/gcc/ada/../../include -I./../.." \ CFLAGS="-g -O2 -fexceptions -DIN_RTS" \ srcdir=/home/dara/src/gcc/ada VPATH=/home/dara/src/gcc/ada \ -f ../Makefile adaint.o argv.o cio.o cstreams.o errno.o exit.o raise.o sysdep.o aux-io.o init.o cal.o adafinal.o tracebak.o expect.o mkdir.o prefix.o make[2]: Entering directory `/home/dara/objdir/gcc/ada/rts' ../../xgcc -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/dara/src/gcc/ada -I/home/ dara/src/gcc/ada/.. -I/home/dara/src/gcc/ada/../config -I/home/dara/src/gcc/ada/../../include -I./../.. adaint.c In file included from adaint.c:56: /home/dara/src/gcc/tsystem.h:75:19: stdio.h: No such file or directory /home/dara/src/gcc/tsystem.h:78:23: sys/types.h: No such file or directory /home/dara/src/gcc/tsystem.h:81:19: errno.h: No such file or directory /home/dara/src/gcc/tsystem.h:88:20: string.h: No such file or directory /home/dara/src/gcc/tsystem.h:89:20: stdlib.h: No such file or directory /home/dara/src/gcc/tsystem.h:90:20: unistd.h: No such file or directory /home/dara/src/gcc/tsystem.h:96:18: time.h: No such file or directory
Confirmed with cross compiler to i386-pc-cygwin on mainline. Maybe these should all be merged into one report: gnatlib_and_tools makefile is broken, and should be rewritten.
Most likely will be fixed when PR 5911 is fixed.
This issue can be fixed independently of PR 5911, and won't get fixed automatically even if 5911 is addressed, so I am removing the dependency to avoid confusion. Arno
Subject: Bug 6852 CVSROOT: /cvs/gcc Module name: gcc Changes by: charlet@gcc.gnu.org 2005-03-15 16:10:23 Modified files: gcc/ada : Makefile.in Log message: 2005-03-08 Doug Rupp <rupp@adacore.com> Bernard Banner <banner@adacore.com> Vincent Celier <celier@adacore.com> Arnaud Charlet <charlet@adacore.com> PR ada/6852 This change works fine when gnatlib is built from the gcc directory, but does not work when using the libada Makefile, since GCC_FOR_TARGET is not passed to ada/Makefile.in, so more work is needed by a Makefile/configure expert. * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library. set GMEM_LIB on ia64 linux to add optional support for gnatmem. Setup gnatlink switch -M for x86_64 linux, as it is already setup for Linux x86. (gnatlib-shared-default): Use GNATLIBCFLAGS as well. Run ranlib on libgccprefix.a Define PREFIX_OBJS for Darwin, to build libgccprefix. (ADA_INCLUDE_SRCS): Split Ada packages. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/Makefile.in.diff?cvsroot=gcc&r1=1.112&r2=1.113
Adding nathanael in cc: Nathanel, could you have a look at the comment #10 about passing GCC_FOR_TARGET down to libada/Makefile ? Arno
*** Bug 21276 has been marked as a duplicate of this bug. ***
This PR should now be fixed, AFAIK. Fixed by: << libada: 2005-12-05 Paolo Bonzini <bonzini@gnu.org> * Makefile.in (FLAGS_TO_PASS): Add GCC_FOR_TARGET. gcc/ada: 2005-12-05 Paolo Bonzini <bonzini@gnu.org> * Makefile.in (gnatlib): Fix regex, using \. instead of . when a period is meant. >>