[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-libsigsegv] ‘struct sigcontext’ red efinition on mips64el-linux-gnu
From: |
Ludovic Courtès |
Subject: |
[bug-libsigsegv] ‘struct sigcontext’ red efinition on mips64el-linux-gnu |
Date: |
Sat, 25 May 2013 17:01:20 +0200 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Hello,
When cross-compiling to mips64el-linux-gnu (N32 ABI), with libc 2.17, I
hit the following error (this is a -j build, so the output is interleaved):
--8<---------------cut here---------------start------------->8---
libtool: compile: mips64el-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g
-O2 -c handler.c -o handler.o
libtool: compile: mips64el-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g
-O2 -c dispatcher.c -o dispatcher.o
libtool: compile: mips64el-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g
-O2 -c stackvma.c -o stackvma.o
In file included from fault-linux-mips-old.h:18:0,
from fault.h:37,
from handler-unix.c:71,
from handler.c:20:
/nix/store/7gnw4px0dmw48b144ikpgf9fls93676r-linux-libre-headers-cross-mips64el-linux-gnu-3.3.8/include/asm/sigcontext.h:57:8:
error: redefinition of 'struct sigcontext'
In file included from handler-unix.c:22:0,
from handler.c:20:
sigsegv.h:118:16: note: originally defined here
libtool: compile: mips64el-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -g
-O2 -c leave.c -o leave.o
In file included from handler.c:20:0:
handler-unix.c: In function 'sigsegv_handler':
handler-unix.c:307:57: warning: initialization from incompatible pointer type
[enabled by default]
make[2]: *** [handler.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/tmp/nix-build-libsigsegv-2.10.drv-0/libsigsegv-2.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/tmp/nix-build-libsigsegv-2.10.drv-0/libsigsegv-2.10'
make: *** [all] Error 2
--8<---------------cut here---------------end--------------->8---
I worked around it by commenting out the ‘#include <asm/sigcontext.h>’
line from fault-linux-mips-old.h [0].
I suppose the problem also manifests with native builds.
Thanks,
Ludo’.
[0]
http://git.savannah.gnu.org/cgit/guix.git/commit/?id=9aa949a4b6cb3f0501458f82cc1a33dba0130a57
Use “guix build libsigsegv --target=mips64el-linux-gnu” to reproduce
with Guix.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-libsigsegv] ‘struct sigcontext’ red efinition on mips64el-linux-gnu,
Ludovic Courtès <=