[geos-devel] GCC 6 build error

Devrim GÜNDÜZ devrim at gunduz.org
Wed Mar 2 07:02:04 PST 2016



Hi,

Greetings first: I'm new to list, and I'm maintaining the community RPMS for
PostgreSQL and related software.

GeOS 4.5.0 is throwing errors with GCC 6.0.0 . GCC 6 is due with Fedora 24 on
June.

Below is the error message.

Regards, Devrim

make[6]: Entering directory '/var/lib/pgsql/git/pgrpms/rpm/redhat/9.5/geos/F-24/geos-3.5.0/src/algorithm/locate'
/usr/bin/libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos  -I../../../include   -DGEOS_INLINE  -pedantic -Wall -ansi -Wno-long-long  -ffloat-store -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c -o IndexedPointInAreaLocator.lo IndexedPointInAreaLocator.cpp
/usr/bin/libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos  -I../../../include   -DGEOS_INLINE  -pedantic -Wall -ansi -Wno-long-long  -ffloat-store -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c -o PointOnGeometryLocator.lo PointOnGeometryLocator.cpp
/usr/bin/libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos  -I../../../include   -DGEOS_INLINE  -pedantic -Wall -ansi -Wno-long-long  -ffloat-store -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c -o SimplePointInAreaLocator.lo SimplePointInAreaLocator.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos -I../../../include -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c IndexedPointInAreaLocator.cpp  -fPIC -DPIC -o .libs/IndexedPointInAreaLocator.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos -I../../../include -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c SimplePointInAreaLocator.cpp  -fPIC -DPIC -o .libs/SimplePointInAreaLocator.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos -I../../../include -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c PointOnGeometryLocator.cpp  -fPIC -DPIC -o .libs/PointOnGeometryLocator.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/geos -I../../../include -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c PointOnGeometryLocator.cpp -o PointOnGeometryLocator.o >/dev/null 2>&1
In file included from ../../../include/geos/geom/Geometry.h:25:0,
                 from SimplePointInAreaLocator.cpp:18:
../../../include/geos/platform.h:114:2: error: #error "Can not compile without isnan function or macro"
 #error "Can not compile without isnan function or macro"
  ^~~~~
In file included from ../../../include/geos/geom/Geometry.h:25:0,
                 from IndexedPointInAreaLocator.cpp:17:
../../../include/geos/platform.h:114:2: error: #error "Can not compile without isnan function or macro"
 #error "Can not compile without isnan function or macro"
  ^~~~~
In file included from ../../../include/geos/geom/Coordinate.h:158:0,
                 from ../../../include/geos/geom/Envelope.h:25,
                 from ../../../include/geos/geom/Geometry.h:27,
                 from SimplePointInAreaLocator.cpp:18:
../../../include/geos/geom/Coordinate.inl: In member function 'bool geos::geom::Coordinate::isNull() const':
../../../include/geos/geom/Coordinate.inl:38:17: error: 'ISNAN' was not declared in this scope
  return (ISNAN(x) && ISNAN(y) && ISNAN(z));
                 ^
../../../include/geos/geom/Coordinate.inl: In member function 'bool geos::geom::Coordinate::equals3D(const geos::geom::Coordinate&) const':
../../../include/geos/geom/Coordinate.inl:77:28: error: 'ISNAN' was not declared in this scope
   ((z == other.z)||(ISNAN(z) && ISNAN(other.z)));
                            ^
In file included from ../../../include/geos/geom/Coordinate.h:158:0,
                 from ../../../include/geos/geom/Envelope.h:25,
                 from ../../../include/geos/geom/Geometry.h:27,
                 from IndexedPointInAreaLocator.cpp:17:
../../../include/geos/geom/Coordinate.inl: In member function 'bool geos::geom::Coordinate::isNull() const':
../../../include/geos/geom/Coordinate.inl:38:17: error: 'ISNAN' was not declared in this scope
  return (ISNAN(x) && ISNAN(y) && ISNAN(z));
                 ^
../../../include/geos/geom/Coordinate.inl: In member function 'bool geos::geom::Coordinate::equals3D(const geos::geom::Coordinate&) const':
../../../include/geos/geom/Coordinate.inl:77:28: error: 'ISNAN' was not declared in this scope
   ((z == other.z)||(ISNAN(z) && ISNAN(other.z)));
                            ^
Makefile:487: recipe for target 'SimplePointInAreaLocator.lo' failed
make[6]: *** [SimplePointInAreaLocator.lo] Error 1
make[6]: *** Waiting for unfinished jobs....
Makefile:487: recipe for target 'IndexedPointInAreaLocator.lo' failed
make[6]: *** [IndexedPointInAreaLocator.lo] Error 1
make[6]: Leaving directory '/var/lib/pgsql/git/pgrpms/rpm/redhat/9.5/geos/F-24/geos-3.5.0/src/algorithm/locate'
Makefile:502: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/var/lib/pgsql/git/pgrpms/rpm/redhat/9.5/geos/F-24/geos-3.5.0/src/algorithm/locate'
Makefile:556: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/var/lib/pgsql/git/pgrpms/rpm/redhat/9.5/geos/F-24/geos-3.5.0/src/algorithm'
Makefile:595: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/var/lib/pgsql/git/pgrpms/rpm/redhat/9.5/geos/F-24/geos-3.5.0/src'
Makefile:469: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/lib/pgsql/git/pgrpms/rpm/redhat/9.5/geos/F-24/geos-3.5.0'
Makefile:416: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/var/lib/pgsql/git/pgrpms/rpm/redhat/9.5/geos/F-24/geos-3.5.0'
error: Bad exit status from /var/tmp/rpm-tmp.h6UYkt (%build)

-- 
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20160302/3e9a4541/attachment.sig>


More information about the geos-devel mailing list