Pamac fails to build firefox-appmenu

Another

# pamac upgrade
Warning: Building packages as root
Warning: Setting build directory to /var/cache/pamac
Preparing...
Cloning firefox-appmenu build files...
Running as unit: run-u63.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 414ms
CPU time consumed: 0
Running as unit: run-u64.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 39ms
CPU time consumed: 0
Checking firefox-appmenu dependencies...
Synchronizing package databases...
cp: cannot stat '/tmp/pamac/dbs/sync/*': No such file or directory
Refreshing community.db...                                                                                                                                                                                                                    
Resolving dependencies...                                                                                                                                                                                                                     
Checking inter-conflicts...

To build (1):
  firefox-appmenu  89.0.1-1  (85.0-1)  AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building firefox-appmenu...
Running as unit: run-u66.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: firefox-appmenu 89.0.1-1 (Tue 22 Jun 2021 02:15:02 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found firefox-89.0.1.source.tar.xz
  -> Found firefox-89.0.1.source.tar.xz.asc
  -> Found 0001-Use-remoting-name-for-GDK-application-names.patch
  -> Found firefox.desktop
  -> Found unity-menubar.patch
  -> Found fix_csd_window_buttons.patch
==> Validating source files with sha256sums...
    firefox-89.0.1.source.tar.xz ... Passed
    firefox-89.0.1.source.tar.xz.asc ... Skipped
    0001-Use-remoting-name-for-GDK-application-names.patch ... Passed
    firefox.desktop ... Passed
    unity-menubar.patch ... Passed
    fix_csd_window_buttons.patch ... Passed
==> Verifying source file signatures with gpg...
    firefox-89.0.1.source.tar.xz ... cat: write error: Broken pipe
FAILED
==> ERROR: One or more PGP signatures could not be verified!
Finished with result: exit-code
Main processes terminated with: code=exited/status=1
Service runtime: 5.823s
CPU time consumed: 0
Error: Failed to build firefox-appmenu

Why are you running pamac as root?

4 Likes
  1. Building from source will take between half an hour and multiple hours, browsers are huge these days
  2. You will find the solution at the AUR page of firefox-appmenu by looking at the first, pinned comment
  3. There is firefox-appmenu-bin which is precompiled if you want to save time
6 Likes

This probably means something ran out of space or was killed due to a lack of RAM.

3 Likes

Another try

Building firefox-appmenu...
Running as unit: run-u66.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: firefox-appmenu 89.0.2-1 (Mon 28 Jun 2021 11:32:30 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading firefox-89.0.2.source.tar.xz...
Warning: No home dir, couldn't find known_hosts file!  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  353M  100  353M    0     0  4025k      0  0:01:30  0:01:30 --:--:-- 5523k
  -> Downloading firefox-89.0.2.source.tar.xz.asc...
Warning: No home dir, couldn't find known_hosts file!  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   833  100   833    0     0   6474      0 --:--:-- --:--:-- --:--:--  6507
  -> Found 0001-Use-remoting-name-for-GDK-application-names.patch
  -> Found firefox.desktop
  -> Found unity-menubar.patch
  -> Found fix_csd_window_buttons.patch
==> Validating source files with sha256sums...
    firefox-89.0.2.source.tar.xz ... Passed
    firefox-89.0.2.source.tar.xz.asc ... Skipped
    0001-Use-remoting-name-for-GDK-application-names.patch ... Passed
    firefox.desktop ... Passed
    unity-menubar.patch ... Passed
    fix_csd_window_buttons.patch ... Passed
==> Verifying source file signatures with gpg...
    firefox-89.0.2.source.tar.xz ... cat: write error: Broken pipe
FAILED
==> ERROR: One or more PGP signatures could not be verified!
Finished with result: exit-code
Main processes terminated with: code=exited/status=1
Service runtime: 1min 33.506s
CPU time consumed: 0
Error: Failed to build firefox-appmenu

This is something else.

Just to clarify, did you import the key before running the command?

gpg --keyserver hkps://keys.openpgp.org --recv-keys EBE41E90F6F12F6D
2 Likes

Does that even require sudo?
Still not fixed. Keys imported as user and root.

No.

Which part?

It’s still the same root issue: “cat: write error: Broken pipe”, which

Therefore, perhaps you might try with makepkg rather than Pamac?

2 Likes

Never used makepkg. Howto?

Google the term.

2 Likes

Wiki.

https://wiki.archlinux.org/title/Arch_User_Repository#Installing_and_upgrading_packages

2 Likes

Can't you just paste the commands? I'm a script kiddie. Furthermore I don't think the issue is there, something is wrong, I have plenty of space.

No.

This isn’t the forum for you. :man_shrugging:

3 Likes

Steps taken

$ git clone https://aur.archlinux.org/firefox-appmenu.git
$ cd firefox-appmenu/
$ makepkg -si
[...]
71:40.99 extensions/auth
71:46.17 extensions/permissions
72:08.30 extensions/pref/autoconfig/src
72:18.57 error: build failed
72:18.60 make[4]: *** [/home/garuda/firefox-appmenu/src/firefox-89.0.2/config/makefiles/rust.mk:356: force-cargo-library-build] Error 101
72:18.61 make[3]: *** [/home/garuda/firefox-appmenu/src/firefox-89.0.2/config/recurse.mk:72: toolkit/library/rust/target] Error 2
72:18.61 make[3]: *** Waiting for unfinished jobs....
73:11.34 make[2]: *** [/home/garuda/firefox-appmenu/src/firefox-89.0.2/config/recurse.mk:34: compile] Error 2
73:11.34 make[1]: *** [/home/garuda/firefox-appmenu/src/firefox-89.0.2/config/rules.mk:355: default] Error 2
73:11.35 make: *** [client.mk:65: build] Error 2
73:11.37 3 compiler warnings present.
==> ERROR: A failure occurred in build().
    Aborting...
warning: could not open directory 'pkg/': Permission denied

Full log: Failure to compile firefox-appmenu on Garuda linux - Pastebin.com

The forum moderator dustbins your first post of this topic, so you decide to re-post it?

Have you no shame, sir? Have you bothered to read the myriad of problems other users have had?
AUR (en) - firefox-appmenu

6 Likes

I mean it's "another issue" as before but still the same topic actually. Opening new topics won't really change the situation, it just clutters the forum. :sweat_smile:
I would say the matter is not Garuda related so the better idea would be to ask at the AUR page after having done some troubleshooting. (we can't really help with compiling every package taken from the AUR)

3 Likes

The actual cause is this part:

42:36.93 error: could not compile `wgpu_bindings`
42:36.96 Caused by:
42:36.96   process didn't exit successfully: `/usr/bin/rustc --crate-name wgpu_bindings --edition=2018 gfx/wgpu_bindings/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no --cfg 'feature="default"' -C metadata=d052269a92ecded5 -C extra-filename=-d052269a92ecded5 --out-dir /home/garuda/firefox-appmenu/src/firefox-89.0.2/obj/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/home/garuda/firefox-appmenu/src/firefox-89.0.2/build/cargo-linker -L dependency=/home/garuda/firefox-appmenu/src/firefox-89.0.2/obj/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/garuda/firefox-appmenu/src/firefox-89.0.2/obj/release/deps --extern bincode=/home/garuda/firefox-appmenu/src/firefox-89.0.2/obj/x86_64-unknown-linux-gnu/release/deps/libbincode-39e2a6757a46c9c0.rmeta --extern log=/home/garuda/firefox-appmenu/src/firefox-89.0.2/obj/x86_64-unknown-linux-gnu/release/deps/liblog-dff54f560cd8af58.rmeta --extern parking_lot=/home/garuda/firefox-appmenu/src/firefox-89.0.2/obj/x86_64-unknown-linux-gnu/release/deps/libparking_lot-a5c6908669f4c541.rmeta --extern serde=/home/garuda/firefox-appmenu/src/firefox-89.0.2/obj/x86_64-unknown-linux-gnu/release/deps/libserde-d535822757a4f1f5.rmeta --extern wgc=/home/garuda/firefox-appmenu/src/firefox-89.0.2/obj/x86_64-unknown-linux-gnu/release/deps/libwgpu_core-32f91c3e84612f91.rmeta --extern wgt=/home/garuda/firefox-appmenu/src/firefox-89.0.2/obj/x86_64-unknown-linux-gnu/release/deps/libwgpu_types-7bafb8bf128d8ed2.rmeta -C opt-level=2 -C debuginfo=2 --cap-lints warn -Cembed-bitcode=yes -C panic=abort -C profile-generate=/home/garuda/firefox-appmenu/src/firefox-89.0.2/obj -C codegen-units=1` (signal: 15, SIGTERM: termination signal)

This implies you ran out of memory and the compilation process was ended. There is no fix for this other than for you to add more RAM to your system (or use a pre-compiled package).

3 Likes

Perhaps not building the package in /tmp may help. That way he shouldn't run out of space (ram). I used to have to do this on an old computer with limited ram when building Firefox.

Oops, I don't know how this thread popped up on me. Sorry for the necro, closing now.

4 Likes