[geos-devel] [GEOS] #914: cmake compile under mingw64 gcc 8.1
GEOS
geos-trac at osgeo.org
Fri Aug 17 17:51:31 PDT 2018
#914: cmake compile under mingw64 gcc 8.1
-----------------------------------+-----------------------------
Reporter: robe | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.7.0
Component: Build/Install (cmake) | Version: master
Severity: Significant | Keywords: mingw64 gcc 8.1
-----------------------------------+-----------------------------
CMAke compile no longer works after I upgraded my gcc from 4.8.3 to 8.1,
though now the autoconf way at least compiles
{{{
Your branch is up to date with 'origin/master'.
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: C:/ming64gcc81/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/ming64gcc81/mingw64/bin/gcc.exe --
works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/ming64gcc81/mingw64/bin/g++.exe
-- Check for working CXX compiler: C:/ming64gcc81/mingw64/bin/g++.exe --
works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting C++ requirement to C++11
-- Setting GEOS version 3.7.0dev as port of JTS 1.13.0
-- Setting GEOS C API version 1.11.0
-- Setting GEOS build type - Debug
-- Forcing IEEE 754 using flag -ffloat-store - ON
-- Setting GEOS compilation with small functions inlining - NO
-- 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 - 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_ISFINITE
-- Performing Test HAVE_STD_ISFINITE - Failed
-- Looking for isfinite
-- Looking for isfinite - not found
-- Found Git: C:/ming64gcc81/msys/usr/bin/git.exe (found version "2.17.1")
-- Generating GEOS
C:/ming64gcc81/projects/geos/branches/build/geos_revision.h
-- Generating GEOS
C:/ming64gcc81/projects/geos/branches/build/include/geos/platform.h
-- Generating GEOS
C:/ming64gcc81/projects/geos/branches/build/include/geos/version.h
-- Generating GEOS
C:/ming64gcc81/projects/geos/branches/build/capi/geos_c.h
-- Enable GEOS unit tests build - ON
-- Enable GEOS XML tests build - ON
-- Enable GEOS large geometry tests build - ON
-- Enable GEOS performance tests build - ON
-- CMake 3.7.2 successfully configured GEOS using MSYS Makefiles generator
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
HAVE_LONG_LONG_INT_64
-- Build files have been written to:
C:/ming64gcc81/projects/geos/branches/build
Scanning dependencies of target geos
[ 0%] Building CXX object src/CMakeFiles/geos.dir/algorithm/Angle.cpp.obj
[ 0%] Building CXX object
src/CMakeFiles/geos.dir/algorithm/BoundaryNodeRule.cpp.obj
[ 0%] Building CXX object
src/CMakeFiles/geos.dir/algorithm/CGAlgorithms.cpp.obj
[ 0%] Building CXX object
src/CMakeFiles/geos.dir/algorithm/Centroid.cpp.obj
[ 0%] Building CXX object
src/CMakeFiles/geos.dir/algorithm/CentroidArea.cpp.obj
[ 0%] Building CXX object
src/CMakeFiles/geos.dir/algorithm/CentroidLine.cpp.obj
[ 0%] Building CXX object
src/CMakeFiles/geos.dir/algorithm/CentroidPoint.cpp.obj
[ 1%] Building CXX object
src/CMakeFiles/geos.dir/algorithm/ConvexHull.cpp.obj
[ 1%] Building CXX object
src/CMakeFiles/geos.dir/algorithm/HCoordinate.cpp.obj
In file included from
C:/ming64gcc81/projects/geos/branches/master/include/geos/geom/Coordinate.h:19,
from
C:/ming64gcc81/projects/geos/branches/master/src/algorithm/HCoordinate.cpp:23:
C:/ming64gcc81/projects/geos/branches/master/src/algorithm/HCoordinate.cpp:
In static member function 'static void
geos::algorithm::HCoordinate::intersection(const geos::geom::Coordinate&,
const geos::geom::Coordinate&, const geos::geom::Coordinate&, const
geos::geom::Coordinate&, geos::geom::Coordinate&)':
C:/ming64gcc81/projects/geos/branches/build/include/geos/platform.h:70:23:
error: 'finite' was not declared in this scope
# define FINITE(x) finite(x)
^~~~~~
C:/ming64gcc81/projects/geos/branches/master/src/algorithm/HCoordinate.cpp:74:9:
note: in expansion of macro 'FINITE'
if ( (!FINITE(xInt)) || (!FINITE(yInt)) )
^~~~~~
C:/ming64gcc81/projects/geos/branches/build/include/geos/platform.h:70:23:
note: suggested alternative: 'finitef'
# define FINITE(x) finite(x)
^~~~~~
C:/ming64gcc81/projects/geos/branches/master/src/algorithm/HCoordinate.cpp:74:9:
note: in expansion of macro 'FINITE'
if ( (!FINITE(xInt)) || (!FINITE(yInt)) )
^~~~~~
C:/ming64gcc81/projects/geos/branches/master/src/algorithm/HCoordinate.cpp:
In member function 'double geos::algorithm::HCoordinate::getX() const':
C:/ming64gcc81/projects/geos/branches/build/include/geos/platform.h:70:23:
error: 'finite' was not declared in this scope
# define FINITE(x) finite(x)
^~~~~~
C:/ming64gcc81/projects/geos/branches/master/src/algorithm/HCoordinate.cpp:151:8:
note: in expansion of macro 'FINITE'
if ( !FINITE(a) ) {
^~~~~~
C:/ming64gcc81/projects/geos/branches/build/include/geos/platform.h:70:23:
note: suggested alternative: 'finitef'
# define FINITE(x) finite(x)
^~~~~~
C:/ming64gcc81/projects/geos/branches/master/src/algorithm/HCoordinate.cpp:151:8:
note: in expansion of macro 'FINITE'
if ( !FINITE(a) ) {
^~~~~~
C:/ming64gcc81/projects/geos/branches/master/src/algorithm/HCoordinate.cpp:
In member function 'double geos::algorithm::HCoordinate::getY() const':
C:/ming64gcc81/projects/geos/branches/build/include/geos/platform.h:70:23:
error: 'finite' was not declared in this scope
# define FINITE(x) finite(x)
^~~~~~
C:/ming64gcc81/projects/geos/branches/master/src/algorithm/HCoordinate.cpp:162:8:
note: in expansion of macro 'FINITE'
if ( !FINITE(a) ) {
^~~~~~
C:/ming64gcc81/projects/geos/branches/build/include/geos/platform.h:70:23:
note: suggested alternative: 'finitef'
# define FINITE(x) finite(x)
^~~~~~
C:/ming64gcc81/projects/geos/branches/master/src/algorithm/HCoordinate.cpp:162:8:
note: in expansion of macro 'FINITE'
if ( !FINITE(a) ) {
^~~~~~
make[2]: *** [src/CMakeFiles/geos.dir/build.make:264:
src/CMakeFiles/geos.dir/algorithm/HCoordinate.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:202: src/CMakeFiles/geos.dir/all] Error
2
make: *** [Makefile:139: all] Error 2
}}}
--
Ticket URL: <https://trac.osgeo.org/geos/ticket/914>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list