Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170268 - sys-devel/gcc-4.1.2 fails to build USE="d"
Summary: sys-devel/gcc-4.1.2 fails to build USE="d"
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-10 15:18 UTC by Peter Gerassimoff
Modified: 2009-12-18 08:20 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 Peter Gerassimoff 2007-03-10 15:18:55 UTC
End of build sys-devel/gcc-4.1.2 returned:

...
libbackend.a(modulo-sched.o):modulo-sched.c:(.text+0xf3e): more undefined references to `__gcov_one_value_profiler' follow
collect2: ld returned 1 exit status
make[2]: *** [cc1d] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.2/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.2/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.2 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  ebuild.sh, line 1252:   Called toolchain_src_compile
  toolchain.eclass, line 26:   Called gcc_src_compile
  toolchain.eclass, line 1550:   Called gcc_do_make
  toolchain.eclass, line 1424:   Called die

!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.

Before all the errors and warning messages this was the last command executed:

c++   -march=athlon64 -O2 -pipe -fprofile-generate -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute     -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-4.1.2/work/gcc-4.1.2/gcc -I/var/tmp/portage/gcc-4.1.2/work/gcc-4.1.2/gcc/. -I/var/tmp/portage/gcc-4.1.2/work/gcc-4.1.2/gcc/../include -I/var/tmp/portage/gcc-4.1.2/work/gcc-4.1.2/gcc/../libcpp/include     -I. -I. -I/var/tmp/portage/gcc-4.1.2/work/gcc-4.1.2/gcc -I/var/tmp/portage/gcc-4.1.2/work/gcc-4.1.2/gcc/. -I/var/tmp/portage/gcc-4.1.2/work/gcc-4.1.2/gcc/../include -I/var/tmp/portage/gcc-4.1.2/work/gcc-4.1.2/gcc/../libcpp/include  -I/var/tmp/portage/gcc-4.1.2/work/gcc-4.1.2/gcc/d -I/var/tmp/portage/gcc-4.1.2/work/gcc-4.1.2/gcc/d/dmd -Id -D_GNU_SOURCE=1 -D_DH=1 -DD_NO_TRAMPOLINES=1 -DELFOBJ=1 -DD_GCC_VER=41 -Wno-missing-braces -fmessage-length=0  -o cc1d \
                d/id.gen.o d/impcnvtab.gen.o attribs.o cppdefault.o d/access.dmd.o d/array.dmd.o d/attrib.dmd.o d/cast.dmd.o d/class.dmd.o d/cond.dmd.o d/constfold.dmd.o d/dchar.dmd.o d/declaration.dmd.o d/delegatize.dmd.o d/doc.dmd.o d/dsymbol.dmd.o d/dump.dmd.o d/entity.dmd.o d/enum.dmd.o d/expression.dmd.o d/func.dmd.o d/gnuc.dmd.o d/hdrgen.dmd.o d/html.dmd.o d/identifier.dmd.o d/import.dmd.o d/init.dmd.o d/inline.dmd.o d/interpret.dmd.o d/lexer.dmd.o d/lstring.dmd.o d/macro.dmd.o d/mangle.dmd.o d/mem.dmd.o d/mtype.dmd.o d/module.dmd.o d/opover.dmd.o d/optimize.dmd.o d/parse.dmd.o d/root.dmd.o d/scope.dmd.o d/statement.dmd.o d/staticassert.dmd.o d/stringtable.dmd.o d/struct.dmd.o d/template.dmd.o d/todt.dmd.o d/toobj.dmd.o d/typinf.dmd.o d/unialpha.dmd.o d/utf.dmd.o d/version.dmd.o d/d-lang.glue.o d/d-decls.glue.o d/d-codegen.glue.o d/d-objfile.glue.o d/d-irstate.glue.o d/d-glue.glue.o d/d-convert.glue.o d/gcc-mars.glue.o d/d-todt.glue.o d/d-gcc-real.glue.o d/d-gt.cglue.o d/d-builtins.cglue.o d/d-misc.cglue.o d/d-builtins2.glue.o d/symbol.glue.o d/asmstmt.glue.o d/dt.glue.o  main.o  libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a   ../libiberty/libiberty.a
d/d-builtins.cglue.o: In function `handle_vector_size_attribute':
d-builtins.c:(.text+0x207cf): undefined reference to `__gcov_one_value_profiler'
d-builtins.c:(.text+0x207e3): undefined reference to `__gcov_pow2_profiler'
d-builtins.c:(.text+0x20815): undefined reference to `__gcov_interval_profiler'
...

This whole area is fraught with errors even some of the previous commands had lots of warnings.

Here is the USE flags I have in /etc/make.conf:

USE="X 3dnow a52 alsa avi cdr cups d dts dvd dvdr encode faad ffmpeg fftw flac foomaticdb ftp gnome gcc:d gtk gtk2 kde mmx mpeg mysql ncurses nocd nptl nptlonly nvidia opengl oss pdflib perl ppds sdl sox speex sse sse2 ssl usb win32codecs xine xmms xv xvid"


Reproducible: Always

Steps to Reproduce:
1.Add 'd' to USE flags in make.conf
2.emerge sys-devel/gcc  (builds gcc-4.1.2 and gdc-0.23)
3.

Actual Results:  
libbackend.a(modulo-sched.o):modulo-sched.c:(.text+0xf3e): more undefined references to `__gcov_one_value_profiler' follow
collect2: ld returned 1 exit status
make[2]: *** [cc1d] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.2/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.2/work/build/gcc'
make: *** [profiledbootstrap] Error 2
...
!!! ERROR: sys-devel/gcc-4.1.2 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  ebuild.sh, line 1252:   Called toolchain_src_compile
  toolchain.eclass, line 26:   Called gcc_src_compile
  toolchain.eclass, line 1550:   Called gcc_do_make
  toolchain.eclass, line 1424:   Called die

!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 SpanKY gentoo-dev 2007-03-10 22:17:59 UTC
please post `emerge --info` and re-open
Comment 2 Léo Terziman 2009-12-18 08:20:24 UTC
(In reply to comment #0)
> Reproducible: Always
> 
> Steps to Reproduce:
> 1.Add 'd' to USE flags in make.conf
> 2.emerge sys-devel/gcc  (builds gcc-4.1.2 and gdc-0.23)
> 3.

I had the same problem trying to build gcc-4.1.2 with the "d" USE flag on a x86_64 with gcc-4.4.2.

The problem can be solved by emergeing gcc-4.1.2 WITHOUT the "d" flag, switching the default compiler (gcc-config x86_64-pc-linux-gnu-4.1.2 && source /etc/profile) and then reinstall gcc-4.1.2 with the correct "d" flag. In my case, I also had to change my CFLAGS and CXXFLAGS because -march=core2 is not recognized by gcc-4.1.2...