LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-10-2024, 01:47 PM   #1
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Rep: Reputation: 29
./chromium.SlackBuild FAILED at line 1676 building ungoogled-chromium-122.0.6261.57-1


Well, I had a big old post about this, but this damn site said could not post due to a missing security token, so I lost an hour's worth of composition.

Basically what the subject said. I never tried this before. Got it from alienbob's build directory. I tried to build as root because the normal user gave errors related to chmod.

Here is where the process stopped
Code:
ninja: Entering directory `out/Release'
ninja: error: '../../third_party/node/linux/node-linux-x64/bin/node', needed by 'gen/ui/webui/resources/tsc/cr_elements/cr_tab_box/cr_tab_box.js', missing and no known rule to make it
-- Manually installing everything.
install: cannot stat 'out/Release/chrome': No such file or directory
./chromium.SlackBuild FAILED at line 1676
Lines 1662 - 1667
Code:
if [ $USE_UNGOOGLED -eq 0 ] &&  [ ! -f out/Release/chrome_crashpad_handler ]
then
  # ungoogled-chromium has crash-reporting disabled:
  LDFLAGS="$LDFLAGS" \
  LC_ALL=C \
  ninja -C out/Release \
    chrome_crashpad_handler \
    2>&1 | tee -a $OUTPUT/ninja-${PRGNAM}.log
fi

# Manually install everything:
echo "-- Manually installing everything."

# The main binary:
install -D out/Release/chrome $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/${PRGNAM}
I changed this to a 1
Code:
# Build an ungoogled chromium package (default no):
USE_UNGOOGLED=${USE_UNGOOGLED:-1}
Please advise.
 
Old 03-11-2024, 05:49 AM   #2
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
out/Release/chrome

did you check if the above exists?
 
Old 03-11-2024, 12:36 PM   #3
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Original Poster
Rep: Reputation: 29
I want to check, but I don't know the prefix of that path. If it is in /tmp I did not find it. I guess I can search the entire system for /out

Do you know where and by what in the script this is created?
 
Old 03-11-2024, 01:57 PM   #4
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 590

Rep: Reputation: Disabled
You seem to be running Slackware 15.0. Look at the error you post - it says something about 'node' missing.
Slackware 15.0 does not contain nodejs but if you read the script header at https://slackware.uk/people/alien/sl...ium.SlackBuild you see that:
Code:
# Build needs:     - ninja;
#                  - nodejs >= 20.0.0
#                  - gcc >= 8 , llvm >= 16 for bootstrapping gn;
#                  - nasm >= 2.14 (yasm no longer being used);
#                  - cmake >= 3.24.1
#                  - python3 >= 3.7, python3-setuptools;
#                  - java runtime
#                  - Internet access (for downloading toolchain bins)
I assume that you have not installed the required build dependencies.
 
1 members found this post helpful.
Old 03-11-2024, 04:12 PM   #5
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Original Poster
Rep: Reputation: 29
Ah ha! I did not realize that. I will install nodejs and try again. Thanks!

As far as my first attempt, is it usual for a slackbuild to need root access, or sudo? My normal user account is not in the sudoers group. I did not look into why chmod was being called and failed exactly and I just did su to get it going.

Last edited by breaker; 03-11-2024 at 04:19 PM.
 
Old 03-11-2024, 05:13 PM   #6
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 590

Rep: Reputation: Disabled
Quote:
Originally Posted by breaker View Post
Ah ha! I did not realize that. I will install nodejs and try again. Thanks!

As far as my first attempt, is it usual for a slackbuild to need root access, or sudo? My normal user account is not in the sudoers group. I did not look into why chmod was being called and failed exactly and I just did su to get it going.
I guess you are not a regular Slackware user? All Slackware build scripts expect that you run them as the root user. No 'sudo'.
 
1 members found this post helpful.
Old 03-11-2024, 06:33 PM   #7
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by Windu View Post
I guess you are not a regular Slackware user?
ouch! I've been using it every day for a couple of years, but did not build many slackbuilds. It has been a while, the last was a Canon printer driver. I don't use any other OS too much, except at work and a little Rasberry Pi OS, butI don't like Debian.
 
Old 03-12-2024, 05:15 AM   #8
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by breaker View Post
...but did not build many slackbuilds.
Always a good idea to check for dependencies. They're listed at slackbuilds.org (also in the .info files). AlienBob often (but not always) provides a slack-required file in the buildscript directory listing dependencies.
README files (the name says it all) often give important information on compiling.

A bit curious, though - why compile chromium-ungoogled when AlienBob offers a ready-made package?
 
1 members found this post helpful.
Old 03-12-2024, 12:50 PM   #9
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Original Poster
Rep: Reputation: 29
@kgha
Thanks for the tips. Also I saw I need to run su with the -l option.

Yes, now I realize I could have just downloaded the ungoogled Slackpackage. I got to the regular alienbob Chromium package by doing a web search. Previously, I was unaware these existed. I did not explore his directory of packages before I set off to build the ungoogled using his Chromium/build files. So it was mostly a mistake. However, I decided to do it anyway so I could add my Google API keys. I'm unsure if I care about having them or not, however.

I added and updated the dependencies, except llvm, which I forgot to do. Hopefully it builds now.

I noticed there is a higher version of llvm in the Slackware extras. Do I removepkg the old, grab the one from extras, and installpkg?

Also, since cmake was updated from an alienbob package, I should blacklist cmake. Would I do cmake or cmake* for that?

Last edited by breaker; 03-12-2024 at 12:53 PM.
 
Old 03-12-2024, 03:53 PM   #10
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Just grab the llvm-17 package from /extra and upgrade with upgradepkg. Should you for some reason need to compile something against the older llvm, grab the llvm13-compat package from /extra and install alongside the new version.

As for blacklisting it might be a good idea to blacklist everything from AlienBob with
[0-9]+alien
See https://docs.slackware.com/slackware:slackpkg
 
1 members found this post helpful.
Old 03-12-2024, 08:42 PM   #11
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Original Poster
Rep: Reputation: 29
Cool, yeah I did that today for alien, but I was not sure if the update went off of the Slackware list, or off the list of what you have installed. In other words, If I have 1alien cmake but I grab the list with update, will it want to grab the old cmake again?

I'm currently building the ungoogled - for the last 10 hours! This is an old PC from 2011, but I'm curious how it will go now.
 
1 members found this post helpful.
Old 03-13-2024, 02:00 AM   #12
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by breaker View Post
In other words, If I have 1alien cmake but I grab the list with update, will it want to grab the old cmake again?
I'm not familiar with slackpkg, having used slapt-get and its frontend gslapt for upgrading for decades. But as I understand the information at https://docs.slackware.com/slackware:slackpkg , adding [0-9]+alien to the blacklist means that packages with the _alien tag will never be replaced with packages from the official repo.

If you use 3rd party packages, e.g. AlienBob's, you may want to look at the slackpkg+ extension:
https://alien.slackbook.org/blog/int...-repositories/

Quote:
Originally Posted by breaker View Post
I'm currently building the ungoogled - for the last 10 hours! This is an old PC from 2011, but I'm curious how it will go now.
Wow. Hopefully it's successfully completed by now. That's why I refrain from compiling some stuff (chromium, qt5/qt6, and others), not having the latest and greatest hardware, grateful that ready-made packages are available.
 
1 members found this post helpful.
Old 03-13-2024, 01:25 PM   #13
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Original Poster
Rep: Reputation: 29
Yes, I do want to check out the slackpkg+, thanks.

Well, it is still building after 24 hours. I started it before work yesterday, and it was still going when I left for work today. I suspect it could be done by the time I get home.
 
Old 03-13-2024, 09:42 PM   #14
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Original Poster
Rep: Reputation: 29
Done! 29+ hours! Version 122.0.6261.57 (Official Build, ungoogled-chromium) (64-bit)

I'm posting from this browser.

Code:
Slackware package /tmp/chromium-ungoogled-122.0.6261.57-x86_64-1alien.txz created.

/tmp/build/package-chromium-ungoogled
 
Old 03-14-2024, 04:01 AM   #15
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by breaker View Post
Done! 29+ hours!
Setting a record
 
  


Reply



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
LXer: ungoogled-chromium - Chromium without Google web services LXer Syndicated Linux News 0 02-24-2024 01:31 AM
chromium chromium-ungoogled google-chrome v121.0.6167.139 Glitching freezing 100% cpu's UrbanDesimator Slackware 13 02-10-2024 03:18 PM
Older versions of Chromium or Ungoogled-Chromium for Slackware Humming Owl Slackware 6 05-21-2022 05:14 AM
Unable to change download location in settings for Chromium and Chromium-ungoogled camorri Slackware 5 03-09-2022 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:55 PM.

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