From owner-freebsd-questions@FreeBSD.ORG Sun Nov 28 09:36:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA29D16A4CE for ; Sun, 28 Nov 2004 09:36:08 +0000 (GMT) Received: from mailbox.gr (mailbox.gr [216.121.96.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id A28EA43D58 for ; Sun, 28 Nov 2004 09:36:08 +0000 (GMT) (envelope-from nobody@mailbox.gr) Received: (from nobody@localhost) by mailbox.gr (8.9.3p2/8.9.3) id LAA19042; Sun, 28 Nov 2004 11:37:11 +0200 Date: Sun, 28 Nov 2004 11:37:11 +0200 Message-Id: <200411280937.LAA19042@mailbox.gr> From: "dkouroun@mailbox.gr" To: freebsd-questions@freebsd.org Cc: Subject: installing gcc in 5.3 Release X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Nov 2004 09:36:09 -0000 Dear Fellows, I have installed FreeBSD 5.3 Release! I tried to run an executable from Linux. In linux this files takes: 3442 milliseconds to run. //g++-3.4.3 In freebsd it needs : 5992 milliseconds to run. So I tried to recompile the file in freebsd and it also needed 5992 milliseconds to run. But it was compiled with the native compiler g++-3.4.2 of freebsd 5.3. So I decided to install from source gcc-3.4.3 in /usr/local in FreeBSD. This is something which is a routine since I have done it millions of times in Linux! The commands I used are the following: #cd /usr/local #mkdir GCC-3.4.3 #tar xvjf gcc-3.4.3.tar.bz2 #cd GCC-3.4.3 # ../gcc-3.4.3/configure --prefix=/usr/local/GCC-3.4.3/ --program-suffix=-3.4.3 --enable-languages=c,c++,f77 This was complited without any problems!!! The build command though, #make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean broke when the program was trying to run byacc. The error message showed that it didn't recognized byacc --something! It reported: error, usage: yacc ..... So I think that byacc has different syntax in freebsd! Does anybody know how to fix that? Thanks in advance! Drosos. _____________________________________________________________________________________ http://www.mailbox.gr Αποκτήστε δωρεάν το μοναδικό σας e-mail. http://www.thesuperweb.gr Website με Ασφαλές Controlpanel από 6 Euro και δώρο το domain σας!