Issue |
78883
|
Summary |
Can't build openmp project with python 3.12
|
Labels |
new issue
|
Assignees |
|
Reporter |
liam-clink
|
The build works with Python 3.10, only thing changed to reproduce was using 3.12
```
Linking C shared module projects/openmp/libompd/gdb-plugin/python-module/ompd/ompdModule.so
FAILED: projects/openmp/libompd/gdb-plugin/python-module/ompd/ompdModule.so
: && /usr/bin/cc -fPIC -fPIC -fno-semantic-interposition -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Wcast-qual -Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -Wno-maybe-uninitialized -O3 -DNDEBUG -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics -shared -o projects/openmp/libompd/gdb-plugin/python-module/ompd/ompdModule.so projects/openmp/libompd/gdb-plugin/CMakeFiles/ompdModule.dir/ompdModule.c.o projects/openmp/libompd/gdb-plugin/CMakeFiles/ompdModule.dir/ompdAPITests.c.o /usr/local/lib/libpython3.12.a -ldl && :
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol '_Py_NoneStruct'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(object.o)
>>> referenced by _localemodule.c.h:40 (./Modules/clinic/_localemodule.c.h:40)
>>> _localemodule.o:(_locale_setlocale) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_ValueError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c.h:50 (./Modules/clinic/_localemodule.c.h:50)
>>> _localemodule.o:(_locale_setlocale.cold) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_RuntimeWarning'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c:172 (./Modules/_localemodule.c:172)
>>> _localemodule.o:(_locale_localeconv) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_ValueError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c.h:478 (./Modules/clinic/_localemodule.c.h:478)
>>> _localemodule.o:(_locale_bindtextdomain) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol '_Py_NoneStruct'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(object.o)
>>> referenced by _localemodule.c:730 (./Modules/_localemodule.c:730)
>>> _localemodule.o:(_locale_bindtextdomain) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_OSError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c:740 (./Modules/_localemodule.c:740)
>>> _localemodule.o:(_locale_bindtextdomain) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol '_Py_NoneStruct'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(object.o)
>>> referenced by _localemodule.c.h:354 (./Modules/clinic/_localemodule.c.h:354)
>>> _localemodule.o:(_locale_dcgettext) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_ValueError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c.h:382 (./Modules/clinic/_localemodule.c.h:382)
>>> _localemodule.o:(_locale_dcgettext) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol '_Py_NoneStruct'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(object.o)
>>> referenced by _localemodule.c.h:289 (./Modules/clinic/_localemodule.c.h:289)
>>> _localemodule.o:(_locale_dgettext) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_ValueError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c.h:299 (./Modules/clinic/_localemodule.c.h:299)
>>> _localemodule.o:(_locale_dgettext) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_ValueError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c.h:317 (./Modules/clinic/_localemodule.c.h:317)
>>> _localemodule.o:(_locale_dgettext) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol '_Py_NoneStruct'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(object.o)
>>> referenced by _localemodule.c.h:528 (./Modules/clinic/_localemodule.c.h:528)
>>> _localemodule.o:(_locale_bind_textdomain_codeset) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_ValueError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c.h:538 (./Modules/clinic/_localemodule.c.h:538)
>>> _localemodule.o:(_locale_bind_textdomain_codeset) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol '_Py_NoneStruct'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(object.o)
>>> referenced by _localemodule.c:770 (./Modules/_localemodule.c:770)
>>> _localemodule.o:(_locale_bind_textdomain_codeset) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol '_Py_NoneStruct'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(object.o)
>>> referenced by _localemodule.c.h:417 (./Modules/clinic/_localemodule.c.h:417)
>>> _localemodule.o:(_locale_textdomain) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_ValueError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c.h:427 (./Modules/clinic/_localemodule.c.h:427)
>>> _localemodule.o:(_locale_textdomain) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_OSError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c:701 (./Modules/_localemodule.c:701)
>>> _localemodule.o:(_locale_textdomain) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_ValueError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c.h:252 (./Modules/clinic/_localemodule.c.h:252)
>>> _localemodule.o:(_locale_gettext) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_ValueError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c:623 (./Modules/_localemodule.c:623)
>>> _localemodule.o:(_locale_nl_langinfo) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'PyExc_ValueError'; recompile with -fPIC
>>> defined in /usr/local/lib/libpython3.12.a(exceptions.o)
>>> referenced by _localemodule.c:405 (./Modules/_localemodule.c:405)
>>> _localemodule.o:(_locale_strxfrm) in archive /usr/local/lib/libpython3.12.a
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
collect2: error: ld returned 1 exit status
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs