oss4 does not build on ppc64el on groovy

Bug #1891565 reported by Thadeu Lima de Souza Cascardo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
binutils (Ubuntu)
Invalid
Undecided
Unassigned
oss4 (Ubuntu)
Fix Released
Medium
Thadeu Lima de Souza Cascardo

Bug Description

When building the focal version of oss4 with groovy version of binutils, it fails with:

/tmp/ccoZchTf.s: Assembler messages:
/tmp/ccoZchTf.s: Error: invalid attempt to declare external version name as default in symbol `.snd_pcm_hw_params_set_rate_near@@ALSA_0.9.0rc4'
make[1]: *** [Makefile:16: pcm.lo] Error 1

Downgrading binutils to 2.34-6ubuntu1 fixes the problem. This works with gcc-9 9.3.0-10ubuntu2. Upgrading to groovy gcc-9 9.3.0-17ubuntu1 will force the upgrade of binutils, so can't be tested with the working version of binutils. Using the latest version of gcc-9 or gcc-10 from groovy with the broken binutils is still broken, so a complete upgrade does not fix the problem.

The following diff does fix the problem with binutils 2.35-2ubuntu1, though:
$ diff -u lib/libsalsa/alsa-symbols.h.old lib/libsalsa/alsa-symbols.h
--- lib/libsalsa/alsa-symbols.h.old 2020-08-13 22:47:28.249358919 +0000
+++ lib/libsalsa/alsa-symbols.h 2020-08-13 22:43:35.730423956 +0000
@@ -35,7 +35,7 @@
        __asm__ (".symver ." #real ",." #name "@" #version)
 # define default_symbol_version(real, name, version) \
        __asm__ (".symver " #real "," #name "@@" #version); \
- __asm__ (".symver ." #real ",." #name "@@" #version)
+// __asm__ (".symver ." #real ",." #name "@@" #version)
 #else
 # define symbol_version(real, name, version) \
        __asm__ (".symver " #real "," #name "@" #version)

Tags: patch
Changed in oss4 (Ubuntu):
assignee: nobody → Thadeu Lima de Souza Cascardo (cascardo)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

So, dot-symbols on powerpc are not a thing on userspace since a while (from gcc 3.4 times). And, then, I realized this header comes directly from alsa, and for a different reason, this same section has already been dropped there. So applying the same changes makes sense here.

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

Now building on ppa:cascardo/ppa.

Changed in binutils (Ubuntu):
status: New → Invalid
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package oss4 - 4.2-build2010-5ubuntu7

---------------
oss4 (4.2-build2010-5ubuntu7) groovy; urgency=medium

  * Fixes build on ppc64el with binutils 2.35 (LP: #1891565)

 -- Thadeu Lima de Souza Cascardo <email address hidden> Fri, 14 Aug 2020 18:40:15 -0300

Changed in oss4 (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.