Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-05-13 15:56:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "llvm6" Sun May 13 15:56:06 2018 rev:4 rq:606102 version:6.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-04-17 11:12:59.091163887 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-05-13 15:56:11.585754221 +0200 @@ -1,0 +2,8 @@ +Wed May 9 10:32:04 UTC 2018 - msrb@suse.com + +- Do not build stage1 with debug info. It was accidentally added + with the use of %optflags. This should fix out of memory errors + on 32bit architectures and speed up build everywhere else. + (bsc#1092697) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ llvm6.spec ++++++ --- /var/tmp/diff_new_pack.X0jxyt/_old 2018-05-13 15:56:15.453613079 +0200 +++ /var/tmp/diff_new_pack.X0jxyt/_new 2018-05-13 15:56:15.457612933 +0200 @@ -582,10 +582,12 @@ %build -# Remove the -D_FORTIFY_SOURCE=2 from optflags because llvm does not build -# correctly with hardening. The problem is in sanitizers from compiler-rt. -flags="%{optflags}" -flags=${flags//-D_FORTIFY_SOURCE=?/-D_FORTIFY_SOURCE=0} +# Use optflags, but: +# 1) Remove the -D_FORTIFY_SOURCE=2 because llvm does not build correctly with +# hardening. The problem is in sanitizers from compiler-rt. +# 2) Remove the -g. We don't want it in stage1 and it will be added by cmake in +# the following stage. +flags=$(echo %{optflags} | sed 's/-D_FORTIFY_SOURCE=./-D_FORTIFY_SOURCE=0/;s/\B-g\b//g') flags+=" -fno-strict-aliasing"