spidermonkey fails to compile with clang on armv7: build/dist/system_wrappers/type_traits:3:15: fatal error: 'type_traits' file not found
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
People
(Reporter: herrtimson, Unassigned)
Details
Attachments
(1 file)
18.76 KB,
application/gzip
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
I tried to compile spidermonkey-78.4.0 for armv7a-unknown-linux-gnueabihf using clang
Actual results:
the build fails with a fatal error when compiling mozglue-static 0.1.0:
[mozglue-static 0.1.0] running: "/usr/lib/llvm/9/bin/clang++" "-std=gnu++17" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=armv7-unknown-linux-gnueabihf" "-I/var/tmp/portage/dev-lang/spidermonkey-78.4.0/work/build/dist/system_wrappers" "-include" "/var/tmp/portage/dev-lang/spidermonkey-78.4.0/work/firefox-78.4.0/config/gcc_hidden.h" "-fstack-protector-strong" "-DNDEBUG=1" "-DTRIMMED=1" "-DEXPORT_JS_API" "-DMOZ_HAS_MOZGLUE" "-I/var/tmp/portage/dev-lang/spidermonkey-78.4.0/work/firefox-78.4.0/js/src/rust" "-I/var/tmp/portage/dev-lang/spidermonkey-78.4.0/work/build/js/src/rust" "-I/var/tmp/portage/dev-lang/spidermonkey-78.4.0/work/build/dist/include" "-I/usr/include/nspr" "-fPIC" "-DMOZILLA_CLIENT" "-include" "/var/tmp/portage/dev-lang/spidermonkey-78.4.0/work/build/js/src/js-confdefs.h" "-Qunused-arguments" "-Qunused-arguments" "-Wall" "-Wbitfield-enum-conversion" "-Wempty-body" "-Wignored-qualifiers" "-Woverloaded-virtual" "-Wpointer-arith" "-Wshadow-field-in-constructor-modified" "-Wsign-compare" "-Wtype-limits" "-Wunreachable-code" "-Wunreachable-code-return" "-Wwrite-strings" "-Wno-invalid-offsetof" "-Wclass-varargs" "-Wempty-init-stmt" "-Wfloat-overflow-conversion" "-Wfloat-zero-conversion" "-Wloop-analysis" "-Wc++2a-compat" "-Wcomma" "-Wimplicit-fallthrough" "-Wunused-function" "-Wunused-variable" "-Wstring-conversion" "-Wtautological-overlap-compare" "-Wtautological-unsigned-enum-zero-compare" "-Wtautological-unsigned-zero-compare" "-Wno-error=tautological-type-limit-compare" "-Wno-inline-new-delete" "-Wno-error=deprecated-declarations" "-Wno-error=array-bounds" "-Wno-error=backend-plugin" "-Wno-error=return-std-move" "-Wno-error=atomic-alignment" "-Wformat" "-Wformat-security" "-Wno-gnu-zero-variadic-macro-arguments" "-Wno-noexcept-type" "-Wno-unknown-warning-option" "-fno-sized-deallocation" "-fno-aligned-new" "-O2" "-pipe" "-march=armv7-a" "-mfpu=vfpv3-d16" "-mfloat-abi=hard" "-fno-rtti" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "-fno-math-errno" "-pthread" "-pipe" "-g" "-fno-omit-frame-pointer" "-funwind-tables" "-fexperimental-new-pass-manager" "-DMOZILLA_CONFIG_H" "-I" "/var/tmp/portage/dev-lang/spidermonkey-78.4.0/work/build/js/src" "-I" "/var/tmp/portage/dev-lang/spidermonkey-78.4.0/work/build/dist/include" "-DMOZ_HAS_MOZGLUE" "-o" "/var/tmp/portage/dev-lang/spidermonkey-78.4.0/work/build/armv7-unknown-linux-gnueabihf/release/build/mozglue-static-00f13a2e3a860b51/out/wrappers.o" "-c" "wrappers.cpp"
[mozglue-static 0.1.0] cargo:warning=In file included from wrappers.cpp:11:
[mozglue-static 0.1.0] cargo:warning=In file included from /var/tmp/portage/dev-lang/spidermonkey-78.4.0/work/build/dist/include/mozilla/Assertions.h:418:
[mozglue-static 0.1.0] cargo:warning=/var/tmp/portage/dev-lang/spidermonkey-78.4.0/work/build/dist/system_wrappers/type_traits:3:15: fatal error: 'type_traits' file not found
[mozglue-static 0.1.0] cargo:warning=#include_next <type_traits>
full build log is attached
Expected results:
the build passes fine when using gcc with armv7a-unknown-linux-gnueabihf
aarch64-unknown-linux-gnu passes with clang and gcc, so it's not affected
this is a really confusing bug, because I can't even see from where this error is actually from. Since it only backtracks to the build dir, I'm already lost at finding the correct lines in the source code from the firefox-78.4 source tarball.
Comment 2•4 years ago
|
||
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0
Hi,
I will move this over to a component so developers can take a look over it. If this is not the correct component please feel free to change it to an appropriate one.
Thanks.
Looks like this report got lost in the system, sorry about that.
Since it's so old I'm going to close this report. Feel free to reopen if it's still relevant.
Description
•