x86_64-pc-linux-gnu-gcc -Llib -o mii-tool mii-tool.o x86_64-pc-linux-gnu-gcc -Llib -o netstat netstat.o statistics.o -lnet-tools x86_64-pc-linux-gnu-gcc -Llib -o iptunnel iptunnel.o -lnet-tools make: Entering directory `/var/tmp/portage/sys-apps/net-tools-1.60-r13/work/net-tools-1.60/ethercard-diag' for p in patches/*.patch ; do \ patch -p0 < $p || exit 1 ; \ done patching file pub/diag/Makefile patching file pub/diag/alta-diag.c patching file pub/diag/diag-example.c patching file pub/diag/myson-diag.c patching file pub/diag/natsemi-diag.c patching file pub/diag/ns820-diag.c patching file pub/diag/pcnet-diag.c patching file pub/diag/tulip-diag.c patching file pub/diag/via-diag.c patching file pub/diag/Makefile Hunk #1 succeeded at 15 with fuzz 1. patching file pub/diag/ether-wake.c touch .patch make -C pub/diag most make[1]: Entering directory `/var/tmp/portage/sys-apps/net-tools-1.60-r13/work/net-tools-1.60/ethercard-diag/pub/diag' x86_64-pc-linux-gnu-gcc -march=nocona -pipe -DLIBFLASH -DLIBMII -c -o libflash.o libflash.c x86_64-pc-linux-gnu-gcc -march=nocona -pipe -DLIBFLASH -DLIBMII -c -o libmii.o libmii.c x86_64-pc-linux-gnu-gcc -march=nocona -pipe -DLIBFLASH -DLIBMII pci-config.c -o pci-config x86_64-pc-linux-gnu-gcc -march=nocona -pipe -DLIBFLASH -DLIBMII ether-wake.c -o ether-wake x86_64-pc-linux-gnu-gcc -march=nocona -pipe -DLIBFLASH -DLIBMII ne2k-pci-diag.c libflash.o -o ne2k-pci-diag pci-config.c:71:2: error: #error You must compile this driver with "-O"! ne2k-pci-diag.c:41:2: warning: #warning You must compile this program with the correct options! ne2k-pci-diag.c:42:2: warning: #warning See the last lines of the source file. ne2k-pci-diag.c:43:2: error: #error You must compile this driver with "-O". x86_64-pc-linux-gnu-gcc -march=nocona -pipe -DLIBFLASH -DLIBMII alta-diag.c libflash.o libmii.o -o alta-diag x86_64-pc-linux-gnu-gcc -march=nocona -pipe -DLIBFLASH -DLIBMII eepro100-diag.c libflash.o libmii.o -o eepro100-diag x86_64-pc-linux-gnu-gcc -march=nocona -pipe -DLIBFLASH -DLIBMII epic-diag.c libflash.o libmii.o -o epic-diag alta-diag.c:74:2: warning: #warning You must compile this program with the correct options! alta-diag.c:75:2: warning: #warning See the last lines of the soueepro100-diag.c:71:2: warning: #warning You must compile this program with the correct options! eepro100-diag.c:72:2: warning: #warning See the last lines of the source file. eepro100-diag.c:73:2: error: #error You must compile this driver with "-O". rce file. alta-diag.c:76:2: error: #error You must compile thismake[1]: *** [pci-config] Error 1 make[1]: *** Waiting for unfinished jobs.... driver with "-O". epic-diag.c:83:2: warning: #warning You must compile this program with the correct options! epic-diag.c:84:2: warning: #warning See the last lines of the source file. epic-diag.c:85:2: error: #error You must compile this driver with "-O". make[1]: *** [epic-diag] Error 1 make[1]: *** [ne2k-pci-diag] Error 1 make[1]: *** [alta-diag] Error 1 make[1]: *** [eepro100-diag] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-apps/net-tools-1.60-r13/work/net-tools-1.60/ethercard-diag/pub/diag' make: *** [most] Error 2 make: Leaving directory `/var/tmp/portage/sys-apps/net-tools-1.60-r13/work/net-tools-1.60/ethercard-diag' * * ERROR: sys-apps/net-tools-1.60-r13 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * net-tools-1.60-r13.ebuild, line 60: Called die * The specific snippet of code: * emake -C ethercard-diag || die "emake ethercard-diag failed" * The die message: * emake ethercard-diag 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/sys-apps/net-tools-1.60-r13/temp/build.log'. Reproducible: Always emerge --info Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r6 x86_64) ================================================================= System uname: 2.6.23-gentoo-r6 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz Timestamp of tree: Wed, 30 Jan 2008 21:30:07 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 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 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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="-march=nocona -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LC_ALL="de_DE.utf8" LINGUAS="de" MAKEOPTS="-j6" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/local-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac aalib acl alsa amd64 artworkextra avi beagle berkdb bitmap-fonts cdparanoia cdr cli compiz cracklib crypt cups dbus divx doc dri dv dvd dvdr dvdread encode ffmpeg flac fortran gdbm gnome gpm gtk hal iconv ieee1394 ipv6 isdnlog jpeg kde lame live mad midi mjpeg mmx mp3 mudflap mysql ncurses nls nptl nptlonly ogg openmp pam pcre perl pppd python quicktime readline reflection samba session spell spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode vcd vorbis xinerama xorg xprint xv zlib" 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" 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="de" USERLAND="GNU" VIDEO_CARDS="nvidia intel i128 i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
You HAVE TO HAVE at least a -Ox in your CFLAGS in /etc/make.conf file, preferably "-O2"...
(In reply to comment #1) > You HAVE TO HAVE at least a -Ox in your CFLAGS in /etc/make.conf file, > preferably "-O2"... > Well, I think that was the obvious part. I think he's saying it should either fail to emerge with warning, or flag-o-matic ftw!
fixed in ethercard-diag
*** Bug 232749 has been marked as a duplicate of this bug. ***