[Gdal-dev] Floating point exception on x86_64

Frank Warmerdam fwarmerdam at gmail.com
Fri Jul 8 09:27:15 EDT 2005


On 7/8/05, Pierre GM <pierregm at engr.uga.edu> wrote:
> 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

Pierre, 

Have you tried running gdalinfo in gdb?  Have you tried building after 
configuring --without-libtool?   If you don't make any progress with these
suggestions, and are able to provide me with ssh access, I would be
willing to do a few experiments on the system. 

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Gdal-dev mailing list