← Home ← Back to /g/

Thread 106457179

70 posts 40 images /g/
Anonymous No.106457179 >>106457351 >>106459777 >>106459862 >>106460165 >>106460964 >>106461048 >>106461060 >>106465291 >>106465379 >>106467067 >>106468733
COMPILATION SLUG
HOLY FUCK WHY DID I START INSTALLING GENTOO ON MY THINKPAD X31?!?! WHY DID I EVER THINK IT WAS A GOOD IDEA TO COMPILE EVERY SINGLE PACKAGE ON THIS 2 DECADE OLD LAPTOP SHIT SHIT SHIT?!?!?!?!!!?!!
Anonymous No.106457199 >>106457241
press ^c
hold the power button
Anonymous No.106457241 >>106457265 >>106464148
>>106457199
I'm rawdogging it, this is my second day of compilation, but next time I will look into how to cross-compile/distcc.
Anonymous No.106457265 >>106457325 >>106459664
>>106457241
ok keep us updated
Anonymous No.106457325 >>106457387
>>106457265
Will go to sleep soon, I don't expect for my Pentium M machine to finish compiling LLVM. I have to admit, Gentoo is cool, but I should have first done a VM install to know what the fuck I will be doing on such a potato. Regardless, I love my little machine and will let it do this one job (now I understand why people were saying this takes 3 days minimum to install).

At least the handbook is really nice, way more nice than Arch. Shame Void is lackluster, would have done that otherwise.
Anonymous No.106457351 >>106457361 >>106461653 >>106461672 >>106463433
>>106457179 (OP)
>linux fags call this an operating system
Anonymous No.106457361 >>106458171 >>106471063
>>106457351
God forbid men have hobbies. It's Gentoo, not Ubuntu.
Anonymous No.106457387 >>106457414 >>106458030
>>106457325
I know it'll probably be fine but I get paranoid about running my old machines flat out like this. Hopefully it survives the torture.
Anonymous No.106457414
>>106457387
Tbh, it takes it like a champ. The laptop doesn't sound like a jet engine, and it isn't stuck, just moving slowly. Not even hot (just warm), so maybe it's not doing 100%. My only issue is now when I listen to it, when doing the writes (-piped flag is missing since I have like 512MB) what I suppose is the HDD starts to scratch or squeak, which is something I'm not used to. Worst case scenario, I have to replace the hard drive (I think it was already pretty low, and I have an excuse to get the mSATA + IDE adapter combo, maybe even make the PCB from scratch).
Anonymous No.106458030
>>106457387
Can you not just undervolt it or reduce the clock speed? It'll take longer but y'know, better than a hit potato.
Anonymous No.106458171 >>106459664
>>106457361
This isn't a hobby this is just pure retardation
Anonymous No.106459664 >>106461859 >>106469781 >>106471029
>>106457265
Update: still on compiling LLVM. I love how it just takes its time. Also, it is not broken as of now.
>>106458171
>This isn't a hobby this is just pure retardation
I love your lack of self awareness, but you're telling others what hobbies are valid or not.
Anonymous No.106459716 >>106459758
Why not run BSD? Using Linux is supporting asshole traitor Linus and his communist bulldyke daughter.
Anonymous No.106459758
>>106459716
>Why not run BSD?
Actually, OpenBSD was on the list, but I decided to go with Gentoo for the shits and giggles.
>Using Linux is supporting asshole traitor Linus and his communist bulldyke daughter.
Anonymous No.106459777 >>106459814
>>106457179 (OP)
>llvm
lol classic. that and qtwebengine are the big ones
Anonymous No.106459814 >>106459832 >>106460919
>>106459777
isnt llvm useless? I remember the headaches it gave me when it was defaulting to software rendering and llvmpipe was being used. Somehow ended up with iris drivers on an 8th gen intel soc, had to reinstall to finally get the i915 driver back
Anonymous No.106459832
>>106459814
i answered my question, llvm is a compiler that also does JIT, which can then be used to compile shaders (poorly)
Anonymous No.106459862 >>106460919
>>106457179 (OP)
I installed gentoo on a thinkpad t400, you just gotta suffer through it
Anonymous No.106460165 >>106460919
>>106457179 (OP)
>HOLY FUCK WHY DID I
Well this is the question, isn't it?
Anonymous No.106460919 >>106467816
>>106459814
Would it be wise to exclude this next time? With my ancient hardware, and also probably minimalist setup (intent to), this shouldn't be any problem, right?
>>106459862
Your machine is way stronger than mine. Not a fair comparison, mine barely has RAM.
>>106460165
My question is why I didn't look into cross-compilation sooner? My current PC would have done this in a couple of hours at max.
Anonymous No.106460964 >>106461446
>>106457179 (OP)
get an installation script you dumb fucking cunt
Anonymous No.106461048 >>106461446
>>106457179 (OP)
I remember when compiling glibc alone would take more than half a day.
Those were good times.
Anonymous No.106461060 >>106461446
>>106457179 (OP)
lmao imagine using genoo/tard instead of just installing windows there
Anonymous No.106461446 >>106461522 >>106461549
>>106460964
I want to learn it by the handbook, at least once. Going with a script would have missed the point of learning how it works.
>>106461048
And I thought installing Win10 on spinning rust was slow.
>>106461060
I mean, it had XP, but I wanted to see what all of the memes about Gentoo are about, so I did this. Will probably come back to XP, but for now, I want to experiment.
Anonymous No.106461522 >>106464980
>>106461446
>missed the point of learning
nigger. you supposed to read this shit and modify it for your convenient, not reading instructions like a black woman
try & error, that's how you learn
Anonymous No.106461549 >>106464980
>>106461446
>And I thought installing Win10 on spinning rust was slow.
This is COMPILING, not your average OS experience.
Anonymous No.106461653 >>106461672
>>106457351
NIGGER NIGGER NIGGER GET THE FUCK OUT OF HERE NORMAL NIGGER YOU'RE A NIGGER
Anonymous No.106461672 >>106465008
>>106457351
>>106461653
i used to call it gnu+linux but i gave up
Anonymous No.106461859 >>106463010 >>106465008
>>106459664
>pentium M compiling LLVM
you might be there a while. it takes almost an hour to build LLVM on my ryzen 9 7900x (24 thread)
Anonymous No.106461878 >>106465008
What stage did you start from? How autistic are ya lol. Back in high school nearly 20 years ago now, I did a stage 2 on a pentium 3 little old evectra that my dad got surplus from work. Completely pointless but my compiler flags made everything fractions of a second faster, you know! Good times Kek.
Anonymous No.106463010 >>106465008 >>106475938
>>106461859
You can speed it up a fair bit if you OOOOPTIMIZE. Takes about an hour for me on 12 threads on my 5900X.
Anonymous No.106463433
>>106457351
I really wish all the people like you would fill up a cup with razor blades and milk and then just drink it.
Anonymous No.106464148 >>106465008 >>106465151
>>106457241
Mount the rootfs using NFS on a faster computer and compile there. Much better than using distcc.
Anonymous No.106464980
LLVM STILL TAKING LONG, UNIT 3078 OUT OF 3879 BTW

