gcc-4 ?

Dieter freebsd at sopwith.solgatos.com
Sun Jan 15 19:53:48 UTC 2006


> >> > Are there any plans to update gcc to gcc-4?
> >>
> >> Perhaps in 8.0?  There are already gcc4[0-2] ports in
> >> /usr/ports/lang if you want to have gcc 4 right now.
> >>
> >>   - Parv
> >
> > Thanks, my copy of 6.0 doesn't seem to have gcc42 so I'm
> > trying to beat gcc41 into submission.
> >
> > I'm running FreeBSD 6.0 on AMD64.
> >
> > I'm getting
> >
> > 	compiler warnings (included below)
> >
> > 	dmesg says that as seg-faulted a couple times,
> > 	although I don't find the promised core dump.
> >
> > 	'make check' fails big time

> Doesn't 7.0 use gcc 4 ? This is probably a AMD64 bug as compiling gcc 4
> from ports give me zero errors but i am on a pent 4 system. Also looking
> at the msg you sent i dont see an error they are just warnings which is
> normal please supply us with a actual error.

Just because the compiler says "warning" rather than "error" doesn't
mean it isn't a problem.


dmesg has a boatload of stuff about various programs exiting on various signals,
mostly 11 (SIGSEGV), but some 4 (SIGILL) and 6 (SIGABRT)

make
	as              exited on signal 11 (core dumped)

make check
	anew1.exe	exited on signal 6 (core dumped)
	catchall-1.x5	exited on signal 4 (core dumped)
	pass40-frag.exe	exited on signal 11 (core dumped)

dmesg | grep "exited on signal" | wc -l
     284


Some output from 'make check':

[ ... ]
There were fixinclude test FAILURES
gmake[1]: *** [check] Error 1
gmake: *** [check-fixincludes] Error 2
[ ... ]
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2.exp ...
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/dg.exp ...
FAIL: gcc.dg/20021014-1.c consider using `-pg' instead of `-p' with gprof(1) (test for errors, line )
FAIL: gcc.dg/builtins-20.c (test for excess errors)
FAIL: gcc.dg/wint_t-1.c (test for excess errors)
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/format/format.exp ...
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/noncompile/noncompile.exp ...
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/pch/pch.exp ...
FAIL: largefile.c -O0 -g (test for excess errors)
FAIL: largefile.c  -O0  (test for excess errors)
FAIL: largefile.c  -O1  (test for excess errors)
FAIL: largefile.c  -O2  (test for excess errors)
FAIL: largefile.c  -O3 -fomit-frame-pointer  (test for excess errors)
FAIL: largefile.c  -O3 -g  (test for excess errors)
FAIL: largefile.c  -Os  (test for excess errors)
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/special/mips-abi.exp ...
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/special/special.exp ...
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/tls/tls.exp ...
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/torture/dg-torture.exp ...
FAIL: gcc.dg/torture/builtin-convert-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-1.c  -O3 -fomit-frame-pointer  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-1.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-1.c  -Os  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-2.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-2.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-2.c  -O3 -fomit-frame-pointer  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-2.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-2.c  -Os  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-3.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-3.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-3.c  -O3 -fomit-frame-pointer  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-3.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/builtin-convert-3.c  -Os  (test for excess errors)
FAIL: gcc.dg/torture/builtin-power-1.c  -O0  (test for excess errors)
FAIL: gcc.dg/torture/builtin-power-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/builtin-power-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/builtin-power-1.c  -O3 -fomit-frame-pointer  (test for excess errors)
FAIL: gcc.dg/torture/builtin-power-1.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/builtin-power-1.c  -Os  (test for excess errors)
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/tree-prof/tree-prof.exp ...
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/tree-ssa/tree-ssa.exp ...
FAIL: gcc.dg/tree-ssa/loop-3.c scan-tree-dump-times step: 1
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/vect/vect.exp ...
XPASS: gcc.dg/vect/vect-22.c scan-tree-dump-times vectorized 3 loops 1
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.dg/vmx/vmx.exp ...
[ ... ]
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/gcc.test-framework/test-framework.exp ...
skipping test framework tests, CHECK_TEST_FRAMEWORK is not defined

                === gcc Summary ===

# of expected passes            36806
# of unexpected failures        32
# of unexpected successes       1
# of expected failures          100
# of untested testcases         35
# of unsupported tests          470
/usr/ports/lang/gcc41/work/build/gcc/xgcc  version 4.1.0 20050819 (experimental)

