Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114989 - gcc build fails with profile in use flags
Summary: gcc build fails with profile in use flags
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-09 08:09 UTC by erik quanstrom
Modified: 2005-12-09 21:51 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 erik quanstrom 2005-12-09 08:09:27 UTC
gcc 3.4.4-r1 fails to build with profile in use flags.

Reproducible: Always
Steps to Reproduce:
1.add USE=profile to /etc/make.conf
2.emerge gcc-3.4.4-r1
3.watch

Actual Results:  
/gcc-3.4.4/gcc/f -I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include  
\
      -c /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/f/fini.c -o f/fini.o
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/    -O2 -march=pentium3 -pipe 
-fprofile-generate -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -
Wmissing-prototypes     -DHAVE_CONFIG_H -DGENERATOR_FILE  -o f/fini \
        f/fini.o ../libiberty/libiberty.a
./f/fini /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/f/str-1t.fin f/str-1t.
j f/str-1t.h
./f/fini /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/f/str-2t.fin f/str-2t.
j f/str-2t.h
./f/fini /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/f/str-fo.fin f/str-fo.
j f/str-fo.h
/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/f/str-fo.fin: extraneous "P"
make[2]: *** [f/str-fo.h] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1312, Exitcode 2
!!! emake failed with profiledbootstrap


Expected Results:  
clean compile

# emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.
14-gentoo-r2ewq i686)
=================================================================
System uname: 2.6.14-gentoo-r2ewq i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
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.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/rcscripts/addons /usr/kde/2/share/config /usr/kde/3.3/
env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.
4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/lib/mozilla/defaults/pref /usr/lib/portage /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/
bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi adns alsa apm arts audiofile avi berkdb bitmap-fonts blas 
browserplugin bzip2 bzlib cairo cdparanoia cdr crypt cups curl divx4linux dts 
dvd dvdr dvdread eds emboss encode esd exif expat fam foomaticdb fortran gd gdbm 
gif glut gnome gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 java jpeg kde 
lapack lcms libcaca libg++ libwww mad mhash mikmod mmap mmx mng motif mozilla 
mozsvg mp3 mpeg ncurses nls nptl nvidia offensive ogg oggvorbis opengl oss pam 
pam_console pcre pdflib perl png profile python qt quicktime readline real 
recode rtc sdl spell sqlite sse ssl svg svga tcltk tetex theora tiff truetype 
truetype-fonts type1-fonts udev unicode usb vorbis xanim xml xml2 xmms xpm xv 
xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, 
PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-12-09 08:12:41 UTC
that doesnt make any sense ... gcc doesnt utilize USE=profile
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-12-09 20:02:05 UTC
Does this error always happen in the same place?
Comment 3 erik quanstrom 2005-12-09 21:38:03 UTC
well i added the line 

sys-devel/gcc	-profile

to /etc/package.use and it worked just fine.
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2005-12-09 21:51:39 UTC
/etc/package.use doesn't do anything.  /etc/portage/package.use would.  I'm
unsure if that is a typo, or if your system is flakey and this just proved it. 
Either way, gcc does not listen to the "profile" use flag.