developer-docs
developer-docs copied to clipboard
comm-beta build fails on fresh environment
As explained in #153 I am getting started in thunderbird development.
I am on mozilla-beta / comm-beta build starts but fails at
error: no member named 'TB_MAILS_READ' in 'mozilla::Telemetry::ScalarID'
accompanied with some further errors in 'mozilla::Telemetry'
Full log: https://pastebin.com/XiDGhqh1
No sourcecode changes, not custom configs. What do I need for a successful build?
Have you checked out the corresponding mozilla-beta tree? Building comm-beta in mozilla-central does not work.
Building esr or beta is indeed error-prone (mach bootstrap tends to update the toolchain to the latest version, which may have issues with these older repositories), so if you want to get a first build fast, I suggest to check out mozilla-central and comm-central first.
Of course I have matching mozilla and comm repos. In mozilla-central building works, but my built thunderbird crashes within 10 seconds of start with this:
Program /home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/thunderbird (pid = 557999) received signal 11.
Stack:
#01: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xad6816e]
#02: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xc2f6928]
#03: ???[/lib/x86_64-linux-gnu/libc.so.6 +0x42520]
#04: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xaa1ce7a]
#05: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xafbd175]
#06: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xafbc630]
#07: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xafc5d6a]
#08: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xaf7217f]
#09: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xafe66a4]
#10: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xafe69be]
#11: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xafeec60]
#12: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xaf88347]
#13: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xafaee0a]
#14: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xaf5f50f]
#15: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x5eaf9ca]
#16: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x5eaf6d7]
#17: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x5ea710f]
#18: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x5ea087b]
#19: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x5e9faae]
#20: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x5e9fcfb]
#21: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x5ea0ccc]
#22: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x5eb7763]
#23: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x5ebb32d]
#24: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x66fefa1]
#25: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x66761cb]
#26: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x667611b]
#27: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x94a779f]
#28: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xac6f5f4]
#29: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xad80329]
#30: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xad80e6b]
#31: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0xad812d7]
#32: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/thunderbird +0x44d12]
#33: ???[/lib/x86_64-linux-gnu/libc.so.6 +0x29d90]
#34: __libc_start_main[/lib/x86_64-linux-gnu/libc.so.6 +0x29e40]
#35: ???[/home/doebi/repos/mozilla/obj-x86_64-pc-linux-gnu/dist/bin/thunderbird +0x44999]
#36: ??? (???:???)
Sleeping for 300 seconds
By now I find it very discouraging getting into this new ecosystem with the encountered errors and not being able to tell whether this is an issue on my side, with the ecosystem or the current development.
Did you run mach clobber
between building Firefox and Thunderbird?
This is the equivalent of running make clean
, and is necessary when switching between build products. (You can set a different OBJDIR for each product if you want to have a single source directory and build multiple products from it.)
mk_add_options MOZ_OBJDIR="../obj-thunderbird"