>>> Emerging (1 of 1) dev-util/pkgconfig-0.28::gentoo openpty failed: 'out of pty devices' * pkg-config-0.28.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking pkg-config-0.28.tar.gz to /tmp/portage/dev-util/pkgconfig-0.28/work >>> Source unpacked in /tmp/portage/dev-util/pkgconfig-0.28/work >>> Preparing source in /tmp/portage/dev-util/pkgconfig-0.28/work/pkg-config-0.28 ... * Running elibtoolize in: pkg-config-0.28/ * Applying portage/1.2.0 patch ... * Applying sed/1.5.6 patch ... * Applying as-needed/2.4.2 patch ... * Applying target-nm/2.4.2 patch ... * Running elibtoolize in: pkg-config-0.28/glib/ * Applying portage/1.2.0 patch ... * Applying sed/1.5.6 patch ... * Applying as-needed/2.4.2 patch ... * Applying target-nm/2.4.2 patch ... >>> Source prepared. >>> Configuring source in /tmp/portage/dev-util/pkgconfig-0.28/work/pkg-config-0.28 ... * econf: updating pkg-config-0.28/glib/config.guess with /usr/share/gnuconfig/config.guess * econf: updating pkg-config-0.28/glib/config.sub with /usr/share/gnuconfig/config.sub * econf: updating pkg-config-0.28/config.guess with /usr/share/gnuconfig/config.guess * econf: updating pkg-config-0.28/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-silent-rules --disable-dependency-tracking --docdir=/usr/share/doc/pkgconfig-0.28/html --with-system-include-path=/usr/include --with-system-library-path=/usr/lib64 checking for a BSD-compatible install... rm: cannot remove 'conftest.dir/conftest.one': Bad file descriptor rm: cannot remove 'conftest.dir/conftest.two': Bad file descriptor /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for style of include used by make... GNU checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... rm: cannot remove 'conftest.dir': Is a directory yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking dependency style of x86_64-pc-linux-gnu-gcc... none checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-pc-linux-gnu-nm -B checking the name lister (/usr/bin/x86_64-pc-linux-gnu-nm -B) interface... rm: cannot remove 'conftest.dir': Is a directory BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump checking how to recognize dependent libraries... pass_all checking for x86_64-pc-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar checking for archiver @FILE support... rm: cannot remove 'conftest.dir': Is a directory @ checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib checking command to parse /usr/bin/x86_64-pc-linux-gnu-nm -B output from x86_64-pc-linux-gnu-gcc object... rm: cannot remove 'conftest.dir': Is a directory rm: cannot remove 'conftest.dir/conftest.one': Bad file descriptor rm: cannot remove 'conftest.dir/conftest.two': Bad file descriptor ok checking for sysroot... no rm: cannot remove 'conftest.dir/conftest.one': Bad file descriptor rm: cannot remove 'conftest.dir/conftest.two': Bad file descriptor checking for x86_64-pc-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... rm: cannot remove 'conftest.dir': Is a directory no checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for ANSI C header files... rm: cannot remove 'conftest.dir': Is a directory rm: cannot remove 'conftest.dir': Is a directory yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs rm: cannot remove 'conftest.dir': Is a directory rm: cannot remove 'conftest.dir/conftest.one': Bad file descriptor rm: cannot remove 'conftest.dir/conftest.two': Bad file descriptor checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... rm: cannot remove 'conftest.dir': Is a directory no checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... rm: cannot remove 'conftest.dir': Is a directory yes checking if x86_64-pc-linux-gnu-gcc static flag -static works... rm: cannot remove 'conftest.dir/conftest.one': Bad file descriptor rm: cannot remove 'conftest.dir/conftest.two': Bad file descriptor yes checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... rm: cannot remove 'conftest.dir': Is a directory yes checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... rm: cannot remove 'conftest.dir': Is a directory rm: cannot remove 'conftest.dir': Is a directory no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether make supports nested variables... yes checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) none checking for ln... ln checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking for unistd.h... (cached) yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for bash... /bin/bash checking for default search path for .pc files... ${libdir}/pkgconfig:${datadir}/pkgconfig checking for system include path to avoid -I flags... /usr/include checking for system library path to avoid -L flags... /usr/lib64 configure: creating ./config.lt config.lt: creating libtool checking whether to list both direct and indirect dependencies... no checking for Win32... no checking if internal glib should be used... no checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for GLIB... no configure: error: Either a previously installed pkg-config or "glib-2.0 >= 2.16" could not be found. Please set GLIB_CFLAGS and GLIB_LIBS to the correct values or pass --with-internal-glib to configure to use the bundled copy. rm: cannot remove 'conftest.dir/conftest.one': Bad file descriptor rm: cannot remove 'conftest.dir/conftest.two': Bad file descriptor
!!! It seems that /proc is not mounted. You have been warned. Portage 2.2.10 (default/linux/amd64/13.0/no-multilib, gcc-4.8.2, glibc-2.17, 3.2.0-4-amd64 x86_64) ================================================================= System uname: Linux-3.2.0-4-amd64-x86_64-with-gentoo-2.2 Timestamp of tree: Wed, 26 Mar 2014 10:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-lang/python: 2.7.5-r3, 3.3.3 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.8.2 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=n --complete-graph --binpkg-respect-use=y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_IN" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" USE="amd64 berkdb bzip2 cli cracklib cxx dri gdbm iconv minimal mmx modules ncurses pam readline session sse sse2 ssl symlink 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" 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: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Attach the complete build.log and also the config.log from /var/tmp/portage/dev-util/pkgconfig... that's generated by the ./configure (econf) Futher, post the output of: # pkg-config --libs glib-2.0 # pkg-config --cflags glib-2.0 It seems like you have wider system breakage going on here with the "openpty failed: 'out of pty devices'"
Let's see... > openpty failed: 'out of pty devices' > !!! It seems that /proc is not mounted. You have been warned. Are you sure the problem lies on the package side ?
I'm in a chroot environment.
Created attachment 374100 [details] pkgconfig build.log
pkg-config --libs glib-2.0 Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found pkg-config --cflags glib-2.0 Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found
I rbind dev,proc,sys and now those warnings are gone.
(In reply to Rafał Mużyło from comment #3) > > !!! It seems that /proc is not mounted. You have been warned. I missed that. Yes, indeed, can't have a working system with no working /sys and /proc, closing...
(In reply to dE from comment #7) > I rbind dev,proc,sys and now those warnings are gone. See attachment, they don't have the warnings now.
(In reply to dE from comment #9) > (In reply to dE from comment #7) > > I rbind dev,proc,sys and now those warnings are gone. > > See attachment, they don't have the warnings now. Well, that's likely both INVALID and not. It's a bootstrap problem - if glib isn't installed yet, you need to first emerge pkg-config with 'internal-glib' set, emerge glib then drop that useflag and reemerge pkg-config.
Er, so is dev-libs/glib:2 installed or not?
Yes, of course it is installed at 2.38.2-r1. Currently, pkgconfig has internal-glib, I'm trying to get rid of that in hopes that it'll remove other pkgconfig related build time failures.
(In reply to dE from comment #12) > Yes, of course it is installed at 2.38.2-r1. > > Currently, pkgconfig has internal-glib, I'm trying to get rid of that in > hopes that it'll remove other pkgconfig related build time failures. In such case, does glib-2.0.pc exist in its proper place and the correct content ?
Please attach the config.log file to this bug report (see comment #2).
(In reply to Rafał Mużyło from comment #13) > (In reply to dE from comment #12) > > Yes, of course it is installed at 2.38.2-r1. > > > > Currently, pkgconfig has internal-glib, I'm trying to get rid of that in > > hopes that it'll remove other pkgconfig related build time failures. > > In such case, does glib-2.0.pc exist in its proper place and the correct > content ? equery check dev-libs/glib * Checking dev-libs/glib-2.38.2-r1 ... 21 out of 21 files passed find -name glib-2.0.pc give no result. Odder -- equery files dev-libs/glib * Searching for glib in dev-libs ... * Contents of dev-libs/glib-2.38.2-r1: /usr /usr/share /usr/share/doc /usr/share/doc/glib-2.38.2-r1 /usr/share/doc/glib-2.38.2-r1/AUTHORS /usr/share/doc/glib-2.38.2-r1/ChangeLog /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-1-2 /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-2-0 /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-2-10 /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-2-12 /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-2-14 /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-2-16 /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-2-18 /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-2-2 /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-2-20 /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-2-4 /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-2-6 /usr/share/doc/glib-2.38.2-r1/ChangeLog.pre-2-8 /usr/share/doc/glib-2.38.2-r1/NEWS /usr/share/doc/glib-2.38.2-r1/NEWS.pre-1-3 /usr/share/doc/glib-2.38.2-r1/README [I] dev-libs/glib Available versions: (1) 1.2.10-r5 (2) 2.32.4-r1 ~2.34.3-r1 2.36.4-r1 2.38.2-r1 {debug fam hardened selinux static-libs systemtap test utils xattr ABI_MIPS="n32 n64 o32" ABI_X86="32 64 x32" KERNEL="linux" PYTHON_TARGETS="python2_6 python2_7"} Installed versions: 2.38.2-r1(2)(06:38:52 04/02/14)(-debug -fam -selinux -static-libs -systemtap -test -utils -xattr ABI_MIPS="-n32 -n64 -o32" ABI_X86="64 -32 -x32" KERNEL="linux" PYTHON_TARGETS="python2_7 -python2_6") Homepage: http://www.gtk.org/ Description: The GLib library of C routines Before I post config.log, I'll do a few more investigations.
x11-misc/shared-mime-info (glib PDEPEND) fails to compile. >>> Emerging (2 of 2) x11-misc/shared-mime-info-1.2-r1::gentoo >>> Failed to emerge x11-misc/shared-mime-info-1.2-r1, Log file: >>> '/tmp/portage/x11-misc/shared-mime-info-1.2-r1/temp/build.log' * Package: x11-misc/shared-mime-info-1.2-r1 * Repository: gentoo * Maintainer: freedesktop-bugs@gentoo.org * USE: amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox * Applying shared-mime-info-1.2-g_type_init.patch ... [ ok ] checking for a BSD-compatible install... rm: cannot remove 'conftest.dir/conftest.one': Bad file descriptor rm: cannot remove 'conftest.dir/conftest.two': Bad file descriptor /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... rm: cannot remove 'conftest.dir': Is a directory yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of x86_64-pc-linux-gnu-gcc... none checking for an ANSI C-conforming const... yes checking whether NLS is requested... yes checking for intltool >= 0.35.0... 0.50.2 found checking for intltool-update... /usr/bin/intltool-update checking for intltool-merge... /usr/bin/intltool-merge checking for intltool-extract... /usr/bin/intltool-extract checking for xgettext... no checking for msgmerge... no checking for msgfmt... no checking for gmsgfmt... no configure: error: GNU gettext tools not found; required for intltool
[I] sys-devel/gettext Available versions: 0.18.2 ~0.18.3.1-r1 0.18.3.2 {acl -cvs +cxx doc emacs git java ncurses nls openmp static-libs ABI_MIPS="n32 n64 o32" ABI_X86="32 64 x32" ELIBC="FreeBSD glibc"} Installed versions: 0.18.3.2(06:34:43 04/02/14)(cxx ncurses -acl -cvs -doc -emacs -git -java -nls -openmp -static-libs ABI_MIPS="-n32 -n64 -o32" ABI_X86="64 -32 -x32" ELIBC="glibc -FreeBSD") Homepage: http://www.gnu.org/software/gettext/ Description: GNU locale utilities
Created attachment 374312 [details] pkgconfig config.log
( Could you please stop quoting eix output and use emerge output instead? ) Now, where did you get dev-libs/glib? Was it pre-installed in a stage3 you used, or did you emerge it yourself?
(In reply to Jeroen Roovers from comment #19) > ( Could you please stop quoting eix output and use emerge output instead? ) > > Now, where did you get dev-libs/glib? Was it pre-installed in a stage3 you > used, or did you emerge it yourself? I did an emptytree (new host), so it was a rebuild. I checked the Gentoo install before it was copied to to the new host, and it's glib seems ok (it has many more things apart from the docs). Also despite march=native and emptytree I'm getting invalid optcode from the kernel when it tries to execute systemd -- may be related but very unlikely.
It looks like you may want to start again: a file that should have been in place was not, and I can't think of a single way the build system could have caused that. Try our support options next time instead of the bug tracker.
(In reply to Jeroen Roovers from comment #21) > It looks like you may want to start again: a file that should have been in > place was not, and I can't think of a single way the build system could have > caused that. Try our support options next time instead of the bug tracker. I'll just build a binary package and and migrate it. Thanks!