| Summary: | sys-devel/gcc-8.2.0: dev-lang/python-3 fails to link on ppc-macos using -O1 or higher | ||
|---|---|---|---|
| Product: | Gentoo/Alt | Reporter: | Fabian Groffen <grobian> |
| Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | OS X | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Fabian Groffen
2019-02-15 12:56:58 UTC
Does the --without-pymalloc make a difference here? pymalloc setting is unrelated to the failure the problem likely is related to missing -fPIC this has nothing to do with 3.6.6, 3.6.5 fails the same way, so must be compiler/linker combination, but oddly enough a bootstrap succeed using this combination. gcc-8 produces faulty code, bootstrap never used gcc-8 to compile python. Python/dtoa.c somehow gets miscompiled using -O1, only using -O0 it finally links fine. This behaviour is only visible with GCC-8.2.0 and seems similar to previously observed optimisation differences. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=3794dac765e7e6237413b376b74c5f34833bff18 commit 3794dac765e7e6237413b376b74c5f34833bff18 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2019-02-19 11:58:11 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2019-02-19 12:00:09 +0000 dev-lang/python: fix build on ppc-macos using >=gcc-8 Closes: https://bugs.gentoo.org/678062 Package-Manager: Portage-2.3.55.1-prefix, Repoman-2.3.12 Signed-off-by: Fabian Groffen <grobian@gentoo.org> dev-lang/python/python-3.6.6.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) |