[Gdal-dev] Floating point exception on x86_64

Pierre GM pierregm at engr.uga.edu
Fri Jul 8 00:45:49 EDT 2005


Folks,
I've been a quasi daily user of gdal for the last three years on x86. For the 
last week, I've been trying to use gdal-1.26 on two 64b machines, a Mobile 
AMD64 and a P4_E64. Both machines run Gentoo. I first used the gentoo ebuild. 
On both machines, installation works, gdal-config works properly, and I'm 
able to use the GRASS 'r.in.gdal' with success.
However, gdalinfo, gdalwarp, ogrinfo ... all crash with a floating point 
exception (even with as simple as a --help as flag). A dmesg gives me (for 
example):
gdalinfo[2657] trap divide error rip:3682a0811d rsp:7fffffffe900 error:0
gdalwarp[2799] trap divide error rip:3682a0811d rsp:7fffffffe910 error:0
ogrinfo[2922] trap divide error rip:3682a0811d rsp:7fffffffe910 error:0

Here are my regular CFLAGS and FFLAGS
CFLAGS="-march=k8 -O2 -pipe -fweb"
FLAGS="-march=k8 -O2 -pipe -fweb"
On top of that, I have 'pic' in my USE flags (for non-gentooer, that puts an 
additional -fPIC to the flags when needed).

Compiling the sources 'by hand' leads to the same (absence of) results. Same 
thing with 1.2.5

Any idea/comment/suggestion would be more than welcome, a GIS without gdal 
isn't really worth

Thx in advance

-- 
Pierre GERARD-MARCHANT
Dept. of Biological & Agricultural Engr.
Driftmier Engineering Center
ATHENS GA 30602-4435
Tel: (706) 542.8832 - Fax: (706) 542.8806



More information about the Gdal-dev mailing list