Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41428 - biew-5.5.0 will not compile without -DNDEBUG=1
Summary: biew-5.5.0 will not compile without -DNDEBUG=1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High major
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-12 15:43 UTC by Daniel Fullmer
Modified: 2004-02-13 03:40 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 Daniel Fullmer 2004-02-12 15:43:37 UTC
emerge biew fails like this:

gcc -Wall -D__HAVE_PRAGMA_PACK__=1 -D__UNIX__ -D__OS__="unix" -Uunix -DHAVE_TERMINAL_OUT=1 -D_CURSES_ -DHAVE_MOUSE -D__OS_NAME__='"Unix/Curses"' -D__MACHINE__=ia32 -D__CPU_NAME__='"i386"' -D__CPU__=386 -D__DEFAULT_DISASM=0 -fno-builtin -DCAN_COMPILE_X86_GAS=1 -fshort-enums -O3 -march=pentium3 -pipe -fomit-frame-pointer -ffast-math -fprefetch-loop-arrays -mfpmath=sse,387 -mmmx -msse  -I. -c biewlib/sysdep/ia32/unix/mmfio.c -o biewlib/sysdep/ia32/unix/mmfio.o
distcc[10429] ERROR: compile on funbox failed
biewlib/sysdep/ia32/aclib.c: In function `init_InterleaveBuffers':
biewlib/sysdep/ia32/aclib.c:214: error: `InterleaveBuffers_ptr' undeclared (first use in this function)
biewlib/sysdep/ia32/aclib.c:214: error: (Each undeclared identifier is reported only once
biewlib/sysdep/ia32/aclib.c:214: error: for each function it appears in.)
biewlib/sysdep/ia32/aclib.c: At top level:
biewlib/sysdep/ia32/aclib.c:224: error: `InterleaveBuffers_ptr' used prior to declaration
biewlib/sysdep/ia32/aclib.c: In function `init_CharsToShorts':
biewlib/sysdep/ia32/aclib.c:235: error: `CharsToShorts_ptr' undeclared (first use in this function)
biewlib/sysdep/ia32/aclib.c: At top level:
biewlib/sysdep/ia32/aclib.c:244: error: `CharsToShorts_ptr' used prior to declaration
biewlib/sysdep/ia32/aclib.c: In function `init_ShortsToChars':
biewlib/sysdep/ia32/aclib.c:255: error: `ShortsToChars_ptr' undeclared (first use in this function)
biewlib/sysdep/ia32/aclib.c: At top level:
biewlib/sysdep/ia32/aclib.c:264: error: `ShortsToChars_ptr' used prior to declaration
biewlib/sysdep/ia32/aclib_template.c:97: warning: `fast_memcpy_C' defined but not used
biewlib/sysdep/ia32/aclib_template.c:334: warning: `fast_memset_C' defined but not used
make: *** [biewlib/sysdep/ia32/aclib.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from biewlib/sysdep/generic/posix/mmfio.c:2,
                 from biewlib/sysdep/generic/unix/mmfio.c:1,
                 from biewlib/sysdep/ia32/unix/mmfio.c:1:
biewlib/sysdep/ia16/dos/mmfio.c:80:73: warning: no newline at end of file

!!! ERROR: dev-util/biew-5.5.0 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! (no error message)

I found that the problem was a line in the ebuild:

sed -i "s/CFLAGS += -O2 -fomit-frame-pointer -DNDEBUG=1/CFLAGS +=/" makefile.inc

The ebuild works fine when i keep the -DNDEBUG=1 like this:

sed -i "s/CFLAGS += -O2 -fomit-frame-pointer/CFLAGS +=/" makefile.inc


# emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.6.2-love1)
=================================================================
System uname: 2.6.2-love1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -ffast-math -fprefetch-loop-arrays -mfpmath=sse,387 -mmmx -msse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /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"
CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -ffast-math -fprefetch-loop-arrays -mfpmath=sse,387 -mmmx -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm avi berkdb crypt cups doc encode esd foomaticdb gdbm gif gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod mmx motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex truetype x86 xml xml2 xmms xv zlib"
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2004-02-13 03:40:58 UTC
Thanks for the bug report, I've got DNDEBUG in my default CFLAGS, so I haven't noticed it before. It's now fixed in CVS.