WARNING: Couldn't find the global config file.
[ ... ]
                === g++ Summary ===

# of expected passes            11207
# of expected failures          68
# of unsupported tests          104
/usr/ports/lang/gcc41/work/build/gcc/testsuite/../g++  version 4.1.0 20050819 (experimental)

WARNING: Couldn't find the global config file.
[ ... ]
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/objc/execute/exceptions/exceptions.exp ...
FAIL: objc/execute/exceptions/catchall-1.m execution,  -Os  -fgnu-runtime
FAIL: objc/execute/exceptions/local-variables-1.m compilation,  -O1  -fgnu-runtime
FAIL: objc/execute/exceptions/local-variables-1.m compilation,  -O2  -fgnu-runtime
FAIL: objc/execute/exceptions/local-variables-1.m compilation,  -O3 -fomit-frame-pointer  -fgnu-runtime
FAIL: objc/execute/exceptions/local-variables-1.m compilation,  -O3 -g  -fgnu-runtime
FAIL: objc/execute/exceptions/local-variables-1.m compilation,  -Os  -fgnu-runtime
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/objc/execute/execute.exp ...
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/objc.dg/dg.exp ...
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/gcc/testsuite/objc.dg/special/special.exp ...

                === objc Summary ===

# of expected passes            1657
# of unexpected failures        6
# of unresolved testcases       5
# of unsupported tests          22
/usr/ports/lang/gcc41/work/build/gcc/xgcc  version 4.1.0 20050819 (experimental)
[ ... ]
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/libstdc++-v3/testsuite/libstdc++-dg/normal.exp ...
FAIL: 22_locale/time_put/put/char/10.cc (test for excess errors)
WARNING: 22_locale/time_put/put/char/10.cc compilation failed to produce executable
FAIL: 23_containers/list/cons/4.cc (test for excess errors)
WARNING: 23_containers/list/cons/4.cc compilation failed to produce executable
FAIL: 23_containers/list/cons/6.cc (test for excess errors)
WARNING: 23_containers/list/cons/6.cc compilation failed to produce executable
FAIL: 23_containers/list/invalidation/3.cc (test for excess errors)
WARNING: 23_containers/list/invalidation/3.cc compilation failed to produce executable
FAIL: 25_algorithms/replace_copy/1.cc (test for excess errors)
WARNING: 25_algorithms/replace_copy/1.cc compilation failed to produce executable
FAIL: 27_io/basic_filebuf/close/char/9964.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/close/char/9964.cc compilation failed to produce executable
FAIL: 27_io/basic_filebuf/seekoff/char/12232.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/seekoff/char/12232.cc compilation failed to produce executable
FAIL: 27_io/basic_filebuf/sgetc/char/2-out.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/sgetc/char/2-out.cc compilation failed to produce executable
FAIL: 27_io/basic_filebuf/sgetn/char/1-in.cc execution test
FAIL: 27_io/basic_filebuf/sgetn/char/1-io.cc execution test
FAIL: 27_io/basic_filebuf/sgetn/char/2-in.cc execution test
FAIL: 27_io/basic_filebuf/sgetn/char/2-io.cc execution test
FAIL: 27_io/basic_filebuf/sputc/char/2-io.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/sputc/char/2-io.cc compilation failed to produce executable
FAIL: 27_io/basic_filebuf/sputc/char/2-out.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/sputc/char/2-out.cc compilation failed to produce executable
FAIL: 27_io/basic_filebuf/sync/char/9182-1.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/sync/char/9182-1.cc compilation failed to produce executable
FAIL: 27_io/basic_ios/locales/char/1.cc (test for excess errors)
WARNING: 27_io/basic_ios/locales/char/1.cc compilation failed to produce executable
FAIL: 27_io/basic_ostream/inserters_character/wchar_t/5.cc (test for excess errors)
WARNING: 27_io/basic_ostream/inserters_character/wchar_t/5.cc compilation failed to produce executable
FAIL: 27_io/basic_ostream/inserters_character/wchar_t/6.cc (test for excess errors)
WARNING: 27_io/basic_ostream/inserters_character/wchar_t/6.cc compilation failed to produce executable
FAIL: 27_io/basic_stringbuf/pbackfail/char/1.cc (test for excess errors)
WARNING: 27_io/basic_stringbuf/pbackfail/char/1.cc compilation failed to produce executable
FAIL: 27_io/basic_stringbuf/pbackfail/wchar_t/1.cc (test for excess errors)
WARNING: 27_io/basic_stringbuf/pbackfail/wchar_t/1.cc compilation failed to produce executable
XPASS: 27_io/fpos/14320-1.cc execution test
FAIL: 27_io/manipulators/adjustfield/wchar_t/2.cc (test for excess errors)
WARNING: 27_io/manipulators/adjustfield/wchar_t/2.cc compilation failed to produce executable
FAIL: 27_io/objects/char/7.cc (test for excess errors)
WARNING: 27_io/objects/char/7.cc compilation failed to produce executable
FAIL: demangle/regression/cw-02.cc (test for excess errors)
WARNING: demangle/regression/cw-02.cc compilation failed to produce executable
FAIL: tr1/6_containers/unordered/insert/multimap_single.cc (test for excess errors)
[ ... ]
FAIL: tr1/6_containers/unordered/insert/multimap_single.cc (test for excess errors)
WARNING: tr1/6_containers/unordered/insert/multimap_single.cc compilation failed to produce executable

                === libstdc++ Summary ===

