Date: Tue, 24 Apr 2001 18:44:42 -0700 From: Doug Hardie <bc979@lafn.org> To: stable@FreeBSD.ORG Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: Illegal Instruction in libm Message-ID: <f04330162b70bdb4940b1@[10.0.1.100]> In-Reply-To: <f04330147b70ad65200b6@[10.0.1.100]> References: <NEBBLDHFCEAGCHNCNNLCKEHPECAA.freebsd@wagar.net> <f04330145b70acb165c9f@[10.0.1.100]> <20010423234509.A38690@xor.obsecurity.org> <f04330146b70ad4f7aeff@[10.0.1.100]> <20010424000203.A43320@xor.obsecurity.org> <f04330147b70ad65200b6@[10.0.1.100]>
next in thread | previous in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PA >>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f04330162b70bdb4940b1>