>>106461522
I mean, that's what I am doing? Like, learning to work with the distro? I like going hands-on first, scripts are the next time I do this. Whatever the case, it's fun (when you don't wait 5 days to compile).
>>106461549
I underestimated the amount of time it takes to compile the most bare minimum shit. To be fair, there are some packages like LLVM that take ages, otherwise I have seen this move way faster.
Anonymous No.106465008 >>106465084 >>106467786 >>106467841
>>106461672
The only time I do that is when I have to differentiate Android from GNU/Linux distros.
>>106461859
Welp, next time I will study what dependencies I need for a minimum setup. I don't think I need that for st, dwm and other terminal apps.
>>106461878
Stage 3, can you start from other stages? I thought stage 3 is THE stage when you start having some utilities and start compiling Gentoo.
>>106463010
Optimize besides -O3? Actually kind of curious what tips and tricks are out there for optimizations, besides what's pointed in the handbook.
>>106464148
Will search this once this shit is done.

Pic related is a mainframe from my uni.
Anonymous No.106465084 >>106465135
>>106465008
Well -O3 is very fucking slow so that would explain why it's taking so long on 24 threads. It makes the compiled product faster but makes the compile take longer. I don't use O3 for anything like compilers and such cause it's not recommended (and it takes fucking hours to compile). Generally you just make compiling faster by disabling flags for features that you don't use and target specific instruction sets.
Anonymous No.106465135 >>106465229
>>106465084
Yeah, makes sense. I did a -O2 system-wide, seen everywhere it is not that recommended for that, but specific applications, sure. I guess it is a tradeoff between disk space, run time improvement and compile time.
Anonymous No.106465137 >>106465151
You can just use the binary packages, just did a bintoo installation a few weeks ago and it went pretty well.
Anonymous No.106465151
>>106465137
I have seen that, and I said that once, for the shit and giggles, to compile everything on the machine, but next time, I'll probably do what >>106464148 said.
Anonymous No.106465229 >>106465432
>>106465135
You can make it so everything uses O3 but for specific stuff like compilers to use O2 instead. That's at least how I do it. Same with LTO. There are also things that you could just use the bin stuff for like LLVM, Firefox/Chrome, Rust, fucking webkit and so on cause they are just sucking away your time with no real gains.
Anonymous No.106465291
>>106457179 (OP)
>-march=pentium-m
oh boy
Anonymous No.106465379 >>106465432
>>106457179 (OP)
should have used gentoo binhost to get things started and recompiled as things get updated
Anonymous No.106465432 >>106465481
>>106465229
I don't think LTO is feasible on my machine, but I think most of my issues will be solved once I cross-compile. I just have to learn that too (was thinking of doing it anyway for a Tegra mini PC I have laying around).
>>106465379
And maybe skip shit like browsers and LLVM from ever compiling.
Anonymous No.106465481 >>106465518
>>106465432
Distcc is pretty simple to setup, just need to remember to use the correct -march and -mtune for your CPUs. But yeah LTO might be a lot for your CPU, same with PGO.
Anonymous No.106465518 >>106465566
>>106465481
Isn't -mtune redundant when you mention the CPU in -march and the CPU extensions? If so, damn, probably will have to redo this shit again with proper flags.
Anonymous No.106465566
>>106465518
Tbh, I don't remember anymore. I like being sure of it so I try to be as specific as possible in all places. It's not a required flag though, unless you use distcc.
Anonymous No.106467067 >>106467090
>>106457179 (OP)
that's a nice keyboard
i quite like the media keys
Anonymous No.106467090 >>106471298
>>106467067
I mean, it's the X31, it has a really good keyboard (although it is a bit cramped) but for a membrane keyboard, this feels really good. Pic related, wish I had US layout, or at least JP layout for some weeb larping points.
Anonymous No.106467786 >>106467841 >>106470345
>>106465008
>Welp, next time I will study what dependencies I need for a minimum setup. I don't think I need that for st, dwm and other terminal apps.
i'm not sure you need llvm either. all my machine uses it for afaik is llvmpipe (modern software 3D renderer) and amdgpu support (likely for shader compilation). i'm not sure if modern mesa uses llvm for the older radeon driver, but you can go without llvmpipe. it's practically only a fallback 3d driver so you can do things like compositing without a 3d card/driver available, which you won't care to use on such a machine anyway
Anonymous No.106467816 >>106467841 >>106470345
>>106460919
llvm is a compiler. you're compiling things, you probably need it for other things
Anonymous No.106467841 >>106470345
>>106465008
>>106467786
oh, i'll also agree with what people say about using binhost/prebuilt packages for a few things that both are slow to build and don't matter much to customise. you'll learn which ones those are when you build them. llvm is one example, also webkit, rust, gcc, etc. browsers are slow to build as well but you might actually want to optimise/customise

>>106467816
llvm is used as the backend for clang, but most things use gcc on linux. he can find out at the end what packages he uses depend on llvm and for what features
Anonymous No.106468733
>>106457179 (OP)
The point of gentoo on a thinkpad is that you trim down software to use only what you need. Disable everything that you think you won't need, Maintain your own patches for programs that don't already have them. Write your own programs instead of installing others
Anonymous No.106469781
>>106459664
you could have just used the binary packages instead, then do ebuilds when you have a functioning system.
Anonymous No.106470345 >>106470503 >>106470520
>>106467786
I'm not sure either, RV100 is so old it doesn't support OpenGL ES, and the latest version is 1.3. I'm more worried about some software that would use this, which in turn would make me reinstall this. Regardless, I will see this once I have finished the install.
>>106467816
Isn't most software compiled with gcc and glibc? I thought llvm is mostly useful for MacOS or Rust, but to be fair, I don't really have any idea what llvm does more than gcc/msvc/clangd.
>>106467841
>you'll learn which ones those are when you build them.
I haven't gone through the whole handbook, but I suppose I will see this when I read about Portage/Emerge.
>browsers are slow to build as well but you might actually want to optimise/customise
Oh, I don't intend to use anything than Lynx/Surf on this machine, it's too old and would barely run modern web, but this would probably be useful if I ever happen to hop from Arch to Gentoo on my main machine.
>The point of gentoo on a thinkpad is that you trim down software to use only what you need. Disable everything that you think you won't need
As I've asked the other anon above, is there any way to exactly see what dependencies some programs will have, or am I gonna have to do some guesswork and trial and error in order to achieve this? I'm pretty new, and I habe stopped reading at stage 3 setup for now, since I have to wait for it to finish compiling.

UPDATE: Finished llvm, now started compiling clangd...
Anonymous No.106470503 >>106470541
>>106470345
>I'm not sure either, RV100 is so old it doesn't support OpenGL ES, and the latest version is 1.3. I'm more worried about some software that would use this, which in turn would make me reinstall this. Regardless, I will see this once I have finished the install.
having a quick look, it seems mesa dropped non-gallium drivers a few years ago, and that inlcudes your card. this means you aren't getting gpu acceleration ootb. there's apparently an "amber" branch of mesa you can use for old cards however. i don't currently use such hardware so i don't know any specifics. the oldest machine i've used recently is my t400 which is still supported by mesa
Anonymous No.106470520 >>106470541
>>106470345
>is there any way to exactly see what dependencies some programs will have
i always run emerge with the verbosity argument. with that it will list use flags for each package. however, afaik there's no way to get an indication regarding how long something will take to install. you will need to look up or learn through trial what packages are particularly long to build
Anonymous No.106470541 >>106470936
>>106470503
Didn't intend to run any particular GPU accelerated program, but with this info maybe I can look into setting up PRBoom+, just out of curiosity.
>>106470520
My particular issue is that I can't really see them all, I do need a terminal emulator to have scrollable text. I don't think less helps with the output.
Anonymous No.106470936 >>106472039
>>106470541
>My particular issue is that I can't really see them all, I do need a terminal emulator to have scrollable text. I don't think less helps with the output.
tmux my dude
Anonymous No.106471029 >>106472039
>>106459664
He's right. Copying a couple commands and waiting for a computer to do its shit is not a hobby.
Anonymous No.106471063 >>106472039
>>106457361
It's not hobby. It's an elaborate jack off
Anonymous No.106471298 >>106471373 >>106472039
>>106467090
Wtf is that, German but non-QWERTZ?
Anonymous No.106471373 >>106472039
>>106471298
...you can swap keys.
Anonymous No.106472039 >>106472112
>>106470936
Pic related. I was waiting like a buffoon to completely install so I could reboot into the OS and then start installing programs.
>>106471029
>>106471063
It's called reading and comprehension, something you may seem to lack.
>>106471298
Afaik there are German QWERTY layouts. I don't think >>106471373 happened.
Anonymous No.106472112 >>106472557
>>106472039
>Pic related.
more often than not, if you find yourself wondering that there must be a better way, there probably is. you may not know how, but you likely asked yourself if there's a way to scroll the tty. actually you used to be able to scroll the linux tty, but it was removed in 5.9 for security/lack of maintenance reasons. tmux (and screen) was always better though. not just for scrollback, but also being able to have multiple windows, better text selection/copy/paste, etc. even in a gui i always have a tmux session running. it's also a go-to for ssh session as you can detach/attach to a tmux session from another terminal (so like if you run a program in tmux and your ssh session is interrupted, you can log back in and reattach to the same tmux session. without it the program you were running will die, unless you disowned it)
Anonymous No.106472557 >>106474863
>>106472112
Oh shit, didn't know tmux was this important. The handbook recommended me going through and installing Screen, but I didn't follow through as I thought it wasn't that relevant. Thanks for the tip, I appreciate.
Anonymous No.106474827 >>106475115
did it died?
Anonymous No.106474863 >>106475115
>>106472557
Screen is useful but tmux is a better version of screen. It's like a uh terminal window manager. There's a bit of a learning curve but you can get away with:
ctrl-b -> c = create new window
ctrl-b -> n = next window
ctrl-b -> p = previous window

and then googling then controls when you accidentally hit another button
Anonymous No.106475115
>>106474827
Nope, it still stays strong compiling clangd.
>>106474863
Good to know. Hope it does work well on my low-res laptop, last time I did something similar I could barely fix text on more than 2 splits.
Anonymous No.106475730 >>106475938
Jfc, a lot of warnings have been thrown. Usually I don't think it is a problem, but I have no idea how to judge if it is an issue or not. Am I cooked?
Anonymous No.106475938
>>106463010
You can do better.(pic related)
>>106475730
don't think so, it'll immediately fail on real errors, those are just compiler warnings.
Packages that take long to compile: gcc, llvm browsers like chrome/firefox, qt-webengine/webkit, wine, ffmpeg, mesa