Closed
Bug 1491157
Opened 7 years ago
Closed 7 years ago
Firefox nightly does not compile with clang on Archlinux
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox64 affected)
RESOLVED
INVALID
Tracking | Status | |
---|---|---|
firefox64 | --- | affected |
People
(Reporter: TestMode11, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/61.0
Build ID: 20180825150157
Steps to reproduce:
Despite the recent news that Firefox works now with clang it does not compile with clang on Archlinux. After long compilation getting errors like
undefined reference to `std::string
undefined reference to `std::ctype
undefined reference to `std::ios_base::ios_base
undefined reference to `__cxa_pure_virtual'
Adding --stdlib=libstdc++ to CPPFLAGS makes no difference. mozconfig below
export CC=clang
export CXX=clang++
mk_add_options MOZ_MAKE_FLAGS="-j3"
ac_add_options --enable-optimize
ac_add_options --enable-application=browser
ac_add_options --prefix=/usr
ac_add_options --enable-release
ac_add_options --disable-nodejs
ac_add_options --disable-elf-hack
ac_add_options --disable-jemalloc
ac_add_options --disable-sandbox
ac_add_options --disable-dbus
ac_add_options --enable-rust-simd
ac_add_options --disable-synth-speechd
# Branding
ac_add_options --enable-official-branding
ac_add_options --enable-update-channel=release
ac_add_options --with-distribution-id=org.archlinux
export MOZILLA_OFFICIAL=1
export MOZ_TELEMETRY_REPORTING=0
export MOZ_ADDON_SIGNING=1
export MOZ_REQUIRE_SIGNING=1
export MOZ_TELEMETRY_ON_BY_DEFAULT=0
# System libraries
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
ac_add_options --without-system-icu
ac_add_options --with-system-jpeg
ac_add_options --with-system-libvpx
ac_add_options --with-system-libevent
ac_add_options --disable-system-nspr
ac_add_options --disable-system-nss
ac_add_options --enable-system-sqlite
ac_add_options --enable-system-ffi
ac_add_options --with-system-png
ac_add_options --disable-accessibility
ac_add_options --disable-gamepad
ac_add_options --disable-tests
ac_add_options --disable-necko-wifi
ac_add_options --disable-gconf
ac_add_options --disable-webrtc
ac_add_options --disable-eme
# Features
ac_add_options --enable-alsa
ac_add_options --disable-jack
ac_add_options --disable-pulseaudio
ac_add_options --disable-startup-notification
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
ac_add_options --enable-default-toolkit=cairo-gtk3-wayland
Comment 1•7 years ago
|
||
Having the command line which generates the error would help
./mach build -v
will give you that info.
status-firefox64:
--- → affected
Component: Untriaged → General
Product: Firefox → Firefox Build System
Version: 61 Branch → 64 Branch
Comment 2•7 years ago
|
||
Unrelated to the error, but:
(In reply to TestMode from comment #0)
> ac_add_options --disable-elf-hack
> ac_add_options --disable-jemalloc
> ac_add_options --disable-sandbox
Don't do this.
>>Having the command line which generates the error would help
I've compiled with gcc already, but on clang it was failing with /usr/bin/ld on libopenh264, libclearkey, elfhack, jemalloc, sandbox, firefox, anything with standalone c++ library or executable
Comment 4•7 years ago
|
||
We need more information to be able to help you debug.
According to https://bugzilla.mozilla.org/show_bug.cgi?id=1489096 clang 7 is needed to build firefox so compilation should abort on earlier versions.
Comment 6•7 years ago
|
||
No, this is what we use but previous version of clang should still work.
It works now with clang 7, though there is little difference in performance. Issue can be closed
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•