Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928727 - dev-python/scipy-1.13.0 build fails with internal compiler error
Summary: dev-python/scipy-1.13.0 build fails with internal compiler error
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-04-06 10:57 UTC by he.ousia
Modified: 2024-05-25 00:51 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.gz,3.56 KB, application/gzip)
2024-04-06 10:57 UTC, he.ousia
Details
full build log (build.log.gz,30.09 KB, application/gzip)
2024-04-06 10:58 UTC, he.ousia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description he.ousia 2024-04-06 10:57:36 UTC
Created attachment 889573 [details]
emerge --info

during IPA pass: inline
scipy/stats/_biasedurn.cpython-311-x86_64-linux-gnu.so.p/_biasedurn.cpp: In function '__pyx_f_5scipy_5stats_10_biasedurn_next_normal':
scipy/stats/_biasedurn.cpython-311-x86_64-linux-gnu.so.p/_biasedurn.cpp:6910:26: internal compiler error: original not compressed with zstd
 6910 |   __pyx_r = random_normal(__pyx_v_5scipy_5stats_10_biasedurn__glob_rng, __pyx_v_m, __pyx_v_s);
      |                          ^
0x1b8994f internal_error(char const*, ...)
        ???:0
0xa2eb84 lto_end_uncompression(lto_compression_stream*, lto_compression)
        ???:0
0xa28e1d lto_get_section_data(lto_file_decl_data*, lto_section_type, char const*, int, unsigned long*, bool)
        ???:0
0x73f48c cgraph_node::get_untransformed_body()
        ???:0
0xc298ab optimize_inline_calls(tree_node*)
        ???:0
0x958c1b inline_transform(cgraph_node*)
        ???:0
0xaf3f7f execute_all_ipa_transforms(bool)
        ???:0
0x74e733 cgraph_node::expand()
        ???:0
0x6b6f7a lto_main()
        ???:0
Comment 1 he.ousia 2024-04-06 10:58:08 UTC
Created attachment 889574 [details]
full build log
Comment 2 he.ousia 2024-04-06 10:59:57 UTC
Error persists also without LTO.
Comment 3 he.ousia 2024-04-13 07:42:30 UTC
The same error also on old i5 computer.
Comment 4 he.ousia 2024-05-21 15:19:11 UTC
With new gcc-14 it does not build with -flto but builds OK without it.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-21 16:45:05 UTC
It's not a regression at all. It's a weird GCC bug wrt compression format for LTO.
Comment 6 Eli Schwartz gentoo-dev 2024-05-21 16:49:43 UTC
Pretty sure this is just the usual "I upgraded the compiler and now my static libraries are invalid"?

Unless you have an unrelated bug that isn't the original "original not compressed with zstd".

(In this case it's not compiler bytecode revisions being cranked I think -- it's an issue with flipping USE=zstd.)
Comment 7 Nowa Ammerlaan gentoo-dev 2024-05-21 16:55:15 UTC
> Pretty sure this is just the usual "I upgraded the compiler and now my static libraries are invalid"?

It failed for me before the gcc upgrade
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-25 00:51:04 UTC
(In reply to Andrew Nowa Ammerlaan from comment #7)
> > Pretty sure this is just the usual "I upgraded the compiler and now my static libraries are invalid"?
> 
> It failed for me before the gcc upgrade

It's the variation of it with 23.0 which enabled zstd by default. We can't do much about it, Eli filed a bug upstream already.