[Bug 1883531] Re: build hangs for 2 hours with -03, yet succeeds with -O2 very quickly

Dimitri John Ledkov 1883531 at bugs.launchpad.net
Mon Jun 29 13:52:04 UTC 2020


20200629 from git also works for me. Currently ubuntu is at 20200518.
I'll recheck next time gcc-9 is updated in Ubuntu.

** Changed in: gcc-9 (Ubuntu)
       Status: Confirmed => Incomplete

** Changed in: ubuntu-power-systems
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-10 in Ubuntu.
https://bugs.launchpad.net/bugs/1883531

Title:
  build hangs for 2 hours with -03, yet succeeds with -O2 very quickly

Status in The Ubuntu-power-systems project:
  Invalid
Status in gcc-10 package in Ubuntu:
  Fix Released
Status in gcc-9 package in Ubuntu:
  Incomplete

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://launchpad.net/ubuntu/+archive/primary/+sourcefiles/blobandconquer/1.11-dfsg+20-1.1ubuntu1/blobandconquer_1.11-dfsg+20.orig.tar.gz'
     tar xvf blobandconquer*.tar.gz
     cd blobandconquer-*
     sudo apt build-dep blobandconquer

  inside there:

  $ CXXFLAGS=-O3 make mastermind.o
  g++ -O3 -Wformat=2 -Wformat-security -Wstrict-aliasing=2 -Wmissing-format-attribute -Wmissing-noreturn -Wdisabled-optimization `sdl-config --cflags` -DVERSION=1.11 -DRELEASE=0 -DUSEPAK=0 -DDEV=0 -DPAKNAME=\"blobAndConquer.pak\" -DPAKLOCATION=\"/usr/share/games/blobAndConquer/\" -DGAMEPLAYMANUAL=\"/usr/share/doc/blobAndConquer//index.html\" -Wall -DLOCALEDIR=\"/usr/share/locale/\" -g  -c src/puzzles/mastermind.cpp
  ^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-format-attribute -Wmissing-noreturn -Wdisabled-optimization `sdl-config --cflags` -DVERSION=1.11 -DRELEASE=0 -DUSEPAK=0 -DDEV=0 -DPAKNAME=\"blobAndConquer.pak\" -DPAKLOCATION=\"/usr/share/games/blobAndConquer/\" -DGAMEPLAYMANUAL=\"/usr/share/doc/blobAndConquer//index.html\" -Wall -DLOCALEDIR=\"/usr/share/locale/\" -g  -c src/puzzles/mastermind.cpp

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1883531/+subscriptions



More information about the foundations-bugs mailing list