Have a problem compiling,

Board for discussions around the Epyrus mail and news client.

Moderator: athenian200

User avatar
frostknight
Board Warrior
Board Warrior
Posts: 1068
Joined: 2022-08-10, 02:25

Have a problem compiling,

Post by frostknight » 2026-08-03, 07:15

[user@host epyrus]$ ./mach build -j2
0:00.23 /usr/bin/make -f client.mk -s configure
0:00.85 File "/home/user/epyrus2/epyrus/platform/config/pythonpath.py", line 12
0:00.85 print("pythonpath.py -I directory script.py [args...]", file=sys.stderr)
0:00.85 ^
0:00.85 SyntaxError: invalid syntax
0:00.85 client.mk:195: /home/user/epyrus2/epyrus/obj-x86_64-pc-linux-gnu/.mozconfig.mk: No such file or directory
0:00.85 make: *** [client.mk:337: /home/user/epyrus2/epyrus/obj-x86_64-pc-linux-gnu/CLOBBER] Error 1



I have a .mozconfig like the picture attached.
2026-08-03-031528_1920x1080_scrot.png
You do not have the required permissions to view the files attached to this post.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1940
Joined: 2018-10-28, 19:56
Location: Georgia

Re: Have a problem compiling,

Post by athenian200 » 2026-08-03, 07:21

Are you sure you're using Python 3?

That error means you're using Python 2, I think...
"Linux makes everything difficult." -- Lyceus Anubite
"Linux is a cancer that attaches itself in an intellectual property sense to everything it touches. That's the way that the license works." -- Steve Ballmer
"We always overestimate the change that will occur in the next two years and underestimate the change that will occur in ten." -- Bill Gates

User avatar
frostknight
Board Warrior
Board Warrior
Posts: 1068
Joined: 2022-08-10, 02:25

Re: Have a problem compiling,

Post by frostknight » 2026-08-03, 07:31

athenian200 wrote:
2026-08-03, 07:21
Are you sure you're using Python 3?

That error means you're using Python 2, I think...
Oh, I need to explicitly have a

mk_options = python3 or w/e?

or however you do that.

EDIT:

I am surprised how fast you responded.

EDIT again:

