From owner-freebsd-stable Tue Apr 24 18:45: 5 2001 Delivered-To: freebsd-stable@freebsd.org Received: from zoon.lafn.org (zoon.lafn.org [206.117.18.9]) by hub.freebsd.org (Postfix) with ESMTP id 3424A37B42C for ; Tue, 24 Apr 2001 18:45:02 -0700 (PDT) (envelope-from bc979@lafn.org) Received: from [10.0.1.100] (cs-wla2-p20.lafn.org [192.168.16.20] (may be forged)) by zoon.lafn.org (8.10.1/8.10.1) with ESMTP id f3P1ixV07119; Tue, 24 Apr 2001 18:44:59 -0700 (PDT) Mime-Version: 1.0 X-Sender: bc979@mail.lafn.org Message-Id: In-Reply-To: References: <20010423234509.A38690@xor.obsecurity.org> <20010424000203.A43320@xor.obsecurity.org> Date: Tue, 24 Apr 2001 18:44:42 -0700 To: stable@FreeBSD.ORG From: Doug Hardie Subject: Re: Illegal Instruction in libm Cc: Kris Kennaway Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have not been able to find anything common between source that fails and that which does not. However, I did another buildworld and install world and it made nothing different. I also tried linking with static libraries (-static) and I get a lot of errors for the common math functions in libm: /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. those modules are in /usr/lib/libm.a. I also tried defining CPUTYPE as i686 and i386 and that made no difference. I am basically out of ideas. I don't understand why complex code, like the OS and ports and utilities etc., compile and work properly while simple code won't. Perhaps the printf/fprintf functions are not used, but I find that difficult to accept. However, it does allways seem to fail on a variable of type float. At 0:06 -0700 4/24/01, Doug Hardie wrote: >At 0:02 -0700 4/24/01, Kris Kennaway wrote: >>On Tue, Apr 24, 2001 at 12:00:11AM -0700, Doug Hardie wrote: >>> At 23:45 -0700 4/23/01, Kris Kennaway wrote: >>> >On Mon, Apr 23, 2001 at 11:38:48PM -0700, Doug Hardie wrote: >>> >> I upgraded from 4.2 to 4.3-Release today. All seemed fine till I ran >>> >> a program that references libc. It dies with an illegal instruction. >>> >> Recompiling the program made no change. Here is the gdb where output: >>> > >>> >You forgot to mention what CPU you are running. >>> > >>> >Kris >>> > >>> >Content-Type: application/pgp-signature >>> >Content-Disposition: inline >>> > >>> >Attachment converted: Hard Disk:Untitled 2 (????/----) (000436B3) >>> >>> CPU: Pentium II/Pentium II Xeon/Celeron (350.80-MHz 686-class CPU) >>> Origin = "GenuineIntel" Id = 0x652 Stepping = 2 >>> >>> >>>Features=0x183f9ff>> T,PSE36,MMX,FXSR> >> >>And how did you upgrade? Binary or source recompile? >> >>Kris >> >>Content-Type: application/pgp-signature >>Content-Disposition: inline >> >>Attachment converted: Hard Disk:Untitled 1 (????/----) (000436BD) > >cvsup and followed instructions in UPDATING. >-- >-- Doug > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-stable" in the body of the message -- -- Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message