Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 2004 03:12:48 +0200
From:      Nikos Ntarmos <ntarmos@ceid.upatras.gr>
To:        freebsd-alpha@freebsd.org
Subject:   Re: ccc compiler
Message-ID:  <20040304011247.GA28998@diogenis.ceid.upatras.gr>
In-Reply-To: <Pine.LNX.4.21.0402270133130.6828-100000@slacknet.slacknet.com>
References:  <Pine.LNX.4.21.0402270133130.6828-100000@slacknet.slacknet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 )



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040304011247.GA28998>