Gentoo Archives: gentoo-user

From: Mike Gilbert <floppym@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Systemd-boot not compiling
Date: Tue, 09 Apr 2019 16:36:24
Message-Id: CAJ0EP43NXoF8wQpuokDxd173RLKc3MmM=W+j3cGyQ5a_TydSCg@mail.gmail.com
In Reply to: [gentoo-user] Systemd-boot not compiling by Peter Humphrey
1 On Mon, Apr 8, 2019 at 9:14 AM Peter Humphrey <peter@××××××××××××.uk> wrote:
2 >
3 > Hello list,
4 >
5 > Is anyone else having trouble emerging systemd-boot-241? This machine has a
6 > small rescue system as an alternative boot, and I get a mysterious error when
7 > I emerge the package. The end of the log shows this:
8 >
9 > [248/248] x86_64-pc-linux-gnu-gcc -o bootctl 'bootctl@exe/
10 > src_boot_bootctl.c.o' -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-
11 > z,now -Wl,--gc-sections -O2 -march=haswell -pipe -Wl,-O1 -Wl,--as-needed -
12 > Wl,--start-group src/shared/libsystemd-shared-241.a src/libsystemd/
13 > libsystemd_static.a src/basic/libbasic.a /usr/lib64/libblkid.so -lrt /usr/
14 > lib64/libcap.so /usr/lib64/libmount.so -lrt -lm -Wl,--end-group -pthread '-
15 > Wl,-rpath,$ORIGIN/src/shared:$ORIGIN/src/libsystemd:$ORIGIN/src/basic' -Wl,-
16 > rpath-link,/var/tmp/portage/sys-boot/systemd-boot-241/work/systemd-boot-241-
17 > build/src/shared:/var/tmp/portage/sys-boot/systemd-boot-241/work/systemd-
18 > boot-241-build/src/libsystemd:/var/tmp/portage/sys-boot/systemd-boot-241/work/
19 > systemd-boot-241-build/src/basic
20 > stat: No such file or directory
21 > * ERROR: sys-boot/systemd-boot-241::gentoo failed (compile phase):
22 > * (no error message)
23 >
24 > But it compiles just fine on the main system.
25 >
26 > Perhaps something is missing from the rescue system and hasn't been caught by
27 > the ebuild, but I can't think of what. If 'stat' had said what file or
28 > directory wasn't present, I'd be able to dig a bit deeper to find the problem.
29 >
30 > I see the same behaviour on another machine. Both are 64-bit, but only this
31 > one is ~amd64; the other one has a KEYWORD to enable systemd-boot.
32
33 The above log snippet is fairly useless. In the future, please make
34 sure to include the relevant log snippet, or attach/pastebin the
35 entire build log if in doubt.
36
37 The most important part of the log on bug 682908 was this:
38
39 Call stack:
40 ebuild.sh, line 124: Called src_compile
41 environment, line 2145: Called die
42 The specific snippet of code:
43 patchelf --remove-rpath bootctl || die
44
45 That tells me that the patchelf call in src_compile was failing and
46 gives a much better starting point than some cryptic "stat" error.

Replies

Subject Author
Re: [gentoo-user] Systemd-boot not compiling Peter Humphrey <peter@××××××××××××.uk>