From owner-freebsd-alpha@FreeBSD.ORG Thu Mar 4 20:32:17 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 3A5EA16A4CE for ; Thu, 4 Mar 2004 20:32:17 -0800 (PST) Received: from tiko.fuqn.ca (unknown [66.38.165.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 190BA43D41 for ; Thu, 4 Mar 2004 20:32:12 -0800 (PST) (envelope-from jtregunna@fuqn.ca) Received: from [66.38.165.231] (scotty.fuqn.ca [66.38.165.231]) (authenticated bits=0) by tiko.fuqn.ca (8.12.11/8.12.11) with ESMTP id i254VcOL002048 for ; Thu, 4 Mar 2004 23:31:39 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v612) In-Reply-To: <20040304011247.GA28998@diogenis.ceid.upatras.gr> References: <20040304011247.GA28998@diogenis.ceid.upatras.gr> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <11750AF7-6E5E-11D8-86E3-0003930A1676@fuqn.ca> Content-Transfer-Encoding: 7bit From: Jeremy Tregunna Date: Thu, 4 Mar 2004 23:32:10 -0500 To: freebsd-alpha@freebsd.org X-Mailer: Apple Mail (2.612) 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: Fri, 05 Mar 2004 04:32:17 -0000 I put together a patch back in July of last year for this very problem back in July of last year. At that time, however, compaq-cc would not build at all. I'm away from the machine at the moment, but the patch went like this: USE_LINUX= yes do-install: + @if [ ! -f "${PREFIX}/usr/lib/ld.so" ]; then \ + ${LN} -s ${PREFIX}/usr/libexec/ld-elf.so.1 ${PREFIX}/usr/lib/ld.so; \ + fi @if [ -z "`kldstat -v | ${GREP} -E 'linux'`" ]; then \ ${ECHO} 'AlphaLinux mode is not enabled. \ That is the only part of it which I had anything to do with the error written below. It's not really a fix, but more of a workaround for the time being. I did this on 5.1 and havn't updated the entire patch to 5.2 yet, havn't had the time. Anyway, if you find it useful, great. If not, oh well. On 3-Mar-04, at 20:12, Nikos Ntarmos wrote: > 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 ) > _______________________________________________ > freebsd-alpha@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-alpha > To unsubscribe, send any mail to > "freebsd-alpha-unsubscribe@freebsd.org" > > -- Jeremy Tregunna jtregunna@fuqn.ca