build hangs for 2 hours with -03, yet succeeds with -O2 very quickly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Invalid
|
Low
|
bugproxy | ||
gcc-10 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
gcc-9 (Ubuntu) |
Incomplete
|
Low
|
Unassigned |
Bug Description
blobandconquer package fails to build from source, when building with -O3 on ppc64el.
It succeeds, if built with -O2.
mastermind.o is the offending object.
Get the source:
pull-lp-source blobandconquer
cd blobandconquer-*
sudo apt build-dep ./
If you don't have pull-lp-source, you can download the tarball directly and install build-depends elsehow:
wget 'https:/
tar xvf blobandconquer*
cd blobandconquer-*
sudo apt build-dep blobandconquer
inside there:
$ CXXFLAGS=-O3 make mastermind.o
g++ -O3 -Wformat=2 -Wformat-security -Wstrict-aliasing=2 -Wmissing-
^Cmake: *** [makefile:100: mastermind.o] Interrupt
hangs.
Where as with -O2 it builds very quickly:
$ CXXFLAGS=-O2 make mastermind.o
g++ -O2 -Wformat=2 -Wformat-security -Wstrict-aliasing=2 -Wmissing-
On our builders it hangs for 150 minutes without producing any output, which is our current timeout for builders.
The code in blobandconquer might be buggy, improvements to make it build with -O3 are welcome. But also, toolchain should not hang indefinitely.
Ubuntu defaults to -O3 for ppc64el port otherwise.
tags: | added: ppc64el reverse-proxy-bugzilla |
Changed in ubuntu-power-systems: | |
assignee: | nobody → bugproxy (bugproxy) |
description: | updated |
tags: | added: architecture-ppc64le bugnameltc-186241 severity-medium targetmilestone-inin--- |
Changed in ubuntu-power-systems: | |
status: | New → Triaged |
importance: | Undecided → Medium |
I've run build with -O3 and -save-temps, for a bit. Killed it, and attaching .ii preprocessed file.
No idea if it's complete or not.