Bug 1213647 - gcc13 fails to build highway with: internal compiler error: in const_unop, at fold-const.cc:1884
Summary: gcc13 fails to build highway with: internal compiler error: in const_unop, at...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: aarch64 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Richard Biener
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-25 14:54 UTC by Guillaume GARDET
Modified: 2023-08-30 08:41 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume GARDET 2023-07-25 14:54:29 UTC
gcc13 fails to build highway for aarch64 in Tumbleweed with  internal compiler error: in const_unop, at fold-const.cc:1884

[ 1701s] [ 85%] Linking CXX executable tests/swizzle_test
[ 1701s] /usr/bin/cmake -E cmake_link_script CMakeFiles/swizzle_test.dir/link.txt --verbose=1
[ 1701s] /usr/bin/c++ -mbranch-protection=standard -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DHWY_COMPILE_ALL_ATTAINABLE -O2 -g -DNDEBUG -flto=auto -Wl,--as-needed -Wl,-z,now -fPIE -pie CMakeFiles/swizzle_test.dir/hwy/tests/swizzle_test.cc.o -o tests/swizzle_test  -Wl,-rpath,/home/abuild/rpmbuild/BUILD/highway-1.0.5/build libhwy_test.so.1.0.5 libhwy_contrib.so.1.0.5 /usr/lib64/libgtest.so /usr/lib64/libgtest_main.so libhwy.so.1.0.5 /usr/lib64/libgtest.so 
[ 1701s] during GIMPLE pass: fre
[ 1701s] /home/abuild/rpmbuild/BUILD/highway-1.0.5/hwy/tests/swizzle_test.cc: In function 'TestTblLookupPer4LaneBlkShuf.constprop':
[ 1701s] /home/abuild/rpmbuild/BUILD/highway-1.0.5/hwy/tests/swizzle_test.cc:192:28: internal compiler error: in const_unop, at fold-const.cc:1884
[ 1701s]   192 |   static HWY_NOINLINE void TestTblLookupPer4LaneBlkShuf(
[ 1701s]       |                            ^
[ 1701s] 0xb5b69f internal_error(char const*, ...)
[ 1701s] 	???:0
[ 1701s] 0xb5049b fancy_abort(char const*, int, char const*)
[ 1701s] 	???:0
[ 1701s] 0xca7177 const_unop(tree_code, tree_node*, tree_node*)
[ 1701s] 	???:0
[ 1701s] 0xd59d2f gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node* (*)(tree_node*), tree_node* (*)(tree_node*))
[ 1701s] 	???:0
[ 1701s] 0xedc577 gimple_fold_stmt_to_constant_1(gimple*, tree_node* (*)(tree_node*), tree_node* (*)(tree_node*))
[ 1701s] 	???:0
[ 1701s] Please submit a full bug report, with preprocessed source (by using -freport-bug).
[ 1701s] Please include the complete backtrace with any bug report.
[ 1701s] See <https://bugs.opensuse.org/> for instructions.
[ 1701s] make[3]: *** [/tmp/ccx9e5ef.mk:53: /tmp/ccuXHB3Y.ltrans17.ltrans.o] Error 1
[ 1701s] lto-wrapper: fatal error: make returned 2 exit status
[ 1701s] compilation terminated.
[ 1701s] /usr/lib64/gcc/aarch64-suse-linux/13/../../../../aarch64-suse-linux/bin/ld: error: lto-wrapper failed
[ 1701s] collect2: error: ld returned 1 exit status

Full build log: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:ARM/highway/standard/aarch64
Comment 1 Richard Biener 2023-07-26 06:46:37 UTC
Awaiting (delayed) backport upstream.
Comment 2 Richard Biener 2023-08-30 08:41:21 UTC
Fixed.