Summary: | dev-lang/python-3.5.0-r1 : fails emerge : Failed to build these modules: math | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jason Mours <jason.mours> |
Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.python.org/issue24421 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge-info |
Description
Jason Mours
2015-11-12 03:24:35 UTC
Created attachment 416750 [details]
build.log
Created attachment 416752 [details]
emerge-info
The real error is this: gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -march=native -mtune=amdfam10 -Os -pipe -ggdb -fwrapv -Werror=declaration-after-statement -I. -I/var/tmp/portage/dev-lang/python-3.5.0-r1/work/Python-3.5.0/Include -I/var/tmp/portage/dev-lang/python-3.5.0-r1/work/x86_64-pc-linux-gnu -c /var/tmp/portage/dev-lang/python-3.5.0-r1/work/Python-3.5.0/Modules/_pickle.c -o build/temp.linux-x86_64-3.5/var/tmp/portage/dev-lang/python-3.5.0-r1/work/Python-3.5.0/Modules/_pickle.o gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L. -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -march=native -mtune=amdfam10 -Os -pipe -ggdb -fwrapv build/temp.linux-x86_64-3.5/var/tmp/portage/dev-lang/python-3.5.0-r1/work/Python-3.5.0/Modules/mathmodule.o build/temp.linux-x86_64-3.5/var/tmp/portage/dev-lang/python-3.5.0-r1/work/Python-3.5.0/Modules/_math.o -L. -lm -lpython3.5 -o build/lib.linux-x86_64-3.5/math.cpython-35-x86_64-linux-gnu.so ... build/temp.linux-x86_64-3.5/var/tmp/portage/dev-lang/python-3.5.0-r1/work/Python-3.5.0/Modules/_math.o: file not recognized: File truncated collect2: ld returned 1 exit status If you look further up in the log, you can see that _math.o is being compiled twice for some reason. It probably gets truncated as two instances of gcc try to write to the same file. It looks like both the cmath and math modules utilize _math.c and _math.o. As well Python 3.5.0 added support for building extension modules in parallel via distutils, which is likely the cause of this bug. Mass closing of bugs reported against old versions of dev-lang/python. If the problem still occurs with the current versions (i.e. newest in each visible slot), feel free to reopen. |