# of expected passes            3194
# of unexpected failures        24
# of unexpected successes       1
# of expected failures          12
# of unsupported tests          315
gmake[3]: *** [check-DEJAGNU] Error 1
gmake[2]: *** [check-am] Error 2
gmake[2]: Target `check' not remade because of errors.
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Target `check' not remade because of errors.
gmake: *** [check-target-libstdc++-v3] Error 2
Making check in testsuite
Making a new site.exp file...
WARNING: Couldn't find the global config file.
[ ... ]
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/libmudflap/testsuite/libmudflap.c/cfrags.exp ...
FAIL: libmudflap.c/fail1-frag.c (test for excess errors)
WARNING: libmudflap.c/fail1-frag.c compilation failed to produce executable
FAIL: libmudflap.c/fail10-frag.c (test for excess errors)
WARNING: libmudflap.c/fail10-frag.c compilation failed to produce executable
FAIL: libmudflap.c/fail11-frag.c (test for excess errors)
WARNING: libmudflap.c/fail11-frag.c compilation failed to produce executable
FAIL: libmudflap.c/fail12-frag.c (test for excess errors)
WARNING: libmudflap.c/fail12-frag.c compilation failed to produce executable
FAIL: libmudflap.c/fail13-frag.c (test for excess errors)
[ ... ]
WARNING: libmudflap.c/pass9-frag.c compilation failed to produce executable
FAIL: libmudflap.c/pass9-frag.c (test for excess errors)
WARNING: libmudflap.c/pass9-frag.c compilation failed to produce executable
FAIL: libmudflap.c/fail1-frag.c (-static) output pattern test
FAIL: libmudflap.c/fail10-frag.c (-static) output pattern test
FAIL: libmudflap.c/fail11-frag.c (-static) output pattern test
FAIL: libmudflap.c/fail12-frag.c (-static) output pattern test
FAIL: libmudflap.c/fail13-frag.c (-static) output pattern test
FAIL: libmudflap.c/fail14-frag.c (-static) output pattern test
[ ... ]
WARNING: libmudflap.c/pass9-frag.c (-O3) compilation failed to produce executable
Running /usr/ports/lang/gcc41/work/gcc-4.1-20050819/libmudflap/testsuite/libmudflap.c/externs.exp ...
FAIL: externs-12 linkage 
FAIL: externs-21 linkage 
WARNING: program timed out.
FAIL: externs-12 execution 
WARNING: program timed out.
FAIL: externs-21 execution 
FAIL: externs-12 linkage -static
FAIL: externs-21 linkage -static
WARNING: program timed out.
[ ... ]
FAIL: libmudflap.cth/pass39-frag.c (-O3) (rerun 19) execution test
FAIL: libmudflap.cth/pass39-frag.c (-O3) (rerun 19) output pattern test
FAIL: libmudflap.cth/pass40-frag.c (-O3) (test for excess errors)
FAIL: libmudflap.cth/pass40-frag.c (-O3) execution test
FAIL: libmudflap.cth/pass40-frag.c (-O3) output pattern test

                === libmudflap Summary ===

# of expected passes            220
# of unexpected failures        963
gmake[3]: *** [check-DEJAGNU] Error 1
gmake[2]: *** [check-am] Error 2
gmake[2]: Target `check' not remade because of errors.
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Target `check' not remade because of errors.
gmake: *** [check-target-libmudflap] Error 2
gmake: Target `check' not remade because of errors.
*** Error code 2

Stop in /usr/ports/lang/gcc41.



More information about the freebsd-ports-bugs mailing list