I have stumbled to this too, and thought I'm getting crazy.  After
some hours of investigation, I have found that O'Brien did some
repo-surgery there, removed some revisions, and later replaced
them with the new stuff (well, new stuff took the same revisions),
and now some of your checked out sources (revisions) do not match
what's in your CVS repository.  rm -rf /usr/src/contrib/gcc and
/usr/src/gnu/usr.bin/cc, check them out again, and try again.  It
worked for me now.  I hope that people will learn the lessons from
this, and won't be doing such scary things in the future.  Peter
had some work-arounds to avoid problems like this, were these forced
commits over the affected files, I don't remember?

On Thu, Aug 01, 2002 at 12:47:38PM +0200, John Hay wrote:
> Should one be able to do a source upgrade from an old -current (March 10)
> to the latest? I have been trying, but it breaks in the cross tools
> section in gnu/usr.bin/cc/cc_int. mkdep fails. There are a lot of warnings
> that looks like this:
> 
> #####################
> /home/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config/i386/unix.h:70: 
>warning: `TARGET_DEFAULT' redefined
> /home/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config/i386/i386.h:400: 
>warning: this is the location of the previous definition
> /home/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config/i386/unix.h:83: 
>warning: `FUNCTION_VALUE_REGNO_P' redefined
> /home/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config/i386/i386.h:1654: 
>warning: this is the location of the previous definition
> ######################
> 
> I don't think they cause the failure, but there are so many of them that
> they are hiding the real stuff. I think what is breaking mkdep is this:
> 
> #########################
> /home/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/varasm.c:598: macro 
>`SELECT_SECTION' used with too many (3) args
> /home/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/varasm.c:3400: macro 
>`SELECT_SECTION' used with too many (3) args
> /home/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/varasm.c:4006: macro 
>`SELECT_RTX_SECTION' used with too many (3) args
> ...
> mkdep: compile failed
> *** Error code 1
> 
> Stop in /home/src/gnu/usr.bin/cc/cc_int.
> *** Error code 1
> 
> Stop in /home/src/gnu/usr.bin/cc.
> *** Error code 1
> 
> Stop in /home/src.
> *** Error code 1
> 
> Stop in /home/src.
> *** Error code 1
> 
> Stop in /home/src.
> 
> #########################
> 
> John
> -- 
> John Hay -- [EMAIL PROTECTED] / [EMAIL PROTECTED]

-- 
Ruslan Ermilov          Sysadmin and DBA,
[EMAIL PROTECTED]           Sunbay Software AG,
[EMAIL PROTECTED]          FreeBSD committer,
+380.652.512.251        Simferopol, Ukraine

http://www.FreeBSD.org  The Power To Serve
http://www.oracle.com   Enabling The Information Age

Attachment: msg41570/pgp00000.pgp
Description: PGP signature

Reply via email to