Skip to content

can't build a docker image #193

@journeytosilius

Description

@journeytosilius

Trying to build with postgres 17 in a ubuntu 22 image, I get this :

7.049 Found ninja-1.11.1 at /usr/bin/ninja
7.634 ninja: Entering directory `/apache-arrow-flight-sql-postgresql-0.1.0.build'
14.53 [1/2] Compiling C++ object arrow_flight_sql.so.p/src_afs.cc.o
14.53 FAILED: arrow_flight_sql.so.p/src_afs.cc.o 
14.53 c++ -Iarrow_flight_sql.so.p -I. -I../apache-arrow-flight-sql-postgresql-0.1.0 -I/usr/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O0 -g -fPIC -fPIC -isystem/usr/include/postgresql/17/server -MD -MQ arrow_flight_sql.so.p/src_afs.cc.o -MF arrow_flight_sql.so.p/src_afs.cc.o.d -o arrow_flight_sql.so.p/src_afs.cc.o -c ../apache-arrow-flight-sql-postgresql-0.1.0/src/afs.cc
14.53 ../apache-arrow-flight-sql-postgresql-0.1.0/src/afs.cc: In member function ‘virtual arrow::Result<std::unique_ptr<arrow::flight::FlightInfo> > {anonymous}::FlightSQLServer::GetFlightInfoStatement(const arrow::flight::ServerCallContext&, const arrow::flight::sql::StatementQuery&, const arrow::flight::FlightDescriptor&)’:
14.53 ../apache-arrow-flight-sql-postgresql-0.1.0/src/afs.cc:2673:99: error: no matching function for call to ‘arrow::flight::FlightEndpoint::FlightEndpoint(<brace-enclosed initializer list>)’
14.53  2673 |                         arrow::flight::FlightEndpoint{arrow::flight::Ticket{std::move(ticket)}, {}}};
14.53       |                                                                                                   ^

Do you know why could this happen ?

dependencies :

RUN set -ex; \
    apt-get update && apt-get install -y -V \
    ca-certificates \
    lsb-release \
    wget \
    gnupg \
    postgresql-common \
    apt-transport-https \
    meson \
    ninja-build \
    cmake \
    build-essential \
    libkrb5-dev \
    libpq-dev \
    && wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
    && apt-get install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
    && apt-get clean
RUN set -ex; \
    apt-get update && apt-get install -y -V \
    libarrow-dev \
    libarrow-glib-dev \
    libarrow-dataset-dev \
    libarrow-dataset-glib-dev \
    libarrow-acero-dev \
    libarrow-flight-dev \
    libarrow-flight-glib-dev \
    libarrow-flight-sql-dev \
    libarrow-flight-sql-glib-dev \
    libgandiva-dev \
    libgandiva-glib-dev \
    libparquet-dev \
    libparquet-glib-dev \
    && apt-get clean

maybe a compiler version ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions