Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[prefix] Installation of glibc-2.25-r11 fails
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
Leomania
n00b
n00b


Joined: 16 Dec 2017
Posts: 17

PostPosted: Fri Aug 03, 2018 1:00 am    Post subject: [prefix] Installation of glibc-2.25-r11 fails Reply with quote

I'm running a fresh bootstrap of Gentoo Prefix on a CentOS 6.9 server. The stage builds completed without issue, but during install glibc-2.25-r11 failed due to an empty libc.info file. I don't see any obvious issues in the build.log, so hoping you can steer me in the right direction.

From build.log (full file is 16MB, let me know if you need more):
Code:
 gawk -f xtract-typefun.awk intro.texi creature.texi errno.texi memory.texi ctype.texi string.texi charset.texi locale.texi message.texi search.texi pattern.texi io.texi stdio.texi llio.texi filesys.texi pipe.texi socket.texi terminal.texi syslog.texi math.texi arith.texi time.texi resource.texi setjmp.texi signal.texi startup.texi getopt.texi argp.texi process.texi ipc.texi job.texi nss.texi nsswitch.texi users.texi sysinfo.texi conf.texi crypt.texi debug.texi threads.texi probes.texi tunables.texi lang.texi header.texi install.texi macros.texi maint.texi platform.texi contrib.texi freemanuals.texi lgpl-2.1.texi fdl-1.3.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/stpcpy.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/strdupa.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/search.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/mkdirent.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/rprintf.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/memopen.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/memstrm.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/fmtmsgexpl.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/select.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/ofdlocks.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/dir.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/dir2.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/pipe.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/popen.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/mkfsock.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/mkisock.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/isockad.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/inetcli.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/inetsrv.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/filesrv.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/filecli.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/termios.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/libm-err.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/timeval_subtract.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/strftim.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/setjmp.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/swapcontext.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/sigh1.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/sigusr.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/testopt.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/longopt.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/argp-ex1.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/argp-ex2.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/argp-ex3.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/argp-ex4.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/subopt.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/atexit.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/db.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/mygetpass.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/genpass.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/testpass.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/execinfo.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/add.c.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/summary.texi /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/pkgvers.texi | sort;                  \
 echo "@end direntry") > /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/dir-add.texi.new
mv -f /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/dir-add.texi.new /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/dir-add.texi
LANGUAGE=C LC_ALL=C makeinfo -P /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/ --output=/auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/libc.info libc.texinfo
makeinfo GNU texinfo 4.13
.././scripts/mkinstalldirs /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/image//auto/ins-tools/linux_cel69/usr/share/info
mkdir -p -- /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/image//auto/ins-tools/linux_cel69/usr/share/info
for file in /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/build-amd64-x86_64-pc-linux-gnu-nptl/manual/libc.info*; do \
  /auto/ins-tools/linux_cel69/usr/bin/install -c -m 644 $file /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/image//auto/ins-tools/linux_cel69/usr/share/info/; \
done
install-info: /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/image//auto/ins-tools/linux_cel69/usr/share/info/libc.info: empty file
make[2]: *** [Makefile:180: install] Error 1
make[2]: Leaving directory '/auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/glibc-2.25/manual'
make[1]: *** [Makefile:216: manual/subdir_install] Error 2
make[1]: Leaving directory '/auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/work/glibc-2.25'
make: *** [Makefile:12: install] Error 2
 * ERROR: sys-libs/glibc-2.25-r11::gentoo failed (install phase):
 *   emake failed


emerge --info '=sys-libs/glibc-2.25-r11::gentoo'
Code:
Portage 2.3.44 (python 3.6.6-final-0, default/linux/amd64/17.0/no-multilib/prefix/kernel-2.6.32+, gcc-7.3.0, glibc-2.25-r11, 2.6.32-696.20.1.el6.x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.32-696.20.1.el6.x86_64-x86_64-with-centos-6.9-Final
KiB Mem:   396631776 total, 390165552 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Thu, 02 Aug 2018 00:45:01 +0000
Head commit of repository gentoo: ac18e5ddee55924f98535b9ee428ca5405de9e9c
sh bash 4.4_p23
ld GNU ld (Gentoo 2.30 p3) 2.30.0
app-shells/bash:          4.4_p23::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r3::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r11::gentoo
Repositories:

gentoo
    location: /auto/ins-tools/linux_cel69/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64 ~amd64 ~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/auto/ins-tools/linux_cel69/etc/gentoo-release /etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -O2 -pipe"
DISTDIR="/auto/ins-tools/linux_cel69/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
PKGDIR="/auto/ins-tools/linux_cel69/usr/portage/packages"
PORTAGE_CONFIGROOT="/auto/ins-tools/linux_cel69/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/auto/ins-tools/linux_cel69/var/tmp"
USE="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc modules ncurses nls nptl openmp pcre prefix readline seccomp ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-libs/glibc-2.25-r11::gentoo was built with the following:
USE="(prefix) rpc -audit -caps -debug -gd (-hardened) -headers-only (-multilib) -nscd -profile (-selinux) -suid -systemtap (-vanilla)"
CFLAGS="-pipe -pipe -O2 -fno-strict-aliasing"
CXXFLAGS="-pipe -pipe -O2 -fno-strict-aliasing"
LDFLAGS="-L/auto/ins-tools/linux_cel69/usr/lib64"


emerge -pqv '=sys-libs/glibc-2.25-r11::gentoo'
Code:
[ebuild   R   ] sys-libs/glibc-2.25-r11  USE="rpc -audit -caps -debug -gd (-hardened) -headers-only (-multilib) -nscd -profile (-selinux) -suid -systemtap (-vanilla)"


Seems so close, hopefully this will be an easy thing to fix. Thanks in advance!

- Leo
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21782
Location: here

PostPosted: Fri Aug 03, 2018 5:44 am    Post subject: Re: [prefix] Installation of glibc-2.25-r11 fails Reply with quote

Leomania wrote:
The stage builds completed without issue, but during install glibc-2.25-r11 failed

You are sure it's the error? You can post full build.log with wgetpaste?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Sun Aug 05, 2018 12:45 pm    Post subject: Reply with quote

Code:
MAKEOPTS="-j1"


Some times when problems it helps building glibc with -j1 or -j2 option.
Back to top
View user's profile Send private message
Leomania
n00b
n00b


Joined: 16 Dec 2017
Posts: 17

PostPosted: Sun Aug 05, 2018 3:45 pm    Post subject: Re: [prefix] Installation of glibc-2.25-r11 fails Reply with quote

fedeliallalinea wrote:
Leomania wrote:
The stage builds completed without issue, but during install glibc-2.25-r11 failed

You are sure it's the error? You can post full build.log with wgetpaste?

It's the first thing reported that I see that looks like an error. Perhaps you'll see something else in my build.log.

I built wgetpaste and got the build.log uploaded to bpaste: http://bpaste.net/show/ff6b7fb73469

I looked at the compile for glibc in stage3.log, I don't see any obvious errors. These are the only message of note that I detected:

Code:
>>> Completed installing glibc-2.25-r11 into /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/image/

 * Final size of build directory: 362908 KiB (354.4 MiB)
 * Final size of installed tree:   51244 KiB ( 50.0 MiB)

 * QA Notice: command not found:
 *
 *      /auto/ins-tools/linux_cel69/tmp/usr/lib/portage/bin/estrip: line 316: scanelf: command not found
 *      /auto/ins-tools/linux_cel69/tmp/usr/lib/portage/bin/estrip: line 373: scanelf: command not found
grep: /auto/ins-tools/linux_cel69/var/tmp/portage/sys-libs/glibc-2.25-r11/image/auto/ins-tools/linux_cel69/lib: Is a directory
 * prefixing shebang of auto/ins-tools/linux_cel69/usr/sbin/locale-gen
 * prefixing shebang of auto/ins-tools/linux_cel69/usr/bin/catchsegv

A question for P.Kosunen - given how automated the builds are, can I do a rebuild on glibc with this option safely?

I feel I'm so close to having a clean prefix env other than this problem with the info files. I mean, I added the $EPREFIX/bin and $EPREFIX/usr/bin paths to my PATH and built wgetpaste just fine.

Thanks,

- Leo
Back to top
View user's profile Send private message
Leomania
n00b
n00b


Joined: 16 Dec 2017
Posts: 17

PostPosted: Mon Aug 06, 2018 2:56 pm    Post subject: Reply with quote

I installed pax-utils via EPEL so my CentOS system has scanelf available which eliminated those messages from the build logs. No change in the basic problem with the zero-length libc.info, tho.

I looked at the log again for the step where libc.info gets created. Tried running it manually after unpacking the glibc tarball in another directory. It's via the makeinfo process, which uses files created by the libc-texinfo.sh process. Just looking for anything that should be on the system but isn't that could cause the script to silently fail. Still digging. Will try to build glibc (without the Gentoo patches) separately as well.

FYI, I'm building on a really high-end server, so I can go from start to stage3 error in about 2 hours. If you can think of anything for me to test, it's easy to try.

- Leo
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Mon Aug 06, 2018 4:35 pm    Post subject: Re: [prefix] Installation of glibc-2.25-r11 fails Reply with quote

Leomania wrote:
A question for P.Kosunen - given how automated the builds are, can I do a rebuild on glibc with this option safely?

If it's same problem multiple times, compiling -j1 or 2 probably doesn't help.

But you can make it package specific:

https://wiki.gentoo.org/wiki//etc/portage/package.env

/etc/portage/env/makesinglethread.conf:
Code:
MAKEOPTS="-j1"


/etc/portage/package.env:
Code:
sys-libs/glibc makesinglethread.conf
Back to top
View user's profile Send private message
Leomania
n00b
n00b


Joined: 16 Dec 2017
Posts: 17

PostPosted: Mon Aug 06, 2018 9:32 pm    Post subject: Reply with quote

Working with a glibc developer, we got down to makeinfo not working correctly. It's really implementing the functionality of "touch", not "makeinfo", which is why I'm getting a zero-length libc.info file.

I proved this by using the CentOS version of makeinfo, which generates a usable libc.info.

Check out what I get with "makeinfo --version" (note the 3rd line):

Code:
bash-4.1$ makeinfo --version
makeinfo GNU texinfo 4.13
touch (GNU coreutils) 8.30
Packaged by Gentoo (8.30 (p01))
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, Arnold Robbins, Jim Kingdon,
David MacKenzie, and Randy Smith.

And while I was trying to find a "-verbose" option for makeinfo:

Code:
bash-4.1$ makeinfo --verbose
makeinfo GNU texinfo 4.13
touch: unrecognized option '--verbose'

I'm copying in the CentOS version of makeinfo to see if I can make further progress. In the meantime, can anyone comment on this odd combination of touch with makeinfo?

Thanks,

- Leo
Back to top
View user's profile Send private message
Leomania
n00b
n00b


Joined: 16 Dec 2017
Posts: 17

PostPosted: Mon Aug 06, 2018 9:39 pm    Post subject: Reply with quote

makeinfo is this short script in Gentoo, but it's a binary in CentOS.

Code:
#!/auto/ins-tools/linux_cel69/bin/bash
echo "makeinfo GNU texinfo 4.13"
for a in $@; do
case $a in
--*) f=$(echo "$a" | sed -r 's,--.*=(.*),\1,') ;;
-*) continue ;;
*) f=$a ;;
esac
[[ -e $f ]] || touch $f
done

