From owner-freebsd-stable Tue Apr 24 19:28:18 2001 Delivered-To: freebsd-stable@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-27.dsl.lsan03.pacbell.net [63.207.60.27]) by hub.freebsd.org (Postfix) with ESMTP id 0387937B422 for ; Tue, 24 Apr 2001 19:28:15 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 78F9F66DF6; Tue, 24 Apr 2001 19:28:14 -0700 (PDT) Date: Tue, 24 Apr 2001 19:28:14 -0700 From: Kris Kennaway To: Doug Hardie Cc: stable@FreeBSD.ORG, Kris Kennaway Subject: Re: Illegal Instruction in libm Message-ID: <20010424192814.B96807@xor.obsecurity.org> References: <20010423234509.A38690@xor.obsecurity.org> <20010424000203.A43320@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="QTprm0S8XgL7H0Dt" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bc979@lafn.org on Tue, Apr 24, 2001 at 06:44:42PM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --QTprm0S8XgL7H0Dt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 24, 2001 at 06:44:42PM -0700, Doug Hardie wrote: > I have not been able to find anything common between source that=20 > fails and that which does not. However, I did another buildworld and=20 > install world and it made nothing different. I also tried linking=20 > with static libraries (-static) and I get a lot of errors for the=20 > common math functions in libm: >=20 > /usr/home/doug/gasp/src/gen.c(.text+0x770): undefined reference to `sqrtf' > /usr/home/doug/gasp/src/gen.c(.text+0x80a): undefined reference to `sqrtf' > /usr/home/doug/gasp/src/gen.c(.text+0x949): undefined reference to `expf' > /usr/home/doug/gasp/src/gen.c(.text+0x966): undefined reference to `expf' > /usr/home/doug/gasp/src/gen.c(.text+0x978): undefined reference to `sqrtf' > /usr/home/doug/gasp/src/gen.c(.text+0xa9a): undefined reference to `sqrtf' > etc. >=20 > those modules are in /usr/lib/libm.a. Were you linking against -lm? I don't have any more suggestions except to use gdb to determine the exact instruction which is causing the illegal instruction signal, and to look for an ASM guru to tell you what's wrong. Kris --QTprm0S8XgL7H0Dt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE65jY9Wry0BWjoQKURAiBrAKDD666hP5YJYqcw4UAsX/RTfwCkZwCdFk+E wedk/ksuaJ4V683CuVF6/8g= =RESy -----END PGP SIGNATURE----- --QTprm0S8XgL7H0Dt-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message