Hello! I've a problem with emerging xinit in version 1.0.2 release 4. Here's all log of emerge and emerge --info: burrow ~ # emerge xorg-x11 Calculating dependencies ... done! >>> Emerging (1 of 27) x11-apps/xinit-1.0.2-r4 to / >>> checking ebuild checksums ;-) >>> checking auxfile checksums ;-) >>> checking miscfile checksums ;-) >>> checking xinit-1.0.2.tar.bz2 ;-) >>> Unpacking source... >>> Unpacking xinit-1.0.2.tar.bz2 to /var/tmp/portage/xinit-1.0.2-r4/work * Applying nolisten-tcp-and-black-background.patch ... [ ok ] * Applying gentoo-startx-customization-0.99.4.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/xinit-1.0.2-r4/work/xinit-1.0.2' ... * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running autoheader ... [ ok ] * Running automake --add-missing --copy ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/xinit-1.0.2-r4/work/xinit-1.0.2 ... * econf: updating xinit-1.0.2/config.guess with /usr/share/gnuconfig/config.guess * econf: updating xinit-1.0.2/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr --datadir=/usr/share --build=i686-pc-linux-gnu checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking for pid_t... yes checking for unistd.h... (cached) yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking return type of signal handlers... void checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for egrep... grep -E checking for ANSI C header files... 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 pid_t... yes checking for unistd.h... (cached) yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for i686-pc-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for XINIT... yes checking for mcookie... /usr/bin/mcookie configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands make all-am make[1]: Entering directory `/var/tmp/portage/xinit-1.0.2-r4/work/xinit-1.0.2' if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -DXINITDIR=\"/etc/X11/xinit\" -DBINDIR=\"/usr/bin\" -march=athlon-tbird -O2 -fomit-frame-pointer -s -pipe -DNDEBUG -DG_DISABLE_ASSERT -MT xinit-xinit.o -MD -MP -MF ".deps/xinit-xinit.Tpo" -c -o xinit-xinit.o `test -f 'xinit.c' || echo './'`xinit.c; \ then mv -f ".deps/xinit-xinit.Tpo" ".deps/xinit-xinit.Po"; else rm -f ".deps/xinit-xinit.Tpo"; exit 1; fi DXINITDIR=/etc/X11/xinit -DXRDB=xrdb -DXMODMAP=xmodmap -DTWM=twm -DXCLOCK=xclock -DXTERM=xterm -DXSERVER=/usr/bin/X -DXAUTH=xauth -DXINIT=xinit -DLIBDIR=/usr/lib -DSHELL_CMD=/bin/sh -DHAS_COOKIE_MAKER -DMK_COOKIE=/usr/bin/mcookie < ./startx.cpp | /bin/sed -e '/^# *[0-9][0-9]* *.*$/d' -e '/^#line *[0-9][0-9]* *.*$/d' -e '/^[ ]*XCOMM$/s/XCOMM/#/' -e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[ ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\\/' > startx /bin/sh: -DXRDB=xrdb: command not found make[1]: *** No rule to make target `startx.@APP_MAN_SUFFIX@', needed by `all-am'. Stop. make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/xinit-1.0.2-r4/work/xinit-1.0.2' make: *** [all] Error 2 !!! ERROR: x11-apps/xinit-1.0.2-r4 failed. Call stack: ebuild.sh, line 1531: Called dyn_compile ebuild.sh, line 931: Called src_compile ebuild.sh, line 1240: Called x-modular_src_compile x-modular.eclass, line 317: Called x-modular_src_make x-modular.eclass, line 312: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. burrow ~ # emerge --info Portage 2.1_rc3-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16.18 i686) ================================================================= System uname: 2.6.16.18 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.12.0 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O2 -fomit-frame-pointer -s -pipe -DNDEBUG -DG_DISABLE_ASSERT" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-tbird -O2 -fomit-frame-pointer -s -pipe -DNDEBUG -DG_DISABLE_ASSERT" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="pl_PL.UTF-8" LDFLAGS="-Wl,-s,-z,combreloc" LINGUAS="pl" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa apache2 apm avi berkdb bitmap-fonts cli crypt cups dri eds emboss encode foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg musepack ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode vorbis xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_pl userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY burrow ~ # I tried to optimize CFLAGS to CFLAGS="-march=athlon-tbird -O2 -pipe" and MAKEOPTS to MAKEOPTS="-j1" but without any result - I'm getting that same error. I think is Makefile or emake error
Please, don't ever mark bugs as P1 blocker unless your box just exploded in smoke and fire b/c of an ebuild bug.
It looks like the cpp command isn't found or something, I don't see a check for it in the configure run. The beginning of the second compilation line should be "/usr/bin/cpp -DXINITDIR=/etc/X11/xinit -DXRDB=xrdb". Could you attach config.log?
Created attachment 87820 [details] config.log
(In reply to comment #2) > It looks like the cpp command isn't found or something, I don't see a check for > it in the configure run. The beginning of the second compilation line should be > "/usr/bin/cpp -DXINITDIR=/etc/X11/xinit -DXRDB=xrdb". > In which file I should edit that line? I cant find it in Makefile and configure script.
For comparison, here's the chunk from my configure run that shows cpp being found: checking how to run the C preprocessor... powerpc-unknown-linux-gnu-gcc -E checking for cpp... /usr/bin/cpp checking if /usr/bin/cpp requires -undef... yes checking if /usr/bin/cpp requires -traditional... yes checking for a BSD-compatible install... /bin/install -c checking for sed... /bin/sed checking build system type... powerpc-unknown-linux-gnu checking host system type... powerpc-unknown-linux-gnu checking return type of signal handlers... void checking for egrep... grep -E checking for ANSI C header files... yes Can you reproduce this if you switch back to gcc 3.4 with gcc-config, then source /etc/profile?
(In reply to comment #4) > (In reply to comment #2) > > It looks like the cpp command isn't found or something, I don't see a check for > > it in the configure run. The beginning of the second compilation line should be > > "/usr/bin/cpp -DXINITDIR=/etc/X11/xinit -DXRDB=xrdb". > > > > In which file I should edit that line? I cant find it in Makefile and configure > script. It's not something you should edit, it's an error in configure's detection of your C preprocessor.
Uh-oh! I've emerged gcc-3.4.6-r1 and switched to i686-pc-linux-gnu-gcc3.4.6 profile by gcc-config && source /etc/profile .... and? I get exactly that same error like in compiling with gcc4.
Have anybody some ideas, please?
Please post the output of 'ls -l /usr/bin/cpp'.
burrow ~ # ls -l /usr/bin/cpp -rwxr-xr-x 1 root root 9076 may 29 02:59 /usr/bin/cpp Weird >8-/
Anyone?
Alright, 'which cpp' and 'echo $PATH' please.
Okay, I've reinstalled gentoo. But this tame after switching to gcc-4 I've don't done emerge -e world. Now all works. Thanks for trying help guys!!
Re-opening for proper resolution.
Sounds like it was a configuration error, so resolving INVALID.
*** Bug 198035 has been marked as a duplicate of this bug. ***
so whats the fix for this? anyone?
(In reply to comment #17) > so whats the fix for this? anyone? > (In reply to comment #17) > so whats the fix for this? anyone? > I've also encountered this bug while emerging xinit-1.0.8 and I've managed to hunt it down. It's caused by a missing file - /usr/share/aclocal/xorg-macros.m4. This file should be installed by x11-misc/util-macros but for some strange reason it disappeared from my filesystem even though the util-macros package was present. Re-emerging the util-macros package solves the problem.