[geos-devel] [GEOS] #630: CMake with mingw fail
GEOS
geos-trac at osgeo.org
Mon Jun 3 23:47:49 PDT 2013
#630: CMake with mingw fail
------------------------+---------------------------------------------------
Reporter: robe | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone:
Component: Default | Version: svn-trunk
Severity: Unassigned | Keywords:
------------------------+---------------------------------------------------
Mat,
I'm getting similar error to ticket here #557
I tried with both my existing 4.5.4 Mingw install and 4.8.0 that Mark
suggested and get same failure. On bright side 4.8.0 doesn't seem to
crash like 4.6 did (when compiling with ./configure), but gives lots of
failures during regress testing like 46 out of 3000 failures. more on that
later.
My build command was:
{{{
export OS_BUILD=64
export GEOS_VER=3.4.0dev
PROJECTS=/c/ming${OS_BUILD}/projects
tools/svn_repo_revision.sh
rm -rf build/mingw
mkdir -p build/mingw
cd build/mingw
cmake -G"MSYS Makefiles"
-DCMAKE_INSTALL_PREFIX:PATH=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}
../../
make
}}}
{{{-- The C compiler identification is GNU 4.8.0
-- The CXX compiler identification is GNU 4.8.0
-- Check for working C compiler: c:/ming64/mingw64/bin/gcc.exe
-- Check for working C compiler: c:/ming64/mingw64/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: c:/ming64/mingw64/bin/g++.exe
-- Check for working CXX compiler: c:/ming64/mingw64/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Setting GEOS version 3.4.0dev as port of JTS 1.12.0
-- Setting GEOS C API version 1.8.0
-- Setting GEOS build type - Debug
-- Forcing IEEE 754 using flag -ffloat-store - ON
-- Setting GEOS compilation with small functions inlining - ON
-- Setting GEOS compilation with assert() macro enabled - OFF
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file ieeefp.h
-- Looking for include file ieeefp.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of int64_t
-- Check size of int64_t - done
-- Performing Test HAVE_STD_ISNAN
-- Performing Test HAVE_STD_ISNAN - Failed
-- Looking for isnan
-- Looking for isnan - found
-- Performing Test HAVE_STD_ISFINITE
-- Performing Test HAVE_STD_ISFINITE - Failed
-- Looking for isfinite
-- Looking for isfinite - found
-- Enable GEOS Unit Tests build - ON
-- Enable GEOS XML Tester build - ON
-- Enable GEOS large geometry tests build - ON
-- CMake 2.8.10.2 successfully configured geos using MSYS Makefiles
generator
-- Configuring done
-- Generating done
-- Build files have been written to:
C:/ming64/projects/geos/branches/geos-3.4/b
uild/mingw
Scanning dependencies of target geos
[ 0%] Building CXX object src/CMakeFiles/geos.dir/algorithm/Angle.cpp.obj
c:/ming64/projects/geos/branches/geos-3.4/src/algorithm/Angle.cpp:1:0:
warning:
-fPIC ignored for target (all code is position independent) [enabled by
default]
/**********************************************************************
^
In file included from
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geo
m/Coordinate.h:19:0,
from
c:/ming64/projects/geos/branches/geos-3.4/src/algorithm/An
gle.cpp:23:
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:
In m
ember function 'bool geos::geom::Coordinate::isNull() const':
C:/ming64/projects/geos/branches/geos-3.4/build/mingw/include/geos/platform.h:13
6:27: error: 'isnan' was not declared in this scope
# define ISNAN(x) isnan(x)
^
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:38:10
: note: in expansion of macro 'ISNAN'
return (ISNAN(x) && ISNAN(y) && ISNAN(z));
^
C:/ming64/projects/geos/branches/geos-3.4/build/mingw/include/geos/platform.h:13
6:27: note: suggested alternative:
# define ISNAN(x) isnan(x)
^
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:38:10
: note: in expansion of macro 'ISNAN'
return (ISNAN(x) && ISNAN(y) && ISNAN(z));
^
In file included from
c:/ming64/projects/geos/branches/geos-3.4/src/algorithm/An
gle.cpp:19:0:
c:\ming64\mingw64\include\c++\4.8.0\cmath:836:5: note: 'std::isnan'
isnan(_Tp __f)
^
In file included from
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geo
m/Coordinate.h:19:0,
from
c:/ming64/projects/geos/branches/geos-3.4/src/algorithm/An
gle.cpp:23:
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:
In m
ember function 'bool geos::geom::Coordinate::equals3D(const
geos::geom::Coordina
te&) const':
C:/ming64/projects/geos/branches/geos-3.4/build/mingw/include/geos/platform.h:13
6:27: error: 'isnan' was not declared in this scope
# define ISNAN(x) isnan(x)
^
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:77:21
: note: in expansion of macro 'ISNAN'
((z == other.z)||(ISNAN(z) && ISNAN(other.z)));
^
C:/ming64/projects/geos/branches/geos-3.4/build/mingw/include/geos/platform.h:13
6:27: note: suggested alternative:
# define ISNAN(x) isnan(x)
^
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:77:21
: note: in expansion of macro 'ISNAN'
((z == other.z)||(ISNAN(z) && ISNAN(other.z)));
^
In file included from
c:/ming64/projects/geos/branches/geos-3.4/src/algorithm/An
gle.cpp:19:0:
c:\ming64\mingw64\include\c++\4.8.0\cmath:836:5: note: 'std::isnan'
isnan(_Tp __f)
^
make[2]: *** [src/CMakeFiles/geos.dir/algorithm/Angle.cpp.obj] Error 1
make[1]: *** [src/CMakeFiles/geos.dir/all] Error 2
make: *** [all] Error 2
[ 0%] Building CXX object src/CMakeFiles/geos.dir/algorithm/Angle.cpp.obj
c:/ming64/projects/geos/branches/geos-3.4/src/algorithm/Angle.cpp:1:0:
warning:
-fPIC ignored for target (all code is position independent) [enabled by
default]
/**********************************************************************
^
In file included from
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geo
m/Coordinate.h:19:0,
from
c:/ming64/projects/geos/branches/geos-3.4/src/algorithm/An
gle.cpp:23:
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:
In m
ember function 'bool geos::geom::Coordinate::isNull() const':
C:/ming64/projects/geos/branches/geos-3.4/build/mingw/include/geos/platform.h:13
6:27: error: 'isnan' was not declared in this scope
# define ISNAN(x) isnan(x)
^
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:38:10
: note: in expansion of macro 'ISNAN'
return (ISNAN(x) && ISNAN(y) && ISNAN(z));
^
C:/ming64/projects/geos/branches/geos-3.4/build/mingw/include/geos/platform.h:13
6:27: note: suggested alternative:
# define ISNAN(x) isnan(x)
^
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:38:10
: note: in expansion of macro 'ISNAN'
return (ISNAN(x) && ISNAN(y) && ISNAN(z));
^
In file included from
c:/ming64/projects/geos/branches/geos-3.4/src/algorithm/An
gle.cpp:19:0:
c:\ming64\mingw64\include\c++\4.8.0\cmath:836:5: note: 'std::isnan'
isnan(_Tp __f)
^
In file included from
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geo
m/Coordinate.h:19:0,
from
c:/ming64/projects/geos/branches/geos-3.4/src/algorithm/An
gle.cpp:23:
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:
In m
ember function 'bool geos::geom::Coordinate::equals3D(const
geos::geom::Coordina
te&) const':
C:/ming64/projects/geos/branches/geos-3.4/build/mingw/include/geos/platform.h:13
6:27: error: 'isnan' was not declared in this scope
# define ISNAN(x) isnan(x)
^
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:77:21
: note: in expansion of macro 'ISNAN'
((z == other.z)||(ISNAN(z) && ISNAN(other.z)));
^
C:/ming64/projects/geos/branches/geos-3.4/build/mingw/include/geos/platform.h:13
6:27: note: suggested alternative:
# define ISNAN(x) isnan(x)
^
C:/ming64/projects/geos/branches/geos-3.4/include/geos/geom/Coordinate.inl:77:21
: note: in expansion of macro 'ISNAN'
((z == other.z)||(ISNAN(z) && ISNAN(other.z)));
^
In file included from
c:/ming64/projects/geos/branches/geos-3.4/src/algorithm/An
gle.cpp:19:0:
c:\ming64\mingw64\include\c++\4.8.0\cmath:836:5: note: 'std::isnan'
isnan(_Tp __f)
^
make[2]: *** [src/CMakeFiles/geos.dir/algorithm/Angle.cpp.obj] Error 1
}}}
--
Ticket URL: <http://trac.osgeo.org/geos/ticket/630>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list