[Pkg-mozext-maintainers] Thunderbird 65.0b1 fails to build early

Carsten Schoenert c.schoenert at t-online.de
Sat Jan 5 11:23:25 GMT 2019


Hi,

happy new year to everyone!

I used the past holidays to do packaging work on the recent beta version
65.0b1 of Thunderbird. As this is the first beta version since 60.x I
try to get build it's a heavy moving target to get all together. And I
need enough free time to being able working constantly in this.

Anyhow, so far I got all together, the required build dependencies, the
sources, the patch queue and a bit of time. :)

But see a build issue really early after starting a build that for sure
related to Rust or Cargo.

Here is the full log of the issue I'm facing.

>  0:01.32 error: failed to run custom build command for `libloading v0.5.0`
>  0:01.32 process didn't exit successfully: `/build/thunderbird-65.0~b1/obj-thunderbird/release/build/libloading-b1dca9f9f6c8d16d/build-script-build` (exit code: 101)
>  0:01.32 --- stdout
>  0:01.32 cargo:rustc-link-lib=dl
>  0:01.32 TARGET = Some("x86_64-unknown-linux-gnu")
>  0:01.32 OPT_LEVEL = Some("2")
>  0:01.32 TARGET = Some("x86_64-unknown-linux-gnu")
>  0:01.32 HOST = Some("x86_64-unknown-linux-gnu")
>  0:01.32 TARGET = Some("x86_64-unknown-linux-gnu")
>  0:01.32 TARGET = Some("x86_64-unknown-linux-gnu")
>  0:01.32 HOST = Some("x86_64-unknown-linux-gnu")
>  0:01.32 CC_x86_64-unknown-linux-gnu = None
>  0:01.32 CC_x86_64_unknown_linux_gnu = Some(" /usr/lib/ccache/clang -std=gnu99")
>  0:01.32 TARGET = Some("x86_64-unknown-linux-gnu")
>  0:01.32 HOST = Some("x86_64-unknown-linux-gnu")
>  0:01.32 CFLAGS_x86_64-unknown-linux-gnu = None
>  0:01.32 CFLAGS_x86_64_unknown_linux_gnu = Some("\'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/system_wrappers\' -include \'/build/thunderbird-65.0~b1/config/gcc_hidden.h\' -DNDEBUG=1 -DTRIMMED=1 \'-I/build/thunderbird-65.0~b1/toolkit/library/rust\' \'-I/build/thunderbird-65.0~b1/obj-thunderbird/toolkit/library/rust\' \'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include\' -I/usr/include/nspr -I/usr/include/nss \'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include/nss\' -fPIC -include \'/build/thunderbird-65.0~b1/obj-thunderbird/mozilla-config.h\' -DMOZILLA_CLIENT -Qunused-arguments -Wdate-time -D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -g -O2 \'-fdebug-prefix-map=/build/thunderbird-65.0~b1=.\' -fstack-protector-strong -Wformat -Werror=format-security -fno-delete-null-pointer-checks -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe -g -O2 -fomit-frame-pointer -funwind-tables")
>  0:01.32 DEBUG = Some("false")
>  0:01.32 TARGET = Some("x86_64-unknown-linux-gnu")
>  0:01.32 HOST = Some("x86_64-unknown-linux-gnu")
>  0:01.32 CFLAGS_x86_64-unknown-linux-gnu = None
>  0:01.32 CFLAGS_x86_64_unknown_linux_gnu = Some("\'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/system_wrappers\' -include \'/build/thunderbird-65.0~b1/config/gcc_hidden.h\' -DNDEBUG=1 -DTRIMMED=1 \'-I/build/thunderbird-65.0~b1/toolkit/library/rust\' \'-I/build/thunderbird-65.0~b1/obj-thunderbird/toolkit/library/rust\' \'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include\' -I/usr/include/nspr -I/usr/include/nss \'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include/nss\' -fPIC -include \'/build/thunderbird-65.0~b1/obj-thunderbird/mozilla-config.h\' -DMOZILLA_CLIENT -Qunused-arguments -Wdate-time -D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -g -O2 \'-fdebug-prefix-map=/build/thunderbird-65.0~b1=.\' -fstack-protector-strong -Wformat -Werror=format-security -fno-delete-null-pointer-checks -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe -g -O2 -fomit-frame-pointer -funwind-tables")
>  0:01.32 TARGET = Some("x86_64-unknown-linux-gnu")
>  0:01.32 HOST = Some("x86_64-unknown-linux-gnu")
>  0:01.32 CFLAGS_x86_64-unknown-linux-gnu = None
>  0:01.32 CFLAGS_x86_64_unknown_linux_gnu = Some("\'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/system_wrappers\' -include \'/build/thunderbird-65.0~b1/config/gcc_hidden.h\' -DNDEBUG=1 -DTRIMMED=1 \'-I/build/thunderbird-65.0~b1/toolkit/library/rust\' \'-I/build/thunderbird-65.0~b1/obj-thunderbird/toolkit/library/rust\' \'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include\' -I/usr/include/nspr -I/usr/include/nss \'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include/nss\' -fPIC -include \'/build/thunderbird-65.0~b1/obj-thunderbird/mozilla-config.h\' -DMOZILLA_CLIENT -Qunused-arguments -Wdate-time -D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -g -O2 \'-fdebug-prefix-map=/build/thunderbird-65.0~b1=.\' -fstack-protector-strong -Wformat -Werror=format-security -fno-delete-null-pointer-checks -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe -g -O2 -fomit-frame-pointer -funwind-tables")
>  0:01.32 running: "/usr/lib/ccache/clang" "-std=gnu99" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "\'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/system_wrappers\'" "-include" "\'/build/thunderbird-65.0~b1/config/gcc_hidden.h\'" "-DNDEBUG=1" "-DTRIMMED=1" "\'-I/build/thunderbird-65.0~b1/toolkit/library/rust\'" "\'-I/build/thunderbird-65.0~b1/obj-thunderbird/toolkit/library/rust\'" "\'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include\'" "-I/usr/include/nspr" "-I/usr/include/nss" "\'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include/nss\'" "-fPIC" "-include" "\'/build/thunderbird-65.0~b1/obj-thunderbird/mozilla-config.h\'" "-DMOZILLA_CLIENT" "-Qunused-arguments" "-Wdate-time" "-D_FORTIFY_SOURCE=2" "-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-g" "-O2" "\'-fdebug-prefix-map=/build/thunderbird-65.0~b1=.\'" "-fstack-protector-strong" "-Wformat" "-Werror=format-security" "-fno-delete-null-pointer-checks" "-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-fno-strict-aliasing" "-ffunction-sections" "-fdata-sections" "-fno-math-errno" "-pthread" "-pipe" "-g" "-O2" "-fomit-frame-pointer" "-funwind-tables" "--target=x86_64-unknown-linux-gnu" "-o" "/build/thunderbird-65.0~b1/obj-thunderbird/release/build/libloading-6995c287efb94c10/out/src/os/unix/global_static.o" "-c" "src/os/unix/global_static.c"
>  0:01.32 cargo:warning=clang: error: no such file or directory: ''-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/system_wrappers''
>  0:01.32 cargo:warning=clang: error: no such file or directory: ''-I/build/thunderbird-65.0~b1/toolkit/library/rust''
>  0:01.32 cargo:warning=clang: error: no such file or directory: ''-I/build/thunderbird-65.0~b1/obj-thunderbird/toolkit/library/rust''
>  0:01.32 cargo:warning=clang: error: no such file or directory: ''-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include''
>  0:01.32 cargo:warning=clang: error: no such file or directory: ''-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include/nss''
>  0:01.33 cargo:warning=clang: error: no such file or directory: ''-fdebug-prefix-map=/build/thunderbird-65.0~b1=.''
>  0:01.33 exit code: 1
>  0:01.33 --- stderr
>  0:01.33 thread 'main' panicked at '
>  0:01.33 Internal error occurred: Command "/usr/lib/ccache/clang" "-std=gnu99" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "\'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/system_wrappers\'" "-include" "\'/build/thunderbird-65.0~b1/config/gcc_hidden.h\'" "-DNDEBUG=1" "-DTRIMMED=1" "\'-I/build/thunderbird-65.0~b1/toolkit/library/rust\'" "\'-I/build/thunderbird-65.0~b1/obj-thunderbird/toolkit/library/rust\'" "\'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include\'" "-I/usr/include/nspr" "-I/usr/include/nss" "\'-I/build/thunderbird-65.0~b1/obj-thunderbird/dist/include/nss\'" "-fPIC" "-include" "\'/build/thunderbird-65.0~b1/obj-thunderbird/mozilla-config.h\'" "-DMOZILLA_CLIENT" "-Qunused-arguments" "-Wdate-time" "-D_FORTIFY_SOURCE=2" "-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-g" "-O2" "\'-fdebug-prefix-map=/build/thunderbird-65.0~b1=.\'" "-fstack-protector-strong" "-Wformat" "-Werror=format-security" "-fno-delete-null-pointer-checks" "-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-fno-strict-aliasing" "-ffunction-sections" "-fdata-sections" "-fno-math-errno" "-pthread" "-pipe" "-g" "-O2" "-fomit-frame-pointer" "-funwind-tables" "--target=x86_64-unknown-linux-gnu" "-o" "/build/thunderbird-65.0~b1/obj-thunderbird/release/build/libloading-6995c287efb94c10/out/src/os/unix/global_static.o" "-c" "src/os/unix/global_static.c" with args "clang" did not execute successfully (status code exit code: 1).
>  0:01.33 ', /build/thunderbird-65.0~b1/third_party/rust/cc/src/lib.rs:2253:5
>  0:01.33 stack backtrace:
>  0:01.33    0:     0x5649d40cdedf - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h033a953788a62cfc
>  0:01.33    1:     0x5649d40daf97 - std::sys_common::backtrace::print::he407913f8a49b829
>  0:01.33    2:     0x5649d40d3a2f - std::panicking::default_hook::{{closure}}::hcb1c9d1ce3876387
>  0:01.33    3:     0x5649d40d3794 - std::panicking::default_hook::hc21dab1b225f1aa3
>  0:01.33    4:     0x5649d40d410e - std::panicking::rust_panic_with_hook::h7c38c66c519e8660
>  0:01.33    5:     0x5649d40d3cb1 - std::panicking::continue_panic_fmt::h910f3aaaa51bfe3a
>  0:01.33    6:     0x5649d40d3bfe - std::panicking::begin_panic_fmt::h18830179338e066e
>  0:01.33    7:     0x5649d40bddf2 - cc::fail::ha25ec4798bf03492
>  0:01.33    8:     0x5649d40b0d7f - cc::Build::compile::hee5c985c37e917de
>  0:01.33    9:     0x5649d40a3026 - build_script_build::main::hc22027c6d88f9dcc
>  0:01.33   10:     0x5649d40a2472 - std::rt::lang_start::{{closure}}::h9ff27b15ae65dc8c
>  0:01.33   11:     0x5649d40d3b32 - std::panicking::try::do_call::h97c4715a5faeeefa
>  0:01.33   12:     0x5649d40e2889 - __rust_maybe_catch_panic
>  0:01.33   13:     0x5649d40bf07a - std::rt::lang_start_internal::h7f1f2ab240df018c
>  0:01.33   14:     0x5649d40a31e4 - main
>  0:01.33   15:     0x7f2bfa6bc09a - __libc_start_main
>  0:01.33   16:     0x5649d40a21b9 - _start
>  0:01.33   17:                0x0 - <unknown>
>  0:01.33 make[5]: *** [/build/thunderbird-65.0~b1/config/rules.mk:1052: force-cargo-library-build] Error 101
>  0:01.33 make[4]: *** [/build/thunderbird-65.0~b1/config/recurse.mk:74: toolkit/library/rust/target] Error 2
>  0:01.33 make[4]: *** Waiting for unfinished jobs....

It took me a while to see that probably the root could simply be that
the option for the debug prefix is wrongly interpreted as a folder.

> 0:01.33 cargo:warning=clang: error: no such file or directory: ''-fdebug-prefix-map=/build/thunderbird-65.0~b1=.''

All mentioned missing folder above are existing, excpet of course this
-fdebug-prefix-map thing of course. But maybe I'm looking here in the
wrong direction

I've no experience with rust and cargo. So if someone can enlighten me
what I can try to do or have to look at I'm happy to take any help! I've
tried a few things and currently I'm using the full blown upstream
source (with all that embedded JS code etc.) and also decreased the
patch queue a bit to avoid possible missing upstream files.

But I'm sure there must have been something changed in the upstream
source, version 60.4.0 has build successfully a few days ago in
unstable. Maybe debhelper is also doing something wrong, dunno.

In the past I've asked Mike about such problems, but I also have given
up to do as Mike is simply not answering an any of my emails for some time.
FF in unstable isn't the current beta version so looking at the FF repo
will probably not helping to fix this issue.

-- 
Regards
Carsten Schoenert


More information about the Pkg-mozext-maintainers mailing list