Skip to contentSkip to conversation

New: glibc-2.20 fails to build for sparc-buildroot-linux-gnu

Buildroot bugzilla at busybox.net 1 participant 4 messages Mar 17, 2015

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=7941

Host: x86_64
Target: sparc-buildroot-linux-gnu
Summary: glibc-2.20 fails to build for
sparc-buildroot-linux-gnu
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: uwe at hermann-uwe.de
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Created attachment 5926
--> https://bugs.busybox.net/attachment.cgi?id=5926
build log

I've tried to build glibc for in git HEAD as of today.

Here's the first error message, full log as attachment.

../sysdeps/sparc/sparc32/sem_trywait.c: In function '__new_sem_trywait':
../sysdeps/sparc/sparc32/sem_trywait.c:35:11: error: dereferencing pointer to incomplete type
if (isem->value > 0)

           ^
In file included from ../include/list.h:45:0,
                 from ../sysdeps/sparc/nptl/tls.h:28,
                 from ../include/errno.h:27,
                 from ../sysdeps/sparc/sparc32/sem_trywait.c:20:
../sysdeps/sparc/sparc32/sem_trywait.c:38:43: error: dereferencing pointer to
incomplete type
  val = atomic_decrement_if_positive (&isem->value);
                                           ^
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 7941] glibc-2.20 fails to build for sparc-buildroot-linux-gnu

https://bugs.busybox.net/show_bug.cgi?id=7941

Gustavo Zacarias <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #1 from Gustavo Zacarias <[email protected]> 2015-03-17 21:47:38 UTC --- Thanks for the headsup, just sent a patch to the list to disable 2.20 for sparc which leaves 2.21 (tested working with qemu).

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 7941] glibc-2.20 fails to build for sparc-buildroot-linux-gnu

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=7941

--- Comment #2 from mail at waldemar-brodkorb.de 2015-03-17 21:50:33 UTC --- You could also apply this simple patch:
diff -Nur glibc-2.20.orig/sysdeps/sparc/sparc32/sem_trywait.c glibc-2.20/sysdeps/sparc/sparc32/sem_trywait.c
--- glibc-2.20.orig/sysdeps/sparc/sparc32/sem_trywait.c 2014-09-07 10:09:09.000000000 +0200
+++ glibc-2.20/sysdeps/sparc/sparc32/sem_trywait.c 2014-09-13
10:21:44.000000000 +0200
@@ -22,6 +22,7 @@
#include <lowlevellock.h>
#include <internaltypes.h>
#include <semaphore.h>
+#include <sparc-nptl.h>

#include <shlib-compat.h>

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 7941] glibc-2.20 fails to build for sparc-buildroot-linux-gnu

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=7941

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Thomas Petazzoni <[email protected]> 2015-03-17 22:19:59 UTC --- Fixed by
http://git.buildroot.net/buildroot/commit/?id=dbf7da63188d461e738dcfcaa436b84baa23143c,
which basically disallows glibc 2.20 on SPARC.

Waldemar, I noticed your proposal, but since glibc 2.21 just builds/works out of the box on SPARC, there isn't much point in carrying a build fix for glibc 2.20.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.