I'm trying to building Firefox 52.4.1esr on my Linux from Scratch system. The system I'm building on has 2 1GHz Pentium III processors and 1GB of RAM. I was unable to build the latest version of Firefox because I can't run Rust on that system. Version 52.4.1esr was the latest version I found that could work on a Pentium III. After building Firefox for a little bit, I get the following error, which I suspect is Python related:

props2arrays.py main unixcharset.properties.h .deps/unixcharset.properties.h.pp /root/sources/firefox-52.4.1esr/intl/locale/unix/unixcharset.properties
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/root/sources/firefox-52.4.1esr/python/mozbuild/mozbuild/action/file_generate.py", line 108, in <module>
sys.exit(main(sys.argv[1:]))
File "/root/sources/firefox-52.4.1esr/python/mozbuild/mozbuild/action/file_generate.py", line 63, in main
ret = module.__dict__[method](output, *args.additional_arguments)
File "/root/sources/firefox-52.4.1esr/toolkit/components/telemetry/gen-event-data.py", line 125, in main
write_common_event_table(events, output, string_table, extra_table)
File "/root/sources/firefox-52.4.1esr/toolkit/components/telemetry/gen-event-data.py", line 82, in write_common_event_table
e.dataset),
TypeError: %d format: a number is required, not float
make[5]: Leaving directory '/root/sources/firefox-52.4.1esr/firefox-build-dir/intl/locale/unix'
make[5]: *** [backend.mk:9: TelemetryEventData.h] Error 1
make[5]: *** Deleting file 'TelemetryEventData.h'
make[5]: Leaving directory '/root/sources/firefox-52.4.1esr/firefox-build-dir/toolkit/components/telemetry' make[4]: *** [/root/sources/firefox-52.4.1esr/config/recurse.mk:79: toolkit/components/telemetry/export] Error 2 make[4]: Leaving directory '/root/sources/firefox-52.4.1esr/firefox-build-dir' make[3]: *** [/root/sources/firefox-52.4.1esr/config/recurse.mk:33: export] Error 2 make[3]: Leaving directory '/root/sources/firefox-52.4.1esr/firefox-build-dir' make[2]: *** [/root/sources/firefox-52.4.1esr/config/rules.mk:523: default] Error 2 make[2]: Leaving directory '/root/sources/firefox-52.4.1esr/firefox-build-dir' make[1]: *** [/root/sources/firefox-52.4.1esr/client.mk:415: realbuild] Error 2
make[1]: Leaving directory '/root/sources/firefox-52.4.1esr'
make: *** [client.mk:170: build] Error 2

I have installed all the recommended dependencies from the Beyond Linux from Scratch book and installed OpenSSL 1.1.0f before Python 2.7.14. I'm using GCC 7.2.0 and added -O2 to the enable optimize option as I heard optimization was broken in the latest GCC. I'm currently using Linux from Scratch 20170924-systemd.

A solution for this problem is much appreciated.

Thanks.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to