[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#786692: gcc-5: FTBFS on hppa: configure error for configure-target-libiberty building hppa64



On 05/29/2015 08:52 PM, John David Anglin wrote:
> On 2015-05-29 2:25 PM, Matthias Klose wrote:
>> I don't think I have any packaging changes which could lead to this.
> Okay.  I didn't see anything in changelog entries.
>>
>> Looking at the build log, I see the CC is overridden in the build target,
>> can you check if removing the
>>    CC="$(CC_for_hppa64_cross)"
>> line helps? fixing this in the VCS, but I don't see how this could be related.
> Yes, CC_for_hppa64_cross is not defined.  Should CC be set or just removed? 

removed.

> Looking down
> at the neon hunk below, it might have same problem.

I should remove all the neon stuff, it's bitrotted anyway.

>> as a last resort, you could configure the hppa64 build with --disable-lto.
> 
> I did try this and various other permutations.  In some cases, the build got to
> the CC_for_hppa64_cross
> hunk but always something wanted target libiberty.  I've wondered if the latter
> hunk is needed.

> I need to look at the buildd results carefully.  I wasn't able to duplicate the
> issue with my own cross although
> I didn't try with gcc-5.

ok, I think I found it. This is a change made by YunQiang Su to build libgnatprj
and libgnatvsn as target libraries, pulling in a dependency

Makefile.def:
+dependencies = { module=all-target-libgnatprj; on=all-target-libiberty; };

Find out how to define this conditionally?

Anyway, please check if this is the real cause. attaching a hack which should
work around that.

Matthias

Index: debian/changelog
===================================================================
--- debian/changelog	(revision 8077)
+++ debian/changelog	(working copy)
@@ -1,3 +1,9 @@
+gcc-5 (5.1.1-9) UNRELEASED; urgency=medium
+
+  * 
+
+ -- Matthias Klose <doko@debian.org>  Fri, 29 May 2015 20:23:31 +0200
+
 gcc-5 (5.1.1-8) unstable; urgency=medium
 
   * Update to SVN 20150528 (r223816, 5.1.1) from the gcc-5-branch.
Index: debian/hppa64-hack.diff
===================================================================
--- debian/hppa64-hack.diff	(revision 0)
+++ debian/hppa64-hack.diff	(working copy)
@@ -0,0 +1,10 @@
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -51365,7 +51365,6 @@
+ all-gnattools: maybe-all-target-libgnatprj
+ all-target-libgnatvsn: maybe-all-target-libada
+ all-target-libgnatprj: maybe-all-target-libgnatvsn
+-all-target-libgnatprj: maybe-all-target-libiberty
+ all-gnattools: maybe-all-target-libstdc++-v3
+ all-lto-plugin: maybe-all-libiberty
+ 
Index: debian/rules2
===================================================================
--- debian/rules2	(revision 8080)
+++ debian/rules2	(working copy)
@@ -1290,6 +1290,8 @@
 	rm -f $(configure_hppa64_stamp) $(build_hppa64_stamp)
 	rm -rf $(builddir_hppa64)
 	mkdir $(builddir_hppa64)
+	patch -p1 -b < debian/hppa64-hack.diff
+	touch -r src/Makefile.in.orig src/Makefile.in
 	: # configure
 	cd $(builddir_hppa64) && \
 	  $(SET_PATH) \

Reply to: