bug-libsigsegv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libsigsegv fails to compile under OpenWRT and LibreCMC


From: Jeronimo Pellegrini
Subject: libsigsegv fails to compile under OpenWRT and LibreCMC
Date: Thu, 20 Feb 2020 09:29:47 -0300
User-agent: Mutt/1.10.1 (2018-07-13)

Hello,

I am trying to package libsigsegv for LibreCMC and
OpenWRT, but compilation currently fails with this error:

In file included from fault-linux-mips-old.h:18:0,
                 from fault.h:37,
                 from handler-unix.c:71,
                 from handler.c:20:
/home/jeronimo/pkg/openwrt-19.07-mips-old/staging_dir/toolchain-mips_24kc_gcc-7.5.0_musl/include/asm/sigcontext.h:34:8:
 error: redefinition of 'struct sigcontext'
 struct sigcontext {
        ^~~~~~~~~~
In file included from handler-unix.c:22:0,
                 from handler.c:20:
sigsegv.h:146:16: note: originally defined here
 typedef struct sigcontext *stackoverflow_context_t;
                ^~~~~~~~~~
In file included from handler.c:20:0:
handler-unix.c: In function 'sigsegv_handler':
handler-unix.c:353:57: warning: initialization from incompatible pointer type 
[-Wincompatible-pointer-types]
                       stackoverflow_context_t context = 
(SIGSEGV_FAULT_CONTEXT);

This was compiled with -j1, and compilation was done inside the OpenWRT
buildroot (same happens in the LibreCMC buildroot, as they are very similar)
Packages are compiled against musl (not GNU libc)

Is there a simple way to fix this? And is there anything else I can do to help
debug?

The method for compiling are here:
https://gitlab.com/jpellegrini/openwrt-packages/-/blob/master/instructions.md

and the Makefiles I have used are here:
https://gitlab.com/jpellegrini/openwrt-packages/-/tree/master/not-yet-working/package

I have tried teh latest stable version, and also a git snapshot.


This is part of an attempt to package several languages for wireless routers:
https://gitlab.com/jpellegrini/openwrt-packages

I could not yet package any Common Lisp implementation -- nor Smalltalk either,
and I wanted to get libsigsegv working in order to try to package Clisp and
GNU Smalltalk.

Thanks for any heklp you may provide with this.
Jeronimo




reply via email to

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