Arch Linux

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!
Tasklist

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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
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
Comment by Daniel Schopf (dschopf) - Sunday, 16 June 2019, 11:20 GMT
After upgrading GCC from 8.3.0-1 to 9.1.0-1 the error message change to

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".
Comment by Graham (gps1539) - Sunday, 16 June 2019, 16:36 GMT
I believe I'm running into the same issue when I try to build a gmusicapi plugin (this step "sudo cpanm --notest Inline::Python" fails following this guide https://squeezebox-googlemusic.github.io/squeezebox-googlemusic/)
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)
Comment by Felix Yan (felixonmars) - Monday, 24 June 2019, 06:04 GMT
Please try again with python 3.7.3-2
Comment by Daniel Schopf (dschopf) - Monday, 24 June 2019, 15:09 GMT
Issue is fixed with python 3.7.3-2 and GCC 9.1.0-2. Thanks.

Loading...