Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66844 - gawk fails to compile if you issue emerge -e world
Summary: gawk fails to compile if you issue emerge -e world
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-08 21:58 UTC by Jory A. Pratt
Modified: 2005-02-14 10:07 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jory A. Pratt 2004-10-08 21:58:45 UTC
gawk fails to build when apply num patch

Reproducible: Always
Steps to Reproduce:
1. re-emerge gawk on a running box
2.
3.

Actual Results:  
if gcc -DDEFPATH="\".:/usr/share/awk\"" -DHAVE_CONFIG_H -DGAWK
-DLOCALEDIR="\"/usr/share/locale\"" -I. -I. -I. -I./intl    -O3 -march=athlon-xp
-funit-at-a-time -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays
-pipe -ffast-math -mfpmath=sse,387 -fforce-mem -fforce-addr -mmmx -msse -m3dnow
-finline-limit=900 -MT re.o -MD -MP -MF ".deps/re.Tpo" \
  -c -o re.o `test -f 're.c' || echo './'`re.c; \
then mv -f ".deps/re.Tpo" ".deps/re.Po"; \
else rm -f ".deps/re.Tpo"; exit 1; \
fi
if gcc -DDEFPATH="\".:/usr/share/awk\"" -DHAVE_CONFIG_H -DGAWK
-DLOCALEDIR="\"/usr/share/locale\"" -I. -I. -I. -I./intl    -O3 -march=athlon-xp
-funit-at-a-time -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays
-pipe -ffast-math -mfpmath=sse,387 -fforce-mem -fforce-addr -mmmx -msse -m3dnow
-finline-limit=900 -MT regex.o -MD -MP -MF ".deps/regex.Tpo" \
  -c -o regex.o `test -f 'regex.c' || echo './'`regex.c; \
then mv -f ".deps/regex.Tpo" ".deps/regex.Po"; \
else rm -f ".deps/regex.Tpo"; exit 1; \
fi
if gcc -DDEFPATH="\".:/usr/share/awk\"" -DHAVE_CONFIG_H -DGAWK
-DLOCALEDIR="\"/usr/share/locale\"" -I. -I. -I. -I./intl    -O3 -march=athlon-xp
-funit-at-a-time -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays
-pipe -ffast-math -mfpmath=sse,387 -fforce-mem -fforce-addr -mmmx -msse -m3dnow
-finline-limit=900 -MT replace.o -MD -MP -MF ".deps/replace.Tpo" \
  -c -o replace.o `test -f 'replace.c' || echo './'`replace.c; \
then mv -f ".deps/replace.Tpo" ".deps/replace.Po"; \
else rm -f ".deps/replace.Tpo"; exit 1; \
fi
In file included from replace.c:51:
missing_d/strchr.c:12: error: parse error before "__extension__"
missing_d/strchr.c:22: warning: data definition has no type or storage class
missing_d/strchr.c:22: error: parse error before '++' token
make[2]: *** [replace.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gawk-3.1.3-r1/work/gawk-3.1.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gawk-3.1.3-r1/work/gawk-3.1.3'
make: *** [all] Error 2

!!! ERROR: sys-apps/gawk-3.1.3-r1 failed.
!!! Function src_compile, Line 47, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


if you remove the  num patch it compiles fine
Comment 1 SpanKY gentoo-dev 2004-10-10 18:11:47 UTC
neglected to provide `emerge info`
Comment 2 Jory A. Pratt 2004-10-11 15:14:36 UTC
Portage 2.0.51_rc7 (gcc34-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r6 i686)
=================================================================
System uname: 2.6.8-gentoo-r6 i686 AMD Athlon(TM) XP2200+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -ftracer -fno-signaling-nans -mno-align-stringops -minline-all-stringops -mno-push-args -mmmx -msse -m3dnow -finline-limit=500"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -ftracer -fno-signaling-nans -mno-align-stringops -minline-all-stringops -mno-push-args -mmmx -msse -m3dnow -finline-limit=500"
DISTDIR="/home/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo ftp://gentoo.ccccom.com ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa apache2 avi berkdb bitmap-fonts cdr crypt cups dvd dvdr encode esd f77 foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg libg++ libwww mad maildir mikmod motif mpeg mysql ncurses nowin nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xprint xv zlib"
Comment 3 SpanKY gentoo-dev 2005-02-14 10:07:03 UTC
try upgrading to gcc-3.4.3