Skip to content

Commit

Permalink
Bug 1720772 - Upgrade sysroot libstdc++ to 7.5.0-6. r=firefox-build-s…
Browse files Browse the repository at this point in the history
…ystem-reviewers,mhentges

7.3.0-1 was used because it was the last 7.x that provided the libstdc++6
package. Unfortunately, once libstdc++ is removed from the clang
toolchain, which makes the one from the sysroot used instead, it causes
an ASan issue which goes away when using a more recent version (which the
libstdc++ from clang was: it was 7.5).

So we take the last 7.x that exists, and tweak it so that it generates
the necessary libstdc++6 package.

Differential Revision: https://phabricator.services.mozilla.com/D120012
  • Loading branch information
glandium committed Jul 15, 2021
1 parent 079ca85 commit db8698c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions taskcluster/ci/packages/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ deb8-gcc-7:
using: debian-package
dist: jessie
dsc:
url: http://snapshot.debian.org/archive/debian/20180125T222959Z/pool/main/g/gcc-7/gcc-7_7.3.0-1.dsc
sha256: b4f37b2075a68e2c7ab65834bc944640f28cd05df5c87ddbee756e1173e09898
url: http://snapshot.debian.org/archive/debian/20200323T214010Z/pool/main/g/gcc-7/gcc-7_7.5.0-6.dsc
sha256: 94f2c35ddcf84a62ae152f2f290be2bba1263157b3970776d0c8b43dec4e6fd5
# autoconf2.64 and quilt necessary to run the `debian/rules control` command to
# generate an updated debian/control.
# uncommenting `with_common_libs` makes the packaging create the libstdc++6 package.
# `libstdcxx_abi = new` overrides the default that disables the new ABI on jessie
# `BINUTILSBDV=2.25-3~` and `ISL_BUILD_DEP=libisl-dev,` override wrong versions
# in build dependencies for jessie.
Expand All @@ -98,6 +99,7 @@ deb8-gcc-7:
# `NT=` overrides the use of `:native` which is not supported by dpkg on jessie.
pre-build-command: >-
apt install autoconf2.64 quilt &&
sed -i 's/#with_common_libs/with_common_libs/' debian/rules.defs &&
echo libstdcxx_abi = new >> debian/rules.defs &&
echo BINUTILSBDV=2.25-3~ >> debian/rules.conf &&
echo ISL_BUILD_DEP=libisl-dev, >> debian/rules.conf &&
Expand All @@ -118,10 +120,11 @@ deb8-32-gcc-7:
using: debian-package
dist: jessie
dsc:
url: http://snapshot.debian.org/archive/debian/20180125T222959Z/pool/main/g/gcc-7/gcc-7_7.3.0-1.dsc
sha256: b4f37b2075a68e2c7ab65834bc944640f28cd05df5c87ddbee756e1173e09898
url: http://snapshot.debian.org/archive/debian/20200323T214010Z/pool/main/g/gcc-7/gcc-7_7.5.0-6.dsc
sha256: 94f2c35ddcf84a62ae152f2f290be2bba1263157b3970776d0c8b43dec4e6fd5
pre-build-command: >-
apt install autoconf2.64 quilt &&
sed -i 's/#with_common_libs/with_common_libs/' debian/rules.defs &&
echo libstdcxx_abi = new >> debian/rules.defs &&
echo GCC_MULTILIB_BUILD_DEP='$(DPKG_BUILD_DEP)' >> debian/rules.conf &&
echo BINUTILSBDV=2.25-3~ >> debian/rules.conf &&
Expand Down

0 comments on commit db8698c

Please sign in to comment.