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

Build Failure on Ubuntu 22 #2731

Open
theory opened this issue Jan 24, 2025 · 2 comments
Open

Build Failure on Ubuntu 22 #2731

theory opened this issue Jan 24, 2025 · 2 comments
Labels
Milestone

Comments

@theory
Copy link

theory commented Jan 24, 2025

Problem

I'm getting a build failure on Ubuntu 22.04. The first error is

CMake Error at CMakeLists.txt:17 (cmake_policy):
  Policy "CMP0148" is not known to this version of CMake.

But it keeps going emitting successful output until dying with

-- Configuring incomplete, errors occurred!
See also "/app/pgrouting/build/CMakeFiles/CMakeOutput.log".

To Reproduce

docker run --rm -it ubuntu:22.04 bash
apt-get update
apt-get install -y build-essential cmake libboost-all-dev python3-sphinx git postgresql-common
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh  -i -v 17
git clone --depth 1 --branch v3.7.2 https://github.com/pgRouting/pgrouting
cmake -S pgrouting  -B pgrouting/build

Output:

CMake Error at CMakeLists.txt:17 (cmake_policy):
  Policy "CMP0148" is not known to this version of CMake.


-- CMAKE_BUILD_TYPE Release
-- DOXYGEN_MINIMUM_VERSION=1.7
-- SPHINX_MINIMUM_VERSION=4.0
-- POSTGRESQL_MINIMUM_VERSION=13.0.0
-- BOOST_MINIMUM_VERSION=1.56.0
-- POSTGIS_MINIMUM_VERSION=3.0.0
-- POSTGRESQL_PG_CONFIG is /usr/bin/pg_config
-- POSTGRESQL_EXECUTABLE is /usr/lib/postgresql/17/bin/postgres
-- POSTGRESQL_VERSION_STRING in FindPostgreSQL.cmake is PostgreSQL 17.2 (Ubuntu 17.2-1.pgdg22.04+1)
-- POSTGRESQL_INCLUDE_DIR: /usr/include/postgresql/17/server
-- POSTGRESQL_LIBRARIES: /usr/lib/aarch64-linux-gnu
-- POSTGRESQL_VERSION_STRING=PostgreSQL 17.2 (Ubuntu 17.2-1.pgdg22.04+1)
-- POSTGRESQL_VERSION=17.2
-- PGSQL_VERSION=17002
-- PGSQL_VERSION=17002
-- LIBRARY_INSTALL_PATH /usr/lib/postgresql/17/lib
-- Performing Test C_COMPILER_SUPPORTS_FPIC
-- Performing Test C_COMPILER_SUPPORTS_FPIC - Success
-- Performing Test CXX_COMPILER_SUPPORTS_FPIC
-- Performing Test CXX_COMPILER_SUPPORTS_FPIC - Success
-- Performing Test C_COMPILER_SUPPORTS_ROUNDING_MATH
-- Performing Test C_COMPILER_SUPPORTS_ROUNDING_MATH - Success
-- Performing Test CXX_COMPILER_SUPPORTS_ROUNDING_MATH
-- Performing Test CXX_COMPILER_SUPPORTS_ROUNDING_MATH - Success
-- Configuring incomplete, errors occurred!
See also "/pgrouting/build/CMakeFiles/CMakeOutput.log".

CMakeOutput.log attached.

CMakeOutput.log

@theory theory added the bug label Jan 24, 2025
@cvvergara cvvergara added this to the Release 3.7.3 milestone Jan 27, 2025
@cvvergara
Copy link
Member

@theory
This is fixed on #2728
We still to prepare a release with the fix.
You can try it out with:

git clone --depth 1 --branch main https://github.com/pgRouting/pgrouting

BTW, Your pgtap extension its so cooooool.
I love it and use it extensively.

@theory
Copy link
Author

theory commented Jan 27, 2025

Thank you — and thanks for your kind words about pgTAP! ♥️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants