From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1efe0753d19f47127cbd395a302ec6ba.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199705081801.NAA24268@stommel.tamu.edu> Date: Thu, 8 May 1997 15:14:57 -0700 (PDT) From: Zach Subject: Re: segmentation fault with math lib In-Reply-To: > Have you tried to link with -lieee? I was having wierd segfaults from > over and underflow until I did. the stuff i'm compiling doesn't even use floating point.. ------- $ cat test.c #include void main(void) { printf("Hello\n"); } $ gcc -o test test.c $ ./test Hello $ gcc -o test -pg test.c $ ./test Segmentation fault $ gdb ./test GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.16 (alpha-unknown-linux), Copyright 1996 Free Software Foundation, Inc... (gdb) run Starting program: /usr/local/src/./test Program received signal SIGSEGV, Segmentation fault. __ieee_set_fp_control () at ../sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S:29 ../sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S:29: No such file or directory. Current language: auto; currently asm --------- adding -lieee or /usr/lib/libc_p.a doesn't help a bit. note that this all works in an intel/linux box based on redhat 4.1 with the updates just fine. there seems to be some weirdness hiding somewhere in glibc/gcc for the alpha [maybe this is that odd gas bug?] -- zach -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com