[pcre-dev] [Bug 1326] New: pcre-8.33-RC1 build on x86 fails …

Top Page
Delete this message
Author: pgnpcre
Date:  
To: pcre-dev
New-Topics: [pcre-dev] [Bug 1326] pcre-8.33-RC1 build on x86 fails @ "error: PIC register clobbered by '%ebx' in 'asm'"
Subject: [pcre-dev] [Bug 1326] New: pcre-8.33-RC1 build on x86 fails @ "error: PIC register clobbered by '%ebx' in 'asm'"
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1326
           Summary: pcre-8.33-RC1 build on x86 fails @ "error: PIC register
                    clobbered by '%ebx' in 'asm'"
           Product: PCRE
           Version: 8.32
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: pgnet.dev+pcre@???
                CC: pcre-dev@???



hi,

on x86,

        uname -a
                Linux test 3.4.11-2.16-xen #1 SMP Wed Sep 26 17:05:00 UTC 2012
(259fc87) i686 i686 i386 GNU/Linux


building pcre from trunk

        cd pcre
        svn info
                Path: .
                Working Copy Root Path: /usr/local/src/pcre
                URL: svn://vcs.exim.org/pcre/code/trunk
                Repository Root: svn://vcs.exim.org/pcre
                Repository UUID: 2f5784b3-3f2a-0410-8824-cb99058d5e15
                Revision: 1235
                Node Kind: directory
                Schedule: normal
                Last Changed Author: ph10
                Last Changed Rev: 1235
                Last Changed Date: 2012-12-10 05:36:29 -0800 (Mon, 10 Dec 2012)


config is,

        sh autogen.sh
        ./configure \
        --disable-static \
        --enable-jit \
        --with-link-size=2 \
        --with-match-limit=10000000 \
        --enable-utf \
        --enable-unicode-properties \
        --enable-newline-is-lf


with summary of,

        pcre-8.33-RC1 configuration summary:


            Install prefix .................. : /usr/local
            C preprocessor .................. : /usr/bin/gcc-4.7 -E
            C compiler ...................... : /usr/bin/gcc-4.7
            C++ preprocessor ................ : /usr/bin/g++-4.7 -E
            C++ compiler .................... : /usr/bin/g++-4.7
            Linker .......................... : /usr/bin/ld
            C preprocessor flags ............ :
            C compiler flags ................ : -pthread -fmessage-length=0 -O2
-march=native -mtune=native -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -fvisibility=hidden
            C++ compiler flags .............. : -fmessage-length=0 -O2
-march=native -mtune=native -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -fvisibility=hidden
-fvisibility-inlines-hidden
            Linker flags .................... :
            Extra libraries ................. :


            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 ...... : yes
            Unicode properties .............. : yes
            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
            Match limit ..................... : 10000000
            Match limit recursion ........... : MATCH_LIMIT
            Build shared libs ............... : yes
            Build static libs ............... : no
            Use JIT in pcregrep ............. : yes
            Buffer size for pcregrep ........ : 20480
            Link pcregrep with libz ......... : no
            Link pcregrep with libbz2 ....... : no
            Link pcretest with libedit ...... : no
            Link pcretest with libreadline .. : no
            Valgrind support ................ : no
            Code coverage ................... : no


subsequent build fails

        make
                rm -f pcre_chartables.c
                ln -s ./pcre_chartables.c.dist pcre_chartables.c
                make  all-am
                make[1]: Entering directory `/usr/local/src/pcre'
                  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_globals.lo
                  CC       libpcre_la-pcre_get.lo
                  CC       libpcre_la-pcre_jit_compile.lo
                  CC       libpcre_la-pcre_maketables.lo
                  CC       libpcre_la-pcre_newline.lo
                  CC       libpcre_la-pcre_ord2utf8.lo
                  CC       libpcre_la-pcre_refcount.lo
                  CC       libpcre_la-pcre_string_utils.lo
                  CC       libpcre_la-pcre_study.lo
                  CC       libpcre_la-pcre_tables.lo
                  CC       libpcre_la-pcre_ucd.lo
                  CC       libpcre_la-pcre_valid_utf8.lo
                  CC       libpcre_la-pcre_version.lo
                  CC       libpcre_la-pcre_xclass.lo
                  CC       libpcre_la-pcre_chartables.lo
                  CC       libpcreposix_la-pcreposix.lo
                  CXX      libpcrecpp_la-pcrecpp.lo
                  CXX      libpcrecpp_la-pcre_scanner.lo
                  CXX      libpcrecpp_la-pcre_stringpiece.lo
                  CC       pcretest-pcretest.o
                  CC       pcretest-pcre_printint.o
                  CC       pcregrep-pcregrep.o
                  CC       pcre_jit_test-pcre_jit_test.o
                  CXX      pcrecpp_unittest-pcrecpp_unittest.o
                  CXX      pcre_scanner_unittest-pcre_scanner_unittest.o
                  CXX     
pcre_stringpiece_unittest-pcre_stringpiece_unittest.o
                In file included from sljit/sljitLir.c:1325:0,
                                 from pcre_jit_compile.c:62:
                sljit/sljitNativeX86_common.c: In function
'sljit_emit_op_flags.isra.32.constprop.62':
                sljit/sljitNativeX86_common.c:287:2: error: PIC register
clobbered by '%ebx' in 'asm'
                sljit/sljitNativeX86_common.c: In function 'sljit_emit_op1':
                sljit/sljitNativeX86_common.c:287:2: error: PIC register
clobbered by '%ebx' in 'asm'
                pkg-config libpcre --libs --cflags
                make[1]: *** [libpcre_la-pcre_jit_compile.lo] Error 1
                make[1]: *** Waiting for unfinished jobs....
                make[1]: Leaving directory `/usr/local/src/pcre'
                make: *** [all] Error 2


on x86_64, all's well -- build's without error.

prior builds of 0.82-RC1 were fine on both x86 & x86_64. this is new behavior
with this latest pull.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email