Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196063 - ~sys-devel/m4-1.4.10 fails with -ffast-math
Summary: ~sys-devel/m4-1.4.10 fails with -ffast-math
Status: RESOLVED DUPLICATE of bug 185998
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-16 15:39 UTC by Sarunas Krisciukaitis
Modified: 2007-10-16 15:45 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 Sarunas Krisciukaitis 2007-10-16 15:39:30 UTC
I've been building m4-1.4.10 on emerge -Duv system,
and m4 failed to build with error like this:

i686-pc-linux-gnu-gcc -std=gnu99  -Os -march=pentium-m -mtune=pentium-m -ffast-math -fomit-frame-pointer -pipe   -o m4 m4.o builtin.o debug.o eval.o format.o freeze.o input.o macro.o output.o path.o symtab.o stackovf.o ../lib/libm4.a  
../lib/libm4.a(vasnprintf.o): In function `vasnprintf':
vasnprintf.c:(.text+0x840): undefined reference to `decimal_point_char'
vasnprintf.c:(.text+0x87e): undefined reference to `decimal_point_char'
vasnprintf.c:(.text+0x8dd): undefined reference to `decimal_point_char'
collect2: ld returned 1 exit status
make[1]: *** [m4] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-devel/m4-1.4.10-r1/work/m4-1.4.10/src'
make: *** [all-recursive] Error 1

Then I've tried to build m4-1.4.10-r1 - same error.

I've googled and found solution which fixed compilation error.
Solution:
http://www.mail-archive.com/bug-m4@gnu.org/msg02169.html

Diff:
--- lib/vasnprintf.c    11 Jun 2007 01:10:07 -0000      1.58
+++ lib/vasnprintf.c    14 Jul 2007 00:01:26 -0000
@@ -200,7 +200,7 @@
 /* Here we need to call the native sprintf, not rpl_sprintf.  */
 #undef sprintf
 
-#if NEED_PRINTF_DIRECTIVE_A && !defined IN_LIBINTL
+#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || 
NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL
 /* Determine the decimal-point character according to the current locale.  */
 # ifndef decimal_point_char_defined
 #  define decimal_point_char_defined 1

Please add this diff to emerge so it could fix the problem.

Reproducible: Always

Steps to Reproduce:
1. emerge "=sys-devel/m4-1.4.10"
2. emerge "=sys-devel/m4-1.4.10-r1"

Actual Results:  
i686-pc-linux-gnu-gcc -std=gnu99  -Os -march=pentium-m -mtune=pentium-m -ffast-math -fomit-frame-pointer -pipe   -o m4 m4.o builtin.o debug.o eval.o format.o freeze.o input.o macro.o output.o path.o symtab.o stackovf.o ../lib/libm4.a  
../lib/libm4.a(vasnprintf.o): In function `vasnprintf':
vasnprintf.c:(.text+0x840): undefined reference to `decimal_point_char'
vasnprintf.c:(.text+0x87e): undefined reference to `decimal_point_char'
vasnprintf.c:(.text+0x8dd): undefined reference to `decimal_point_char'
collect2: ld returned 1 exit status
make[1]: *** [m4] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-devel/m4-1.4.10-r1/work/m4-1.4.10/src'
make: *** [all-recursive] Error 1


Expected Results:  
Clean build

Solution:
http://www.mail-archive.com/bug-m4@gnu.org/msg02169.html

Diff:
--- lib/vasnprintf.c    11 Jun 2007 01:10:07 -0000      1.58
+++ lib/vasnprintf.c    14 Jul 2007 00:01:26 -0000
@@ -200,7 +200,7 @@
 /* Here we need to call the native sprintf, not rpl_sprintf.  */
 #undef sprintf
 
-#if NEED_PRINTF_DIRECTIVE_A && !defined IN_LIBINTL
+#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || 
NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL
 /* Determine the decimal-point character according to the current locale.  */
 # ifndef decimal_point_char_defined
 #  define decimal_point_char_defined 1
Comment 1 Sarunas Krisciukaitis 2007-10-16 15:40:32 UTC
Portage 2.1.3.14 (default-linux/x86/2007.0/desktop, gcc-4.2.1, glibc-2.6.1-r0, 2.6.22-gentoo-r6 i686)
=================================================================
System uname: 2.6.22-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1400MHz
Timestamp of tree: Tue, 16 Oct 2007 15:00:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0_rc4-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 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.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium-m -mtune=pentium-m -ffast-math -fomit-frame-pointer -pipe"
CHOST="i686-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/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -march=pentium-m -mtune=pentium-m -ffast-math -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.gentoo.no"
LINGUAS="en"
MAKEOPTS="-j3"
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/layman/drizzt-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi alsa amr amrnb amrwb berkdb bitmap-fonts bl branding bzip2 cairo cddb cdio cdr cli cracklib crypt cups dbus dcraw dell djvu dri dts dv dvb dvd dvdr dvdread eds emboss emovix enca encode evo exif extra-cardsets extrafilters fam fame ffmpeg fftw firefox flac fpx ftp gif grace gstreamer hal iconv ieee1394 imlib isdnlog jack jbig jpeg jpeg2k kdeenablefinal kdehiddenvisibility lame lcms libnotify live lzo mad md5sum midi mikmod mjpeg mmx mp2 mp3 mp3rtp mpeg mudflap musepack musicbrainz ncurses ndri netcdf nls nptl nptlonly ogg openexr opengl openmp pam pcmcia pcre pdf plugins png pnm ppds pppd pvr qt3 qt3support qt4 quicktime radio rar readline real reflection rtc samba sdl session sndfile speex spell spl srt sse sse2 ssl startup-notification svg tcpd tga theora threads tiff tivo truetype truetype-fonts type1-fonts unicode vcd vidix vorbis win32codecs wmf x264 x86 xanim xforms xml xorg xprint xv xvid xvmc zlib zoran" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" ELIBC="glibc" INPUT_DEVICES="mouse synaptics keyboard evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vesa i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-10-16 15:45:43 UTC

*** This bug has been marked as a duplicate of bug 185998 ***