Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#62862 - Cannot build Python3 module due to wrong GCC lto version
Attached to Project:
Arch Linux
Opened by Daniel Schopf (dschopf) - Monday, 10 June 2019, 12:23 GMT
Last edited by Felix Yan (felixonmars) - Monday, 24 June 2019, 15:35 GMT
Opened by Daniel Schopf (dschopf) - Monday, 10 June 2019, 12:23 GMT
Last edited by Felix Yan (felixonmars) - Monday, 24 June 2019, 15:35 GMT
|
DetailsDescription:
When I try to build a python module from source I get the following error: lto1: fatal error: bytecode stream in file '/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu/libpython3.7m.a' generated with LTO version 7.0 instead of the expected 7.1 This is probably due to the fact that the python library has been generated by GCC 8.2.1, as seen from $ strings /usr/lib/python3.7/config-3.7m-x86_64-linux-gnu/libpython3.7m.a | grep "GCC:" GCC: (GNU) 8.2.1 20181127 and my system is using GCC 8.3.0. The python module in question is ASAP (https://wiki.fysik.dtu.dk/asap/Manual). Additional info: * package version(s) python-3.7.3-1 GCC-8.3.0-1 Steps to reproduce: Call "make" in the source directory of the ASAP code. |
This task depends upon
Closed by Felix Yan (felixonmars)
Monday, 24 June 2019, 15:35 GMT
Reason for closing: Fixed
Additional comments about closing: python 3.7.3-2
Monday, 24 June 2019, 15:35 GMT
Reason for closing: Fixed
Additional comments about closing: python 3.7.3-2
lto1: fatal error: bytecode stream in file '/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu/libpython3.7m.a' generated with LTO version 7.0 instead of the expected 8.0
The command to reproduce is actually not "make" but "make all".
In the error log I see "lto1: fatal error: bytecode stream in file ‘/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu/libpython3.7m.a’ generated with LTO version 7.0 instead of the expected 7.1"
package version(s)
core/gcc 8.3.0-1 (base-devel) [installed]
core/gcc-libs 8.3.0-1 (base) [installed]
core/lib32-gcc-libs 8.3.0-1 (multilib-devel) [installed]
extra/python 3.7.3-1
Is see the same string in libpython3.7m.a (GCC: (GNU) 8.2.1 20181127)