gcc -O2 -g -Wall -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 -fno-strict-aliasing -o tcc_g tcc.c -ldl gcc -O2 -g -Wall -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 -fno-strict-aliasing -DTCC_TARGET_C67 -o c67-tcc tcc.c -ldl gcc -O2 -g -Wall -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 -fno-strict-aliasing -DTCC_TARGET_ARM -o arm-tcc tcc.c -ldl /var/tmp/portage/tcc-0.9.22/temp/ccaoVM06.o: In function `parse_number': /var/tmp/portage/tcc-0.9.22/work/tcc-0.9.22/tcc.c:3206: undefined reference to `ldexp' collect2: ld returned 1 exit status make: *** [tcc_g] Error 1 make: *** Waiting for unfinished jobs.... /var/tmp/portage/tcc-0.9.22/temp/ccNp22y0.o: In function `parse_number': /var/tmp/portage/tcc-0.9.22/work/tcc-0.9.22/tcc.c:3206: undefined reference to `ldexp' collect2: ld returned 1 exit status make: *** [arm-tcc] Error 1 /var/tmp/portage/tcc-0.9.22/temp/ccXK5iIi.o: In function `parse_number': /var/tmp/portage/tcc-0.9.22/work/tcc-0.9.22/tcc.c:3206: undefined reference to `ldexp' collect2: ld returned 1 exit status make: *** [c67-tcc] Error 1 !!! ERROR: dev-lang/tcc-0.9.22 failed. !!! Function src_compile, Line 18, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.54-r2 (uclibc/x86/hardened, gcc-3.4.5, uclibc-0.9.28-r0, 2.6.16-gentoo-r7 i686) ================================================================= System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) D CPU 3.00GHz Gentoo Base System version 1.6.14 distcc 2.18.3 i386-gentoo-linux-uclibc (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.4.2 dev-python/pycrypto: [Not Present] dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i386-gentoo-linux-uclibc" CFLAGS="-march=i386 -Os -pipe -fomit-frame-pointer" CHOST="i386-gentoo-linux-uclibc" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -pipe" DISTDIR="/var/cache/distfiles" FEATURES="autoconfig buildpkg distlocks nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/var/cache/packages/default" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/alpine-portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X509 bitmap-fonts bri bzip2 cdr cli cracklib curl dri encode expat gd gmp hardened iproute2 ipv6 jpeg mad mhash minimal ncurses netboot ogg oss pci pcmcia pic png pppd readline reflection rrdtool sensord session snmp speex spl ssl tdb truetype truetype-fonts type1-fonts uclibc udev usb vorbis winbind xorg zlib userland_GNU kernel_linux elibc_uclibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Re-assign wrt Bug 147726.
tcc simply needs to link in -lm ... but this is a bug in tcc, not uclibc
Created attachment 115438 [details, diff] tcc-0.9.23-lm.patch just adds -lm
Created attachment 115439 [details, diff] tcc-0.9.23-uclibc.patch adds a test for __UCLIBC__ to disable malloc hooks
Mail sent to mailing list tinycc-devel@nongnu.org to notify upstream developers.
is this still needed for 0.9.26-r2?