public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/29157] New: gnattools fail on cross compilation - Makefile bug?
@ 2006-09-21 3:37 belandor at web dot de
2006-09-21 3:41 ` [Bug ada/29157] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: belandor at web dot de @ 2006-09-21 3:37 UTC (permalink / raw)
To: gcc-bugs
I'm trying to build a cross-ada compiler (using different toolchains) with
gcc-4.1.1 or gcc-4.2.0-20060919.
In both cases, when building the last stage, the make process fails building
gnattools (i.e. gnattools-cross).
Error message:
make -C ../gcc/ada/tools -f ../Makefile \
"CC=gcc" "CFLAGS=-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes " "LDFLAGS=" "ADAFLAGS=-gnatpg -gnata" "INCLUDES=-I. -I..
-I../.. -I/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/ada
-I/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/ada/../config
-I/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/ada/../../include
-I/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/ada/.."
"ADA_INCLUDES=-I/usr/lib/gnat-gcc/i686-pc-linux-gnu/4.1/adalib/
/usr/lib/ada/i686-pc-linux-gnu-gnat-gcc-4.1/gtkada/adalib/
/home/ap/crossGNAT/gcc-4.1.1/install/lib/gcc/i686-pc-linux-gnu/4.1.1/adalib/../adainclude
-I/usr/lib/gnat-gcc/i686-pc-linux-gnu/4.1/adalib/
/usr/lib/ada/i686-pc-linux-gnu-gnat-gcc-4.1/gtkada/adalib/
/home/ap/crossGNAT/gcc-4.1.1/install/lib/gcc/i686-pc-linux-gnu/4.1.1/adalib/
-I. -I/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/ada"
"exeext="
"fsrcdir=/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/ada"
"srcdir=/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/ada"
"GNATMAKE=gnatmake" "GNATLINK=gnatlink" "GNATBIND=gnatbind" "TOOLSCASE=cross"
"LIBGNAT=" INCLUDES="" \
gnatmake-re gnatlink-re
make[3]: Entering directory
`/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1-final/gcc/ada/tools'
gcc -c -DCROSS_COMPILE -DIN_GCC `echo -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes |sed -e 's/-pedantic//g' -e
's/-Wtraditional//g'`
/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/ada/link.c \
-o link.o
gnatmake -I/usr/lib/gnat-gcc/i686-pc-linux-gnu/4.1/adalib/
/usr/lib/ada/i686-pc-linux-gnu-gnat-gcc-4.1/gtkada/adalib/
/home/ap/crossGNAT/gcc-4.1.1/install/lib/gcc/i686-pc-linux-gnu/4.1.1/adalib/../adainclude
-I/usr/lib/gnat-gcc/i686-pc-linux-gnu/4.1/adalib/
/usr/lib/ada/i686-pc-linux-gnu-gnat-gcc-4.1/gtkada/adalib/
/home/ap/crossGNAT/gcc-4.1.1/install/lib/gcc/i686-pc-linux-gnu/4.1.1/adalib/
-I. -I/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/ada -u
sdefault --GCC="gcc "
gnatmake: File name missing
make[3]: *** [gnatmake-re] Error 4
make[3]: Leaving directory
`/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1-final/gcc/ada/tools'
make[2]: *** [gnattools-cross] Error 2
make[2]: Leaving directory
`/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1-final/gnattools'
make[1]: *** [all-gnattools] Error 2
make[1]: Leaving directory
`/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1-final'
make: *** [all] Error 2
make: Leaving directory
`/home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1-final'
So it seems, that the include directories for gnatmake are not properly passed
on (-I and several paths without -I). In addition, there should be a file name
at the end of the command line.
This happens reproducably with gcc-4.1.1 and the current gcc-SVN, using uClibc
and using a glibc C target, as well as rtems.
BTW: to get gcc-4.1.1 GNAT compiling, I exchanged s-wchcon.ad[bs] with the
current SVN versions.
--
Summary: gnattools fail on cross compilation - Makefile bug?
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belandor at web dot de
GCC build triplet: i386-linux-gnu
GCC host triplet: i386-pc-linux-gnu
GCC target triplet: arm-linux-uclibcgnueabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29157
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/29157] gnattools fail on cross compilation - Makefile bug?
2006-09-21 3:37 [Bug ada/29157] New: gnattools fail on cross compilation - Makefile bug? belandor at web dot de
@ 2006-09-21 3:41 ` pinskia at gcc dot gnu dot org
2006-09-21 3:42 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-21 3:41 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29157
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/29157] gnattools fail on cross compilation - Makefile bug?
2006-09-21 3:37 [Bug ada/29157] New: gnattools fail on cross compilation - Makefile bug? belandor at web dot de
2006-09-21 3:41 ` [Bug ada/29157] " pinskia at gcc dot gnu dot org
@ 2006-09-21 3:42 ` pinskia at gcc dot gnu dot org
2006-09-21 3:58 ` belandor at web dot de
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-21 3:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-21 03:42 -------
So how did you configure GCC?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29157
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/29157] gnattools fail on cross compilation - Makefile bug?
2006-09-21 3:37 [Bug ada/29157] New: gnattools fail on cross compilation - Makefile bug? belandor at web dot de
2006-09-21 3:41 ` [Bug ada/29157] " pinskia at gcc dot gnu dot org
2006-09-21 3:42 ` pinskia at gcc dot gnu dot org
@ 2006-09-21 3:58 ` belandor at web dot de
2006-09-21 3:59 ` belandor at web dot de
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: belandor at web dot de @ 2006-09-21 3:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from belandor at web dot de 2006-09-21 03:57 -------
it seems, that my RTS_DIR variable is wrong.
the Makefile ($BUILDDIR/gnattools/Makefile) extracts or adapts the directory
using
RTS_DIR:=$(strip $(subst \,/,$(shell gnatls -v | grep adalib )))
right before the rule for gnattools-cross: (line 229)
However,
"gnatls -v | grep adalib" on my machine returns 3 paths, which somehow end up
unprocessed in RTS_DIR.
/usr/lib/gnat-gcc/i686-pc-linux-gnu/4.1/adalib/
/usr/lib/ada/i686-pc-linux-gnu-gnat-gcc-4.1/gtkada/adalib/
/home/ap/crossGNAT/gcc-4.1.1/install/lib/gcc/i686-pc-linux-gnu/4.1.1/adalib/
I just replaced the RTS_DIR := by the fixed value of /home/ap/... - This
allowed compilation to finish.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29157
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/29157] gnattools fail on cross compilation - Makefile bug?
2006-09-21 3:37 [Bug ada/29157] New: gnattools fail on cross compilation - Makefile bug? belandor at web dot de
` (2 preceding siblings ...)
2006-09-21 3:58 ` belandor at web dot de
@ 2006-09-21 3:59 ` belandor at web dot de
2006-09-21 4:33 ` belandor at web dot de
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: belandor at web dot de @ 2006-09-21 3:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from belandor at web dot de 2006-09-21 03:59 -------
my configure line:
CC="gcc" /home/ap/colibri/buildroot/toolchain_build_arm/gcc-4.1.1/configure \
--prefix=/home/ap/colibri/buildroot/build_arm/staging_dir \
--build=i386-pc-linux-gnu \
--host=i386-pc-linux-gnu \
--target=arm-linux-uclibcgnueabi \
--enable-languages=c,ada \
--enable-shared \
--disable-__cxa_atexit \
--enable-target-optspace \
--with-gnu-ld \
--disable-nls \
--enable-threads \
--disable-multilib
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29157
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/29157] gnattools fail on cross compilation - Makefile bug?
2006-09-21 3:37 [Bug ada/29157] New: gnattools fail on cross compilation - Makefile bug? belandor at web dot de
` (3 preceding siblings ...)
2006-09-21 3:59 ` belandor at web dot de
@ 2006-09-21 4:33 ` belandor at web dot de
2007-05-04 9:13 ` charlet at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: belandor at web dot de @ 2006-09-21 4:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from belandor at web dot de 2006-09-21 04:33 -------
okay, aparently something had set the environment options
ADA_INCLUDE_PATH and
ADA_OBJECT_PATH
to the additional paths. That would explain, why stuff went haywire. Is there
any place to document this? - Maybe someone else might stumble over this, too.
(Along the lines of: when compiling GNAT, make sure that gnatls -v only gives
one path as output, if not, check the above mentioned environment vars)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29157
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/29157] gnattools fail on cross compilation - Makefile bug?
2006-09-21 3:37 [Bug ada/29157] New: gnattools fail on cross compilation - Makefile bug? belandor at web dot de
` (4 preceding siblings ...)
2006-09-21 4:33 ` belandor at web dot de
@ 2007-05-04 9:13 ` charlet at gcc dot gnu dot org
2007-12-07 14:18 ` sam at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: charlet at gcc dot gnu dot org @ 2007-05-04 9:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from charlet at gcc dot gnu dot org 2007-05-04 10:13 -------
install.texi would be the place to add this documentation.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29157
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/29157] gnattools fail on cross compilation - Makefile bug?
2006-09-21 3:37 [Bug ada/29157] New: gnattools fail on cross compilation - Makefile bug? belandor at web dot de
` (5 preceding siblings ...)
2007-05-04 9:13 ` charlet at gcc dot gnu dot org
@ 2007-12-07 14:18 ` sam at gcc dot gnu dot org
2007-12-07 14:32 ` sam at gcc dot gnu dot org
2007-12-07 14:38 ` sam at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-12-07 14:18 UTC (permalink / raw)
To: gcc-bugs
--
sam at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |sam at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-12-07 14:18:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29157
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/29157] gnattools fail on cross compilation - Makefile bug?
2006-09-21 3:37 [Bug ada/29157] New: gnattools fail on cross compilation - Makefile bug? belandor at web dot de
` (6 preceding siblings ...)
2007-12-07 14:18 ` sam at gcc dot gnu dot org
@ 2007-12-07 14:32 ` sam at gcc dot gnu dot org
2007-12-07 14:38 ` sam at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-12-07 14:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from sam at gcc dot gnu dot org 2007-12-07 14:32 -------
Subject: Bug 29157
Author: sam
Date: Fri Dec 7 14:31:48 2007
New Revision: 130675
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130675
Log:
gcc/
PR ada/29157
* doc/install.texi: Explain how to check for a clean environment when
building GNAT.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/doc/install.texi
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29157
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/29157] gnattools fail on cross compilation - Makefile bug?
2006-09-21 3:37 [Bug ada/29157] New: gnattools fail on cross compilation - Makefile bug? belandor at web dot de
` (7 preceding siblings ...)
2007-12-07 14:32 ` sam at gcc dot gnu dot org
@ 2007-12-07 14:38 ` sam at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-12-07 14:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from sam at gcc dot gnu dot org 2007-12-07 14:38 -------
Fixed in SVN trunk
--
sam at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29157
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-12-07 14:38 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-21 3:37 [Bug ada/29157] New: gnattools fail on cross compilation - Makefile bug? belandor at web dot de
2006-09-21 3:41 ` [Bug ada/29157] " pinskia at gcc dot gnu dot org
2006-09-21 3:42 ` pinskia at gcc dot gnu dot org
2006-09-21 3:58 ` belandor at web dot de
2006-09-21 3:59 ` belandor at web dot de
2006-09-21 4:33 ` belandor at web dot de
2007-05-04 9:13 ` charlet at gcc dot gnu dot org
2007-12-07 14:18 ` sam at gcc dot gnu dot org
2007-12-07 14:32 ` sam at gcc dot gnu dot org
2007-12-07 14:38 ` sam at gcc dot gnu dot org
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).