Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Systemd does not compile when trying to build the essentials
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
tshade
n00b
n00b


Joined: 01 Oct 2007
Posts: 21

PostPosted: Thu Nov 03, 2022 3:31 pm    Post subject: Systemd does not compile when trying to build the essentials Reply with quote

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
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1530
Location: South America

PostPosted: Thu Nov 03, 2022 5:56 pm    Post subject: Re: Systemd does not compile Reply with quote

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
View user's profile Send private message
tshade
n00b
n00b


Joined: 01 Oct 2007
Posts: 21

PostPosted: Thu Nov 03, 2022 7:38 pm    Post subject: Reply with quote

Here they are:

https://pastebin.com/GZpTAeZs
https://pastebin.com/kb31jmgw

emerge.log
summary.log

Thank you!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Thu Nov 03, 2022 7:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4148
Location: Bavaria

PostPosted: Thu Nov 03, 2022 7:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
tshade
n00b
n00b


Joined: 01 Oct 2007
Posts: 21

PostPosted: Thu Nov 03, 2022 8:13 pm    Post subject: Reply with quote

build.log https://pastebin.com/tm7sqph3

I have not yet configured any kernel, I'm stuck in https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Updating_the_.40world_set
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4148
Location: Bavaria

PostPosted: Thu Nov 03, 2022 8:26 pm    Post subject: Reply with quote

tshade wrote:
I have not yet configured any kernel, I'm stuck in https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Updating_the_.40world_set

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Thu Nov 03, 2022 8:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
tshade
n00b
n00b


Joined: 01 Oct 2007
Posts: 21

PostPosted: Thu Nov 03, 2022 8:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4148
Location: Bavaria

PostPosted: Thu Nov 03, 2022 8:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
tshade
n00b
n00b


Joined: 01 Oct 2007
Posts: 21

PostPosted: Thu Nov 03, 2022 9:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4148
Location: Bavaria

PostPosted: Sat Nov 05, 2022 9:22 am    Post subject: Reply with quote

tshade wrote:
It's compiling :-)

Two days after and no problem means: You have successfully installed Gentoo ;-)

Have fun with Gentoo ! 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum