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

[feature] pass strip executable via MesonToolchain #17600

Open
1 task done
valgur opened this issue Jan 20, 2025 · 1 comment
Open
1 task done

[feature] pass strip executable via MesonToolchain #17600

valgur opened this issue Jan 20, 2025 · 1 comment
Assignees

Comments

@valgur
Copy link
Contributor

valgur commented Jan 20, 2025

What is your suggestion?

When cross-compiling a Meson project with Conan, the meson setup command complains that

WARNING: Cross file does not specify strip binary, result will not be stripped.

The strip executable value in tools.build:compiler_executables is already supported by GnuToolchain and is almost mandatory for cross-compiling quite a few Autotools projects correctly. Could you please include this info in the generated conan_meson_native.ini and conan_meson_cross.ini as well to fix that warning?

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@valgur
Copy link
Contributor Author

valgur commented Jan 20, 2025

For context, this is the environment I am building in:

FROM ubuntu:24.10

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends \
    gcc-13 \
    g++-13 \
    gcc-13-aarch64-linux-gnu \
    g++-13-aarch64-linux-gnu \
    binutils-aarch64-linux-gnu \
    make \
    python3 \
    python3-pip \
    git

RUN pip install -U conan cmake==3.15.3.post1 --break-system-packages
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=20
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux

[conf]
tools.build:compiler_executables={'c': 'aarch64-linux-gnu-gcc-13', 'cpp': 'aarch64-linux-gnu-g++-13', 'strip': 'aarch64-linux-gnu-strip'}
# tools.build:sysroot not set

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

No branches or pull requests

2 participants