Re: How to reinstall gcc

2007-03-13 Thread Jeffrey Goldberg

On Mar 13, 2007, at 4:37 AM, Ivan Voras wrote:


Jeffrey Goldberg wrote:

My question is without a functioning gcc, how do a install a  
functioning

gcc?


It seems to me that the easiest way would be to do a binary
install/upgrade from the distribution CD. You might even get away with
copying the relevant files (don't know which... probably binaries and
libraries) from the live CD part.


Thanks for that.

For some reason (sorry I didn't record the error messages) I got into  
some weird menu loop in sysinstall when I tried to upgrade.  So in  
the end, I just mounted the installation disk, found a directory


   RELEASE-6.2/base

in which there was an install.sh that looked like it would do the  
right thing.  It did the right thing.  The only problem was that I  
forgot to restore my old /etc/passwd before rebooting.  As a  
consequence I couldn't ssh in, and so I had to lug an old monitor  
across the room and clear desk space for it, so that I could log on  
to the console.


Cheers,

-j


--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to reinstall gcc

2007-03-13 Thread Ivan Voras
Jeffrey Goldberg wrote:

> My question is without a functioning gcc, how do a install a functioning
> gcc?

It seems to me that the easiest way would be to do a binary
install/upgrade from the distribution CD. You might even get away with
copying the relevant files (don't know which... probably binaries and
libraries) from the live CD part.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to reinstall gcc

2007-03-12 Thread Jeffrey Goldberg
I seem to have broken gcc on my 6.2-RELEASE p2 system.  I apparently  
did this by adding


CPUTYPE?=c3

to /etc/make.conf and then a make buildworld and make install world.

Everything seems to be working fine (though I haven't tested  
throughly), but now  gcc is definitely broken.  Most compile attempts  
end with something like


 internal compiler error: Illegal instruction: 4

I have been able to successfully compile hello.c, but a buildworld  
fails as described above as does the things I've tested in ports  
(pcre, curl, ispell).


My question is without a functioning gcc, how do a install a  
functioning gcc?


-j


--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"