[pcre-dev] [Bug 2240] New: Failed build on MIPS ci20 with JI…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
New-Topics: [pcre-dev] [Bug 2240] Failed build on MIPS ci20 with JIT support, [pcre-dev] [Bug 2240] Failed build on MIPS ci20 with JIT support, [pcre-dev] [Bug 2240] Failed build on MIPS ci20 with JIT support
Subject: [pcre-dev] [Bug 2240] New: Failed build on MIPS ci20 with JIT support
https://bugs.exim.org/show_bug.cgi?id=2240

            Bug ID: 2240
           Summary: Failed build on MIPS ci20 with JIT support
           Product: PCRE
           Version: 8.41
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: noloader@???
                CC: pcre-dev@???


I'm working on a MIPS ci20 dev-board (https://creatordev.io/ci20.html). There's
not much support so it is hard to find stable images. The stable image is old
Debian so I need to build some things from sources, like Git.

This appears to be a different issue than Bug 1350, JIT doesn't compile on
MIPS/uclibc.

The error is:

sljit/sljitNativeMIPS_common.c: In function 'sljit_has_cpu_feature':
sljit/sljitNativeMIPS_common.c:506:3: error: a label can only be part of a
statement and a declaration is not a statement

And:

$ cat -n sljit/sljitNativeMIPS_common.c
   ...
   499  SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_has_cpu_feature(sljit_s32
feature_type)
   500  {
   501          switch (feature_type) {
   502          case SLJIT_HAS_FPU:
   503  #ifdef SLJIT_IS_FPU_AVAILABLE
   504                  return SLJIT_IS_FPU_AVAILABLE;
   505  #elif defined(__GNUC__)
   506                  sljit_sw fir;
   507                  asm ("cfc1 %0, $0" : "=r"(fir));
   508                  return (fir >> 22) & 0x1;
   509  #else
   510  #error "FIR check is not implemented for this architecture"
   511  #endif
   ...


**********

pcre-8.41 configuration summary:

    Install prefix .................. : /usr/local
    C preprocessor .................. : gcc -E
    C compiler ...................... : gcc
    C++ preprocessor ................ : g++ -E
    C++ compiler .................... : g++
    Linker .......................... : /usr/bin/ld
    C preprocessor flags ............ : -I/usr/local/include -DNDEBUG
    C compiler flags ................ :  -g2 -O2 -march=native -fPIC
-fvisibility=hidden
    C++ compiler flags .............. : -g2 -O2 -march=native -fPIC
-fvisibility=hidden -fvisibility-inlines-hidden
    Linker flags .................... : -L/usr/local/lib -Wl,-R,/usr/local/lib
-Wl,--enable-new-dtags
    Extra libraries ................. :  -ldl -lpthread


    Build 8 bit pcre library ........ : yes
    Build 16 bit pcre library ....... : no
    Build 32 bit pcre library ....... : no
    Build C++ library ............... : yes
    Enable JIT compiling support .... : yes
    Enable UTF-8/16/32 support ...... : no
    Unicode properties .............. : no
    Newline char/sequence ........... : lf
    \R matches only ANYCRLF ......... : no
    EBCDIC coding ................... : no
    EBCDIC code for NL .............. : n/a
    Rebuild char tables ............. : no
    Use stack recursion ............. : yes
    POSIX mem threshold ............. : 10
    Internal link size .............. : 2
    Nested parentheses limit ........ : 250
    Match limit ..................... : 10000000
    Match limit recursion ........... : MATCH_LIMIT
    Build shared libs ............... : yes
    Build static libs ............... : yes
    Use JIT in pcregrep ............. : yes
    Buffer size for pcregrep ........ : 20480
    Link pcregrep with libz ......... : yes
    Link pcregrep with libbz2 ....... : yes
    Link pcretest with libedit ...... : no
    Link pcretest with libreadline .. : no
    Valgrind support ................ : no
    Code coverage ................... : no


rm -f pcre_chartables.c
ln -s ./pcre_chartables.c.dist pcre_chartables.c
make  all-am
make[1]: Entering directory `/home/Build-Scripts/pcre-8.41'
  CC       libpcre_la-pcre_byte_order.lo
  CC       libpcre_la-pcre_compile.lo
  CC       libpcre_la-pcre_config.lo
  CC       libpcre_la-pcre_dfa_exec.lo
  CC       libpcre_la-pcre_exec.lo
  CC       libpcre_la-pcre_fullinfo.lo
  CC       libpcre_la-pcre_get.lo
  CC       libpcre_la-pcre_globals.lo
  CC       libpcre_la-pcre_jit_compile.lo
In file included from sljit/sljitLir.c:1747:0,
                 from pcre_jit_compile.c:62:
sljit/sljitNativeMIPS_common.c: In function 'sljit_has_cpu_feature':
sljit/sljitNativeMIPS_common.c:506:3: error: a label can only be part of a
statement and a declaration is not a statement
make[1]: *** [libpcre_la-pcre_jit_compile.lo] Error 1
make[1]: Leaving directory `/home/Build-Scripts/pcre-8.41'
make: *** [all] Error 2


--
You are receiving this mail because:
You are on the CC list for the bug.