[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#900554: gcc-8: don't do a full build for binary-indep builds



On 01.06.2018 10:44, Emilio Pozuelo Monfort wrote:
Source: gcc-8
Version: 8.1.0-5
Severity: normal

Hi,

gcc-8 arch:all builds take up to 20h because they do a full build, only
to ship the arch-indep packages:

  gcc-8-locales deb devel optional arch=all
  gcc-8-source deb devel optional arch=all
  libgccjit-8-doc deb doc optional arch=all
  libstdc++-8-doc deb doc optional arch=all

It doesn't look like any of those would need to build all of GCC, so it
should be possible to split the -indep/-arch targets so that a binary-indep
build just does the minimum stuff it needs to build the above packages.

building the docs is part of the upstream build process, so I don't think you can avoid these. What you could do, is:

 - not running the checks
 - not building the hppa64 cross compiler
 - not building the nvptx offload compiler
 - not bootstrapping the compiler (nostrap)
 - not building some frontends

patches tested with -A, -B and -b would be welcome.


Reply to: