• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gauche/0003-Fix-missing-libc-version.h-build-error-uClibc-x86-_6.patch
Baruch SiachBaruch Siach committed 6bd52568c8a08 Jun 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 4b9692c93d658015087f19016b2bd0c9dfbccee6 Mon Sep 17 00:00:00 2001
2
From: Bernd Kuhls <bernd.kuhls@t-online.de>
3
Date: Sun, 28 May 2017 20:21:09 +0200
4
Subject: [PATCH] Fix 'missing libc-version.h' build error (uClibc/x86[_64])
5
 (fix commit 3d34255)
6
​
7
uClibc defines __GLIBC__ but does not contain libc-version.h file.
8
​
9
* include/private/gcconfig.h [(I386 || X86_64) && LINUX && __GLIBC__]
10
(GLIBC_2_19_TSX_BUG): Do not define (and do not include
11
gnu/libc-version.h) if __UCLIBC__.
12
​
13
[baruch: cherry pick from upstream bdwgc commit 047230b71d42140]
14
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
15
---
16
Upstream status: patch applied to bdwgc; will propagate to gauche on the next
17
synch of its bundled bdwgc
18
​
19
 gc/include/private/gcconfig.h | 4 ++--
20
 1 file changed, 2 insertions(+), 2 deletions(-)
21
​
22
diff --git a/gc/include/private/gcconfig.h b/gc/include/private/gcconfig.h
23
index 80920e5af570..f063664c3f52 100644
24
--- a/gc/include/private/gcconfig.h
25
+++ b/gc/include/private/gcconfig.h
26
@@ -1420,7 +1420,7 @@
27
 #         define GC_PREFETCH_FOR_WRITE(x) \
28
             __asm__ __volatile__ ("prefetchw %0" : : "m"(*(char *)(x)))
29
 #       endif
30
-#       if defined(__GLIBC__)
31
+#       if defined(__GLIBC__) && !defined(__UCLIBC__)
32
           /* Workaround lock elision implementation for some glibc.     */
33
 #         define GLIBC_2_19_TSX_BUG
34
 #         include <gnu/libc-version.h> /* for gnu_get_libc_version() */
35
@@ -2431,7 +2431,7 @@
36
           /* FIXME: This seems to be fixed in GLibc v2.14.              */
37
 #         define GETCONTEXT_FPU_EXCMASK_BUG
38
 #       endif
39
-#       if defined(__GLIBC__)
40
+#       if defined(__GLIBC__) && !defined(__UCLIBC__)
41
           /* Workaround lock elision implementation for some glibc.     */
42
 #         define GLIBC_2_19_TSX_BUG
43
 #         include <gnu/libc-version.h> /* for gnu_get_libc_version() */
44
-- 
45
2.11.0
46
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.