Code: Select all

 0:00.23 /usr/bin/make -f client.mk -s configure
 0:00.85 cd /home/localuser/epyrus2/epyrus/obj-x86_64-pc-linux-gnu
 0:00.85 /home/localuser/epyrus2/epyrus/configure
 0:01.21 Reexecuting in the virtualenv
 0:01.38 Adding configure options from /home/localuser/epyrus2/epyrus/mozconfig
 0:01.38   --enable-calendar
 0:01.38   --prefix=/usr
 0:01.38   --enable-application=mail
 0:01.38   --enable-optimize=-O2 -w
 0:01.38   --enable-jemalloc
 0:01.38   --enable-strip
 0:01.38   --enable-security-sqlstore
 0:01.38   --enable-devtools
 0:01.38   --enable-av1
 0:01.38   --disable-webrtc
 0:01.38   --disable-gamepad
 0:01.38   --disable-tests
 0:01.38   --disable-debug
 0:01.38   --disable-necko-wifi
 0:01.38   --disable-updater
 0:01.38   --with-pthreads
 0:01.38   --enable-appcompat-guid
 0:01.38   --disable-safe-browsing
 0:01.38   --disable-url-classifier
 0:01.38   --disable-mozril-geoloc
 0:01.38   --disable-nfc
 0:01.39   --disable-synth-pico
 0:01.39   --disable-gamepad
 0:01.39   --disable-startup-notification
 0:01.39   --disable-tests
 0:01.39   --disable-debug
 0:01.39   --disable-necko-wifi
 0:01.39   --disable-dbus
 0:01.39   --disable-userinfo
 0:01.39   --disable-sync
 0:01.39   --disable-pulseaudio
 0:01.39   --disable-alsa
 0:01.39   --enable-sndio
 0:01.39   --disable-crashreporter
 0:01.39   --enable-official-branding
 0:01.39   --x-libraries=/usr/lib64
 0:01.39   MOZ_PKG_SPECIAL=gtk3
 0:01.39   MOZILLA_OFFICIAL=1
 0:01.39   _BUILD_64=1
 0:01.39   _GTK_VERSION=2
 0:01.39   BASH_ARGV=([0]="/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/action/dump_env.py" [1]="/home/localuser/epyrus2/epyrus/obj-x86_64-pc-linux-gnu/_virtualenv/bin/python" [2]="/home/localuser/epyrus2/epyrus/mozconfig" [3]="/home/localuser/epyrus2/epyrus/platform")
 0:01.39   BASH_ARGC=([0]="4")
 0:01.47 checking for a shell... /bin/sh
 0:01.52 checking for host system type... x86_64-pc-linux-gnu
 0:01.52 checking for target system type... x86_64-pc-linux-gnu
 0:01.55 checking whether cross compiling... no
 0:01.55 checking for pkg_config... /usr/bin/pkg-config
 0:01.56 checking for pkg-config version... 0.29.2
 0:01.56 checking for yasm... /usr/bin/yasm
 0:01.56 checking yasm version... 1.3.0
 0:01.56 checking for the target C compiler... /usr/bin/gcc
 0:01.56 checking whether the target C compiler can be used... Traceback (most recent call last):
 0:01.56   File "/home/localuser/epyrus2/epyrus/configure.py", line 47, in <module>
 0:01.56     sys.exit(main(sys.argv))
 0:01.57   File "/home/localuser/epyrus2/epyrus/configure.py", line 39, in main
 0:01.57     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 376, in run
 0:01.57     func(*args)
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 419, in _value_for
 0:01.57     return self._value_for_depends(obj, need_help_dependency)
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/util.py", line 963, in method_call
 0:01.57     cache[args] = self.func(instance, *args)
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 429, in _value_for_depends
 0:01.57     return obj.result
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/util.py", line 981, in __get__
 0:01.57     setattr(instance, name, self.func(instance))
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 92, in result
 0:01.57     return self.func(*resolved_args)
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 951, in wrapped
 0:01.57     return new_func(*args, **kwargs)
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 683, in wrapper
 0:01.57     ret = template(*args, **kwargs)
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/build/moz.configure/checks.configure", line 52, in wrapped
 0:01.57     ret = func(*args, **kwargs)
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 951, in wrapped
 0:01.57     return new_func(*args, **kwargs)
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/build/moz.configure/toolchain.configure", line 653, in valid_compiler
 0:01.57     info = check_compiler(wrapper + [compiler] + flags, language,
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 951, in wrapped
 0:01.57     return new_func(*args, **kwargs)
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/build/moz.configure/toolchain.configure", line 319, in check_compiler
 0:01.57     info = get_compiler_info(compiler, language)
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 951, in wrapped
 0:01.57     return new_func(*args, **kwargs)
 0:01.57   File "/home/localuser/epyrus2/epyrus/platform/build/moz.configure/toolchain.configure", line 239, in get_compiler_info
 0:01.57     for n, (value, condition) in enumerate(preprocessor_checks.iteritems()):
 0:01.57 AttributeError: 'collections.OrderedDict' object has no attribute 'iteritems'
 0:01.60 *** Fix above errors and then restart with\
 0:01.60                "/usr/bin/make -f client.mk build"
 0:01.60 make: *** [client.mk:370: configure] Error 1
[localuser@localhost epyrus]$ nano mozconfig 
[localuser@localhost epyrus]$ ./mach build
 0:00.23 /usr/bin/make -f client.mk -s configure
 0:01.47 cd /home/localuser/epyrus2/epyrus/obj-x86_64-pc-linux-gnu
 0:01.47 /home/localuser/epyrus2/epyrus/configure
 0:01.83 Reexecuting in the virtualenv
 0:02.00 Adding configure options from /home/localuser/epyrus2/epyrus/mozconfig
 0:02.00   --enable-calendar
 0:02.00   --prefix=/usr
 0:02.00   --enable-application=mail
 0:02.00   --enable-optimize=-O2 -w
 0:02.00   --enable-jemalloc
 0:02.00   --enable-strip
 0:02.00   --enable-security-sqlstore
 0:02.00   --enable-devtools
 0:02.00   --enable-av1
 0:02.00   --disable-webrtc
 0:02.00   --disable-gamepad
 0:02.00   --disable-tests
 0:02.00   --disable-debug
 0:02.00   --disable-necko-wifi
 0:02.00   --disable-updater
 0:02.00   --with-pthreads
 0:02.00   --enable-appcompat-guid
 0:02.00   --disable-safe-browsing
 0:02.00   --disable-url-classifier
 0:02.00   --disable-mozril-geoloc
 0:02.00   --disable-nfc
 0:02.00   --disable-synth-pico
 0:02.00   --disable-gamepad
 0:02.00   --disable-startup-notification
 0:02.01   --disable-tests
 0:02.01   --disable-debug
 0:02.01   --disable-necko-wifi
 0:02.01   --disable-dbus
 0:02.01   --disable-userinfo
 0:02.01   --disable-sync
 0:02.01   --disable-pulseaudio
 0:02.01   --disable-alsa
 0:02.01   --enable-sndio
 0:02.01   --disable-crashreporter
 0:02.01   --enable-official-branding
 0:02.01   --x-libraries=/usr/lib64
 0:02.01   MOZILLA_OFFICIAL=1
 0:02.01   MOZ_PKG_SPECIAL=gtk3
 0:02.01   _BUILD_64=1
 0:02.01   _GTK_VERSION=3
 0:02.01   BASH_ARGV=([0]="/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/action/dump_env.py" [1]="/home/localuser/epyrus2/epyrus/obj-x86_64-pc-linux-gnu/_virtualenv/bin/python" [2]="/home/localuser/epyrus2/epyrus/mozconfig" [3]="/home/localuser/epyrus2/epyrus/platform")
 0:02.01   BASH_ARGC=([0]="4")
 0:02.09 checking for a shell... /bin/sh
 0:02.14 checking for host system type... x86_64-pc-linux-gnu
 0:02.14 checking for target system type... x86_64-pc-linux-gnu
 0:02.17 checking whether cross compiling... no
 0:02.17 checking for pkg_config... /usr/bin/pkg-config
 0:02.18 checking for pkg-config version... 0.29.2
 0:02.18 checking for yasm... /usr/bin/yasm
 0:02.18 checking yasm version... 1.3.0
 0:02.18 checking for the target C compiler... /usr/bin/gcc
 0:02.18 checking whether the target C compiler can be used... Traceback (most recent call last):

 0:02.30   File "/home/localuser/epyrus2/epyrus/configure.py", line 47, in <module>
 0:02.30     sys.exit(main(sys.argv))
 0:02.30   File "/home/localuser/epyrus2/epyrus/configure.py", line 39, in main
 0:02.30     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
 0:02.30   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 376, in run
 0:02.30     func(*args)
 0:02.30   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 419, in _value_for
 0:02.30     return self._value_for_depends(obj, need_help_dependency)
 0:02.30   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/util.py", line 963, in method_call
 0:02.30     cache[args] = self.func(instance, *args)
 0:02.30   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 429, in _value_for_depends
 0:02.30     return obj.result
 0:02.30   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/util.py", line 981, in __get__
 0:02.30     setattr(instance, name, self.func(instance))
 0:02.30   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 92, in result
 0:02.30     return self.func(*resolved_args)
 0:02.30   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 951, in wrapped
 0:02.30     return new_func(*args, **kwargs)
 0:02.30   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 683, in wrapper
 0:02.30     ret = template(*args, **kwargs)
 0:02.30   File "/home/localuser/epyrus2/epyrus/platform/build/moz.configure/checks.configure", line 52, in wrapped
 0:02.30     ret = func(*args, **kwargs)
 0:02.31   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 951, in wrapped
 0:02.31     return new_func(*args, **kwargs)
 0:02.31   File "/home/localuser/epyrus2/epyrus/platform/build/moz.configure/toolchain.configure", line 653, in valid_compiler
 0:02.31     info = check_compiler(wrapper + [compiler] + flags, language,
 0:02.31   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 951, in wrapped
 0:02.31     return new_func(*args, **kwargs)
 0:02.31   File "/home/localuser/epyrus2/epyrus/platform/build/moz.configure/toolchain.configure", line 319, in check_compiler
 0:02.31     info = get_compiler_info(compiler, language)
 0:02.31   File "/home/localuser/epyrus2/epyrus/platform/python/mozbuild/mozbuild/configure/__init__.py", line 951, in wrapped
 0:02.31     return new_func(*args, **kwargs)
 0:02.31   File "/home/localuser/epyrus2/epyrus/platform/build/moz.configure/toolchain.configure", line 239, in get_compiler_info
 0:02.31     for n, (value, condition) in enumerate(preprocessor_checks.iteritems()):
 0:02.31 AttributeError: 'collections.OrderedDict' object has no attribute 'iteritems'
 0:02.33 *** Fix above errors and then restart with\
 0:02.33                "/usr/bin/make -f client.mk build"
 0:02.33 make: *** [client.mk:370: configure] Error 1
[Moderator note - placed inside code tags, please do not paste large terminal output without using code tags.]
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
frostknight
Board Warrior
Board Warrior
Posts: 1068
Joined: 2022-08-10, 02:25

Re: Have a problem compiling,

Post by frostknight » 2026-08-03, 07:39

athenian200 wrote:
2026-08-03, 07:21
Are you sure you're using Python 3?

That error means you're using Python 2, I think...
Btw, the above happened even if I commented out the official branding stuff.

Also, what's weird is I was able to get palemoon built in Hyperbola, but not epyrus from same platform/xul build.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1940
Joined: 2018-10-28, 19:56
Location: Georgia

Re: Have a problem compiling,

Post by athenian200 » 2026-08-03, 08:21

Well, I honestly have no idea what's going on with your build... I'm going to have to dig into it and get back to you, and I'm kinda not looking forward to it because I haven't touched this in a while.

It's not on you, I just feel like there's a whole can of worms that I am going to have to open up to fix this. I'm suspecting you're using configure options I haven't tested with.
"Linux makes everything difficult." -- Lyceus Anubite
"Linux is a cancer that attaches itself in an intellectual property sense to everything it touches. That's the way that the license works." -- Steve Ballmer
"We always overestimate the change that will occur in the next two years and underestimate the change that will occur in ten." -- Bill Gates

User avatar
andyprough
Forum staff
Forum staff
Posts: 1659
Joined: 2020-05-31, 04:33

Re: Have a problem compiling,

Post by andyprough » 2026-08-03, 13:37

frostknight wrote:
2026-08-03, 07:31
0:01.39 --disable-pulseaudio
0:01.39 --disable-alsa
0:01.39 --enable-sndio
Are you even going to have audio playing in your emails such that you need to touch the sound system? These look like Hyperbola Iceweasel build options, might be better starting with a regular Epyrus .mozconfig and make obvious changes from there instead?

User avatar
frostknight
Board Warrior
Board Warrior
Posts: 1068
Joined: 2022-08-10, 02:25

Re: Have a problem compiling,

Post by frostknight » 2026-08-03, 17:13

andyprough wrote:
2026-08-03, 13:37
Are you even going to have audio playing in your emails such that you need to touch the sound system? These look like Hyperbola Iceweasel build options, might be better starting with a regular Epyrus .mozconfig and make obvious changes from there instead?
Those three, I could go without maybe.

However stuff like disabling dbus, is needed.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
andyprough
Forum staff
Forum staff
Posts: 1659
Joined: 2020-05-31, 04:33

Re: Have a problem compiling,

Post by andyprough » 2026-08-03, 18:08

frostknight wrote:
2026-08-03, 17:13
Those three, I could go without maybe.

However stuff like disabling dbus, is needed.
But my question is, did you, 1) start from a normal Epyrus .mozconfig and build up to what you need, or did you 2) start from a Hyperbola Iceweasel .mozconfig and try to transform it into an Epyrus .mozconfig? It would seem like (1) would be the better route.

