Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 688300

Summary: mail-client/thunderbird-60.7.1: emake failed: error: Could not compile `cose`
Product: Gentoo Linux Reporter: Thomas Deutschmann <whissi>
Component: Current packagesAssignee: Gentoo Rust Project <rust>
Status: CONFIRMED ---    
Severity: normal CC: mozilla
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Thomas Deutschmann gentoo-dev Security 2019-06-18 17:13:56 UTC
Created attachment 580084 [details]
build.log

> 11:13.67 /usr/lib/llvm/7/bin/i686-pc-linux-gnu-clang++ -o Unified_cpp_js_src39.o -c -I/var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/tbird/dist/system_wrappers -include /var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DENABLE_WASM_GLOBAL -DENABLE_SHARED_ARRAY_BUFFER -DEXPORT_JS_API -DJS_HAS_CTYPES '-DDLL_PREFIX="lib"' '-DDLL_SUFFIX=".so"' -DMOZ_HAS_MOZGLUE -I/var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/js/src -I/var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/tbird/js/src -I/var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/tbird/dist/include -I/usr/include/nspr -fPIC -DMOZILLA_CLIENT -include /var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/tbird/js/src/js-confdefs.h -Qunused-arguments -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Qunused-arguments -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wunreachable-code-return -Wwrite-strings -Wno-invalid-offsetof -Wclass-varargs -Wloop-analysis -Wc++1z-compat -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wformat -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wno-noexcept-type -Wno-unknown-warning-option -Wno-return-type-c-linkage -fno-sized-deallocation -O2 -pipe -march=pentium4m -mtune=pentium4m -Wno-error=sign-compare -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -O2 -fomit-frame-pointer -I/usr/lib/libffi-3.2.1/include -Wno-shadow -Werror=format -fno-strict-aliasing  -MD -MP -MF .deps/Unified_cpp_js_src39.o.pp  -fcolor-diagnostics  /var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/tbird/js/src/Unified_cpp_js_src39.cpp
> 11:15.49    Compiling unicode-xid v0.0.4
> 11:16.13    Compiling lazycell v0.4.0
> 11:16.49    Compiling quote v0.3.15
> 11:17.45    Compiling slab v0.3.0
> 11:18.48    Compiling futures v0.1.18
> 11:19.65    Compiling bitflags v1.0.1
> 11:20.52    Compiling matches v0.1.6
> 11:20.76    Compiling scoped-tls v0.1.0
> 11:21.38    Compiling lazy_static v0.2.11
> 11:21.67    Compiling serde v1.0.27
> 11:28.85    Compiling cose v0.1.4
> 11:29.73 error: linking with `/var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/build/cargo-linker` failed: exit code: 1
> 11:29.73   |
> 11:29.73   = note: "/var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/build/cargo-linker" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m32" "-L" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib" "/var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/tbird/toolkit/library/release/build/cose-b87c5d17658f5432/build_script_build-b87c5d17658f5432.build_script_build.gvqjqtxy-cgu.0.rcgu.o" "-o" "/var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/tbird/toolkit/library/release/build/cose-b87c5d17658f5432/build_script_build-b87c5d17658f5432" "/var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/tbird/toolkit/library/release/build/cose-b87c5d17658f5432/build_script_build-b87c5d17658f5432.3id1p0uxxa0w7qoy.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/var/tmp/portage/mail-client/thunderbird-60.7.1/work/thunderbird-60.7.1/tbird/toolkit/library/release/deps" "-L" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib/libstd-af43f13011757b56.rlib" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib/libpanic_unwind-84d05f5230b22f82.rlib" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib/libbacktrace_sys-47fb43140e9323b0.rlib" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib/libunwind-2af14fc6db705912.rlib" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-239a3132043be78b.rlib" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib/liblibc-982820b770d5001b.rlib" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib/liballoc-06a86e5fbe572115.rlib" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib/librustc_std_workspace_core-3909ad7ba8385cd4.rlib" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib/libcore-6e27722e62f7efcf.rlib" "-Wl,--end-group" "/usr/lib/rust-1.34.2/rustlib/i686-unknown-linux-gnu/lib/libcompiler_builtins-7bc3d821516ebe6c.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
> 11:29.73   = note: ld.lld: error: dwarf.c:(.debug_info+0x36849): has non-ABS relocation R_386_GOTOFF against symbol '.LC25'
> 11:29.73           clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
> 11:29.73           
> 11:29.73 
> 11:30.00 error: aborting due to previous error
> 11:30.01 
> 11:30.01 error: Could not compile `cose`.
> 11:30.01 warning: build failed, waiting for other jobs to finish...
Comment 1 Thomas Deutschmann gentoo-dev Security 2019-06-18 17:28:50 UTC
When using dev-lang/rust-bin-1.34.2 instead, error doesn't happen.




Portage 2.3.66 (python 3.6.5-final-0, default/linux/x86/17.0, gcc-8.3.0, glibc-2.29-r2, 4.19.44-gentoo i686)
=================================================================
System uname: Linux-4.19.44-gentoo-i686-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:     3106604 total,   1303884 free
KiB Swap:     488276 total,    432212 free
Timestamp of repository gentoo: Tue, 18 Jun 2019 12:24:35 +0000
Head commit of repository gentoo: b4cdf520f04613689e67dbd9a77a91bd6b4850fe

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p7) 2.31.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.14.3::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r6::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

ABI="x86"
ABI_X86="32"
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ARCH="x86"
BROOT=""
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m -Wno-error=jump-misses-init -Wno-error=sign-compare"
CHOST="i686-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
COLLISION_IGNORE="/lib/modules/*"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CPU_FLAGS_X86="mmx mmxext sse sse2"
CXXFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m -Wno-error=jump-misses-init -Wno-error=sign-compare"
DEFAULT_ABI="x86"
EDITOR="/usr/bin/mcedit"
ELIBC="glibc"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GCC_SPECS=""
GRUB_PLATFORMS="efi-32 pc"
GSETTINGS_BACKEND="dconf"
HOME="/root"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/8.3.0/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.31.1/info:/usr/share/info"
INPUT_DEVICES="libinput keyboard mouse"
IUSE_IMPLICIT="abi_x86_32 prefix prefix-guest prefix-stack"
KERNEL="linux"
L10N="en en-US de de-DE"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_MESSAGES="C"
LC_PAPER="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LIBDIR_x86="lib"
LINGUAS="en de"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="--jobs 5 --load-average 7.95"
MULTILIB_ABIS="x86"
NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/root"
OPENCL_PROFILE="ocl-icd"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/lib/llvm/7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
PHP_TARGETS="php5-6 php7-1 php7-2 php7-3"
POSTGRES_TARGETS="postgres10 postgres11"
PWD="/var/tmp/distfiles"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_6"
PYTHON_TARGETS="python2_7 python3_6"
QT_GRAPHICSSYSTEM="raster"
ROOT="/"
ROOTPATH="/usr/lib/llvm/7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
RUBY_TARGETS="ruby24"
SHELL="/bin/bash"
SHLVL="2"
SSH_TTY="/dev/pts/1"
SYSROOT="/"
TERM="tmux-256color"
TMUX="/tmp//tmux-0/default,4178,0"
TMUX_PANE="%2"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
USER="root"
USERLAND="GNU"
VIDEO_CARDS="vmware"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
Comment 2 Georgy Yakovlev gentoo-dev 2019-06-18 18:06:35 UTC
can you post output of emerge --info rust (for the one that fails)?
Comment 3 Thomas Deutschmann gentoo-dev Security 2019-06-18 18:07:44 UTC
dev-lang/rust-1.34.2::gentoo was built with the following:                                                              USE="-clippy -debug -doc -libressl -rls -rustfmt (-system-llvm) -wasm" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -WebAssembly -XCore"                   CFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m -Wno-error=jump-misses-init -Wno-error=sign-compare -ggdb"          CXXFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m -Wno-error=jump-misses-init -Wno-error=sign-compare -ggdb"        FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 4 Georgy Yakovlev gentoo-dev 2019-06-18 23:33:46 UTC
looks like you have rust build with -ggdb, and something dwarf related upsets linker.

I can't reproduce it on rust-1.34.2 built with normal flags, will try -ggdb