Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 928727

Summary: dev-python/scipy-1.13.0 build fails with internal compiler error
Product: Gentoo Linux Reporter: he.ousia <he.ousia>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: CONFIRMED ---    
Severity: normal CC: andrewammerlaan, he.ousia, python, sci
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: emerge --info
full build log

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 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 Andrew 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