Bug #865

compile problem with g++ (GCC) 5.3.0

Added by Graziano about 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:2016-03-02
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:Candidate for next minor release
Affected version:other Platform:Linux

Description

Compiling with g++ 5.3.0 gives following error:

./gmt/src/gmt-5.2.1/src/xyz2grd.c: In function ‘GMT_xyz2grd’:
./gmt/src/gmt-5.2.1/src/xyz2grd.c:752:4: error: non-floating-point argument in call to function ‘__builtin_isnan’
(GMT_is_dnan (GMT→common.d.active[GMT_IN])) ? sprintf (e_value, "NaN") : sprintf (e_value, GMT→current.setting.format_float_out, GMT→common.d.nan_proxy[GMT_I
^
src/CMakeFiles/gmtlib.dir/build.make:2443: recipe for target 'src/CMakeFiles/gmtlib.dir/xyz2grd.c.o' failed
make2: * [src/CMakeFiles/gmtlib.dir/xyz2grd.c.o] Error 1
CMakeFiles/Makefile2:278: recipe for target 'src/CMakeFiles/gmtlib.dir/all' failed
make1:
[src/CMakeFiles/gmtlib.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *
* [all] Error 2

Applying the attachedg patch fixes it.

float_cast.patch Magnifier (928 Bytes) Graziano, 2016-03-02 04:27

History

#1 Updated by Paul about 1 year ago

  • Status changed from New to Resolved

Thanks, this was fixed some time ago in 5.2.2 and trunk.

#2 Updated by Remko about 1 year ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Closed as verified

Also available in: Atom PDF