Closed Bug 1234033 Opened 9 years ago Closed 8 years ago

--with-system-bz2 fails to build with Clang

Categories

(Toolkit :: Application Update, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox42 --- wontfix
firefox43 --- wontfix
firefox44 --- wontfix
firefox45 --- fixed
firefox46 --- fixed
firefox-esr38 --- wontfix
firefox-esr45 --- fixed

People

(Reporter: jbeich, Assigned: jbeich)

References

Details

Attachments

(1 file)

mfbt/Compiler.h doesn't define MOZ_IS_GCC for Clang which makes config/gcc_hidden.h hide globals from libbz2.so. Before bug 836078 the code used #if (__GNUC__ >= 4) which worked fine for Clang pretending to be GCC 4.2.1.

updater.o: In function `PatchFile::LoadSourceFile(__sFILE*)':
toolkit/mozapps/update/updater/updater.cpp:(.text+0x1349): undefined reference to `BZ2_crc32Table'
/usr/bin/ld: updater.o: relocation R_X86_64_PC32 against `BZ2_crc32Table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
Comment on attachment 8700401 [details]
MozReview Request: Bug 1234033 - Unbreak build --with-system-bz2 using Clang. r?dvander

https://reviewboard.mozilla.org/r/28707/#review25899
Attachment #8700401 - Flags: review?(dvander) → review+
Assignee: nobody → jbeich
Keywords: checkin-needed
Comment on attachment 8700401 [details]
MozReview Request: Bug 1234033 - Unbreak build --with-system-bz2 using Clang. r?dvander

Less downstream patches for ESR45.

Approval Request Comment
[Feature/regressing bug #]: bug 836078 regression
[User impact if declined]: Broken build --with-system-bz2 on some Clang platforms unless --disable-updater is also passed
[Describe test coverage new/current, TreeHerder]: Try build via reviewboard, landed in m-i, soon m-c
[Risks and why]: Broken build
[String/UUID change made/needed]: None
Attachment #8700401 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/61a36f055e0b
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Attachment #8700401 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: