Gentoo Archives: gentoo-alt

From: Glenn Johnson <glennpj@×××××.com>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] can not build Prefix on CentOS-7.9 system
Date: Tue, 05 Oct 2021 21:41:13
Message-Id: CABFXsPBst4pp5z-BuBdGYWFuxiRw9fmbkarDKtVNv+qu0+jqvA@mail.gmail.com
In Reply to: Re: [gentoo-alt] can not build Prefix on CentOS-7.9 system by Michael Morak
1 Indeed, it gets further, but eventually fails with:
2
3 Convert blib/man/de/man1/po4a-display-man.1 (online docbook.xsl file). I/O
4 error : Attempt to load network entity
5 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
6
7 warning: failed to load external entity "
8 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
9
10 cannot parse
11 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
12
13 Undefined subroutine &PerlIO::F_UTF8 called at
14 /opt/packages/gpjohnsn/prefix/usr/lib64/perl5/5.34/Pod/Man.pm line 799.
15
16 ...propagated at Po4aBuilder.pm line 252.
17
18 * ERROR: app-text/po4a-0.64::gentoo failed (compile phase):
19
20 Glenn Johnson
21
22
23 On Tue, Oct 5, 2021 at 5:58 AM Michael Morak <michael.morak@×××××.com>
24 wrote:
25
26 > Hi Glenn,
27 >
28 > > Here is what I get with a fresh bootstrap.
29 > >
30 > >
31 > /opt/packages/gpjohnsn/prefix/var/tmp/portage/sys-devel/gcc-10.3.0-r2/work/gcc-10.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:142:10:
32 > fatal error: crypt.h: No such file or directory
33 > > 142 | #include <crypt.h>
34 > > | ^~~~~~~~~
35 > > compilation terminated.
36 >
37 > Just ran into the same problem right now. The problem is that the current
38 > ~amd64 version of glibc in the tree does not install crypt.h anymore. I
39 > faked its presence by copying over the missing file from the host system:
40 >
41 > ~$ cp /usr/include/crypt.h ${EPREFIX}/usr/include
42 >
43 > Afterwards, gcc should compile. You will run into the next problem
44 > immediately: a circular dependency via virtual/libcrypt -> libxcrypt ->
45 > perl -> virtual/libcrypt. However, libxcrypt needs perl as a build
46 > dependency only, so if your host system has it installed, you can add the
47 > following two lines to ${EPREFIX}/tmp/etc/portage/profile/package.provided:
48 >
49 > # temporarily tell portage that perl is already installed
50 > dev-lang/perl-5.34.0-r2
51 >
52 > Then separately emerge virtual/libcrypt and remove the package.provided
53 > file again. Still compiling at the moment, but looking much better so far.
54 > Hope this helps.
55 >
56 > Cheers,
57 > Michael
58 >

Replies

Subject Author
Re: [gentoo-alt] can not build Prefix on CentOS-7.9 system Glenn Johnson <glennpj@×××××.com>