[Pkg-sass-devel] Bug#1015519: libsass: ftbfs with LTO (link time optimization) enabled

Matthias Klose doko at debian.org
Tue Jul 19 17:55:53 BST 2022


Package: src:libsass
Version: 3.6.5+20211226-1
Severity: minor
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-lto

This package currently fails to build (at least on the amd64
architecture) with link time optimizations enabled.  For a background
for LTO please see

https://wiki.debian.org/ToolChain/LTO

The goal is to enable this optimization by default in an upcoming
Debian release in dpkg-buildflags for 64bit architectures.  The goal
is to get this package to build with link time optimizations, or to
explicitly disable link time optimizations for this package build.

To reproduce the build failure, enable the lto optimization in
testing/unstable by adding "optimize=+lto" to DEB_BUILD_MAINT_OPTIONS
in the debian/rules file, or if this macro is unset, just set it:

export DEB_BUILD_MAINT_OPTIONS = optimize=+lto

Please try to fix the build with lto enabled, fixing the packaging or
forwarding the issue upstream. If the issue cannot be fixed,
explicitly disallow building the package with lto by adding to your
rules file:

export DEB_BUILD_MAINT_OPTIONS = optimize=-lto

or adding that string to your existing setting of DEB_BUILD_MAINT_OPTIONS.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/dpkglto/libsass_3.6.5+20211226-1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
+#MISSING: 3.6.5+20211226-1# _ZTVN4Sass9Exception19InvalidArgumentTypeE at Base 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# _ZTVN4Sass9Exception20InvalidNullOperationE at Base 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# _ZTVN4Sass9Exception21AlphaChannelsNotEqualE at Base 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# _ZTVN4Sass9Exception4BaseE at Base 3.5.5-4~
  _ZTVN4Sass9MediaRuleE at Base 3.6.4-2~
  _ZTVN4Sass9ParameterE at Base 3.5.5-4~
  _ZTVN4Sass9StatementE at Base 3.5.5-4~
  _ZTVN4Sass9StyleRuleE at Base 3.6.4-2~
- _ZTVN4Sass9SynthFileE at Base 3.6.4-2~
+#MISSING: 3.6.5+20211226-1# _ZTVN4Sass9SynthFileE at Base 3.6.4-2~
  _ZTVN4Sass9WhileRuleE at Base 3.6.4-2~
- _ZTVN4utf812invalid_utf8E at Base 3.5.5-4~
- _ZTVN4utf815not_enough_roomE at Base 3.5.5-4~
- _ZTVN4utf818invalid_code_pointE at Base 3.5.5-4~
- _ZTVN4utf89exceptionE at Base 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# _ZTVN4utf812invalid_utf8E at Base 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# _ZTVN4utf815not_enough_roomE at Base 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# _ZTVN4utf818invalid_code_pointE at Base 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# _ZTVN4utf89exceptionE at Base 3.5.5-4~
  (optional=templinst)_ZZN4utf815replace_invalidIPKcSt20back_insert_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEET0_T_SC_SB_E18replacement_marker at Base 3.5.5-4~
  base64_encode_block at Base 3.5.5-4~
  base64_encode_blockend at Base 3.5.5-4~
@@ -5471,29 +5472,29 @@
  libsass_language_version at Base 3.5.5-4~
  libsass_version at Base 3.5.5-4~
  (c++)"non-virtual thunk to Sass::Arguments::adjust_after_pushing(Sass::SharedImpl<Sass::Argument>)@Base" 3.5.5-4~
- (c++)"non-virtual thunk to Sass::Arguments::~Arguments()@Base" 3.5.5-4~
- (c++)"non-virtual thunk to Sass::Block::adjust_after_pushing(Sass::SharedImpl<Sass::Statement>)@Base" 3.5.5-4~
- (c++)"non-virtual thunk to Sass::Block::~Block()@Base" 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::Arguments::~Arguments()@Base" 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::Block::adjust_after_pushing(Sass::SharedImpl<Sass::Statement>)@Base" 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::Block::~Block()@Base" 3.5.5-4~
  (c++)"non-virtual thunk to Sass::ComplexSelector::hash() const at Base" 3.6.4-2~
