Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #222880

Bug#887592: linux: 4.9.65-3 FTBFS on sparc64: arch/sparc/lib/multi3.S missing patch

From Tom Turelinckx <tom@turelinckx.be>
Newsgroups linux.debian.bugs.rc
Subject Bug#887592: linux: 4.9.65-3 FTBFS on sparc64: arch/sparc/lib/multi3.S missing patch
Date 2018-01-18 11:40 +0100
Message-ID <v9fLX-4kh-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Source: linux
Version: 4.9.65-3
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)

linux 4.9.65-3 (Stretch 9.3), as well as 4.9.51-1 and 4.9.47-1 FTBFS on sparc64:

/build/linux-4.9.65/arch/sparc/lib/multi3.S:2:24: fatal error: asm/export.h: No such file or directory
 #include <asm/export.h>
                        ^
compilation terminated.
/build/linux-4.9.65/scripts/Makefile.build:398: recipe for target 'arch/sparc/lib/multi3.o' failed

It seems commit 1b4af13ff2cc "sparc64: Add __multi3 for gcc 7.x and later." was backported to 4.9 in 4.9.32 (commit 4b684e6474d0), but /debian/patches/bugfix/sparc/revert-sparc-move-exports-to-definitions.patch doesn't patch /arch/sparc/lib/multi3.S.

Applying the following patch, taken from linux 4.11.11-1's revert-sparc-move-exports-to-definitions.patch allows the build to succeed on sparc64 for linux 4.9.65-3, as well as 4.9.51-1 and 4.9.47-1:

--- a/arch/sparc/lib/multi3.S
+++ b/arch/sparc/lib/multi3.S
@@ -1,5 +1,4 @@
 #include <linux/linkage.h>
-#include <asm/export.h>
 
 	.text
 	.align	4
@@ -32,4 +31,3 @@ ENTRY(__multi3) /* %o0 = u, %o1 = v */
 	retl
 	 add	%g1, %o0, %o0
 ENDPROC(__multi3)
-EXPORT_SYMBOL(__multi3)

Would it be possible to include this patch in future linux 4.9.x packages? Thanks!

Best regards,
Tom Turelinckx

-- System Information:
Debian Release: 9.0
Architecture: sparc64

Kernel: Linux 4.9.0-3-sparc64-smp (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Back to linux.debian.bugs.rc | Previous | Next | Find similar | Unroll thread


Thread

Bug#887592: linux: 4.9.65-3 FTBFS on sparc64: arch/sparc/lib/multi3.S missing patch Tom Turelinckx <tom@turelinckx.be> - 2018-01-18 11:40 +0100

csiph-web