GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495
Rep:
Chromium fails to compile in Gentoo
Here is the last bit of output from emerge www-clients/chromium: This took forever, I mean about 2 days on 1 ghz pentium 3. I am still without a web-browser on Gentoo =\
I have recently found that chromium requires about 6GB of RAM to compile on my 64bit system (with options gnome, cups and all the locales). Whilst my system RAM had 4GB it obviously started swapping at some point and subsequently progress was much slower, as expected.
It's a beast to compile and the persuading reason for me to buy more RAM. If your CPU is 32 bit then this will continue to be an issue for you as you'll be limited to 4GB of RAM.
6GB RAM? wow!I compile firefox on my netbook with 1GB.
Anyway, if you need a web browser quickly, you can install firefox-bin (precompiled firefox), as there is no chromium-bin on the official portage tree.
True, I use firefox as my number 2 and epiphany as my number 3
A little bit of research shows that it's the linking that is the big RAM user and the recommended[1] build host is a 64 bit host:
Quote:
Even if you're building a 32-bit executable, you need a 64-bit machine since linking requires >4GB virtual memory.
As chance would have it I upgraded to chromium 20.0.1132.57 today. These are my simple build stats for emerge, package creation and installation:
ged # time LINGUAS="bg en_GB uk" emerge -vu chromium
...
real 58m10.508s
user 140m58.502s
sys 22m12.761s
ld was the RAM hog taking ~34% of 12GB ( not closely monitored to see the max ). Bear in mind this is also using -j4 in /etc/make.conf on a 3.x GHz quad-core Phenom II. It was much slower when on 4GB, 3-4 hrs maybe.
However, my emerge sync is from today and the build was successful. Note that it's a minor bump from the version the OP was trying to build, .43 vs .57.
So I guess the solutions for the OP could be:
Get chromium built on a 64 bit host somewhere ( cloud VM perhaps? )
Use an alternative GUI browser ( /usr/portage/www-client/ )
Use pre-built chromium built binaries, if available for gentoo hardened ( as the OP is using )
Try release 20.0.1132.57 in case .43 did have a build bug (?) whilst keeping fingers crossed.
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495
Original Poster
Rep:
RAM is definitely the issue. I have 512mb ram, and 512mb swap also, 1ghz cpu. Before chromium failed on compile, it was taking at least 2 days to get that far. I found out chromium may not of been as light weight as I thought, so I am using uzbl-tabbed and might also install midori. I have a desktop with 4gb ram, 64-bit Fedora, and 2.8ghz cpu. I've been trying to get distcc working. I'll make another post for that.
How can I clean up from the half install/emerge of chromium since I won't be using it?
How can I remove the dependencies that were compiled and installed for chromium through emerge?
will remove any packages that are not in the world file, and are not needed by any other package. Run it with --pretend first, to verify what is going to be removed.
Code:
# eclean -d distfiles
will clean up your distfiles directory. See the man pages of those tools.
BTW, I am using Uzbl Tabbed uzbl-tabbed right now, and I love it, light weight for my computer with limited resources and I can browse the web entire with the keyboard like VIM, never really need to touch the mouse. I might add Midori just to have a backup browser I can use or something else to experiment with, not sure tho. Firefox would definitely clobber all my RAM, then swap and then say FEED ME MORE!
Bumping this thread because the same error just happened to me on VMware Player with 1 GB of allocated RAM. I solved this by increasing the VM's RAM to 2 GB.
Also, I recently compiled Chromium successfully on my Pentium Dual Core with 2 GB of DDR1.
Also, as a little bonus, if you have a small Linux partition and emerge complains about low disk space (such as in LibreOffice requiring like 6 GB of temporary space), try setting up a loop device and linking /var/tmp to your loop device, like this:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.