As far as getting Epyrus to build without dbus, you know already that that's a tricky bit of work. Let me see if I can find some time to investigate and help you along. Is Hyperbola using Python 3 now, or still using Tauthon?

User avatar
frostknight
Board Warrior
Board Warrior
Posts: 1068
Joined: 2022-08-10, 02:25

Re: Have a problem compiling,

Post by frostknight » 2026-08-04, 04:16

andyprough wrote:
2026-08-03, 18:08
But my question is, did you, 1) start from a normal Epyrus .mozconfig and build up to what you need, or did you 2) start from a Hyperbola Iceweasel .mozconfig and try to transform it into an Epyrus .mozconfig? It would seem like (1) would be the better route.

As far as getting Epyrus to build without dbus, you know already that that's a tricky bit of work. Let me see if I can find some time to investigate and help you along. Is Hyperbola using Python 3 now, or still using Tauthon?
It can use both actually.

Except, the newest epyrus, requires python 3 I believe. Because the latest palemoon doesn't have python2 anymore
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1940
Joined: 2018-10-28, 19:56
Location: Georgia

Re: Have a problem compiling,

Post by athenian200 » 2026-08-05, 03:29

I don't have a solution for you yet, but I wanted to keep you posted that I'm going to be getting around to researching this tomorrow. I was busy today, but tomorrow I'm keeping everything open so I can get back to work on Epyrus. I needed to do it anyway, and this is as good an excuse as any.

