• 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/libunwind/0003-Fix-compilation-of-tests-on-alpine-linux-musl-libc.patch
Bernd KuhlsBernd Kuhls committed dee0cf4181417 Jun 2017
Raw file
Source viewDiff to previous
 
1
From 5dcb7cd3cb63bf8a3a5f7531d10f937053930a25 Mon Sep 17 00:00:00 2001
2
From: Tony Kelman <tony@kelman.net>
3
Date: Sun, 31 Jan 2016 08:31:04 +0000
4
Subject: [PATCH] Fix compilation of tests on alpine linux (musl libc)
5
​
6
If we don't link to libexecinfo, as detected by the
7
AC_SEARCH_LIBS(backtrace, execinfo) configure probe, we get
8
​
9
```
10
test-coredump-unwind.o: In function `handle_sigsegv':
11
/home/libunwind/tests/test-coredump-unwind.c:246: undefined reference to
12
`backtrace_symbols_fd'
13
collect2: error: ld returned 1 exit status
14
Makefile:1187: recipe for target 'test-coredump-unwind' failed
15
```
16
​
17
and
18
​
19
```
20
Gtest-init.o: In function `do_backtrace()':
21
Gtest-init.cxx:(.text+0x2f): undefined reference to `_Ux86_64_getcontext'
22
Gtest-init.cxx:(.text+0x48): undefined reference to `_Ux86_64_init_local'
23
Gtest-init.cxx:(.text+0x63): undefined reference to `_Ux86_64_get_reg'
24
Gtest-init.cxx:(.text+0x96): undefined reference to `_Ux86_64_get_proc_name'
25
Gtest-init.cxx:(.text+0x171): undefined reference to `_Ux86_64_step'
26
collect2: error: ld returned 1 exit status
27
Makefile:1063: recipe for target 'Gtest-init' failed
28
```
29
​
30
There are 2 XFAIL and 6 FAIL tests, but it's a start
31
​
32
Backported from upstream master branch:
33
https://github.com/libunwind/libunwind/commit/5dcb7cd3cb63bf8a3a5f7531d10f937053930a25
34
​
35
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
36
---
37
 configure.ac      | 5 +++++
38
 tests/Makefile.am | 4 ++--
39
 2 files changed, 7 insertions(+), 2 deletions(-)
40
​
41
diff --git a/configure.ac b/configure.ac
42
index 6c46cf3..21bae90 100644
43
--- a/configure.ac
44
+++ b/configure.ac
45
@@ -373,6 +373,10 @@ old_LIBS="$LIBS"
46
 LIBS=""
47
 AC_SEARCH_LIBS(backtrace, execinfo)
48
 LIBS="$old_LIBS"
49
+case "$ac_cv_search_backtrace" in
50
+  -l*) BACKTRACELIB=$ac_cv_search_backtrace;;
51
+  *) BACKTRACELIB="";;
52
+esac
53
 
54
 AC_SUBST(build_arch)
55
 AC_SUBST(target_os)
56
@@ -388,6 +392,7 @@ AC_SUBST(PKG_MAINTAINER)
57
 AC_SUBST(enable_cxx_exceptions)
58
 AC_SUBST(enable_debug_frame)
59
 AC_SUBST(DLLIB)
60
+AC_SUBST(BACKTRACELIB)
61
 
62
 AC_PATH_PROG([LATEX2MAN],[latex2man])
63
 if test "x$LATEX2MAN" = "x"; then
  • 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.