View previous topic :: View next topic |
Author |
Message |
tshade n00b
Joined: 01 Oct 2007 Posts: 21
|
Posted: Thu Nov 03, 2022 3:31 pm Post subject: Systemd does not compile when trying to build the essentials |
|
|
Hello,
I get the following error when I try to compile a new fresh installation with:
Code: | emerge --ask --verbose -- update --deep -- newuse @world |
Code: |
[many lines of error messages]
enviroment, line 3069: Called die
The specific snippet of code:
"{mesonargs[@]}" ) || die
[...]
/var/tmp... systemd-251.4/work...
|
I can post the complete log if necessary, I'll try to copy it from the computer I'm installing Gentoo on.
I have selected profile 11, plasma merged-usr. Systemd complained about usr not being merged, so I did it by hand.
Thank you! |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1530 Location: South America
|
Posted: Thu Nov 03, 2022 5:56 pm Post subject: Re: Systemd does not compile |
|
|
tshade wrote: | I can post the complete log if necessary |
Yes, do that. You can use wgetpaste and a pastebin site if it's easier, or if the log is big. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
tshade n00b
Joined: 01 Oct 2007 Posts: 21
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Thu Nov 03, 2022 7:50 pm Post subject: |
|
|
tshade,
Code: | The complete build log is located at '/var/tmp/portage/sys-apps/systemd-251.4/temp/build.log'. | is the build log we need.
Take a note of this warning
Code: | Unable to calculate Linux Kernel version for build, attempting to use running version
ERROR: pretend
CONFIG_BINFMT_MISC: is not set when it should be.
CONFIG_CGROUP_BPF: is not set when it should be.
CONFIG_FANOTIFY: is not set when it should be.
CONFIG_KCMP: is not set when it should be.
CONFIG_AUTOFS_FS: is not set when it should be. |
That may be correct but Unable to calculate Linux Kernel version for build means that the /usr/src/linux points somewhere that has a missing .config file.
You kernel may or may not be OK. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4148 Location: Bavaria
|
Posted: Thu Nov 03, 2022 7:57 pm Post subject: |
|
|
Maybe it is a missing option in your kernel configuration. Do you have enabled "systemd" ?
Code: | Gentoo Linux --->
Support for init systems, system and service managers --->
[*] OpenRC, runit and other script based systems and managers
[*] systemd |
This option enables all needed options for systemd (just look into the <Help> of this entry). |
|
Back to top |
|
|
tshade n00b
Joined: 01 Oct 2007 Posts: 21
|
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4148 Location: Bavaria
|
Posted: Thu Nov 03, 2022 8:26 pm Post subject: |
|
|
It is not necessary to do this at the moment (you could do later after first reboot), BUT it is good you have tried now, because - maybe - we detect a mistake you made in an early stage. Most important question: Which stage3 do you have choosed from this page ?
https://www.gentoo.org/downloads/
(You know, you have to choose a systemd-stage3 if you want systemd, do you ?) |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Thu Nov 03, 2022 8:28 pm Post subject: |
|
|
tshade,
Code: | Program awk found: NO
../systemd-stable-251.4/meson.build:624:0: ERROR: Program 'awk' not found or not executable |
That should be on the stage3.
If you try the awk command, it will return instructions on how to use it. If that works, we need the meson log.
Code: | A full log can be found at /var/tmp/portage/sys-apps/systemd-251.4/work/systemd-stable-251.4-abi_x86_64.amd64/meson-logs/meson-log.txt |
As you don't have your own kernel yet, the warnings can be ignored. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
tshade n00b
Joined: 01 Oct 2007 Posts: 21
|
Posted: Thu Nov 03, 2022 8:29 pm Post subject: |
|
|
I have chosen stage3-amd64-desktop-systemd-20221023T170534Z.tar.xz
(I have maybe made some typo, because it's written by hand) |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4148 Location: Bavaria
|
Posted: Thu Nov 03, 2022 8:54 pm Post subject: |
|
|
tshade wrote: | Systemd complained about usr not being merged, so I did it by hand. |
How you did that ?... you know /usr/bin/awk is only a link to /usr/bin/gawk ?
Code: | # ls -l /usr/bin/awk
lrwxrwxrwx 1 root root 4 2. Feb 2017 /usr/bin/awk -> gawk |
|
|
Back to top |
|
|
tshade n00b
Joined: 01 Oct 2007 Posts: 21
|
Posted: Thu Nov 03, 2022 9:27 pm Post subject: |
|
|
Wow, you got the solution, I have manually linked awk to gawk in the same directory, and it works! Thank you! I hope it's the only thing I have broken when moving directories to merge them under /usr/
It's compiling |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4148 Location: Bavaria
|
Posted: Sat Nov 05, 2022 9:22 am Post subject: |
|
|
tshade wrote: | It's compiling |
Two days after and no problem means: You have successfully installed Gentoo
Have fun with Gentoo ! |
|
Back to top |
|
|
|