Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Last edited by Keith Hedger; 09-04-2023 at 02:31 PM.
Reason: xtra info
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?
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Original Poster
Rep:
Quote:
Originally Posted by bryan_S
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?
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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Original Poster
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.