I got this error building from an archlinux container Topic is solved

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
frostknight
Board Warrior
Board Warrior
Posts: 1044
Joined: 2022-08-10, 02:25

I got this error building from an archlinux container

Post by frostknight » 2026-06-03, 05:44

0:08.92 DEBUG: configure: error: * * * Could not find gtk+-2.0. Required for NPAPI plugins. To build without NPAPI, add --disable-npapi to your .mozconfig and clobber.

The odd thing is, I have in my .mozconfig

ac_add_options --disable-npapi

yet it still tries to build npapi as if I have it. It is weird.

it mentions about also clobber too.

here is the full log attached
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
biopsin
Fanatic
Fanatic
Posts: 145
Joined: 2016-02-07, 17:15

Re: I got this error building from an archlinux container

Post by biopsin » 2026-06-03, 06:49

Weird as I have no issues building with gtk3 and napi disabled. What does your mozconfig look like?

ehh --enable-default-toolkit=cairo-gtk2
voidlinux_x64 glibc-2.41 / compiled latest Palemoon (gcc-14.2.1) / GTK3

And where there is no intelligence there is no stupidity.

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

Re: I got this error building from an archlinux container

Post by athenian200 » 2026-06-03, 06:59

biopsin wrote:
2026-06-03, 06:49
ehh --enable-default-toolkit=cairo-gtk2
This.
0:00.57 /bin/make -f client.mk MOZ_PARALLEL_BUILD=1 -s configure
0:01.25 cd /home/localuser/Pale-Moon/obj-x86_64-pc-linux-gnu
0:01.25 /home/localuser/Pale-Moon/configure
0:01.40 Reexecuting in the virtualenv
0:01.60 Adding configure options from /home/localuser/Pale-Moon/.mozconfig
0:01.60 --prefix=/usr
0:01.60 --enable-application=palemoon
0:01.60 --enable-optimize=-O2 -w -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables
0:01.60 --enable-jemalloc
0:01.60 --enable-strip
0:01.60 --enable-devtools
0:01.60 --enable-av1
0:01.60 --disable-official-branding
0:01.60 --disable-safe-browsing
0:01.60 --disable-url-classifier
0:01.60 --disable-npapi
0:01.60 --disable-mozril-geoloc
0:01.60 --disable-nfc
0:01.60 --disable-synth-pico
0:01.60 --disable-gamepad
0:01.60 --disable-startup-notification
0:01.60 --disable-tests
0:01.60 --disable-debug
0:01.60 --disable-necko-wifi
0:01.60 --disable-dbus
0:01.60 --disable-userinfo
0:01.60 --disable-sync
0:01.60 --disable-pulseaudio
0:01.60 --disable-alsa
0:01.60 --enable-sndio
0:01.60 --with-system-jpeg
0:01.60 --with-system-zlib
0:01.60 --with-system-bz2
0:01.60 --enable-system-pixman
0:01.60 --enable-default-toolkit=cairo-gtk2
0:01.60 --disable-crashreporter
0:01.60 --disable-alsa
0:01.60 --enable-sndio
0:01.60 --disable-updater
0:01.60 --x-libraries=/usr/lib64
0:01.60 MOZ_ADDON_SIGNING=1
0:01.60 MOZILLA_OFFICIAL=0
0:01.61 MOZ_TELEMETRY_REPORTING=0
0:01.61 MOZ_REQUIRE_SIGNING=0
0:01.61 MOZ_PKG_SPECIAL=gtk3
0:01.61 _GTK_VERSION=3
0:01.61 _BUILD_64=1
0:01.61 BASH_ARGV=([0]="/home/localuser/Pale-Moon/platform/python/mozbuild/mozbuild/action/dump_env.py" [1]="/home/localuser/Pale-Moon/obj-x86_64-pc-linux-gnu/_virtualenv/bin/python" [2]="/home/localuser/Pale-Moon/.mozconfig" [3]="/home/localuser/Pale-Moon/platform")
0:01.61 BASH_ARGC=([0]="4")
0:01.67 checking for a shell... /bin/sh
For some reason the default toolkit isn't changing, but you did the packaging thing to build with GTK3? Your tree is in a very weird state...
"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
Moonchild
Project founder
Project founder
Posts: 39502
Joined: 2011-08-28, 17:27
Location: Sweden

Re: I got this error building from an archlinux container

Post by Moonchild » 2026-06-03, 07:06

Hmm.. Looks like you're building with gtk2, but wanting to disable the npapi anyway? I think that, in combination with gtk2 not being installed, wasn't taken into account as it's only really meant to be used in gtk3 situations. So, the error message is a bit of a red herring in that case if you just look at the npapi bit, because you just don't have gtk2+ installed by the looks of it. You can't build for gtk2 at all without it ;)
The important part is "Could not find gtk+-2.0".
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

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

Re: I got this error building from an archlinux container

Post by athenian200 » 2026-06-03, 07:12

It's been a while... I seem to recall I did actually make it so you could build with GTK2 and still disable NPAPI, but the gating that makes sure GTK2 is installed doesn't differentiate between needing GTK2 because you're building against it and it isn't installed, or needing it to build with NPAPI. It's possible I never added a separate message for trying to build with GTK2 and not having GTK2 available, versus trying to build with GTK3 and not having GTK2 available for NPAPI, and just modified the existing message.

Probably didn't think that would ever cause confusion, but apparently it can in this one edge case. And I think there were a few edits to my changes by other people later on while I was away, don't know if those affected anything or not. I remember some variables were played with, and a few things wired up a different way for NPAPI with GTK2... something about in-process plugins? I remember not understanding why that was being done, but also not really seeing it as a big deal.
"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
Moonchild
Project founder
Project founder
Posts: 39502
Joined: 2011-08-28, 17:27
Location: Sweden

Re: I got this error building from an archlinux container

Post by Moonchild » 2026-06-03, 07:21

It works as-intended; just that the error message is a bit confusing in the case of gtk2 target + no gtk2 installed. Just needs some configure wrangling to have separate error messages for the targets. Seems the way it's done now is more efficient but has the compromise of being a bit ambiguous.
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

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

Re: I got this error building from an archlinux container

Post by frostknight » 2026-06-03, 17:16

Moonchild wrote:
2026-06-03, 07:21
It works as-intended; just that the error message is a bit confusing in the case of gtk2 target + no gtk2 installed. Just needs some configure wrangling to have separate error messages for the targets. Seems the way it's done now is more efficient but has the compromise of being a bit ambiguous.

How do I build without gtk2?

Edit: nvm
Last edited by frostknight on 2026-06-03, 17:19, edited 1 time in total.
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: 1044
Joined: 2022-08-10, 02:25

Re: I got this error building from an archlinux container

Post by frostknight » 2026-06-03, 17:19

athenian200 wrote:
2026-06-03, 06:59
0:01.60 --enable-default-toolkit=cairo-gtk2
I did not see this, my bad, now its building!
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!