Bug#1029167: mozjs78: Fails to build on armhf and armel
Jeremy Bicha
jeremy.bicha at canonical.com
Wed Jan 18 18:59:34 GMT 2023
Source: mozjs78
Version: 78.15.0-6
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: debian-arm at lists.debian.org, cjs at packages.debian.org
User: debian-arm at lists.debian.org
Usertags: armel armhf
mozjs78 fails to build on armhf & armel.
I have little interest in working on this bug myself. I only stumbled
across this bug because I applied a build fix needed by Debian's
switch to Python 3.11. mozjs78 has been End of Life since October 2021
and is only still in Debian because Cinnamon hasn't switched to
mozjs102 yet.
By the way, 0ad has an embedded copy of mozjs78 and still builds on
armhf so maybe it includes a fix or a workaround for this build
failure.
I'm pasting the end of the build log below, but the actual build error
may have been earlier in the log.
/usr/bin/arm-linux-gnueabihf-g++ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-fstack-protector-strong -Wdate-time -D_FORTIFY_SOURCE=2 -Wall
-Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith
-Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings
-Wno-invalid-offsetof -Wc++2a-compat -Wduplicated-cond
-Wimplicit-fallthrough -Wunused-function -Wunused-variable
-Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations
-Wno-error=array-bounds -Wno-error=coverage-mismatch
-Wno-error=free-nonheap-object -Wno-multistatement-macros
-Wno-error=class-memaccess -Wno-error=deprecated-copy -Wformat
-Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation
-fno-aligned-new -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -fno-rtti
-ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno
-pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer
-funwind-tables -fPIC -shared -Wl,-z,defs -Wl,--gc-sections
-Wl,-h,libmozjs-78.so -o libmozjs-78.so
/<<PKGBUILDDIR>>/debian/build/js/src/build/libmozjs-78_so.list
-lpthread -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro
-Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1
-fstack-protector-strong
-Wl,-rpath-link,/<<PKGBUILDDIR>>/debian/build/dist/bin
-Wl,-rpath-link,/usr/lib
/<<PKGBUILDDIR>>/debian/build/armv7-unknown-linux-gnueabihf/release/libjsrust.a
-Wl,--version-script,symverscript -Wl,-soname,libmozjs-78.so.0 -lm
-lz -lm -ldl
/usr/bin/ld: /<<PKGBUILDDIR>>/debian/build/js/src/build/../../../config/external/icu/common/rbbi.o:
in function `std::type_info::operator!=(std::type_info const&) const':
/usr/include/c++/12/typeinfo:115: undefined reference to
`std::type_info::operator==(std::type_info const&) const'
/usr/bin/ld: /<<PKGBUILDDIR>>/debian/build/js/src/build/../../../config/external/icu/common/schriter.o:
in function `std::type_info::operator!=(std::type_info const&) const':
/usr/include/c++/12/typeinfo:115: undefined reference to
`std::type_info::operator==(std::type_info const&) const'
/usr/bin/ld: /<<PKGBUILDDIR>>/debian/build/js/src/build/../../../config/external/icu/common/stringtriebuilder.o:
in function `icu_67::StringTrieBuilder::Node::operator==(icu_67::StringTrieBuilder::Node
const&) const':
./debian/build/config/external/icu/common/./intl/icu/source/common/stringtriebuilder.cpp:388:
undefined reference to `std::type_info::operator==(std::type_info
const&) const'
/usr/bin/ld: ./debian/build/config/external/icu/common/./intl/icu/source/common/stringtriebuilder.cpp:388:
undefined reference to `std::type_info::operator==(std::type_info
const&) const'
/usr/bin/ld: ./debian/build/config/external/icu/common/./intl/icu/source/common/stringtriebuilder.cpp:388:
undefined reference to `std::type_info::operator==(std::type_info
const&) const'
/usr/bin/ld: /<<PKGBUILDDIR>>/debian/build/js/src/build/../../../config/external/icu/common/stringtriebuilder.o:./debian/build/config/external/icu/common/./intl/icu/source/common/stringtriebuilder.cpp:388:
more undefined references to
`std::type_info::operator==(std::type_info const&) const' follow
collect2: error: ld returned 1 exit status
make[4]: *** [/<<PKGBUILDDIR>>/config/rules.mk:608: libmozjs-78.so] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/js/src/build'
make[3]: *** [/<<PKGBUILDDIR>>/config/recurse.mk:74:
js/src/build/target] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[2]: *** [/<<PKGBUILDDIR>>/config/recurse.mk:34: compile] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[1]: *** [/<<PKGBUILDDIR>>/config/rules.mk:392: default] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
dh_auto_build: error: cd debian/build && make -j8 returned exit code 2
Thank you,
Jeremy Bicha
More information about the pkg-gnome-maintainers
mailing list