diff mbox

Two build != host fixes

Message ID 2121964.d7M4cCrKEc@polaris
State New
Headers show

Commit Message

Eric Botcazou Dec. 12, 2013, 3:23 p.m. UTC
> arm-linux-gnueabihf-gcc -c -I./
> -I/home/ed/gnu/x/arm-linux-gnueabihf-linux64/lib/gcc/arm-linux-gnueabihf/4.
> 9.0/adalib/../adainclude
> -I/home/ed/gnu/x/arm-linux-gnueabihf-linux64/lib/gcc/arm-linux-gnueabihf/4.
> 9.0/adalib/ -I. -I/home/ed/gnu/x/gcc-4.9-20131208/gcc/ada -g -O2 -W -Wall
> -gnatpg -gnata -I- /home/ed/gnu/x/gcc-4.9-20131208/gcc/ada/makeutl.adb
> 
> 
> arm-linux-gnueabihf-gcc -c -I./
> -I/home/ed/gnu/x/arm-linux-gnueabihf-linux64/lib/gcc/arm-linux-gnueabihf/4.
> 9.0/adalib/../adainclude
> -I/home/ed/gnu/x/arm-linux-gnueabihf-linux64/lib/gcc/arm-linux-gnueabihf/4.
> 9.0/adalib/ -I. -I/home/ed/gnu/x/gcc-4.9-20131208/gcc/ada -g -O2 -W -Wall
> -gnatpg -gnata -I- /home/ed/gnu/x/gcc-4.9-20131208/gcc/ada/prj-env.adb
> 
> 
> 
> /home/ed/gnu/x/arm-linux-gnueabihf-linux64: where the build=host
> target=arm-linux-gnueabihf compiler is installed.

OK, I think that this compiler is misconfigured, could you try this


and rebuild this compiler?

Comments

Bernd Edlinger Dec. 13, 2013, 8:08 a.m. UTC | #1
Hi Eric,


>
> OK, I think that this compiler is misconfigured, could you try this
>
> Index: gcc-interface/Makefile.in
> ===================================================================
> --- gcc-interface/Makefile.in (revision 205918)
> +++ gcc-interface/Makefile.in (working copy)
> @@ -1903,7 +1903,7 @@ ifeq ($(strip $(filter-out powerpc% linu
> endif
>
> # ARM linux, GNU eabi
> -ifeq ($(strip $(filter-out arm% linux-gnueabi,$(target_cpu) $(target_os))),)
> +ifeq ($(strip $(filter-out arm% linux-gnueabi%,$(target_cpu) $(target_os))),)
> LIBGNAT_TARGET_PAIRS = \
> a-intnam.ads<a-intnam-linux.ads \
> s-inmaop.adb<s-inmaop-posix.adb \
>
> and rebuild this compiler?
>
> --
> Eric Botcazou

OK, now it works. Thanks.


I wonder if you could add some really good comments in the system.ads
what's the problem and how to fix it if the No_Implicit_Dynamic_Code
makes problems like these?


Bernd.
Eric Botcazou Dec. 13, 2013, 8:21 a.m. UTC | #2
> OK, now it works.

Thanks for confirming, I've installed the patch.

> I wonder if you could add some really good comments in the system.ads
> what's the problem and how to fix it if the No_Implicit_Dynamic_Code
> makes problems like these?

I think that we need to catch the problem earlier, that is to say stop the 
build of the Ada library if no configuration is selected in the Makefile.

I'll try to come up with something along these lines.
diff mbox

Patch

Index: gcc-interface/Makefile.in
===================================================================
--- gcc-interface/Makefile.in   (revision 205918)
+++ gcc-interface/Makefile.in   (working copy)
@@ -1903,7 +1903,7 @@  ifeq ($(strip $(filter-out powerpc% linu
 endif
 
 # ARM linux, GNU eabi
-ifeq ($(strip $(filter-out arm% linux-gnueabi,$(target_cpu) $(target_os))),)
+ifeq ($(strip $(filter-out arm% linux-gnueabi%,$(target_cpu) $(target_os))),)
   LIBGNAT_TARGET_PAIRS = \
   a-intnam.ads<a-intnam-linux.ads \
   s-inmaop.adb<s-inmaop-posix.adb \