Since first try to compile i get this error after an emerge -avuDt world
Created attachment 158411 [details] build error log This is the compile error log for dev-libs/libgpg-error-1.6
Portage 2.1.4.4 (default-linux/x86/2006.1, gcc-4.2.3, glibc-2.8_p20080602-r0, 2.6.24-zen5 i686) ================================================================= System uname: 2.6.24-zen5 i686 Intel(R) Pentium(R) M processor 1.10GHz Timestamp of tree: Wed, 25 Jun 2008 15:04:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -ggdb -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -ggdb -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer nostrip parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LINGUAS="de en en_US en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/gentoo-soor-overlay /usr/portage/local/layman/sunrise /usr/portage/local/layman/mozilla /usr/portage/local/layman/gnome-experimental /usr/portage/local/layman/gechi /usr/portage/local/layman/vmware /usr/portage/local /usr/portage/local/layman/desktop-effects /usr/portage/local/layman/arcon /usr/portage/local/layman/x11" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X a52 aac acpi aiglx akamaru alsa berkdb cairo caps cddb cdparanoia cli cracklib crypt cups custom-cflags dbus dga directfb dri dvd fat fbcon firefox flac fortran gcj gdbm gif glibc-omitfp gnome gpm gtk hal hddtemp i8x0 iconv java jpeg mad midi mmx mmxext mono mp3 mpeg mudflap ncurses newspr nls nptl nptlonly nsplugin ntfs opengl openmp pam pcre pdf perl png ppds pppd profile python qt3support qt4 quicktime readline real reflection reiser4 samba sdl session slang sound speex spell spl sse sse2 ssl svg swat tcpd tetex theora thunderbird tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis wavpack wifi win32codecs x86 xcomposite xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw dmix extplug ioplug plug rate" APACHE2_MODULES="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 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" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="vga vesa i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
i've no idea whats wrong. does seem to occur occasionally though: http://projects.linuxtogo.org/pipermail/openembedded-issues/2007-December/007128.html http://forums.gentoo.org/viewtopic-t-651659-highlight-cscope.html?sid=abf70f79aa2f449d063a26f837c2fea8
I have the same problem: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -O2 -march=nocona -pipe -ggdb -MT libgpg_error_la-code-from-errno.lo -MD -MP -MF .deps/libgpg_error_la-code-from-errno.Tpo -c code-from-errno.c -fPIC -DPIC -o .libs/libgpg_error_la-code-from-errno.o mv -f .deps/gpg_error-gpg-error.Tpo .deps/gpg_error-gpg-error.Po In file included from code-from-errno.c:32: code-from-errno.h:3: error: expected identifier or '(' before '}' token code-from-errno.c: In function 'gpg_err_code_from_errno': code-from-errno.c:68: error: expected expression before ')' token code-from-errno.c:68: error: expected expression before ')' token code-from-errno.c:79: error: 'err_code_from_index' undeclared (first use in this function) code-from-errno.c:79: error: (Each undeclared identifier is reported only once code-from-errno.c:79: error: for each function it appears in.) code-from-errno.c: In function 'gpg_err_code_from_syserror': code-from-errno.c:95: error: expected expression before ')' token code-from-errno.c:95: error: expected expression before ')' token code-from-errno.c:106: error: 'err_code_from_index' undeclared (first use in this function) make[3]: *** [libgpg_error_la-code-from-errno.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-libs/libgpg-error-1.6/work/libgpg-error-1.6/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-libs/libgpg-error-1.6/work/libgpg-error-1.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/libgpg-error-1.6/work/libgpg-error-1.6' make: *** [all] Error 2 * * ERROR: dev-libs/libgpg-error-1.6 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2346: Called die * The specific snippet of code: * emake || die * The die message: * (no error message) ------------- macbook / # emerge --info Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.18-6-686 i686) ================================================================= System uname: 2.6.18-6-686 i686 Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz Timestamp of tree: Sun, 14 Sep 2008 17:00:02 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.4.4-r13, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r2 sys-devel/automake: 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=nocona -pipe -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=nocona -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug unmerge-orphans userfetch" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X a52 aac acl acpi alsa altenburgcards amarok amr amuled apm applet async asyncns atm automount avahi bash-completion berkdb bluetooth bonjour bookmarks branding bzip2 cairo cdr cisco cli cracklib crypt cups cxx d daap dbus dedicated deskbar dga dhcp divx dri dv dvd dvdr dvdread dvi eap-tls eds emboss enblend encode esd evo exif extra-algorithms fam fasttrack ffmpeg firefox flac ftp galago gd gdbm german gif glib glitz gmedia gnome gnutella gnutls gphoto2 gpm gsf gstreamer gtk h323 hal haskell hddtemp hfs iconv icu id3 id3tag ieee1394 imlib injection inkjar ipv6 irda isdnlog isight jabber java javascript jit joystick jpeg jpeg2k kde kerberos kig-scripting kqemu latex lcms ldap libnotify lirc lm_sensors lua lzo macbook mad madwifi maps mdnsresponder-compat midi mikmod mmap mmx mng mozdevelop mp2 mp3 mp4 mpeg mplayer mtp mudflap music musicbrainz nautilus ncurses net network networking networkmanager njb nls nntp nptl nptlonly nsplugin ntfs ogg opengl openmp oss pam pascal pch pcre pdf perl pidgin plotutils pmu png pnm posix postgres postscript ppds pptp ps pth pulseaudio python qt3 qt3support qt4 quicktime rar rc5 rdesktop readline real realmedia reflection reiser4 reiserfs rtc samba screen sdl sdl-image sdl-sound sdlaudio server session sftp sharedmem sift slp smp sockets socks5 solver sourceview speex spell spl sse sse2 ssl ssse3 startup-notification subversion svg sysfs tetex theora threads threadsafe tiff timidity tk trayicon truetype unicode unzip usb v4l2 valgrind vcd video voice vorbis weak-algorithms wifi win32codecs wma wmp wxwindows x264 x86 xanim xattr xcomposite xext xface xine xml xmlreader xorg xrandr xscreensaver xulrunner xv xvid zip zlib zsh-completion" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" CAMERAS="sony_dscf1 sony_dscf55" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="inputlirc macmini" USERLAND="GNU" VIDEO_CARDS="i810 vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
macbook / # cat /var/tmp/portage/dev-libs/libgpg-error-1.6/work/libgpg-error-1.6/src/code-from-errno.h /* Output of mkerrcodes2.awk. DO NOT EDIT. */ }; #define errno_to_idx(code) (0 ? -1 \ : ((code >= ) && (code <= )) ? (code - ) \ : -1) macbook / #
You can see here that something in the Makefile is messed up: macbook src # make I. -I. -o mkerrcodes ./mkerrcodes.c make: I.: Command not found make: [mkerrcodes] Error 127 (ignored) ./mkerrcodes | gawk -f ./mkerrcodes2.awk >code-from-errno.h /bin/sh: ./mkerrcodes: No such file or directory make all-am make[1]: Entering directory `/var/tmp/portage/dev-libs/libgpg-error-1.6/work/libgpg-error-1.6/src' /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -O2 -march=nocona -pipe -ggdb -MT libgpg_error_la-code-from-errno.lo -MD -MP -MF .deps/libgpg_error_la-code-from-errno.Tpo -c -o libgpg_error_la-code-from-errno.lo `test -f 'code-from-errno.c' || echo './'`code-from-errno.c i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -O2 -march=nocona -pipe -ggdb -MT libgpg_error_la-code-from-errno.lo -MD -MP -MF .deps/libgpg_error_la-code-from-errno.Tpo -c code-from-errno.c -fPIC -DPIC -o .libs/libgpg_error_la-code-from-errno.o In file included from code-from-errno.c:32: code-from-errno.h:3: error: expected identifier or '(' before '}' token code-from-errno.c: In function 'gpg_err_code_from_errno': code-from-errno.c:68: error: expected expression before ')' token code-from-errno.c:68: error: expected expression before ')' token code-from-errno.c:79: error: 'err_code_from_index' undeclared (first use in this function) code-from-errno.c:79: error: (Each undeclared identifier is reported only once code-from-errno.c:79: error: for each function it appears in.) code-from-errno.c: In function 'gpg_err_code_from_syserror': code-from-errno.c:95: error: expected expression before ')' token code-from-errno.c:95: error: expected expression before ')' token code-from-errno.c:106: error: 'err_code_from_index' undeclared (first use in this function) make[1]: *** [libgpg_error_la-code-from-errno.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/libgpg-error-1.6/work/libgpg-error-1.6/src' make: *** [all] Error 2
Here is the problem: macbook src # grep CC_FOR_BUILD Makefile CC_FOR_BUILD = # It is correct to use $(CC_FOR_BUILD) here. We want to run the $(CC_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/mkerrcodes.c
This is a common bug. You will find one possible fix (workaround) for example in app-crypt/gnupg/gnupg-2.0.9.ebuild. Just edit the libgpg-error-1.6.ebuild and change the src_compile() like this: src_compile() { econf $(use_enable nls) CC_FOR_BUILD=$(tc-getBUILD_CC) || die emake || die }
(In reply to comment #8) > This is a common bug. You will find one possible fix (workaround) for example > in app-crypt/gnupg/gnupg-2.0.9.ebuild. Just edit the libgpg-error-1.6.ebuild > and change the src_compile() like this: > > > src_compile() { > econf $(use_enable nls) CC_FOR_BUILD=$(tc-getBUILD_CC) || die > emake || die > } > This works for me! Thank you!
CC_FOR_BUILD should not be empty. if it is, your build env is screwing it up. so go fix your build env.