Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133781 - dev-lang/tcc-0.9.22 fails to compile on uclibc/hardened
Summary: dev-lang/tcc-0.9.22 fails to compile on uclibc/hardened
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-19 07:35 UTC by Natanael Copa
Modified: 2016-02-08 11:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tcc-0.9.23-lm.patch (tcc-0.9.23-lm.patch,269 bytes, patch)
2007-04-04 13:06 UTC, Natanael Copa
Details | Diff
tcc-0.9.23-uclibc.patch (tcc-0.9.23-uclibc.patch,385 bytes, patch)
2007-04-04 13:08 UTC, Natanael Copa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2006-05-19 07:35:20 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-28 05:46:16 UTC
Re-assign wrt Bug 147726.
Comment 2 SpanKY gentoo-dev 2006-09-28 06:11:45 UTC
tcc simply needs to link in -lm ... but this is a bug in tcc, not uclibc
Comment 3 Natanael Copa 2007-04-04 13:06:29 UTC
Created attachment 115438 [details, diff]
tcc-0.9.23-lm.patch

just adds -lm
Comment 4 Natanael Copa 2007-04-04 13:08:03 UTC
Created attachment 115439 [details, diff]
tcc-0.9.23-uclibc.patch

adds a test for __UCLIBC__ to disable malloc hooks
Comment 5 Natanael Copa 2007-04-04 13:23:14 UTC
Mail sent to mailing list tinycc-devel@nongnu.org to notify upstream developers.
Comment 6 Pacho Ramos gentoo-dev 2016-02-08 11:46:04 UTC
is this still needed for 0.9.26-r2?