when I revdep-rebuild ,it start to emerge dev-python/pychm-0.8.4,but it failed Reproducible: Always Steps to Reproduce: 1.emerge dev-python/pychm 2.revdep-rebuild 3. Actual Results: emerge dev-python/pychm Calculating dependencies... done! >>> Verifying ebuild Manifests... >>> Emerging (1 of 1) dev-python/pychm-0.8.4 to / * pychm-0.8.4.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking pychm-0.8.4.tar.gz ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking pychm-0.8.4.tar.gz to /var/tmp/portage/dev-python/pychm-0.8.4/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/dev-python/pychm-0.8.4/work/pychm-0.8.4 ... running build running build_py creating build creating build/lib.linux-i686-2.5 creating build/lib.linux-i686-2.5/chm copying chm/__init__.py -> build/lib.linux-i686-2.5/chm copying chm/chm.py -> build/lib.linux-i686-2.5/chm copying chm/chmlib.py -> build/lib.linux-i686-2.5/chm running build_ext building 'chm._chmlib' extension creating build/temp.linux-i686-2.5 creating build/temp.linux-i686-2.5/chm i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -march=athlon64 -O2 -pipe -fomit-frame-pointer -fPIC -I/usr/include/python2.5 -c chm/swig_chm.c -o build/temp.linux-i686-2.5/chm/swig_chm.o -DSWIG_COBJECT_TYPES chm/swig_chm.c:681:21: error: chm_lib.h: No such file or directory chm/swig_chm.c:706: warning: ‘struct chmUnitInfo’ declared inside parameter list chm/swig_chm.c:706: warning: its scope is only this definition or declaration, which is probably not what you want chm/swig_chm.c:706: warning: ‘struct chmFile’ declared inside parameter list chm/swig_chm.c: In function ‘_wrap_chmUnitInfo_start_set’: chm/swig_chm.c:769: error: ‘LONGUINT64’ undeclared (first use in this function) chm/swig_chm.c:769: error: (Each undeclared identifier is reported only once chm/swig_chm.c:769: error: for each function it appears in.) chm/swig_chm.c:769: error: expected ‘;’ before ‘arg2’ chm/swig_chm.c:775: error: ‘arg2’ undeclared (first use in this function) chm/swig_chm.c:775: error: expected ‘;’ before ‘PyLong_AsUnsignedLongLong’ chm/swig_chm.c:777: error: dereferencing pointer to incomplete type chm/swig_chm.c: In function ‘_wrap_chmUnitInfo_start_get’: chm/swig_chm.c:789: error: ‘LONGUINT64’ undeclared (first use in this function) chm/swig_chm.c:789: error: expected ‘;’ before ‘result’ chm/swig_chm.c:794: error: ‘result’ undeclared (first use in this function) chm/swig_chm.c:794: error: dereferencing pointer to incomplete type chm/swig_chm.c: In function ‘_wrap_chmUnitInfo_length_set’: chm/swig_chm.c:806: error: ‘LONGUINT64’ undeclared (first use in this function) chm/swig_chm.c:806: error: expected ‘;’ before ‘arg2’ chm/swig_chm.c:812: error: ‘arg2’ undeclared (first use in this function) chm/swig_chm.c:812: error: expected ‘;’ before ‘PyLong_AsUnsignedLongLong’ chm/swig_chm.c:814: error: dereferencing pointer to incomplete type chm/swig_chm.c: In function ‘_wrap_chmUnitInfo_length_get’: chm/swig_chm.c:826: error: ‘LONGUINT64’ undeclared (first use in this function) chm/swig_chm.c:826: error: expected ‘;’ before ‘result’ chm/swig_chm.c:831: error: ‘result’ undeclared (first use in this function) chm/swig_chm.c:831: error: dereferencing pointer to incomplete type chm/swig_chm.c: In function ‘_wrap_chmUnitInfo_space_set’: chm/swig_chm.c:848: error: dereferencing pointer to incomplete type chm/swig_chm.c: In function ‘_wrap_chmUnitInfo_space_get’: chm/swig_chm.c:865: error: dereferencing pointer to incomplete type chm/swig_chm.c: In function ‘_wrap_chmUnitInfo_path_set’: chm/swig_chm.c:883: error: dereferencing pointer to incomplete type chm/swig_chm.c:884: error: dereferencing pointer to incomplete type chm/swig_chm.c: In function ‘_wrap_chmUnitInfo_path_get’: chm/swig_chm.c:901: error: dereferencing pointer to incomplete type chm/swig_chm.c: In function ‘_wrap_new_chmUnitInfo’: chm/swig_chm.c:915: error: invalid application of ‘sizeof’ to incomplete type ‘struct chmUnitInfo’ chm/swig_chm.c: In function ‘_wrap_chm_resolve_object’: chm/swig_chm.c:1002: error: invalid application of ‘sizeof’ to incomplete type ‘struct chmUnitInfo’ chm/swig_chm.c: In function ‘_wrap_chm_retrieve_object’: chm/swig_chm.c:1043: error: ‘LONGUINT64’ undeclared (first use in this function) chm/swig_chm.c:1043: error: expected ‘;’ before ‘arg4’ chm/swig_chm.c:1044: error: ‘LONGINT64’ undeclared (first use in this function) chm/swig_chm.c:1044: error: expected ‘;’ before ‘arg5’ chm/swig_chm.c:1045: error: expected ‘;’ before ‘result’ chm/swig_chm.c:1056: error: ‘arg4’ undeclared (first use in this function) chm/swig_chm.c:1056: error: expected ‘;’ before ‘PyLong_AsUnsignedLongLong’ chm/swig_chm.c:1058: error: ‘arg5’ undeclared (first use in this function) chm/swig_chm.c:1058: error: expected ‘;’ before ‘PyLong_AsLongLong’ chm/swig_chm.c:1069: error: ‘result’ undeclared (first use in this function) chm/swig_chm.c:1069: error: expected ‘;’ before ‘chm_retrieve_object’ chm/swig_chm.c: In function ‘_wrap_chm_enumerate’: chm/swig_chm.c:1092: error: ‘CHM_ENUMERATOR’ undeclared (first use in this function) chm/swig_chm.c:1092: error: expected ‘;’ before ‘arg3’ chm/swig_chm.c:1103: error: ‘arg3’ undeclared (first use in this function) chm/swig_chm.c: In function ‘_wrap_chm_enumerate_dir’: chm/swig_chm.c:1122: error: ‘CHM_ENUMERATOR’ undeclared (first use in this function) chm/swig_chm.c:1122: error: expected ‘;’ before ‘arg4’ chm/swig_chm.c:1133: error: ‘arg4’ undeclared (first use in this function) error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 * * ERROR: dev-python/pychm-0.8.4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2312: Called distutils_src_compile * environment, line 676: Called die * The specific snippet of code: * ${python} setup.py build "$@" || die "compilation failed" * The die message: * compilation failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-python/pychm-0.8.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/pychm-0.8.4/temp/environment'. * * Messages for package dev-python/pychm-0.8.4: * * ERROR: dev-python/pychm-0.8.4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2312: Called distutils_src_compile * environment, line 676: Called die * The specific snippet of code: * ${python} setup.py build "$@" || die "compilation failed" * The die message: * compilation failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-python/pychm-0.8.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/pychm-0.8.4/temp/environment'. *
*** Bug 224047 has been marked as a duplicate of this bug. ***
emerge --info Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686) ================================================================= System uname: 2.6.24-gentoo-r8 i686 AMD Athlon(tm) 64 Processor 3000+ Timestamp of tree: Thu, 29 May 2008 09:45:01 +0000 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, 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 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.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" 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/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://61.135.158.199" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1,--as-needed" LINGUAS="zh_CN" 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/portage/local/myebuilds" SYNC="rsync://61.135.158.199/gentoo-portage" USE="3dnow 3dnowext X aac acl acpi alsa apache2 avahi avi bash-completion berkdb bluetooth branding bzip2 cairo cdr cjk cli cracklib crypt dbus dri dvd dvdr dvdread emboss encode esd evo fam firefox gdbm gif gnome gpm gstreamer gtk hal hda-intel iconv isdnlog jpeg kerberos ldap libnotify mad midi mikmod mms mmx mmxext mp3 mpd mpeg mudflap ncurses nls nptl nptlonly nv nvidia ogg opengl openmp pam pcre pdf perl png ppds pppd python qq qt3support quicktime readline real reflection rtsp sdl session spell spl sse sse2 ssl startup-notification svg tcpd tiff truetype unicode vorbis wav win32codecs wma wmv x86 xml xorg xv xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" athlon64 is for 64 bit systems.
(In reply to comment #3) > CBUILD="i686-pc-linux-gnu" > CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" > > athlon64 is for 64 bit systems. > I have used this CFLAGS for two months and there is no problem. My cpu is AMD Athlon(tm) 64 Processor 3000+,and how should I choose the CFLAGS? THANKS~~