Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52110 - Can't build binutils with hardened gcc
Summary: Can't build binutils with hardened gcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Hardened Gentoo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-26 10:14 UTC by Benjamin Smee (strerror) (RETIRED)
Modified: 2004-06-01 23:34 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 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2004-05-26 10:14:30 UTC
When I try to emerge binutils-2.14.90.0.8-r1 i get errors complaining about mktemp and then it crashes out. 


Reproducible: Always
Steps to Reproduce:
1. USE=hardened emerge gcc 
2. emerge glibc
3. emerge binutils

Actual Results:  
The error I got was :
bucomm.o(.text+0x611): In function `make_tempname':
: warning: the use of `mktemp' is dangerous, better use `mkstemp'
creating objdump
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -mcpu=pentium4
-funroll-loops -pipe -O3 -o .libs/ranlib ar.o is-ranlib.o arparse.o arlex.o
arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o 
../bfd/.libs/libbfd.so
-L/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/libiberty/pic
-liberty ../libiberty/libiberty.a -lfl -ldl
bucomm.o(.text+0x611): In function `make_tempname':
: warning: the use of `mktemp' is dangerous, better use `mkstemp'
creating ranlib
make[3]: Leaving directory
`/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/binutils'
make[2]: Leaving directory
`/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/binutils'
make[1]: Leaving directory
`/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/binutils'

!!! ERROR: sys-devel/binutils-2.14.90.0.8-r1 failed.
!!! Function src_compile, Line 83, Exitcode 2
!!! (no error message)


Expected Results:  
emerged binutils

[~]# emerge -pv gcc binutils glibc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-devel/gcc-3.3.2-r5  -X -bootstrap -build -gcj -java
-multilib +nls -static  0 kB
[ebuild   R   ] sys-devel/binutils-2.14.90.0.8-r1  -bootstrap -build
-multitarget +nls  0 kB
[ebuild   R   ] sys-libs/glibc-2.3.2-r9  -build +nls +nptl -pic  18 kB

[~]# emerge info
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.6-mm5)
=================================================================
System uname: 2.6.6-mm5 i686 Intel(R) Pentium(R) 4 CPU 1.90GHz
Gentoo Base System version 1.4.10
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=pentium4 -funroll-loops -pipe -O3"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=pentium4 -funroll-loops -pipe -O3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox userpriv"
GENTOO_MIRRORS="ftp://planetmirror.com/pub/gentoo/ ftp://ftp.vic.keypoint.com.au"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bidi cap chroot crypt dnsdb doc evms2 gdbm gmp hardened
idea imap ipv6 ldap libg++ libwww lmtp maildir mmx nagios-dns nagios-ntp
nagios-ping nagios-ssh ncurses nls nptl odbc pam pcap pcre perl pthreads pwdb
python readline regexp sasl skey slang snmp spell ssl tcpd tetex threads unicode
usb x86 xml2 zlib"
Comment 1 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2004-06-01 23:34:12 UTC
this problem was due to a bad ulimit setting