which explains why the touch command is involved.

- Leo
Back to top
View user's profile Send private message
Leomania
n00b
n00b


Joined: 16 Dec 2017
Posts: 17

PostPosted: Mon Aug 06, 2018 11:09 pm    Post subject: Reply with quote

SUCCESS!

Replacing makeinfo worked. I restarted the bootstrap process and there were no more errors.

Code:
Woah!  Everything just worked!  Now YOU should run
  /auto/ins-tools/linux_cel69/startprefix
and enjoy!  Thanks for using me, it was a pleasure to work with you.

Should I enter this as a bug somewhere? And would anyone like to work with me to either make this shell script replacement for makeinfo work with glibc, or have me test any updates?

Regards,

- Leo
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13848

PostPosted: Tue Aug 07, 2018 1:32 am    Post subject: Reply with quote

/usr/bin/makeinfo is a script, but it's not that script. For me, it is a symlink to the 1463 line long Perl script texi2any, both of which are provided by sys-apps/texinfo. I suggest trying to find how your makeinfo got replaced with the script that you showed.
Back to top
View user's profile Send private message
Leomania
n00b
n00b


Joined: 16 Dec 2017
Posts: 17

PostPosted: Tue Aug 07, 2018 4:36 am    Post subject: Reply with quote

Hu wrote:
/usr/bin/makeinfo is a script, but it's not that script. For me, it is a symlink to the 1463 line long Perl script texi2any, both of which are provided by sys-apps/texinfo. I suggest trying to find how your makeinfo got replaced with the script that you showed.

