LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   problem compiling thunderbird in 11.3 (https://www.linuxquestions.org/questions/linux-from-scratch-13/problem-compiling-thunderbird-in-11-3-a-4175728650/)

Keith Hedger 09-04-2023 02:18 PM

problem compiling thunderbird in 11.3
 
I have been trying to compile thunderbird on 11.3 as here:
https://www.linuxfromscratch.org/blf...underbird.html

All dependencies are installed with no errors, this is my mozconfig file:
Code:

# If you have a multicore machine, the build may be faster if using parallel
# jobs. The build system automatically adds -jN to the "make" flags, where N
# is the number of CPU cores. The option below is therefore useless, unless
# you want to use a smaller number of jobs:
mk_add_options MOZ_MAKE_FLAGS="-j11"

# If you have installed wireless-tools comment out this line:
ac_add_options --disable-necko-wifi

# Uncomment these lines if you have installed optional dependencies:
#ac_add_options --enable-startup-notification

# Uncomment the following option if you have not installed PulseAudio
#ac_add_options --disable-pulseaudio
# and uncomment this if you installed alsa-lib instead of PulseAudio
#ac_add_options --enable-alsa


# If you want to compile the Mozilla Calendar, uncomment this line:
#ac_add_options --enable-calendar

# Comment out following options if you have not installed
# recommended dependencies:
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-icu

# The elf-hack causes failed installs on some machines.
# It is supposed to improve startup time and it shrinks libxul.so
# by a few MB - comment this if you know your machine is not affected.
#ac_add_options --disable-elf-hack

# The BLFS editors recommend not changing anything below this line:
ac_add_options --prefix=/usr
ac_add_options --enable-application=comm/mail

ac_add_options --disable-crashreporter
ac_add_options --disable-updater
ac_add_options --disable-debug
ac_add_options --disable-debug-symbols
ac_add_options --disable-tests

ac_add_options --enable-optimize=-O2
ac_add_options --enable-linker=gold
ac_add_options --enable-strip
ac_add_options --enable-install-strip

ac_add_options --enable-official-branding

ac_add_options --enable-system-ffi
ac_add_options --enable-system-pixman

ac_add_options --with-system-jpeg
ac_add_options --with-system-png
ac_add_options --with-system-zlib
ac_add_options --without-wasm-sandboxed-libraries

Nothing odd there that I can see, this is the error:
Code:

0:36.58 js/src> checking whether malloc_usable_size definition can use const argument... no
 0:36.61 js/src> checking for valloc in malloc.h... yes
 0:36.64 js/src> checking for valloc in unistd.h... no
 0:36.66 js/src> checking for _aligned_malloc in malloc.h... no
 0:36.67 js/src> creating ./config.data
 0:36.68 Creating config.status
 0:37.60 Reticulating splines...
 0:40.28 Error in sitecustomize; set PYTHONVERBOSE for traceback:
 0:40.28 ModuleNotFoundError: No module named 'mach_bootstrap'
 0:40.82  0:03.45 File already read. Skipping: /LFSSourceArchives/11.3/thunderbird-102.9.0/intl/components/moz.build
 0:42.53  0:05.16 File already read. Skipping: /LFSSourceArchives/11.3/thunderbird-102.9.0/gfx/angle/targets/angle_common/moz.build
 1:03.76 concurrent.futures.process._RemoteTraceback:
 1:03.76 """
 1:03.76 Traceback (most recent call last):
 1:03.76  File "/usr/lib/python3.11/concurrent/futures/process.py", line 256, in _process_worker
 1:03.76    r = call_item.fn(*call_item.args, **call_item.kwargs)
 1:03.76        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/python/mozbuild/mozbuild/frontend/gyp_reader.py", line 395, in load_gyp
 1:03.76    _, flat_list, targets, data = gyp.Load(*args)
 1:03.76                                  ^^^^^^^^^^^^^^^
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/third_party/python/gyp/pylib/gyp/__init__.py", line 134, in Load
 1:03.76    result = gyp.input.Load(build_files, default_variables, includes[:],
 1:03.76              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/third_party/python/gyp/pylib/gyp/input.py", line 2788, in Load
 1:03.76    LoadTargetBuildFile(build_file, data, aux_data,
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/third_party/python/gyp/pylib/gyp/input.py", line 426, in LoadTargetBuildFile
 1:03.76    ProcessVariablesAndConditionsInDict(
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/third_party/python/gyp/pylib/gyp/input.py", line 1224, in ProcessVariablesAndConditionsInDict
 1:03.76    ProcessVariablesAndConditionsInDict(the_dict['variables'], phase,
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/third_party/python/gyp/pylib/gyp/input.py", line 1224, in ProcessVariablesAndConditionsInDict
 1:03.76    ProcessVariablesAndConditionsInDict(the_dict['variables'], phase,
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/third_party/python/gyp/pylib/gyp/input.py", line 1224, in ProcessVariablesAndConditionsInDict
 1:03.76    ProcessVariablesAndConditionsInDict(the_dict['variables'], phase,
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/third_party/python/gyp/pylib/gyp/input.py", line 1232, in ProcessVariablesAndConditionsInDict
 1:03.76    expanded = ExpandVariables(value, phase, variables, build_file)
 1:03.76                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/third_party/python/gyp/pylib/gyp/input.py", line 928, in ExpandVariables
 1:03.76    raise GypError("Call to '%s' returned exit status %d while in %s." %
 1:03.76 gyp.common.GypError: Call to '"/LFSSourceArchives/11.3/thunderbird-102.9.0/obj-x86_64-pc-linux-gnu/_virtualenvs/build/bin/python" ./coreconf/detect_host_arch.py' returned exit status 0 while in /LFSSourceArchives/11.3/thunderbird-102.9.0/security/nss/nss.gyp. while trying to load /LFSSourceArchives/11.3/thunderbird-102.9.0/security/nss/nss.gyp
 1:03.76 """
 1:03.76
 1:03.76 The above exception was the direct cause of the following exception:
 1:03.76
 1:03.76 Traceback (most recent call last):
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/configure.py", line 349, in <module>
 1:03.76    sys.exit(main(sys.argv))
 1:03.76              ^^^^^^^^^^^^^^
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/configure.py", line 161, in main
 1:03.76    return config_status(config)
 1:03.76            ^^^^^^^^^^^^^^^^^^^^^
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/configure.py", line 300, in config_status
 1:03.76    return config_status(args=[], **sanitized_config)
 1:03.76            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/python/mozbuild/mozbuild/config_status.py", line 162, in config_status
 1:03.76    definitions = list(definitions)
 1:03.76                  ^^^^^^^^^^^^^^^^^
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/python/mozbuild/mozbuild/frontend/emitter.py", line 150, in emit
 1:03.76    for out in output:
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/python/mozbuild/mozbuild/frontend/reader.py", line 928, in read_topsrcdir
 1:03.76    for gyp_context in g.results:
 1:03.76  File "/LFSSourceArchives/11.3/thunderbird-102.9.0/python/mozbuild/mozbuild/frontend/gyp_reader.py", line 476, in results
 1:03.76    flat_list, targets, data = self._gyp_loader_future.result()
 1:03.76                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 1:03.76  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 449, in result
 1:03.79    return self.__get_result()
 1:03.79            ^^^^^^^^^^^^^^^^^^^
 1:03.79  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
 1:03.79    raise self._exception
 1:03.79 gyp.common.GypError: Call to '"/LFSSourceArchives/11.3/thunderbird-102.9.0/obj-x86_64-pc-linux-gnu/_virtualenvs/build/bin/python" ./coreconf/detect_host_arch.py' returned exit status 0 while in /LFSSourceArchives/11.3/thunderbird-102.9.0/security/nss/nss.gyp. while trying to load /LFSSourceArchives/11.3/thunderbird-102.9.0/security/nss/nss.gyp
*** Fix above errors and then restart with "./mach build"

It dies in the ./mach configure line.
All previous commands are by the book,

Cant find anything on google, I'm stumped! any ideas?

Emerson 09-05-2023 06:55 AM

It may be sensitive to nss version. Thunderbird 102.15.0 builds against nss-3.93 here. Just my 2¢.

Keith Hedger 09-05-2023 08:23 AM

Quote:

Originally Posted by Emerson (Post 6451921)
It may be sensitive to nss version. Thunderbird 102.15.0 builds against nss-3.93 here. Just my 2¢.

Nope no change.

bryan_S 09-05-2023 10:30 AM

Obvious, but are you sure you're exporting MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE and MOZBUILD_STATE_PATH variables before running .mach configure? If compiling via a build script maybe they got left out?

Keith Hedger 09-05-2023 10:38 AM

Quote:

Originally Posted by bryan_S (Post 6451934)
Obvious, but are you sure you're exporting MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE and MOZBUILD_STATE_PATH variables before running .mach configure? If compiling via a build script maybe they got left out?


Yes as per the blfs page, build script
Code:

...
sed -i '/ROOT_CLIP_CHAIN/d' gfx/webrender_bindings/webrender_ffi.h

export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
export MOZBUILD_STATE_PATH=./mozbuild
export SHELL=/bin/sh
./mach configure
...

Running in chroot.

bryan_S 09-06-2023 05:58 AM

A couple of things maybe to check.

Did you update any of the dependencies so they no longer match 11.3 versions? - especially Python; it only went from version 3.11.2 to 3.11.4 in blfs 12 though... Doesn't seem like it would be enough to make a difference.

Also i would try to comment out: mk_add_options MOZ_MAKE_FLAGS="-j11" and see what happens. Maybe too many jobs for that version of T-bird.

Keith Hedger 09-06-2023 06:12 AM

away from my machine for now will check and get back but as this was a fresh install i dont think this is the problem, but i'll see

Emerson 09-06-2023 06:14 AM

^^ Yes good idea, I did not notice that. For troubleshooting -j1 is the best. With more tasks your real error may be way back in the log.

Keith Hedger 09-07-2023 11:01 AM

thx for the replies but i have now fixed this, seems when i updated python bef9re installing thnderbird as per the blfs page i somehow managed to screw up some modules and some bits of python ( pip3 disappeared! ), so i completly removed python3 , nss nspr and sqlite then reinstalled and now its compiling fine, i truly detest python, seems like i have spent more time fixing/finding python modules than anything else since i started using linux.
marking as solved.

bryan_S 09-07-2023 01:11 PM

Yeah, I've noticed if you're using a package manager and try to upgrade/rebuild Python, it won't rebuild pip3 if it's installed - even IF you specify --ensure-pip. So what i do now is remove existing Python first before rebuilding it. Highly annoying.


All times are GMT -5. The time now is 07:27 AM.