[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] build error on Linux x86
From: |
Mario Emmenlauer |
Subject: |
[Libunwind-devel] build error on Linux x86 |
Date: |
Sun, 12 Mar 2017 22:26:40 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
I'm trying to build libunwind as a prerequisite to another library
on different flavors of Linux. It works on all x86_64 platforms I've
tried, but fails on Ubuntu 16.04 x86 (gcc 5.4) with below error.
I guess I'm doing something wrong or missing a dependency, can you
please help? I've tried libunwind 1.2-rc1 and 1.2.
PS: on a completely unrelated note, the website mentions 1.1 as the
latest download, but 1.2 is available from the download folder.
This is the error I get:
[...]
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include
-I../include/tdep-x86_64 -I.
-I/data/bdaci01/BioDataAnalysis/artifacts-ubuntu-i386-gcc5.4.0/thirdparty/include
-D_GNU_SOURCE -DNDEBUG
-I/data/bdaci01/BioDataAnalysis/artifacts-ubuntu-i386-gcc5.4.0/thirdparty/include
-U_FORTIFY_SOURCE -fexceptions -Wall -Wsign-compare -MT elf64.lo -MD -MP -MF
.deps/elf64.Tpo -c elf64.c -fPIC -DPIC -o .libs/elf64.o
In file included from elf64.h:7:0,
from elf64.c:2:
elfxx.h:42:25: error: redefinition of '_Uelf64_valid_object'
# define elf_w(x) _Uelf64_##x
^
elfxx.h:58:1: note: in expansion of macro 'elf_w'
elf_w (valid_object) (struct elf_image *ei)
^
In file included from ./elf32.h:7:0,
from ../include/tdep-x86/libunwind_i.h:35,
from ../include/tdep/libunwind_i.h:23,
from ../include/libunwind_i.h:344,
from elfxx.h:33,
from elf64.h:7,
from elf64.c:2:
./elfxx.h:42:25: note: previous definition of '_Uelf64_valid_object' was here
# define elf_w(x) _Uelf64_##x
^
./elfxx.h:58:1: note: in expansion of macro 'elf_w'
elf_w (valid_object) (struct elf_image *ei)
^
In file included from elf64.h:7:0,
from elf64.c:2:
elfxx.h:70:1: error: redefinition of 'elf_map_image'
elf_map_image (struct elf_image *ei, const char *path)
^
In file included from ./elf32.h:7:0,
from ../include/tdep-x86/libunwind_i.h:35,
from ../include/tdep/libunwind_i.h:23,
from ../include/libunwind_i.h:344,
from elfxx.h:33,
from elf64.h:7,
from elf64.c:2:
./elfxx.h:70:1: note: previous definition of 'elf_map_image' was here
elf_map_image (struct elf_image *ei, const char *path)
^
Makefile:3709: recipe for target 'elf64.lo' failed
make[4]: *** [elf64.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory
'/data/bdaci01/BioDataAnalysis/tmp-ubuntu-i386-gcc5.4.0/thirdparty/libunwind-1.2/src'
[...]
All the best,
Mario Emmenlauer
- [Libunwind-devel] build error on Linux x86,
Mario Emmenlauer <=