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][docker][alpine] Error when compile with Ninja or Make #730

Open
theludovyc opened this issue Jan 29, 2025 · 0 comments
Open

[build][docker][alpine] Error when compile with Ninja or Make #730

theludovyc opened this issue Jan 29, 2025 · 0 comments

Comments

@theludovyc
Copy link

Hello 👋

I use docker with the latest alpine version image, cmake and ninja. I also have the same with make. I did not reproduce it with an ubuntu image or directly on an ubuntu.

Here is the error

#8 3.735 /dlt-daemon/src/lib/dlt_user.c: In function 'dlt_init_common':
#8 3.735 /dlt-daemon/src/lib/dlt_user.c:764:28: error: passing argument 1 of 'pthread_attr_init' from incompatible pointer type [-Wincompatible-pointer-types]
#8 3.735   764 |     if ((pthread_attr_init(&dlt_mutex_attr) != 0) ||
#8 3.735       |                            ^~~~~~~~~~~~~~~
#8 3.735       |                            |
#8 3.735       |                            pthread_mutexattr_t *

Here is the docker command I use

RUN git clone https://github.com/COVESA/dlt-daemon.git
RUN <<EOF
cd dlt-daemon
mkdir build
cd build
cmake -G Ninja ..
ninja -j 4
cmake -P cmake_install.cmake
cd /
EOF

Here is the installed libs

FROM alpine:latest

RUN apk update

RUN apk add --no-cache \
    gcc \
    g++ \
    cmake \
    ninja-is-really-ninja \
    make \
    autoconf \
    automake \
    git \
    gdb \
    dbus-dev \
    zlib-dev

Hope it can help 😊

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

1 participant