phi0Oobiphi0Oobi created an issue (osm2pgsql-dev/osm2pgsql#2330)
Hi!
I'm trying to compile the current master on OpenSuSE 15.6, but the compile
fails.
Used Hash: f4a93e214949b81f63b51a69c1302d131aadd0a7
OS: OpenSuSE 15.6 (all packages updated)
Cmake-Command (in build directory):
`CC=/usr/bin/gcc-14 CXX=/usr/bin/g++-14
CMAKE_PREFIY_PATH=/home/worker/opt/osm2pgsql cmake --fresh -D WITH_LUAJIT=ON
-D LUAJIT_INCLUDE_DIR=/usr/include/luajit-5_1-2.1 ..`
Output of Cmake-Command:
```
-- The CXX compiler identification is GNU 14.2.0
-- The C compiler identification is GNU 14.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++-14 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-14 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Building osm2pgsql 2.1.1
-- Found Git: /usr/bin/git (found version "2.43.0")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.13")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Protozero: /home/worker/src/system/osm2pgsql/contrib/protozero/include
(found suitable version "1.7.1", minimum required is "1.6.3")
-- Found EXPAT: /usr/lib64/libexpat.so (found version "2.7.1")
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.8")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found Osmium: /home/worker/src/system/osm2pgsql/contrib/libosmium/include
(found suitable version "2.22.0", minimum required is "2.17.3")
-- Building with LuaJIT support
-- Found LuaJIT: /usr/lib64/libluajit-5.1.so;/usr/lib64/libm.so (found version
"2.1.0-beta3")
-- Found Boost: /usr/include (found suitable version "1.66.0", minimum required
is "1.50")
-- Found PostgreSQL: /usr/lib64/libpq.so (found version "16.8")
-- Libraries used to build:
/usr/lib64/libpq.so;/usr/lib64/libz.so;/usr/lib64/libexpat.so;/usr/lib64/libbz2.so;/usr/lib64/libluajit-5.1.so;/usr/lib64/libm.so
-- Found opencv and potrace library. Building osm2pgsql-gen.
-- Looking for clang-tidy
-- Looking for clang-tidy - found /usr/bin/clang-tidy
-- Tests disabled. Set BUILD_TESTS=ON to enable tests.
-- Looking for pandoc
-- Looking for argparse-manpage
-- Looking for pandoc - found
-- osm2pgsql manual page can be built using 'man' target
-- Looking for argparse-manpage - found
-- osm2pgsql-replication manual page can be built using 'man' target
-- Configuring done (1.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/worker/src/system/osm2pgsql/build
```
When i call make, I get the following error:
```
[ 1%] Building CXX object src/CMakeFiles/osm2pgsql_lib.dir/geom-functions.cpp.o
/home/worker/src/system/osm2pgsql/src/geom-functions.cpp: In function ‘double
geom::{anonymous}::spherical_area(const geom::polygon_t&)’:
/home/worker/src/system/osm2pgsql/src/geom-functions.cpp:372:48: error: wrong
number of template arguments (0, should be at least 1)
372 | boost::geometry::strategy::area::spherical<> const spherical_earth{
| ^
In file included from
/usr/include/boost/geometry/strategies/spherical/intersection.hpp:41,
from
/usr/include/boost/geometry/strategies/intersection_strategies.hpp:30,
from /usr/include/boost/geometry/strategies/strategies.hpp:37,
from /usr/include/boost/geometry/geometry.hpp:50,
from /usr/include/boost/geometry.hpp:17,
from
/home/worker/src/system/osm2pgsql/src/geom-boost-adaptor.hpp:15,
from
/home/worker/src/system/osm2pgsql/src/geom-functions.cpp:12:
/usr/include/boost/geometry/strategies/spherical/area.hpp:44:7: note: provided
for ‘template<class PointOfSegment, class CalculationType> class
boost::geometry::strategy::area::spherical’
44 | class spherical
| ^~~~~~~~~
/home/worker/src/system/osm2pgsql/src/geom-functions.cpp:373:9: error:
narrowing conversion of ‘6.3710087999999998e+6’ from ‘double’ to ‘int’
[-Wnarrowing]
373 | 6371008.8};
| ^~~~~~~~~
/home/worker/src/system/osm2pgsql/src/geom-functions.cpp:381:33: error: no
matching function for call to
‘area(boost::geometry::model::polygon<boost::geometry::model::point<double, 2,
boost::geometry::cs::spherical_equatorial<boost::geometry::degree> > >&, const
int&)’
381 | return boost::geometry::area(sph_geom, spherical_earth);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/geometry/geometry.hpp:53:
/usr/include/boost/geometry/algorithms/area.hpp:271:53: note: candidate:
‘template<class Geometry> typename
boost::geometry::default_area_result<Geometry>::type
boost::geometry::area(const Geometry&)’
271 | inline typename default_area_result<Geometry>::type area(Geometry
const& geometry)
| ^~~~
/usr/include/boost/geometry/algorithms/area.hpp:271:53: note: candidate
expects 1 argument, 2 provided
/usr/include/boost/geometry/algorithms/area.hpp:315:39: note: candidate:
‘template<class Geometry, class Strategy> typename Strategy::return_type
boost::geometry::area(const Geometry&, const Strategy&)’
315 | inline typename Strategy::return_type area(
| ^~~~
/usr/include/boost/geometry/algorithms/area.hpp:315:39: note: template
argument deduction/substitution failed:
/usr/include/boost/geometry/algorithms/area.hpp: In substitution of
‘template<class Geometry, class Strategy> typename Strategy::return_type
boost::geometry::area(const Geometry&, const Strategy&) [with Geometry =
boost::geometry::model::polygon<boost::geometry::model::point<double, 2,
boost::geometry::cs::spherical_equatorial<boost::geometry::degree> > >;
Strategy = int]’:
/home/worker/src/system/osm2pgsql/src/geom-functions.cpp:381:33: required
from here
381 | return boost::geometry::area(sph_geom, spherical_earth);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/geometry/algorithms/area.hpp:315:39: error: ‘int’ is not a
class, struct, or union type
315 | inline typename Strategy::return_type area(
| ^~~~
make[2]: *** [src/CMakeFiles/osm2pgsql_lib.dir/build.make:314:
src/CMakeFiles/osm2pgsql_lib.dir/geom-functions.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:199: src/CMakeFiles/osm2pgsql_lib.dir/all]
Fehler 2
make: *** [Makefile:136: all] Fehler 2
```
At this point I'm stuck...
Can somebody help me?
Thanks in advance!
Sven
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/issues/2330
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/issues/[email protected]>_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving