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

Bug#958909: gcc-10: fails to build sparc64 cross compiler with multilib



Source: gcc-10
Version: 10-20200411-1
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
Control: block 881687 by -1
Control: affects -1 + src:gcc-9

In #881687, YunQiang Su sent a patch that disentangles multilibs in
dpkg-cross for mipsen. The problem is that after dpkg-cross, the
relevant ld.so paths end up conflicting and some need to be discarded.
This issue also happens to affect sparc64 as both 32bit sparc and
sparc64 use ld-linux.so.2. In order to make the patch from #881687 work
for sparc64, support from gcc-N (also affects gcc-9 at least) is needed.
Like it does for mipsen, it needs to pass the relevant -l flag to
dh_shlibdeps. Please consider applying the attached patch to implement
that. The bug log in #881687 is a little confusing, but the last mail
from YunQiang Su should clear most confusion.

Helmut
--- a/debian/rules.defs
+++ b/debian/rules.defs
@@ -2245,6 +2245,8 @@
 	  $(with_build_sysroot)/$(usr_lib64)) \
 	$(if $(findstring mipsn32,$(DEB_TARGET_ARCH)), \
 	  $(with_build_sysroot)/$(usr_libn32)) \
+	$(if $(filter sparc64,$(DEB_TARGET_ARCH)), \
+	  $(with_build_sysroot)/$(usr_lib64)) \
 	$(if $(filter yes,$(biarchsf) $(biarchhf)), \
 	  $(with_build_sysroot)/usr/$(call mlib_to_march,$(2))/lib) \
 	$(if $(filter yes, $(with_common_libs)),, \

Reply to: