From owner-freebsd-questions@FreeBSD.ORG Sat Feb 23 19:41:52 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA34116A400 for ; Sat, 23 Feb 2008 19:41:52 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 8FA2C13C4E9 for ; Sat, 23 Feb 2008 19:41:52 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 732B71CC8B; Sat, 23 Feb 2008 10:41:51 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sat, 23 Feb 2008 20:41:49 +0100 User-Agent: KMail/1.9.7 References: <000901c87636$c6ef9240$0200010a@atlantis> <200802231810.10285.fbsd.questions@rachie.is-a-geek.net> <003c01c8764f$de52ee50$0200010a@atlantis> In-Reply-To: <003c01c8764f$de52ee50$0200010a@atlantis> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802232041.50283.fbsd.questions@rachie.is-a-geek.net> Cc: Subject: Re: Unable to compile anything from ports 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: Sat, 23 Feb 2008 19:41:52 -0000 On Saturday 23 February 2008 20:11:18 Jasvinder S. Bahra wrote: > > It has a Via CPU? > > Comment that option and try again. > > Mel, > > It does indeed have a Via cpu. The box is running on a "VIA EPIA EK > 8000EG" motherboard (which has a CPU integrated into it). If I run "cat > /var/log/dmesg.today | grep CPU", I get... > > CPU: VIA C3 Nehemiah+RNG+AES (800.03-MHz 686-class CPU) > > Regardless, I commented out all three settings in /etc/make.conf (CPUTYPE, > CFLAGS and COPTFLAGS), and tried the 'make install clean' routine again. > > Unfortunately, Portupgrade, Aide and ISC-DHCP3-Server still fail, though at > a different point... > > ===== Portupgrade ====================================== > config.status: creating Makefile > ===> Building for ruby-1.8.6.111_1,1 > cc -O2 -fno-strict-aliasing -pipe -fPIC -DRUBY_EXPORT -I. -I. -c > array.c array.c: In function `rb_ary_modify': > array.c:72: internal compiler error: Illegal instruction: 4 > Please submit a full bug report, > with preprocessed source if appropriate. > See for instructions. > *** Error code 1 This clearly points at a compiler bug, with the VIA cpu, but since world/kernel build cleanly and anything else bugs out quite early, I would suspect an optimization bug. Could you set the following in /etc/make.conf: CFLAGS=-pipe -O0 # capital O, number zero As a shortcut, you could go to the ruby workdir: cd `make -f /usr/ports/lang/ruby18/Makefile -V WRKSRC` then type: cc -pipe -O0 -fPIC -DRUBY_EXPORT -I. -c array.c Then again, it could be the compiler you built yourself is broken. Easy to test if you can rebuild world again now. -- Mel