lerc: FTBFS with gcc-14
Bug #2078812 reported by
Alessandro Astone
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc |
In Progress
|
Medium
|
|||
gcc-14 (Ubuntu) |
In Progress
|
Undecided
|
Alessandro Astone | ||
lerc (Ubuntu) |
Triaged
|
Undecided
|
Alessandro Astone |
Bug Description
From the test rebuild, lerc failed to rebuild on ppc64el: https:/
gcc-14 has introduced a regression which causes it to crash when compiling valid code: https:/
Changed in lerc (Ubuntu): | |
assignee: | nobody → Alessandro Astone (aleasto) |
Changed in gcc-14 (Ubuntu): | |
assignee: | nobody → Alessandro Astone (aleasto) |
Changed in lerc (Ubuntu): | |
status: | New → Triaged |
Changed in gcc-14 (Ubuntu): | |
status: | New → In Progress |
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Unknown → In Progress |
To post a comment you must log in.
When recompiling https:/ /github. com/esri/ lerc on Ubuntu 24.10 with gcc-14 we hit this LTO error:
during GIMPLE pass: forwprop .constprop' : ernal(const T* pData, int version, int nDepth, int nCols, int nRows, int nBands, assign_ rhs_to_ tree(gimple* ) debug_temp_ for_var_ def(gimple_ stmt_iterator* , tree_node*) debug_temps_ for_defs( gimple_ stmt_iterator* ) gimple_ stmt_iterator* , bool) dce_from_ worklist( bitmap_ head*, bitmap_head*)
Lerc.cpp: In function 'EncodeInternal
Lerc.cpp:606:9: internal compiler error: in build2, at tree.cc:5097
606 | ErrCode Lerc::EncodeInt
| ^
0x1074e99f internal_error(char const*, ...)
???:0
0x1074ead7 fancy_abort(char const*, int, char const*)
???:0
0x10887107 build2(tree_code, tree_node*, tree_node*, tree_node*)
???:0
0x10c7a91f gimple_
???:0
0x10b97bd3 insert_
???:0
0x1098a083 insert_
???:0
0x1098979f gsi_remove(
???:0
0x10a793eb simple_
???:0
The command-line options required to trigger the error is: `-g -O3 -flto`. All three must be enabled.
Steps to reproduce: /github. com/Esri/ lerc/archive/ refs/tags/ v4.0.0. tar.gz | tar xvz 0.0/src/ LercLib
```
wget -qO- https:/
cd lerc-4.
g++ -shared -fPIC -g -O3 -flto *.cpp Lerc1Decode/*.cpp
```
I could reproduce with the gcc-14 packages from Ubuntu 24.10 and Fedora 41.
I couldn't reproduce on any architecture but ppc64le.
It can be reproduced both on a ppc64le machine (qemu-user is good enough), or by cross-compiling to ppc64le.
Attaching intermediate files.