Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134789 - x11-apps/xinit-1.0.2-r4 - emake fails - Makefile problem?
Summary: x11-apps/xinit-1.0.2-r4 - emake fails - Makefile problem?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 198035 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-29 08:22 UTC by Thomas
Modified: 2008-11-19 19:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,22.47 KB, text/plain)
2006-05-29 13:05 UTC, Thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2006-05-29 08:22:53 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-29 08:25:32 UTC
Please, don't ever mark bugs as P1 blocker unless your box just exploded in smoke and fire b/c of an ebuild bug.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2006-05-29 12:32:27 UTC
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?
Comment 3 Thomas 2006-05-29 13:05:00 UTC
Created attachment 87820 [details]
config.log
Comment 4 Thomas 2006-05-29 13:14:10 UTC
(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.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-05-29 14:49:31 UTC
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?
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2006-05-29 14:57:21 UTC
(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.
Comment 7 Thomas 2006-05-30 01:26:59 UTC
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.
Comment 8 Thomas 2006-05-30 11:37:01 UTC
Have anybody some ideas, please?
Comment 9 Joshua Baergen (RETIRED) gentoo-dev 2006-05-30 17:37:09 UTC
Please post the output of 'ls -l /usr/bin/cpp'.
Comment 10 Thomas 2006-05-31 00:49:51 UTC
burrow ~ # ls -l /usr/bin/cpp
-rwxr-xr-x 1 root root 9076 may 29 02:59 /usr/bin/cpp

Weird >8-/
Comment 11 Thomas 2006-06-01 06:17:34 UTC
Anyone?
Comment 12 Joshua Baergen (RETIRED) gentoo-dev 2006-06-02 22:46:07 UTC
Alright, 'which cpp' and 'echo $PATH' please.
Comment 13 Thomas 2006-06-03 01:18:27 UTC
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!!
Comment 14 Joshua Baergen (RETIRED) gentoo-dev 2006-06-03 09:10:54 UTC
Re-opening for proper resolution.
Comment 15 Joshua Baergen (RETIRED) gentoo-dev 2006-06-03 09:11:20 UTC
Sounds like it was a configuration error, so resolving INVALID.
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2007-11-04 09:43:55 UTC
*** Bug 198035 has been marked as a duplicate of this bug. ***
Comment 17 dan 2007-11-05 02:03:25 UTC
so whats the fix for this? anyone?
Comment 18 Maciej Grela 2008-11-19 19:54:21 UTC
(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.