Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928902 - dev-libs/gobject-introspection-1.78.1 does not compile with dev-libs/glib-2.78.4-r1 compiled with -ftrapv (causes a trap that makes ninja fail)
Summary: dev-libs/gobject-introspection-1.78.1 does not compile with dev-libs/glib-2.7...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-07 19:38 UTC by Tohka
Modified: 2024-04-07 23:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,135.19 KB, text/x-log)
2024-04-07 19:38 UTC, Tohka
Details
emerge-info.txt (emerge-info.txt,18.03 KB, text/plain)
2024-04-07 19:39 UTC, Tohka
Details
build.log (build.log,154.49 KB, text/x-log)
2024-04-07 22:37 UTC, Tohka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tohka 2024-04-07 19:38:17 UTC
Created attachment 889769 [details]
build.log

FAILED: giscanner/_giscanner.cpython-311-x86_64-linux-musl.so 
clang  -o giscanner/_giscanner.cpython-311-x86_64-linux-musl.so giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o -Wl,--as-needed -Wl,--allow-shlib-undefined -shared -fPIC -mtune=skylake -march=skylake -O2 -pipe -fcf-protection=full -fstack-clash-protection -fstack-protector-strong -ftrapv -ftrivial-auto-var-init=zero -Wl,-O2 -Wl,-z,defs -Wl,-z,now -Wl,-z,relro -Wl,--start-group giscanner/libgiscanner.a /usr/lib/libglib-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgio-2.0.so -Wl,--export-dynamic /usr/lib/libgmodule-2.0.so -Wl,--end-group -pthread
ld.lld: error: undefined symbol: PyModule_Create2
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(PyInit__giscanner)

ld.lld: error: undefined symbol: PyModule_GetDict
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(PyInit__giscanner)

ld.lld: error: undefined symbol: PyType_Type
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(PyInit__giscanner)

ld.lld: error: undefined symbol: PyType_GenericAlloc
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(PyInit__giscanner)

ld.lld: error: undefined symbol: PyType_GenericNew
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(PyInit__giscanner)

ld.lld: error: undefined symbol: PyType_Ready
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(PyInit__giscanner)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(PyInit__giscanner)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(PyInit__giscanner)

ld.lld: error: undefined symbol: PyDict_SetItemString
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(PyInit__giscanner)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(PyInit__giscanner)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(PyInit__giscanner)

ld.lld: error: undefined symbol: _PyArg_ParseTuple_SizeT
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_init)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_append_filename)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_parse_file)
>>> referenced 2 more times

ld.lld: error: undefined symbol: PyList_New
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_errors)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_comments)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_symbols)
>>> referenced 1 more times

ld.lld: error: undefined symbol: PyUnicode_FromString
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_errors)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_comments)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_comments)
>>> referenced 4 more times

ld.lld: error: undefined symbol: PyList_SetItem
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_errors)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_comments)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_symbols)
>>> referenced 1 more times

ld.lld: error: undefined symbol: _Py_NoneStruct
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_comments)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_symbols)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_append_filename)
>>> referenced 14 more times

ld.lld: error: undefined symbol: _Py_BuildValue_SizeT
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_comments)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(type_get_child_list)

ld.lld: error: undefined symbol: _Py_Dealloc
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_comments)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_comments)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_parse_macros)

ld.lld: error: undefined symbol: _PyObject_New
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_get_symbols)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(symbol_get_base_type)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(type_get_base_type)
>>> referenced 1 more times

ld.lld: error: undefined symbol: PyExc_RuntimeError
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_parse_macros)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_parse_macros)

ld.lld: error: undefined symbol: PyErr_SetString
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_parse_macros)

ld.lld: error: undefined symbol: PyList_Size
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_parse_macros)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_parse_macros)

ld.lld: error: undefined symbol: PyList_GetItem
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_parse_macros)

ld.lld: error: undefined symbol: PyBytes_AsString
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_parse_macros)
>>> referenced by giscannermodule.c
>>>               giscanner/_giscanner.cpython-311-x86_64-linux-musl.so.p/giscannermodule.c.o:(pygi_source_scanner_parse_macros)

ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Tohka 2024-04-07 19:39:45 UTC
Created attachment 889770 [details]
emerge-info.txt

adding emerge info
Comment 2 Tohka 2024-04-07 22:37:45 UTC
Created attachment 889785 [details]
build.log

correct build log
Comment 3 Tohka 2024-04-07 22:45:17 UTC
it seems as though the issue was that since I compiled dev-libs/glib with -ftrapv it causes a "trap" when compiling dev-libs/gobject-introspection.

g-ir-compiler[5133] trap invalid opcode ip:7f69ed9fb890 sp:7fff18156e60 error:0 in libglib-2.0.so.0.7800.4[7f69ed997000+a2000]

however, it compiles when glib isn't compiled with that. I will have to debug it further to identify whats the cause of the trap