Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GEOS 3.10.3 build error on Fedora 38 #863

Closed
devrimgunduz opened this issue Apr 6, 2023 · 3 comments
Closed

GEOS 3.10.3 build error on Fedora 38 #863

devrimgunduz opened this issue Apr 6, 2023 · 3 comments

Comments

@devrimgunduz
Copy link

devrimgunduz commented Apr 6, 2023

Hi,

I think this is similar to #860 , but this time on 3.10.3. Apparently we need similiar fix on 3.10 as well. This is GCC 13.0 on Fedora 38:

[ 15%] Building CXX object CMakeFiles/geos.dir/src/geomgraph/DirectedEdge.cpp.o
/usr/bin/g++ -DDLL_EXPORT -DGEOS_INLINE -DNDEBUG -DUSE_UNSTABLE_GEOS_CPP_API -Dgeos_EXPORTS -I/BUILD/geos-3.10.3/include -I/BUILD/geos-3.10.3/src/deps -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -fPIC -ffp-contract=off -MD -MT CMakeFiles/geos.dir/src/geomgraph/DirectedEdge.cpp.o -MF CMakeFiles/geos.dir/src/geomgraph/DirectedEdge.cpp.o.d -o CMakeFiles/geos.dir/src/geomgraph/DirectedEdge.cpp.o -c /BUILD/geos-3.10.3/src/geomgraph/DirectedEdge.cpp
In file included from /BUILD/geos-3.10.3/src/geomgraph/Depth.cpp:23:
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.h:52:17: error: 'uint8_t' has not been declared
52 | bool isNull(uint8_t geomIndex) const;
| ^~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.h:53:17: error: 'uint8_t' has not been declared
53 | bool isNull(uint8_t geomIndex, uint8_t posIndex) const;
| ^~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.h:53:36: error: 'uint8_t' has not been declared
53 | bool isNull(uint8_t geomIndex, uint8_t posIndex) const;
| ^~~~~~~
In file included from /BUILD/geos-3.10.3/include/geos/geom/Location.h:21,
from /BUILD/geos-3.10.3/include/geos/geomgraph/Depth.h:25:
/BUILD/geos-3.10.3/include/geos/inline.h:19:17: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | # define INLINE inline
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.inl:100:1: note: in expansion of macro 'INLINE'
100 | INLINE bool
| ^~~~~~
In file included from /BUILD/geos-3.10.3/include/geos/geomgraph/Depth.h:69:
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.inl:101:1: error: 'bool geos::geomgraph::Depth::isNull' is not a static data member of 'class geos::geomgraph::Depth'
101 | Depth::isNull(uint8_t geomIndex) const
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.inl:101:15: error: 'uint8_t' was not declared in this scope
101 | Depth::isNull(uint8_t geomIndex) const
| ^~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.inl:25:1: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
24 | #include <geos/geom/Position.h>
+++ |+#include
25 | #include <geos/geom/Location.h>
/BUILD/geos-3.10.3/include/geos/inline.h:19:17: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | # define INLINE inline
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.inl:106:1: note: in expansion of macro 'INLINE'
106 | INLINE bool
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.inl:107:1: error: 'bool geos::geomgraph::Depth::isNull' is not a static data member of 'class geos::geomgraph::Depth'
107 | Depth::isNull(uint8_t geomIndex, uint8_t posIndex) const
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.inl:107:15: error: 'uint8_t' was not declared in this scope
107 | Depth::isNull(uint8_t geomIndex, uint8_t posIndex) const
| ^~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.inl:107:15: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.inl:107:34: error: 'uint8_t' was not declared in this scope
107 | Depth::isNull(uint8_t geomIndex, uint8_t posIndex) const
| ^~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.inl:107:34: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Depth.inl:107:50: error: expression list treated as compound expression in initializer [-fpermissive]
107 | Depth::isNull(uint8_t geomIndex, uint8_t posIndex) const
| ^
In file included from /BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:26,
from /BUILD/geos-3.10.3/src/geomgraph/Depth.cpp:24:
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.h:99:52: error: 'uint32_t' has not been declared
99 | bool isEqualOnSide(const TopologyLocation& le, uint32_t locIndex) const;
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.h:133:10: error: 'uint8_t' in namespace 'std' does not name a type; did you mean 'wint_t'?
133 | std::uint8_t locationSize;
| ^~~~~~~
| wint_t
In file included from /BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.h:142:
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In constructor 'geos::geomgraph::TopologyLocation::TopologyLocation(geos::geom::Location, geos::geom::Location, geos::geom::Location)':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:37:9: error: class 'geos::geomgraph::TopologyLocation' does not have any field named 'locationSize'
37 | locationSize(3)
| ^~~~~~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In constructor 'geos::geomgraph::TopologyLocation::TopologyLocation(geos::geom::Location)':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:47:9: error: class 'geos::geomgraph::TopologyLocation' does not have any field named 'locationSize'
47 | locationSize(1)
| ^~~~~~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In copy constructor 'geos::geomgraph::TopologyLocation::TopologyLocation(const geos::geomgraph::TopologyLocation&)':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:58:9: error: class 'geos::geomgraph::TopologyLocation' does not have any field named 'locationSize'
58 | locationSize(gl.locationSize)
| ^~~~~~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:58:25: error: 'const class geos::geomgraph::TopologyLocation' has no member named 'locationSize'; did you mean 'location'?
58 | locationSize(gl.locationSize)
| ^~~~~~~~~~~~
| location
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In member function 'geos::geomgraph::TopologyLocation& geos::geomgraph::TopologyLocation::operator=(const geos::geomgraph::TopologyLocation&)':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:67:5: error: 'locationSize' was not declared in this scope; did you mean 'location'?
67 | locationSize = gl.locationSize;
| ^~~~~~~~~~~~
| location
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:67:23: error: 'const class geos::geomgraph::TopologyLocation' has no member named 'locationSize'; did you mean 'location'?
67 | locationSize = gl.locationSize;
| ^~~~~~~~~~~~
| location
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In member function 'geos::geom::Location geos::geomgraph::TopologyLocation::get(std::size_t) const':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:76:19: error: 'locationSize' was not declared in this scope; did you mean 'location'?
76 | if(posIndex < locationSize) {
| ^~~~~~~~~~~~
| location
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In member function 'bool geos::geomgraph::TopologyLocation::isNull() const':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:86:32: error: 'locationSize' was not declared in this scope; did you mean 'location'?
86 | for(std::size_t i = 0; i < locationSize; ++i) {
| ^~~~~~~~~~~~
| location
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In member function 'bool geos::geomgraph::TopologyLocation::isAnyNull() const':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:98:32: error: 'locationSize' was not declared in this scope; did you mean 'location'?
98 | for(std::size_t i = 0; i < locationSize; ++i) {
| ^~~~~~~~~~~~
| location
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: At global scope:
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:108:61: error: 'uint32_t' has not been declared
108 | TopologyLocation::isEqualOnSide(const TopologyLocation& le, uint32_t locIndex) const
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In member function 'bool geos::geomgraph::TopologyLocation::isArea() const':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:117:12: error: 'locationSize' was not declared in this scope; did you mean 'location'?
117 | return locationSize > 1;
| ^~~~~~~~~~~~
| location
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In member function 'bool geos::geomgraph::TopologyLocation::isLine() const':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:124:12: error: 'locationSize' was not declared in this scope; did you mean 'location'?
124 | return locationSize == 1;
| ^~~~~~~~~~~~
| location
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In member function 'void geos::geomgraph::TopologyLocation::flip()':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:131:8: error: 'locationSize' was not declared in this scope; did you mean 'location'?
131 | if(locationSize <= 1) {
| ^~~~~~~~~~~~
| location
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In member function 'void geos::geomgraph::TopologyLocation::setAllLocationsIfNull(geos::geom::Location)':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:148:32: error: 'locationSize' was not declared in this scope; did you mean 'location'?
148 | for(std::size_t i = 0; i < locationSize; ++i) {
| ^~~~~~~~~~~~
| location
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl: In member function 'bool geos::geomgraph::TopologyLocation::allPositionsEqual(geos::geom::Location) const':
/BUILD/geos-3.10.3/include/geos/geomgraph/TopologyLocation.inl:190:32: error: 'locationSize' was not declared in this scope; did you mean 'location'?
190 | for(std::size_t i = 0; i < locationSize; ++i) {
| ^~~~~~~~~~~~
| location
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h: At global scope:
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:84:19: error: expected ')' before 'geomIndex'
84 | Label(uint32_t geomIndex, geom::Location onLoc);
| ~ ^~~~~~~~~~
| )
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:111:19: error: expected ')' before 'geomIndex'
111 | Label(uint32_t geomIndex, geom::Location onLoc, geom::Location leftLoc, geom::Location rightLoc);
| ~ ^~~~~~~~~~
| )
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:115:32: error: 'uint32_t' has not been declared
115 | geom::Location getLocation(uint32_t geomIndex, uint32_t posIndex) const;
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:115:52: error: 'uint32_t' has not been declared
115 | geom::Location getLocation(uint32_t geomIndex, uint32_t posIndex) const;
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:117:32: error: 'uint32_t' has not been declared
117 | geom::Location getLocation(uint32_t geomIndex) const;
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:119:22: error: 'uint32_t' has not been declared
119 | void setLocation(uint32_t geomIndex, uint32_t posIndex, geom::Location location);
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:119:42: error: 'uint32_t' has not been declared
119 | void setLocation(uint32_t geomIndex, uint32_t posIndex, geom::Location location);
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:121:22: error: 'uint32_t' has not been declared
121 | void setLocation(uint32_t geomIndex, geom::Location location);
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:123:26: error: 'uint32_t' has not been declared
123 | void setAllLocations(uint32_t geomIndex, geom::Location location);
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:125:32: error: 'uint32_t' has not been declared
125 | void setAllLocationsIfNull(uint32_t geomIndex, geom::Location location);
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:141:17: error: 'uint32_t' has not been declared
141 | bool isNull(uint32_t geomIndex) const;
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:143:20: error: 'uint32_t' has not been declared
143 | bool isAnyNull(uint32_t geomIndex) const;
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:147:17: error: 'uint32_t' has not been declared
147 | bool isArea(uint32_t geomIndex) const;
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:149:17: error: 'uint32_t' has not been declared
149 | bool isLine(uint32_t geomIndex) const;
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:151:42: error: 'uint32_t' has not been declared
151 | bool isEqualOnSide(const Label& lbl, uint32_t side) const;
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:153:28: error: 'uint32_t' has not been declared
153 | bool allPositionsEqual(uint32_t geomIndex, geom::Location loc) const;
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:158:17: error: 'uint32_t' has not been declared
158 | void toLine(uint32_t geomIndex);
| ^~~~~~~~
In file included from /BUILD/geos-3.10.3/include/geos/geomgraph/Label.h:174:
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl: In static member function 'static geos::geomgraph::Label geos::geomgraph::Label::toLineLabel(const geos::geomgraph::Label&)':
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:37:9: error: 'uint32_t' was not declared in this scope
37 | for(uint32_t i = 0; i < 2; i++) {
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:26:1: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
25 | #include
+++ |+#include
26 |
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:37:25: error: 'i' was not declared in this scope
37 | for(uint32_t i = 0; i < 2; i++) {
| ^
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl: At global scope:
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:52:1: error: ISO C++ forbids declaration of 'Label' with no type [-fpermissive]
52 | Label::Label(uint32_t geomIndex, geom::Location onLoc) :
| ^~~~~
/BUILD/geos-3.10.3/include/geos/inline.h:19:17: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | # define INLINE inline
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:51:1: note: in expansion of macro 'INLINE'
51 | INLINE
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:52:1: error: 'int geos::geomgraph::Label::Label' is not a static data member of 'class geos::geomgraph::Label'
52 | Label::Label(uint32_t geomIndex, geom::Location onLoc) :
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:52:14: error: 'uint32_t' was not declared in this scope
52 | Label::Label(uint32_t geomIndex, geom::Location onLoc) :
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:52:14: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:52:49: error: expected primary-expression before 'onLoc'
52 | Label::Label(uint32_t geomIndex, geom::Location onLoc) :
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:52:54: error: expression list treated as compound expression in initializer [-fpermissive]
52 | Label::Label(uint32_t geomIndex, geom::Location onLoc) :
| ^
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:54:1: error: expected unqualified-id before '{' token
54 | {
| ^
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:91:1: error: ISO C++ forbids declaration of 'Label' with no type [-fpermissive]
91 | Label::Label(uint32_t geomIndex, geom::Location onLoc, geom::Location leftLoc, geom::Location rightLoc)
| ^~~~~
/BUILD/geos-3.10.3/include/geos/inline.h:19:17: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | # define INLINE inline
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:90:1: note: in expansion of macro 'INLINE'
90 | INLINE
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:91:1: error: 'int geos::geomgraph::Label::Label' is not a static data member of 'class geos::geomgraph::Label'
91 | Label::Label(uint32_t geomIndex, geom::Location onLoc, geom::Location leftLoc, geom::Location rightLoc)
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:91:14: error: 'uint32_t' was not declared in this scope
91 | Label::Label(uint32_t geomIndex, geom::Location onLoc, geom::Location leftLoc, geom::Location rightLoc)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:91:14: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:91:49: error: expected primary-expression before 'onLoc'
91 | Label::Label(uint32_t geomIndex, geom::Location onLoc, geom::Location leftLoc, geom::Location rightLoc)
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:91:71: error: expected primary-expression before 'leftLoc'
91 | Label::Label(uint32_t geomIndex, geom::Location onLoc, geom::Location leftLoc, geom::Location rightLoc)
| ^~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:91:95: error: expected primary-expression before 'rightLoc'
91 | Label::Label(uint32_t geomIndex, geom::Location onLoc, geom::Location leftLoc, geom::Location rightLoc)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:91:103: error: expression list treated as compound expression in initializer [-fpermissive]
91 | Label::Label(uint32_t geomIndex, geom::Location onLoc, geom::Location leftLoc, geom::Location rightLoc)
| ^
/BUILD/geos-3.10.3/include/geos/inline.h:19:17: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | # define INLINE inline
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:107:1: note: in expansion of macro 'INLINE'
107 | INLINE geom::Location
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:108:1: error: 'geos::geom::Location geos::geomgraph::Label::getLocation' is not a static data member of 'class geos::geomgraph::Label'
108 | Label::getLocation(uint32_t geomIndex, uint32_t posIndex) const
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:108:20: error: 'uint32_t' was not declared in this scope
108 | Label::getLocation(uint32_t geomIndex, uint32_t posIndex) const
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:108:20: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:108:40: error: 'uint32_t' was not declared in this scope
108 | Label::getLocation(uint32_t geomIndex, uint32_t posIndex) const
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:108:40: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:108:57: error: expression list treated as compound expression in initializer [-fpermissive]
108 | Label::getLocation(uint32_t geomIndex, uint32_t posIndex) const
| ^
/BUILD/geos-3.10.3/include/geos/inline.h:19:17: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | # define INLINE inline
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:115:1: note: in expansion of macro 'INLINE'
115 | INLINE geom::Location
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:116:1: error: 'geos::geom::Location geos::geomgraph::Label::getLocation' is not a static data member of 'class geos::geomgraph::Label'
116 | Label::getLocation(uint32_t geomIndex) const
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:116:20: error: 'uint32_t' was not declared in this scope
116 | Label::getLocation(uint32_t geomIndex) const
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:116:20: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:124:1: error: variable or field 'setLocation' declared void
124 | Label::setLocation(uint32_t geomIndex, uint32_t posIndex, geom::Location location)
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:124:20: error: 'uint32_t' was not declared in this scope
124 | Label::setLocation(uint32_t geomIndex, uint32_t posIndex, geom::Location location)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:124:20: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:124:40: error: 'uint32_t' was not declared in this scope
124 | Label::setLocation(uint32_t geomIndex, uint32_t posIndex, geom::Location location)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:124:40: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:124:74: error: expected primary-expression before 'location'
124 | Label::setLocation(uint32_t geomIndex, uint32_t posIndex, geom::Location location)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:132:1: error: variable or field 'setLocation' declared void
132 | Label::setLocation(uint32_t geomIndex, geom::Location location)
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:132:20: error: 'uint32_t' was not declared in this scope
132 | Label::setLocation(uint32_t geomIndex, geom::Location location)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:132:20: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:132:55: error: expected primary-expression before 'location'
132 | Label::setLocation(uint32_t geomIndex, geom::Location location)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:140:1: error: variable or field 'setAllLocations' declared void
140 | Label::setAllLocations(uint32_t geomIndex, geom::Location location)
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:140:24: error: 'uint32_t' was not declared in this scope
140 | Label::setAllLocations(uint32_t geomIndex, geom::Location location)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:140:24: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:140:59: error: expected primary-expression before 'location'
140 | Label::setAllLocations(uint32_t geomIndex, geom::Location location)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:148:1: error: variable or field 'setAllLocationsIfNull' declared void
148 | Label::setAllLocationsIfNull(uint32_t geomIndex, geom::Location location)
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:148:30: error: 'uint32_t' was not declared in this scope
148 | Label::setAllLocationsIfNull(uint32_t geomIndex, geom::Location location)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:148:30: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:148:65: error: expected primary-expression before 'location'
148 | Label::setAllLocationsIfNull(uint32_t geomIndex, geom::Location location)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/inline.h:19:17: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | # define INLINE inline
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:186:1: note: in expansion of macro 'INLINE'
186 | INLINE bool
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:187:1: error: 'bool geos::geomgraph::Label::isNull' is not a static data member of 'class geos::geomgraph::Label'
187 | Label::isNull(uint32_t geomIndex) const
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:187:15: error: 'uint32_t' was not declared in this scope
187 | Label::isNull(uint32_t geomIndex) const
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:187:15: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/inline.h:19:17: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | # define INLINE inline
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:201:1: note: in expansion of macro 'INLINE'
201 | INLINE bool
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:202:1: error: 'bool geos::geomgraph::Label::isAnyNull' is not a static data member of 'class geos::geomgraph::Label'
202 | Label::isAnyNull(uint32_t geomIndex) const
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:202:18: error: 'uint32_t' was not declared in this scope
202 | Label::isAnyNull(uint32_t geomIndex) const
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:202:18: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/inline.h:19:17: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | # define INLINE inline
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:216:1: note: in expansion of macro 'INLINE'
216 | INLINE bool
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:217:1: error: 'bool geos::geomgraph::Label::isArea' is not a static data member of 'class geos::geomgraph::Label'
217 | Label::isArea(uint32_t geomIndex) const
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:217:15: error: 'uint32_t' was not declared in this scope
217 | Label::isArea(uint32_t geomIndex) const
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:217:15: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/inline.h:19:17: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | # define INLINE inline
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:224:1: note: in expansion of macro 'INLINE'
224 | INLINE bool
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:225:1: error: 'bool geos::geomgraph::Label::isLine' is not a static data member of 'class geos::geomgraph::Label'
225 | Label::isLine(uint32_t geomIndex) const
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:225:15: error: 'uint32_t' was not declared in this scope
225 | Label::isLine(uint32_t geomIndex) const
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:225:15: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:233:40: error: 'uint32_t' has not been declared
233 | Label::isEqualOnSide(const Label& lbl, uint32_t side) const
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/inline.h:19:17: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | # define INLINE inline
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:240:1: note: in expansion of macro 'INLINE'
240 | INLINE bool
| ^~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:241:1: error: 'bool geos::geomgraph::Label::allPositionsEqual' is not a static data member of 'class geos::geomgraph::Label'
241 | Label::allPositionsEqual(uint32_t geomIndex, geom::Location loc) const
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:241:26: error: 'uint32_t' was not declared in this scope
241 | Label::allPositionsEqual(uint32_t geomIndex, geom::Location loc) const
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:241:26: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:241:61: error: expected primary-expression before 'loc'
241 | Label::allPositionsEqual(uint32_t geomIndex, geom::Location loc) const
| ^~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:241:64: error: expression list treated as compound expression in initializer [-fpermissive]
241 | Label::allPositionsEqual(uint32_t geomIndex, geom::Location loc) const
| ^
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:249:1: error: variable or field 'toLine' declared void
249 | Label::toLine(uint32_t geomIndex)
| ^~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:249:15: error: 'uint32_t' was not declared in this scope
249 | Label::toLine(uint32_t geomIndex)
| ^~~~~~~~
/BUILD/geos-3.10.3/include/geos/geomgraph/Label.inl:249:15: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/src/geomgraph/Depth.cpp: In member function 'void geos::geomgraph::Depth::normalize()':
/BUILD/geos-3.10.3/src/geomgraph/Depth.cpp:48:9: error: 'uint8_t' was not declared in this scope
48 | for(uint8_t i = 0; i < 2; i++) {
| ^~~~~~~
/BUILD/geos-3.10.3/src/geomgraph/Depth.cpp:25:1: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
24 | #include <geos/geomgraph/Label.h>
+++ |+#include
25 | #include <geos/geom/Position.h>
/BUILD/geos-3.10.3/src/geomgraph/Depth.cpp:48:24: error: 'i' was not declared in this scope
48 | for(uint8_t i = 0; i < 2; i++) {
| ^
/BUILD/geos-3.10.3/src/geomgraph/Depth.cpp: In member function 'void geos::geomgraph::Depth::add(const geos::geomgraph::Label&)':
/BUILD/geos-3.10.3/src/geomgraph/Depth.cpp:71:9: error: 'uint8_t' was not declared in this scope
71 | for(uint8_t i = 0; i < 2; i++) {
| ^~~~~~~
/BUILD/geos-3.10.3/src/geomgraph/Depth.cpp:71:9: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
/BUILD/geos-3.10.3/src/geomgraph/Depth.cpp:71:24: error: 'i' was not declared in this scope
71 | for(uint8_t i = 0; i < 2; i++) {
| ^
/BUILD/geos-3.10.3/src/geomgraph/Depth.cpp:72:20: error: expected ';' before 'j'
72 | for(uint8_t j = 1; j < 3; j++) {
| ^~
| ;
/BUILD/geos-3.10.3/src/geomgraph/Depth.cpp:72:28: error: 'j' was not declared in this scope
72 | for(uint8_t j = 1; j < 3; j++) {
| ^
[ 16%] Building CXX object CMakeFiles/geos.dir/src/geomgraph/DirectedEdgeStar.cpp.o
/usr/bin/g++ -DDLL_EXPORT -DGEOS_INLINE -DNDEBUG -DUSE_UNSTABLE_GEOS_CPP_API -Dgeos_EXPORTS -I/BUILD/geos-3.10.3/include -I/BUILD/geos-3.10.3/src/deps -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -fPIC -ffp-contract=off -MD -MT CMakeFiles/geos.dir/src/geomgraph/DirectedEdgeStar.cpp.o -MF CMakeFiles/geos.dir/src/geomgraph/DirectedEdgeStar.cpp.o.d -o CMakeFiles/geos.dir/src/geomgraph/DirectedEdgeStar.cpp.o -c /BUILD/geos-3.10.3/src/geomgraph/DirectedEdgeStar.cpp
make[3]: *** [CMakeFiles/geos.dir/build.make:1353: CMakeFiles/geos.dir/src/geomgraph/Depth.cpp.o] Error 1

pramsey added a commit that referenced this issue Apr 6, 2023
@pramsey
Copy link
Member

pramsey commented Apr 6, 2023

Can you confirm that 3.10 is now happy with gcc13?

@devrimgunduz
Copy link
Author

Patch does not cleanly apply to 3.10.3. Does it depend on any other previous patch?

@pramsey
Copy link
Member

pramsey commented Apr 6, 2023

There's been a lot of dev since 3.10.3. The next scheduled release will be 3.10.6. Here's the cumulated changes...

https://github.com/libgeos/geos/compare/3.10.3..3.10.patch

@pramsey pramsey closed this as completed Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants