From owner-freebsd-alpha@FreeBSD.ORG Wed Mar 3 22:37:19 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CABA16A4CE for ; Wed, 3 Mar 2004 22:37:19 -0800 (PST) Received: from diogenis.ceid.upatras.gr (diogenis.ceid.upatras.gr [150.140.141.181]) by mx1.FreeBSD.org (Postfix) with SMTP id C39F543D39 for ; Wed, 3 Mar 2004 22:37:17 -0800 (PST) (envelope-from ntarmos@Noth.ceid.upatras.gr) Received: (qmail 10930 invoked from network); 4 Mar 2004 01:10:35 -0000 Received: from noth.ceid.upatras.gr (150.140.143.234) by diogenis.ceid.upatras.gr with SMTP; 4 Mar 2004 01:10:35 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by Noth.ceid.upatras.gr (Postfix) with ESMTP id C69ABFBB2 for ; Thu, 4 Mar 2004 03:12:48 +0200 (EET) Received: from Noth.ceid.upatras.gr ([127.0.0.1]) by localhost (Noth [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24203-07 for ; Thu, 4 Mar 2004 03:12:48 +0200 (EET) Received: by Noth.ceid.upatras.gr (Postfix, from userid 1000) id 295A8FBB0; Thu, 4 Mar 2004 03:12:48 +0200 (EET) Date: Thu, 4 Mar 2004 03:12:48 +0200 From: Nikos Ntarmos To: freebsd-alpha@freebsd.org Message-ID: <20040304011247.GA28998@diogenis.ceid.upatras.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at Noth.ceid.upatras.gr Subject: Re: ccc compiler X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2004 06:37:19 -0000 Hi there. On Fri, Feb 27, 2004 at 01:38:03AM -0700, RJ45 wrote: > ccc -tune ev67 -O4 -fast -ifo -o gregory gregory.c -lcompat -lm > > the program compiles then: > > %./gregory > ELF interpreter /usr/lib/ld.so not found > Abort Same thing here with RELENG_5_2 (for the last month or so). You can still compile -static and the binary will run ok. Seems to me like it's a problem with dynamically linked libs... > instead if I simply use: > > ccc -o gregory gregory.c -lcompat -lm > > I got this error: > > /usr/lib/libcpml.a(exception.o): In function `__dpml_exception': > exception.o(.text+0xc4): undefined reference to `__ieee_get_fp_control' > exception.o(.text+0xdc): undefined reference to `__ieee_get_fp_control' > exception.o(.text+0xdc): undefined reference to `__ieee_get_fp_control' > exception.o(.text+0x4e0): undefined reference to `__errno_location' > exception.o(.text+0x4fc): undefined reference to `__errno_location' > exception.o(.text+0x4fc): undefined reference to `__errno_location' Ummm... nope. I get the exact same ELF-interpreter-blah error with these flags too. I don't understand it though. If it were a problem with dynamic libraries, then ccc -- a dynamic binary itself -- wouldn't run either (right?). FWIW, a quick scan through the port's makefile gave out the following: "the shared libs gives us trouble right now, so only offer .a's", followed by an rm of libots.so and libcpml.so. If ccc links dynamic binaries against these libraries, then it could make some sense. However, I have little or no idea of the internals of ccc (or gcc), so I'm not the one to listen to on this. \n\n -- Nikos "Noth" Ntarmos | < ntarmos at ceid dot upatras dot gr > NetCINS Lab. @ C.E.I.D. | [ http://{noth,p2p}.ceid.upatras.gr/ ] U. of Patras - Greece | ( 38.2594N, 21.7428E ) ( 1024D / CF95160A )