- (c++)"non-virtual thunk to Sass::ComplexSelector::~ComplexSelector()@Base" 3.6.4-2~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::ComplexSelector::~ComplexSelector()@Base" 3.6.4-2~
  (c++)"non-virtual thunk to Sass::CompoundSelector::hash() const at Base" 3.6.4-2~
- (c++)"non-virtual thunk to Sass::CompoundSelector::~CompoundSelector()@Base" 3.6.4-2~
- (c++)"non-virtual thunk to Sass::CssMediaRule::hash() const at Base" 3.6.4-2~
- (c++)"non-virtual thunk to Sass::CssMediaRule::~CssMediaRule()@Base" 3.6.4-2~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::CompoundSelector::~CompoundSelector()@Base" 3.6.4-2~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::CssMediaRule::hash() const at Base" 3.6.4-2~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::CssMediaRule::~CssMediaRule()@Base" 3.6.4-2~
  (c++)"non-virtual thunk to Sass::Inspect::~Inspect()@Base" 3.5.5-4~
- (c++)"non-virtual thunk to Sass::List::adjust_after_pushing(Sass::SharedImpl<Sass::Expression>)@Base" 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::List::adjust_after_pushing(Sass::SharedImpl<Sass::Expression>)@Base" 3.5.5-4~
  (c++)"non-virtual thunk to Sass::List::hash() const at Base" 3.6.4
- (c++)"non-virtual thunk to Sass::List::~List()@Base" 3.5.5-4~
- (c++)"non-virtual thunk to Sass::Map::adjust_after_pushing(std::pair<Sass::SharedImpl<Sass::Expression>, Sass::SharedImpl<Sass::Expression> >)@Base" 3.5.5-4~
- (c++)"non-virtual thunk to Sass::Map::~Map()@Base" 3.5.5-4~
- (c++)"non-virtual thunk to Sass::Media_Query::~Media_Query()@Base" 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::List::~List()@Base" 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::Map::adjust_after_pushing(std::pair<Sass::SharedImpl<Sass::Expression>, Sass::SharedImpl<Sass::Expression> >)@Base" 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::Map::~Map()@Base" 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::Media_Query::~Media_Query()@Base" 3.5.5-4~
  (c++)"non-virtual thunk to Sass::Output::~Output()@Base" 3.5.5-4~
  (c++)"non-virtual thunk to Sass::Parameters::adjust_after_pushing(Sass::SharedImpl<Sass::Parameter>)@Base" 3.5.5-4~
- (c++)"non-virtual thunk to Sass::Parameters::~Parameters()@Base" 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::Parameters::~Parameters()@Base" 3.5.5-4~
  (c++)"non-virtual thunk to Sass::SelectorList::hash() const at Base" 3.6.4-2~
- (c++)"non-virtual thunk to Sass::SelectorList::~SelectorList()@Base" 3.6.4-2~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::SelectorList::~SelectorList()@Base" 3.6.4-2~
  (c++)"non-virtual thunk to Sass::String_Schema::hash() const at Base" 3.6.4
- (c++)"non-virtual thunk to Sass::String_Schema::~String_Schema()@Base" 3.5.5-4~
+#MISSING: 3.6.5+20211226-1# (c++)"non-virtual thunk to Sass::String_Schema::~String_Schema()@Base" 3.5.5-4~
  sass2scss at Base 3.5.5-4~
  sass2scss_version at Base 3.5.5-4~
  sass_alloc_memory at Base 3.5.5-4~
dh_makeshlibs: error: failing due to earlier errors
make: *** [debian/rules:27: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the pkg-sass-devel mailing list