Summary: | dev-python/pycparser-2.18.1-r1 with Kodi: ERROR: start symbol translation_unit_or_empty undefined | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Craig Andrews <candrews> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | balint, candrews, mgorny |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=628386 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Kodi script.extendedinfo callstack |
Description
Craig Andrews
![]() This issue still exists with dev-python/pycparser-2.19 unfortunately i confirm this error with pycparser-2.19. it happens on kodi-18.4 from portage (~amd64): https://forums.gentoo.org/viewtopic-t-1101978-highlight-.html with an unsupported plugin: https://github.com/CastagnaIT/plugin.video.netflix It is reported to have sth. to do with optimization-flags: https://github.com/eliben/pycparser/issues/291) but compiling python-2.7 and all related pkgs with CFLAGS="-march=x86-64 -mtune=k8 -O0 -fomit-frame-pointer -pipe" CXXFLAGS="${CFLAGS}" LDFLAGS="" LDDFLAGS="" changed absolutely nothing: https://github.com/CastagnaIT/plugin.video.netflix/issues/219 i'll go back to pycparser-2.17 and see if that works. This issue still exists with dev-python/pycparser-2.19-r1 for and additional information, I have PYTHONOPTIMIZE=2 environment variable set. When I emerge it with PYTHONOPTIMIZE=0, it compiles. How do you install with PYTHONOPTIMIZE=0 ? I'm not seeing any examples in portage. I ended up doing a `pip install pycparser --user` to get rid of my error for now. you can set per-package env variables. Check https://wiki.gentoo.org/wiki//etc/portage/package.env for a detailed description. But neither using PYTHONOPTIMIZE=0 nor PYTHONDONTWRITEBYTECODE=1 fixed this issue for me. Deleting all *.pyo manually after the merge fixed it, though: find /usr/lib/python2.7/site-packages/pycparser/ -name '*.pyo' -delete Created attachment 649166 [details] Kodi script.extendedinfo callstack (In reply to Daniel Hiepler from comment #5) > > Deleting all *.pyo manually after the merge fixed it, though: > > find /usr/lib/python2.7/site-packages/pycparser/ -name '*.pyo' -delete I can confirm, only this solved the issue for me. See attached the error log for ExtendedInfo script. Cleanup of bugs open for old versions. |