Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266298 - sys-devel/gcc-4.3.2-r3 wont compile on x86 with sys-libs/uclibc (FE_* undeclared, first use in this function)
Summary: sys-devel/gcc-4.3.2-r3 wont compile on x86 with sys-libs/uclibc (FE_* undecla...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-15 19:51 UTC by Antonio Pezo
Modified: 2009-08-25 08:50 UTC (History)
4 users (show)

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 Antonio Pezo 2009-04-15 19:51:58 UTC
building tiny gentoo.
unfortunately emerge gcc-4.3.2-r3 wont compile.
libbid or something similar bronken in libgcc?!
some variables arent declared.

Reproducible: Always

Steps to Reproduce:
1.emerge gcc
2.
3.

Actual Results:  
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:52:18: error: fenv.h: No such file or directory
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c: In function '__dfp_test_except':
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:64: error: 'FE_INEXACT' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:64: error: (Each undeclared identifier is reported only once
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:64: error: for each function it appears in.)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:66: error: 'FE_UNDERFLOW' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:68: error: 'FE_OVERFLOW' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:70: error: 'FE_DIVBYZERO' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:72: error: 'FE_INVALID' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c: In function '__dfp_raise_except':
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:81: error: 'FE_INEXACT' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:83: error: 'FE_UNDERFLOW' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:85: error: 'FE_OVERFLOW' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:87: error: 'FE_DIVBYZERO' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:89: error: 'FE_INVALID' undeclared (first use in this function)
make[3]: *** [bid_decimal_globals.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/i386-gentoo-linux-uclibc/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build'
make: *** [bootstrap-lean] Error 2
 * 
 * ERROR: sys-devel/gcc-4.3.2-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4739:  Called toolchain_src_compile
 *             environment, line 5260:  Called gcc_src_compile
 *             environment, line 3033:  Called gcc_do_make
 *             environment, line 2824:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *  The die message:
 *   emake failed with bootstrap-lean


Expected Results:  
emerge gcc success

this is infact ubuntu system, chrooted to gentoo environment so i could produce tinygentoo at the end. (following instructions  http://en.gentoo-wiki.com/wiki/TinyGentoo )

* failed at step: emerge -auDN world

emerge info

Portage 2.1.6.7 (uclibc/x86, gcc-4.1.2, uclibc-0.9.28.3-r2, 2.6.27-14-generic x86_64)
=================================================================
System uname: Linux-2.6.27-14-generic-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-libc0
Timestamp of tree: Tue, 14 Apr 2009 01:45:03 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r6, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-Os -mtune=i686 -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks fixpackages nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages/uclibc"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="cli cracklib crypt dri midi minimal mudflap ncurses openmp pcre perl python readline reflection session spl ssl tcpd uclibc x86 xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 seraph@xs4all.nl 2009-04-24 14:07:09 UTC
I've run into exactly the same problem while trying to update the image for my Nagasaki MS-2100 using the uclibc/x86 profile. Could be that this version of gcc is trying to use something that isn't defined in uclibc.
Comment 2 Matt Causey 2009-05-05 11:21:13 UTC
I'm working on an embedded ramdisk, and just tried an emerge -Du world to get the latest bits before proceeding.  I have this exact error.  I'll probably mask for now, since I don't have need to the newer gcc (yet)  :-)

al_globals.o -MD -MP -MF bid_decimal_globals.dep -c /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_g
lobals.c
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgcc/config/libbid/bid_decimal_globals.c:52:18: error: fenv.h: No such file or direc
tory


Here's my emerge --info:

Portage 2.1.6.11 (uclibc/x86, gcc-4.1.2, uclibc-0.9.28.3-r3, 2.6.18-53.1.14.el5 i686)
=================================================================
System uname: Linux-2.6.18-53.1.14.el5-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-libc0
Timestamp of tree: Tue, 05 May 2009 01:45:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-Os -mtune=i386 -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -mtune=i386 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="cli cracklib crypt dri midi mudflap ncurses openmp pcre perl python readline reflection session spl ssl tcpd uclibc x86 xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file a
Comment 4 SpanKY gentoo-dev 2009-08-25 08:50:24 UTC
should be fixed in uclibc-0.9.28.3-r8

http://sources.gentoo.org/sys-libs/uclibc/uclibc-0.9.28.3-r8.ebuild?r1=1.1&r2=1.2