Summary: | tcpdump fails to compile for PPC | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Timothy Weiand <timothy.weiand> |
Component: | Current packages | Assignee: | PPC Porters <ppc> |
Status: | RESOLVED FIXED | ||
Severity: | critical | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | PPC | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | patch to tcpdump-3.8.3-r1.ebuild to use -O1 on ppc |
Description
Timothy Weiand
2004-07-13 12:05:20 UTC
*** Bug 56942 has been marked as a duplicate of this bug. *** Please give us the output of "emerge info". tcpdump compiled fine here. root@gaia root # emerge info Portage 2.0.50-r9 (default-ppc-2004.1, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 ppc 7457, altivec supported Gentoo Base System version 1.4.16 ccache version 2.2 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="ppc" ACCEPT_LICENSE="" ARCH="ppc" AUTOCLEAN="yes" AUTO_SYMLINK="no" BASH_ENV="/etc/portage/bashrc" CC="gcc" CFLAGS="-O2 -pipe -mcpu=750" CHOST="powerpc-unknown-linux-gnu" CLASSPATH="/opt/ibm-jre-bin-1.4.1/lib/xml.jar:/opt/ibm-jre-bin-1.4.1/lib/security.jar:/opt/ibm-jre-bin-1.4.1/lib/server.jar:/opt/ibm-jre-bin-1.4.1/lib/graphics.jar:/opt/ibm-jre-bin-1.4.1/lib/core.jar:/opt/ibm-jre-bin-1.4.1/lib/charsets.jar:." CLEAN_DELAY="5" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CVS_RSH="ssh" CXX="g++" CXXFLAGS="-O2 -pipe -mcpu=750" DISPLAY=":0.0" DISTDIR="/usr/portage/distfiles" EDITOR="/usr/bin/vim" FEATURES="ccache cvs fixpackages sandbox userpriv usersandbox" FETCHCOMMAND="/usr/bin/proz --no-getch ${URI} -P ${DISTDIR}" GDK_USE_XFT="1" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses" G_BROKEN_FILENAMES="1" HOME="/root" HOSTNAME="gaia" INFODIR="/usr/share/info:/usr/X11R6/info" INFOPATH="/usr/share/info:/usr/share/gcc-data/powerpc-unknown-linux-gnu/3.3/info" INPUTRC="/etc/inputrc" JAVA_HOME="/opt/ibm-jre-bin-1.4.1" JRE_HOME="/opt/ibm-jre-bin-1.4.1" KBUILD_OUTPUT_PREFIX="" LESS="-R" LESSOPEN="|lesspipe.sh %s" LINUX_PORTAGE_WRITABLE="no" LOGNAME="root" LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:" MAKEOPTS="-j2" MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/powerpc-unknown-linux-gnu/3.3/man:/usr/X11R6/man:/usr/qt/3/doc/man" MOZILLA_FIVE_HOME="/usr/lib/mozilla" NOCOLOR="false" PAGER="/usr/bin/less" PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/powerpc-unknown-linux-gnu/gcc-bin/3.3:/opt/ati/bin:/usr/X11R6/bin:/opt/ibm-jre-bin-1.4.1/bin:/usr/qt/3/bin" PKGDIR="/usr/portage/packages" PLATFORM="powerpc-unknown-linux-gnu" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_CACHEDIR="/var/cache/edb/dep/" PORTAGE_CALLER="emerge" PORTAGE_GID="250" PORTAGE_MASTER_PID="15992" PORTAGE_NICENESS="10" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PRELINK_PATH="" PRELINK_PATH_MASK="" PS1="\[\033[01;31m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]" PWD="/root" PYTHONDOCS="/usr/share/doc/python-docs-2.3.3/html" QMAKESPEC="linux-g++" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}" RPMDIR="/usr/portage/rpm" RSYNC_RETRIES="3" RSYNC_TIMEOUT="180" SHELL="/bin/bash" SHLVL="1" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" TERM="xterm" USE="4linux X aac aalib aavm accessibility accounting activefilter aim aliaschain alsa altivec async beep berkdb blas bluetooth bonobo bsh cddb cdf cdr chroot crypt cups curl devfs devfs26 dga diet directfb distcache divx4linux doc dvd dvdr escreen ethereal etwin evo fbcon fbdev fdftk ffmpeg fftw flac flood foomaticdb foreign-sysvinit fs fullrpc gb gdbm gif gimp glgd gmttria gnome gnome-libs gnomedb gpm gstreamer gtk gtk2 gtkhtml imlib irmc jabber java jpeg junit lcd libwww lynxkeymap mad make-busybox-symlinks mitshm motif mozdomi mozilla moznoxft mpeg mpeg4 ncurses nls noaudio nocd nomac noreiserfs oav offensive oggvorbis opengl optional-tasks oro oss pam pcmcia perl png pnp ppc pthreads python qt quicktime readline regexp rhino samba sdl serial slang snmp speedo speex spell ssl stencil-buffer svg tcpd tetex threads tiff transcode truetype trusted type1 usb vda vhosts video_cards_radeon videos vim-with-x wifi xerces xine xml xml2 xmms xosd xrandr xv xvid zlib" USER="root" USERLAND="GNU" USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS" VIDEO_CARDS="radeon" XARGS="xargs -r" XAUTHORITY="/home/tweiand/.Xauthority" XINITRC="/etc/X11/xinit/xinitrc" _="/usr/bin/emerge" tcpdump did compile with -O1 though. Should I make a patch for the ebuild? What was the exact version of GCC you used? I've seen a number of reports of GCC-3.3.3_pre20040408 not compiling things correctly when O is > 1. Wow, you hit that one right on the nose! Thanks! Should there be a comment/patch for the ebuild for this? I can write one up if need be. tweiand@gaia tweiand $ gcc --version gcc (GCC) 3.3.3 (Gentoo Linux 3.3.3_pre20040408-r1) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For my help: where did you search for this information? I could not find it anywhere. Why was this marked "FIXED" when "emerge tcpdump" on ppc still fails with the stable compiler? Attached is a patch that specifies "-O1" when building on ppc with gcc 3.3.3_pre20040408-r1. Ugly, but it works. Created attachment 42121 [details, diff]
patch to tcpdump-3.8.3-r1.ebuild to use -O1 on ppc
reopening the stable compiler is gcc-3.4.1-r3 tcpdump works with the stable compiler. |