Skip to content

Fails to build with lib32-pcre2 installed on system #61

@ejconlon

Description

@ejconlon

Hi, I'm on Arch and I have both pcre2 and lib32-pcre2 installed. There is a problem building with recent releases:

  build/temp.linux-x86_64-cpython-314/pcre_ext/util.o -L/usr/lib -L/usr/lib64 -L/usr/lib32
      -L~/.local/share/uv/python/cpython-3.14.0-linux-x86_64-gnu/lib -ldl
      -o build/lib.linux-x86_64-cpython-314/pcre_ext_c.cpython-314-x86_64-linux-gnu.so
      /usr/lib/libpcre2-8.so /usr/lib32/libpcre2-8.so

      [stderr]
      /usr/bin/ld: /usr/lib32/libpcre2-8.so: error adding symbols: file in wrong format
      collect2: error: ld returned 1 exit status
      error: command '/usr/bin/cc' failed with exit code 1

It's passing /usr/lib32/libpcre2-8.so to the linker when it shouldn't! Note that right before it is the correct lib.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions