Bug 184200 - sys-devel/m4-1.4.9 signed division bug
Bug#: 184200 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: a@gaydenko.com
Component: Ebuilds
URL: 
Summary: sys-devel/m4-1.4.9 signed division bug
Keywords:  
Status Whiteboard: 
Opened: 2007-07-04 16:00 0000
Description:   Opened: 2007-07-04 16:00 0000
Trying to install non-in-portage app (it is sci-electronics/pcb, but from CVS
tree), have got the error:

______________
...
checking for m4... /usr/bin/m4
checking if /usr/bin/m4 has the division involving negative numbers bug... yes
configure: error: It appears that /usr/bin/m4 has a bug involving division
with negative numbers.  In particular it just returned the result that
-2/2 = 2147483647 instead of -1.  This is a known bug in GNU m4-1.4.9.  Please
install a non-broken m4.
...
_______________

OTOH, this m4 version is 'stable' in portage. Is it worth to mark 1.4.9 as
'unstable', or have I missed something?

------- Comment #1 From SpanKY 2007-07-04 18:15:54 0000 -------
you forgot `emerge --info`

also, post information on how to reproduce this issue over here

------- Comment #2 From Andrew Gaydenko 2007-07-04 18:26:21 0000 -------
'emerge --info' output is:


Portage 2.1.3_rc6 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4,
2.6.21-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.21-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Tue, 03 Jul 2007 20:30:07 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -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/gconf /etc/revdep-rebuild
/etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j4"
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="/wrk/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pro-audio
/usr/portage/local/layman/xeffects /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X acl akode alsa amd64 audiofile berkdb bitmap-fonts bzip2 cairo
cdparanoia cdr cli cracklib crypt css cups dbus dri dssi dvd dvdr dvdread eds
emboss encode exif ffmpeg fftw firefox flac fluidsynth fortran gdbm gif gphoto2
gpm hal hdsp iconv ieee1394 isdnlog jack jpeg kde kdexdelta kdexdeltas kqemu
ladspa lame lash ldap libg++ libsamplerate licq lirc lm_sensors lv2 mad midi
mikmod mmx mp3 mpeg mplayer mudflap musicbrainz mysql ncurses nls nptl nptlonly
ogg opengl openmp osc oss pam pcre pdf perl pertty png ppds pppd python qt3 qt4
quicktime readline reflection sdl session sndfile soundtouch spell spl sqlite
sse sse2 ssl tcpd tif tiff truetype truetype-fonts type1-fonts unicode vorbis
wmf x264 xine xml xorg xosd xv xvid zip zlib" ALSA_CARDS="hdsp virmidi"
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" CAMERAS="canon ptp2 directory" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="serial"
USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #3 From Andrew Gaydenko 2007-07-04 18:28:58 0000 -------
Created an attachment (id=123892) [details]
self-made ebuild file

This ebuild file is under using to emerge 'pcb' app from CVS.

------- Comment #4 From Jakub Moc (RETIRED) 2007-07-04 19:43:55 0000 -------
http://www.mail-archive.com/bug-m4@gnu.org/msg02084.html

------- Comment #5 From SpanKY 2007-07-07 06:33:50 0000 -------
added fix from upstream to 1.4.9-r1