From owner-freebsd-questions@FreeBSD.ORG Mon Dec 4 23:15:41 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7EC7A16A407 for ; Mon, 4 Dec 2006 23:15:41 +0000 (UTC) (envelope-from jan.grant@bristol.ac.uk) Received: from diri.bris.ac.uk (diri.bris.ac.uk [137.222.10.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6504C43CB2 for ; Mon, 4 Dec 2006 23:15:05 +0000 (GMT) (envelope-from jan.grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by diri.bris.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1GrN28-0006w3-To; Mon, 04 Dec 2006 23:15:39 +0000 Received: from cse-jg.cse.bris.ac.uk ([137.222.12.37]:54900) by mail.ilrt.bris.ac.uk with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1GrN1u-00017T-9e; Mon, 04 Dec 2006 23:15:22 +0000 Date: Mon, 4 Dec 2006 23:15:22 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@tribble.ilrt.bris.ac.uk To: Rachel Florentine In-Reply-To: <20061204130549.29737.qmail@web57807.mail.re3.yahoo.com> Message-ID: <20061204231233.L72927@tribble.ilrt.bris.ac.uk> References: <20061204130549.29737.qmail@web57807.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-ILRT-MailScanner: Found to be clean X-ILRT-MailScanner-SpamCheck: not spam, SpamAssassin (score=-0.39, required 5, autolearn=disabled, ALL_TRUSTED -1.44, AWL 1.05) X-ILRT-MailScanner-From: jan.grant@bristol.ac.uk X-Spam-Status: No X-Spam-Score: -1.3 X-Spam-Level: - Cc: freebsd-questions@freebsd.org Subject: Re: Corrupted C Compiler X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 23:15:41 -0000 On Mon, 4 Dec 2006, Rachel Florentine wrote: > Hi; > I entered the following stupid command: cp -R /* /ad2 thinking that > would copy the contents of my working HD to my new 1/2 teraflop HD > (ad2). What it did was manage to wipe out some very important files > (thank goodness I had up-to-date backups) and it appears to have > corrupted gcc...my C compiler. I deduce this because when I go to build > Zope (as an example) from source I have to run a script afterwards that > repairs the broken C files. (This, strangely, is not the case if I build > Zope from port.) So, my questions for you programmers more experienced > than I, are: > > 1) Does my assessment make sense? Is gcc corrupt? I don't think it makes much sense, no. Zope is python-based and unless you're building products that rely on native libraries, what you describe doesn't sound like an accurate diagnosis. It's more likely (this is a stab in the dark) that you're running a script to regerate .pyc files; these are precompiled python bytecode files that are built from the corresponding .py files. That's a part and parcel of readying Zope for production - however, Zope will run without those .pyc files (the .py files are compiled on first load instead). I suspect that that's what's going on. Cheers, jan -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ Usenet: The separation of content AND presentation - simultaneously.