[Top][All Lists]

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

Re: libsigsegv fails to compile under OpenWRT and LibreCMC

From: Bruno Haible
Subject: Re: libsigsegv fails to compile under OpenWRT and LibreCMC
Date: Thu, 20 Feb 2020 20:53:44 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-171-generic; KDE/5.18.0; x86_64; ; )

> So I tried to set the environment vraiables as you said, and got a different
> error:
> In file included from fault.h:37:0,
>                  from handler-unix.c:71,
>                  from handler.c:20:
> handler-unix.c: In function 'sigsegv_handler':
> fault-linux-i386.h:47:78: error: 'REG_ESP' undeclared (first use in this 
> function)
>  # define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) 
> ucp)->uc_mcontext.gregs[REG_ESP]
> ^

fault-linux-i386.h is not suitable for your situation. The build should use

Most likely, in this build, you have not provided the correct --host option.

In the previous build you gave:
  ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux 
Here the --target is not needed (since libsigsegv is not a compiler, there
is no notion of "target"), and --build is not needed (since it will be
autodetected anyway). The essential setting is --host=mips-openwrt-linux,
and this one IS NEEDED.


reply via email to

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