I'm pretty sure I can solve it, just need to fire up my Linux machine (which I haven't used in a while) so I can investigate. Most of what I've been doing is honestly just creative writing type stuff, so I'm really switching mental gears here. LOL.
"Linux makes everything difficult." -- Lyceus Anubite
"Linux is a cancer that attaches itself in an intellectual property sense to everything it touches. That's the way that the license works." -- Steve Ballmer
"We always overestimate the change that will occur in the next two years and underestimate the change that will occur in ten." -- Bill Gates

User avatar
frostknight
Board Warrior
Board Warrior
Posts: 1068
Joined: 2022-08-10, 02:25

Re: Have a problem compiling,

Post by frostknight » 2026-08-05, 16:52

athenian200 wrote:
2026-08-05, 03:29
I don't have a solution for you yet, but I wanted to keep you posted that I'm going to be getting around to researching this tomorrow. I was busy today, but tomorrow I'm keeping everything open so I can get back to work on Epyrus. I needed to do it anyway, and this is as good an excuse as any.

I'm pretty sure I can solve it, just need to fire up my Linux machine (which I haven't used in a while) so I can investigate. Most of what I've been doing is honestly just creative writing type stuff, so I'm really switching mental gears here. LOL.

No problem, I didn't expect a quick answer.

Although I find it odd that I could build current palemoon in current hyperbola but not epyrus.

Very strange
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!