#785 texstudio 2.6.2 fails to build on powerpc, mips and mipsel

None
closed
nobody
None
1
2013-10-11
2013-08-13
Tom
No

Hi all

TeXstudio does not build on mips, mipsel and powerpc. The errors seem to be related, so I report them in the same bugreport (error reported on mips):

#define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.gpregs[29]
^
debughelper.cpp:809:13: note: in expansion of macro 'STACK_FROM_UCONTEXT'
*(char)(&STACK_FROM_UCONTEXT(context)) = this->stack;
^
debughelper.cpp:316:64: error: 'struct mcontext_t' has no member named 'gpregs'
#define RETURNTO_FROM_UCONTEXT(context) (context)->uc_mcontext.gpregs[31]
^
debughelper.cpp:811:13: note: in expansion of macro 'RETURNTO_FROM_UCONTEXT'
*(char
)(&RETURNTO_FROM_UCONTEXT(context)) = this->returnTo;
^
make[1]: [.obj/debughelper.o] Error 1
make[1]: Leaving directory `/«BUILDDIR»/texstudio-2.6.2+debian'
dh_auto_build: make -j1 returned exit code 2
make:
[build-arch] Error 25

The problem seems to be that ucontext on mips/mipsel/powerpc does not provide "gpregs".
On mips/mipsel the sigcontext struct only defines "sc_fpregs" and "sc_regs", but not "gpregs".

On powerpc there seems to be just a small typo:
Use "gp_regs" in most places but "gpregs" in one place...

Hope this helps.

Regards
Tom

Discussion

    • status: open --> closed
    • Group: -->
     
  • Changed it to the names you mentioned (4015 (d7722fa3be94))