#67477 closed defect (fixed)

pcre2 fails to build for x86_64 on 10.6.8: clang: error: assembler command failed with exit code 1

Reported by: barracuda156 Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: snowleopard, x86_64 Cc:
Port: pcre2

Description

/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_pcre/pcre2/work/.tmp/cc-kooZ1w.s:21960:no such instruction: `lzcnt %eax, %eax'
/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_pcre/pcre2/work/.tmp/cc-kooZ1w.s:21968:no such instruction: `tzcnt %eax, %eax'
mv -f src/.deps/libpcre2_8_la-pcre2_valid_utf.Tpo src/.deps/libpcre2_8_la-pcre2_valid_utf.Plo
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/clang -DHAVE_CONFIG_H -I. -I./src  "-I./src" -I/opt/x86_64/include -DPCRE2_CODE_UNIT_WIDTH=8 -fvisibility=hidden     -D_THREAD_SAFE  -pipe -Os -arch x86_64 -MT src/libpcre2_8_la-pcre2_xclass.lo -MD -MP -MF src/.deps/libpcre2_8_la-pcre2_xclass.Tpo -c -o src/libpcre2_8_la-pcre2_xclass.lo `test -f 'src/pcre2_xclass.c' || echo './'`src/pcre2_xclass.c
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
make[1]: *** [src/libpcre2_8_la-pcre2_jit_compile.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I./src -I./src -I/opt/x86_64/include -DPCRE2_CODE_UNIT_WIDTH=8 -fvisibility=hidden -D_THREAD_SAFE -pipe -Os -arch x86_64 -MT src/libpcre2_8_la-pcre2_xclass.lo -MD -MP -MF src/.deps/libpcre2_8_la-pcre2_xclass.Tpo -c src/pcre2_xclass.c  -fno-common -DPIC -o src/.libs/libpcre2_8_la-pcre2_xclass.o
mv -f src/.deps/libpcre2_8_la-pcre2_ucd.Tpo src/.deps/libpcre2_8_la-pcre2_ucd.Plo
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I./src -I./src -I/opt/x86_64/include -DPCRE2_CODE_UNIT_WIDTH=8 -fvisibility=hidden -D_THREAD_SAFE -pipe -Os -arch x86_64 -MT src/libpcre2_8_la-pcre2_xclass.lo -MD -MP -MF src/.deps/libpcre2_8_la-pcre2_xclass.Tpo -c src/pcre2_xclass.c -o src/libpcre2_8_la-pcre2_xclass.o >/dev/null 2>&1
mv -f src/.deps/libpcre2_8_la-pcre2_xclass.Tpo src/.deps/libpcre2_8_la-pcre2_xclass.Plo
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I./src -I./src -I/opt/x86_64/include -DPCRE2_CODE_UNIT_WIDTH=8 -fvisibility=hidden -D_THREAD_SAFE -pipe -Os -arch x86_64 -MT src/libpcre2_8_la-pcre2_match.lo -MD -MP -MF src/.deps/libpcre2_8_la-pcre2_match.Tpo -c src/pcre2_match.c -o src/libpcre2_8_la-pcre2_match.o >/dev/null 2>&1
mv -f src/.deps/libpcre2_8_la-pcre2_match.Tpo src/.deps/libpcre2_8_la-pcre2_match.Plo
make[1]: Leaving directory `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_pcre/pcre2/work/pcre2-10.42'
make: *** [all] Error 2

Attachments (1)

pcre2_10.6.8.txt (57.6 KB) - added by barracuda156 18 months ago.

Download all attachments as: .zip

Change History (5)

Changed 18 months ago by barracuda156

Attachment: pcre2_10.6.8.txt added

comment:1 Changed 18 months ago by jmroot (Joshua Root)

This must be with cxx_stdlib=libstdc++?

comment:2 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)

The log shows that for this port MacPorts has selected the C++ compiler /usr/bin/llvm-g++-4.2, which does use libstdc++, but there's no evidence in the log that that compiler has ever been invoked or that this port contains any C++ code so I'm not sure that's relevant.

comment:3 Changed 18 months ago by jmroot (Joshua Root)

Yes but it wouldn't be using /usr/bin/clang on 10.6 with cxx_stdlib=libc++.

comment:4 Changed 10 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In b200eb19052f10c9af58ae5634472eeaf16854ce/macports-ports (master):

pcre2: allow build on x86 with libstdc++

Closes: #67477
Closes: #69073

Note: See TracTickets for help on using tickets.