[Top][All Lists]

[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)


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:
 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 
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
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.


    Use “guix build libsigsegv --target=mips64el-linux-gnu” to reproduce
    with Guix.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]