Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54760 - coreutils 5.2.1 fails to compile during stage 2
Summary: coreutils 5.2.1 fails to compile during stage 2
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-22 09:45 UTC by Christian Wache
Modified: 2004-06-27 15:15 UTC (History)
2 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 Christian Wache 2004-06-22 09:45:25 UTC
During a stage 2 emerge system coreutils fails to build with:

make[3]: Leaving directory `/var/tmp/portage/coreutils-5.2.1/work/coreutils-5.2.1/src'
make[2]: Leaving directory `/var/tmp/portage/coreutils-5.2.1/work/coreutils-5.2.1/src'
Making all in doc
make[2]: Entering directory `/var/tmp/portage/coreutils-5.2.1/work/coreutils-5.2.1/doc'
LC_ALL=C \
sed -n -e 's/^#define \(DEFAULT_MAX[_A-Z]*\) \(.*\)/@set \1 \2/p' \
  ../src/tail.c > t-constants.texi
mv t-constants.texi constants.texi
Updating ./version.texi
restore=: && \
backupdir=".am$$" && \
am__cwd=`pwd` && cd . && \
rm -rf $backupdir && mkdir $backupdir && \
for f in coreutils.info coreutils.info-[0-9] coreutils.info-[0-9][0-9] coreutils.i[0-9] coreutils.i[0-9][0-9]; do \
  if test -f $f; then \
    mv $f $backupdir; \
    restore=mv; \
  fi; \
done; \
cd "$am__cwd"; \
if makeinfo --no-split   -I . \
 -o coreutils.info coreutils.texi; \
then \
  rc=0; \
  cd .; \
else \
  rc=$?; \
  cd . && \
  $restore $backupdir/* `echo "./coreutils.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; \
exit $rc
make[2]: Leaving directory `/var/tmp/portage/coreutils-5.2.1/work/coreutils-5.2.1/doc'
Making all in man
make[2]: Entering directory `/var/tmp/portage/coreutils-5.2.1/work/coreutils-5.2.1/man'
rm -fr basename.td; \
@echo "Updating man page basename.1";           \
mkdir basename.td;                              \
(cd basename.td && ln -s ../../src/`echo basename|sed 's/install/ginstall/; s/test/[/'` `echo basename|sed 's/install/ginstall/; s/test/[/'`); \
perl -- ./help2man              \
    --info-page='coreutils basename'            \
    --include=./basename.x              \
    --output=basename.1 basename.td/`echo basename|sed 's/install/ginstall/; s/test/[/'`
/bin/sh: line 1: @echo: command not found
rm -fr cat.td; \
@echo "Updating man page cat.1";                \
mkdir cat.td;                           \
(cd cat.td && ln -s ../../src/`echo cat|sed 's/install/ginstall/; s/test/[/'` `echo cat|sed 's/install/ginstall/; s/test/[/'`); \
perl -- ./help2man              \
    --info-page='coreutils cat'         \
    --include=./cat.x           \
    --output=cat.1 cat.td/`echo cat|sed 's/install/ginstall/; s/test/[/'`
/bin/sh: line 1: @echo: command not found
make[2]: *** [basename.1] Error 139
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [cat.1] Error 139
make[2]: Leaving directory `/var/tmp/portage/coreutils-5.2.1/work/coreutils-5.2.1/man'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/coreutils-5.2.1/work/coreutils-5.2.1'
make: *** [all] Error 2

!!! ERROR: sys-apps/coreutils-5.2.1 failed.
!!! Function src_compile, Line 106, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. bootstrap with profile default-amd64-2004.0
2. emerge system
3.

Actual Results:  
 

Expected Results:  
 

Portage 2.0.50-r8 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.4.20040605-r0, 
2.6.5-gentoo-up) 
================================================================= 
System uname: 2.6.5-gentoo-up x86_64 4 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -frename-registers 
-ftracer" 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer 
-frename-registers -ftracer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ 
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ 
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo 
ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X acl acpi alsa amd64 apm arts avi berkdb caps cdr crypt cups dvd dvdr encode 
ethereal faac faad fbcon foomaticdb gdbm ggi gif gphoto2 gpm gtk gtk2 hardened imlib 
java jpeg kde krb4 libg++ libwww linguas_de linguas_en linguas_us matrox mikmod motif 
mpeg multilib ncurses nls nogcj oggvorbis opengl oss pache2 pam pcre pdflib perl png 
python qt quicktime readline samba sasl sdl slang spell ssl tcpd theora tiff truetype usb 
xinerama xml2 xmms xv xvid zlib" 
 
 
Tried with CFLAGS="" and also tried coreutils-5.2.0-r2 with same results 
 
Chris
Comment 1 Chris White (RETIRED) gentoo-dev 2004-06-22 09:53:05 UTC
Re-Assignment to base-system herd.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-06-22 12:24:50 UTC
which stage2 tarball?
Comment 3 Christian Wache 2004-06-22 12:37:05 UTC
No stage2 tarball. DURING stage2 (emerge system) after bootstrap. Sorry for confusion.

Stage1 tarball is stage1-amd64-2004.1
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2004-06-22 12:49:37 UTC
ok, punting this over to the amd64 team -- I missed that (as did ChrisWhite)
Comment 5 Christian Wache 2004-06-24 14:13:52 UTC
Hint. 

I could wait longer for a fix and startet from scrap again. This time I revamped my USE and removed hardened.

This seems to have fixed this issue. 

Additional Info: 

My very first try was a testing stage2 with GCC3.4 profile from LV with exact the same make.conf. This one went smooth. So the issue seems to be with GCC3.3.3 and USE="hardened".

Chris
Comment 6 Danny van Dyk (RETIRED) gentoo-dev 2004-06-27 15:15:49 UTC
hardened is use.masked in default-amd64-2004.* since a while (1 week maybe). If you want to go hardened, you have to switch profile to hardened-amd64-2004.* !