LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 09-04-2023, 02:18 PM   #1
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Question 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?

Last edited by Keith Hedger; 09-04-2023 at 02:31 PM. Reason: xtra info
 
Old 09-05-2023, 06:55 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
It may be sensitive to nss version. Thunderbird 102.15.0 builds against nss-3.93 here. Just my 2¢.
 
Old 09-05-2023, 08:23 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by Emerson View Post
It may be sensitive to nss version. Thunderbird 102.15.0 builds against nss-3.93 here. Just my 2¢.
Nope no change.
 
Old 09-05-2023, 10:30 AM   #4
bryan_S
Member
 
Registered: Aug 2014
Location: N. Florida
Distribution: LinuxfromScratch, OpenSuse, Slackware
Posts: 107

Rep: Reputation: Disabled
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?
 
Old 09-05-2023, 10:38 AM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by bryan_S View Post
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.
 
Old 09-06-2023, 05:58 AM   #6
bryan_S
Member
 
Registered: Aug 2014
Location: N. Florida
Distribution: LinuxfromScratch, OpenSuse, Slackware
Posts: 107

Rep: Reputation: Disabled
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.
 
Old 09-06-2023, 06:12 AM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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
 
Old 09-06-2023, 06:14 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
^^ 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.
 
Old 09-07-2023, 11:01 AM   #9
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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.
 
Old 09-07-2023, 01:11 PM   #10
bryan_S
Member
 
Registered: Aug 2014
Location: N. Florida
Distribution: LinuxfromScratch, OpenSuse, Slackware
Posts: 107

Rep: Reputation: Disabled
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.
 
  


Reply

Tags
11.3, compile, error, lfs, thunderbird



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving from Thunderbird in Windows to Thunderbird in Linux pnh73 Linux - Software 14 11-05-2011 09:24 AM
Importing Windows Thunderbird to Linux Thunderbird NaughtyMonkey Linux - Desktop 1 07-11-2007 04:54 PM
Importing Thunderbird(Windows) to Thunderbird(Linux) NomadABC Linux - Software 9 07-19-2006 01:30 AM
How to export/import Thunderbird mail to another computer with Thunderbird mail clau_bolson Linux - Software 1 04-06-2006 01:43 PM
Thunderbird and Firefox, Thunderbird doesnt launch firefox? sovietpower Slackware 1 11-01-2004 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration