This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: floating point exception in binary
- From: "Vivek Katakam" <vivek1717 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 5 May 2006 10:02:05 +0530
- Subject: Re: floating point exception in binary
- References: <d0e0ce060605041154i7e33b56ehc33c1a87360bbac7@mail.gmail.com>
Hi,
I am working with one of the porting projects in migrating from compq to
gcc on x86_64. I am facing this problem since a week. Please help.
While I am compiling a source using gcc and when I run it am getting the
floating point exception for the binary
I have compiled using the following options :
compile :
/usr/bin/gcc -g -c -Wall -fPIC
-I/home/vkatakam/dstars.2003.1.0_new/src/inc
-I/home/vkatakam/dst.2003.1.0_new/inc -I../inc
-I/home/vkatakam/dst.2003.1.0_new/inc.cludge dr_End2End.c
-o dr_End2End.o
dr_End2End.c: In function `main':
dr_End2End.c:242: warning: implicit declaration of function `dc_End2End'
dr_End2End.c:248: warning: implicit declaration of function
`dc_PrintEnd2End'
dr_End2End.c: At top level:
dr_End2End.c:2: warning: `dr_end2end_c' defined but not used
/home/vkatakam/dstars.2003.1.0_new/src/inc/db_rec.h:5:
warning: `db_rec_h' defined but not used
/home/vkatakam/dstars.2003.1.0_new/inc/mesglog.h:4:
warning: `mesglog_h' defined but not used
Linking:
/usr/bin/gcc -o ../bin/dr_End2End dr_End2End.o
-L/home/vkatakam/dstars.2003.1.0_new/lib
-L/home/vkatakam/dstars.2003.1.0_new/src/lib
-L/oracle/app/oracle/product/10.1/lib
-L/home/vkatakam/tmp/2003.1/lib -lMesgLog -lFileUtil -lc -lrt -lm -lclntsh
-ldc_st -ldc_date -ldc_util -lsc_report -ldc_end
:
I am using the following:
gcc -v
Reading specs from
/usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=x86_64-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53)
and the hardware is
SMP Wed Jan 11 18:35:39 EST 2006 x86_64 x86_64 x86_64 GNU/Linux
The ldd and nm tools on the binary are all ok and there are no undefined
symbols. I have tried all options. some suggested to use x86_6 options. But
i do not know how to use.
Any suggestion is appreciated.
Regards,
Vivek