ports/99503: gcc40 doesn't compile

Thomas Schweikle tps at vr-web.de
Mon Jun 26 22:40:34 UTC 2006


>Number:         99503
>Category:       ports
>Synopsis:       gcc40 doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 26 22:40:25 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Schweikle
>Release:        FreeBSD 6.1-STABLE
>Organization:
>Environment:
FreeBSD hazel.tps 6.1-STABLE FreeBSD 6.1-STABLE #4: Fri Jun  9 23:37:31 CEST 2006     screen at hazel.tps:/usr/obj/usr/src/sys/HAZEL  i386
>Description:
Goto /usr/ports/lang/gcc40, then "make build" or "make install". Building gcc40 will fail:

gmake[1]: Leaving directory `/usr/ports/lang/gcc40/work/build/gcc'
Comparing stage2 and stage3 of the compiler
gmake[1]: Entering directory `/usr/ports/lang/gcc40/work/build/gcc'
rm -f .bad_compare
case "fastcompare-lean" in *compare | *compare-lean ) stage=2 ;; * ) stage=`echo fastcompare-lean | sed -e 's,^[a-z]*compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
for dir in . cp objc build; do \
  if [ "`echo $dir/*.o`" != "$dir/*.o" ] ; then \
    for file in $dir/*.o; do \
      case "fastcompare-lean" in \
        slowcompare* ) \
          tail +16c ./$file > tmp-foo1; \
          tail +16c stage$stage/$file > tmp-foo2 \
            && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >> .bad_compare) || true; \
          ;; \
        fastcompare* ) \
          cmp $file stage$stage/$file 16 16 > /dev/null 2>&1; \
          test $? -eq 1 && echo $file differs >> .bad_compare || true; \
          ;; \
        gnucompare* ) \
          cmp --ignore-initial=16 $file stage$stage/$file > /dev/null 2>&1; \
          test $? -eq 1 && echo $file differs >> .bad_compare || true; \
          ;; \
      esac ; \
    done; \
  else true; fi; \
done
rm -f tmp-foo*
case "fastcompare-lean" in *compare | *compare-lean ) stage=2 ;; * ) stage=`echo fastcompare-lean | sed -e 's,^[a-z]*compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
if [ -f .bad_compare ]; then \
  echo "Bootstrap comparison failure!"; \
  cat .bad_compare; \
  exit 1; \
else \
  case "fastcompare-lean" in \
    *-lean ) rm -rf stage$stage ;; \
    *) ;; \
  esac; true; \
fi
Bootstrap comparison failure!
./reload.o differs
gmake[1]: *** [fastcompare-lean] Error 1
gmake[1]: Leaving directory `/usr/ports/lang/gcc40/work/build/gcc'
gmake: *** [bootstrap-lean] Error 2
*** Error code 2

>How-To-Repeat:
It doesn't matter if gcc40 being installed or not. Just go to /usr/ports/lang/gcc40, then "make build".
>Fix:

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



More information about the freebsd-ports-bugs mailing list