ports/89091: lang/gcc34 does not build with default compiler

Andrew Novikov freebsd at iconsultant.biz
Tue Nov 15 22:20:26 UTC 2005


>Number:         89091
>Category:       ports
>Synopsis:       lang/gcc34 does not build with default compiler
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 15 22:20:12 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Novikov
>Release:        4.11-STABLE
>Organization:
iConsultant.biz
>Environment:
FreeBSD sandfang.iconsultant.biz 4.11-STABLE FreeBSD 4.11-STABLE #0: Tue Oct  4 13:55:56 EEST 2005     root at sandfang.iconsultant.biz:/usr/obj/usr/src/sys/SANDFANG  i386
>Description:
              lang/gcc34 won't build with default compiler, error message:

[root at sandfang:/usr/ports/lang/gcc34]>make
===>  Building for gcc-3.4.5_20051108
gmake[1]: Entering directory `/usr/ports/lang/gcc34/work/build/libiberty'
gmake[2]: Entering directory `/usr/ports/lang/gcc34/work/build/libiberty/testsuite'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/ports/lang/gcc34/work/build/libiberty/testsuite'
gmake[1]: Leaving directory `/usr/ports/lang/gcc34/work/build/libiberty'
gmake[1]: Entering directory `/usr/ports/lang/gcc34/work/build/intl'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/ports/lang/gcc34/work/build/intl'
Bootstrapping the compiler
gmake[1]: Entering directory `/usr/ports/lang/gcc34/work/build/gcc'
gmake CC="cc" libdir=/usr/local/lib/gcc/i386-portbld-freebsd4.11/3.4.5 LANGUAGES="c " \
        CFLAGS="-g " MAKEINFO="makeinfo --no-split" \
        MAKEINFOFLAGS="--no-split" COVERAGE_FLAGS= \
        OBJS-onestep="alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o cfgloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o cfgrtl.o combine.o conflict.o convert.o coverage.o cse.o cselib.o dbxout.o debug.o df.o diagnostic.o dojump.o doloop.o dominance.o dwarf2asm.o dwarf2out.o emit-rtl.o except.o explow.o expmed.o expr.o final.o flow.o fold-const.o function.o gcse.o genrtl.o ggc-common.o global.o graph.o gtype-desc.o haifa-sched.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-modes.o insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o integrate.o intl.o jump.o  langhooks.o lcm.o lists.o local-alloc.o loop.o optabs.o options.o opts.o params.o postreload.o predict.o print-rtl.o print-tree.o value-prof.o profile.o ra.o ra-build.o ra-colorize.o ra-debug.o ra-rewrite.o real.o recog.o reg-stack.o regclass.o regmove.o regrename.o reload.o reload1.o reorg.o resource.o rtl.
 o rtlanal.o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o sibcall.o simplify-rtx.o sreal.o stmt.o stor-layout.o stringpool.o targhooks.o timevar.o toplev.o tracer.o tree.o tree-dump.o unroll.o varasm.o varray.o version.o vmsdbgout.o xcoffout.o alloc-pool.o et-forest.o cfghooks.o bt-load.o pretty-print.o ggc-page.o web.o i386.o  host-default.o hashtable.o tree-inline.o tree-optimize.o cgraph.o cgraphunit.o"
gmake[2]: Entering directory `/usr/ports/lang/gcc34/work/build/gcc'
cc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H -I/usr/local/include   -I. -I. -I.././..//gcc-3.4-20051108/gcc -I.././..//gcc-3.4-20051108/gcc/. -I.././..//gcc-3.4-20051108/gcc/../include  .././..//gcc-3.4-20051108/gcc/dwarf2out.c -o dwarf2out.o
././..//gcc-3.4-20051108/gcc/dwarf2out.c:3668: warning: `struct md5_ctx' declared inside parameter list
././..//gcc-3.4-20051108/gcc/dwarf2out.c:3668: warning: its scope is only this definition or declaration, which is probably not what you want.
././..//gcc-3.4-20051108/gcc/dwarf2out.c:3669: warning: `struct md5_ctx' declared inside parameter list
././..//gcc-3.4-20051108/gcc/dwarf2out.c:3670: warning: `struct md5_ctx' declared inside parameter list
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5483: warning: `struct md5_ctx' declared inside parameter list
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5484: conflicting types for `loc_checksum'
././..//gcc-3.4-20051108/gcc/dwarf2out.c:3668: previous declaration of `loc_checksum'
././..//gcc-3.4-20051108/gcc/dwarf2out.c: In function `loc_checksum':
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5485: warning: implicit declaration of function `md5_process_bytes'
././..//gcc-3.4-20051108/gcc/dwarf2out.c: At top level:
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5493: warning: `struct md5_ctx' declared inside parameter list
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5494: conflicting types for `attr_checksum'
././..//gcc-3.4-20051108/gcc/dwarf2out.c:3669: previous declaration of `attr_checksum'
././..//gcc-3.4-20051108/gcc/dwarf2out.c: In function `attr_checksum':
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5547: warning: passing arg 2 of `loc_checksum' from incompatible pointer type
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5551: warning: passing arg 2 of `die_checksum' from incompatible pointer type
././..//gcc-3.4-20051108/gcc/dwarf2out.c: At top level:
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5567: warning: `struct md5_ctx' declared inside parameter list
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5568: conflicting types for `die_checksum'
././..//gcc-3.4-20051108/gcc/dwarf2out.c:3670: previous declaration of `die_checksum'
././..//gcc-3.4-20051108/gcc/dwarf2out.c: In function `die_checksum':
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5583: warning: passing arg 2 of `attr_checksum' from incompatible pointer type
././..//gcc-3.4-20051108/gcc/dwarf2out.c: In function `compute_section_prefix':
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5757: storage size of `ctx' isn't known
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5762: warning: implicit declaration of function `md5_init_ctx'
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5766: warning: implicit declaration of function `md5_finish_ctx'
././..//gcc-3.4-20051108/gcc/dwarf2out.c:5757: warning: unused variable `ctx'
gmake[2]: *** [dwarf2out.o] Error 1
gmake[2]: Leaving directory `/usr/ports/lang/gcc34/work/build/gcc'
gmake[1]: *** [stage1_build] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc34/work/build/gcc'
gmake: *** [bootstrap-lean] Error 2
*** Error code 2

Stop in /usr/ports/lang/gcc34.


My src-all were cvsup'ed and my world was rebuilt on Oct 4, 2005

/etc/make.conf:
CPUTYPE=i686
CFLAGS= -O -pipe
MAKE_IDEA=      YES
COMPAT4X=       yes
PERL_VER=5.8.7
PERL_VERSION=5.8.7

I tried to change CFLAGS to -O2 and to comment it out completely, however the problem persisted in both cases.

No similar issue was found in UPDATING at least in 2005.
I could not find this problem in Google (at least at the time of writing this PR) nor in GNATS. However, this bug might be somehow related to: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/88246

My build environment:
%where cc
/usr/bin/cc
%cc -v
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]
%where gcc
/usr/bin/gcc
%gcc -v
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]
%echo $AWK

%awk --version
GNU Awk 3.0.6
[license text skipped]

Note: I have gcc-3.4.5_20050920, gawk and GNU build toolchain installed from ports into /usr/local/ (but it was not used above).

%where gcc34
/usr/local/bin/gcc34
%gcc34 -v
Reading specs from /usr/local/lib/gcc/i386-portbld-freebsd4.11/3.4.5/gcc/i386-portbld-freebsd4.11/3.4.5/specs
Configured with: ./..//gcc-3.4-20050920/configure --disable-nls --with-system-zlib --with-libiconv-prefix=/usr/local --program-suffix=34 --libdir=/usr/local/lib/gcc/i386-portbld-freebsd4.11/3.4.5 --with-gxx-include-dir=/usr/local/lib/gcc/i386-portbld-freebsd4.11/3.4.5/include/c++/ --disable-shared --prefix=/usr/local i386-portbld-freebsd4.11
Thread model: posix
gcc version 3.4.5 20050920 (prerelease) [FreeBSD]
%where gawk
/usr/local/bin/gawk
%/usr/local/bin/gawk --version
GNU Awk 3.1.1
[license skipped]

This port does build successefully when I use gcc-3.4.5_20050920 installed from ports as a compiler by adding to /etc/make.conf:
CFLAGS= -O -pipe
COPTFLAGS= -O -pipe
CC=/usr/local/bin/gcc34
CXX=/usr/local/bin/c++34
CPP=/usr/local/bin/cpp34

Please, feel free to ask any further questions.

>How-To-Repeat:
              1) cvsup ports tree
2) check that you have use default gcc-2.95
3) portupgrade -R -r -N lang/gcc34

>Fix:
              
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list