That's very interesting. At the point in stage3 where my glibc install is failing, makeinfo is just that small script. But after bootstrap completes, it's as you say, a symlink to texi2any.

Looking at the EPREFIX area that I left alone after hitting the glibc error, I see that this makeinfo script is the oldest file in the directory. So something created it very early in the bootstrap process.

Code:
bash-4.1$ ls -rlt | head -4
total 26696
-rwxr-xr-x 1 insrgr eng    208 Aug  5 09:29 makeinfo
-rwxr-xr-x 1 insrgr eng   6507 Aug  5 09:31 mtrace
-rwxr-xr-x 1 insrgr eng   5358 Aug  5 09:31 xtrace

The earliest mention of makeinfo that I can find in stage1.log is during the build of makeffi:

Code:
MAKEINFO=/bin/sh /auto/ins-tools/linux_rh6/var/tmp/libffi-3.2.1/libffi-3.2.1/missing makeinfo

After that, every configure step in stage2.log that checks for makeinfo shows it's not the real makeinfo:

Code:
'MAKEINFO=echo makeinfo GNU texinfo 4.13'

Code:
checking for makeinfo... checking whether to enable maintainer-specific portions of Makefiles... echo makeinfo GNU texinfo 4.13 --split-size=5000000
no

Code:
checking for makeinfo... echo makeinfo GNU texinfo 4.13 --split-size=5000000
checking for modern makeinfo... (cached) no

Seems like there's probably some chicken/egg problem with regard to makeinfo that some Gentoo developers are successfully working around most of the time, but not when it comes to glibc.

Regards,

- Leo
Back to top
View user's profile Send private message
Leomania
n00b
n00b


Joined: 16 Dec 2017
Posts: 17

PostPosted: Wed Aug 08, 2018 2:29 pm    Post subject: Reply with quote

Quote:
Should I enter this as a bug somewhere? And would anyone like to work with me to either make this shell script replacement for makeinfo work with glibc, or have me test any updates?

Just a quick ping - is there anyone available to work on this with me? I don't see how the current bootstrap script (well, the one from a few days ago anyway) can work cleanly for anyone with this makeinfo issue present. Would very much like to contribute if I can.

Regards,

- Leo
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13848

PostPosted: Thu Aug 09, 2018 1:09 am    Post subject: Reply with quote

This was probably created as a hack to avoid teaching the glibc build process not to call makeinfo. Instead of doing that, somebody gave it a fake makeinfo that works just barely well enough to make the build limp along - or so they thought at the time. I'm not in a position to help fix this, sorry.
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