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

[bug] meson doesn't use the compiler specified in profile #8414

Closed
xahon opened this issue Jan 29, 2021 · 5 comments
Closed

[bug] meson doesn't use the compiler specified in profile #8414

xahon opened this issue Jan 29, 2021 · 5 comments
Assignees

Comments

@xahon
Copy link

xahon commented Jan 29, 2021

Environment Details (include every applicable attribute)

  • Operating System+version: Linux 4.15.3-1-generic
  • Compiler+version: Clang 9.0.1
  • Conan version: 1.33.0
  • Python version: 3.5.3

My profile:

[settings]
build_type=Debug
arch=x86_64
arch_build=x86_64
os=Linux
os_build=Linux
compiler=clang
compiler.version=9
compiler.libcxx=libc++

[env]
CC=clang-9
CXX=clang++-9

Steps to reproduce (Include if Applicable)

  1. conan install glib/2.58.3@bincrafters/stable -pr profile_with_clang --build

Logs (Executed commands with output) (Include/Attach if Applicable)

The Meson build system
Version: 0.53.0
Source dir: /home/user/conan/glib/2.58.3/my/stable/build/37ffc1180646bccd34925cc993d4062477e4c510/source_subfolder
Build dir: /home/user/conan/glib/2.58.3/my/stable/build/37ffc1180646bccd34925cc993d4062477e4c510/build_subfolder
Build type: native build
Project name: glib
Project version: 2.58.3

meson.build:1:0: ERROR: Unknown compiler(s): [['clang-7']]
The follow exceptions were encountered:
Running "clang-7 --version" gave "[Errno 2] No such file or directory: 'clang-7'"

A full log can be found at /home/user/conan/glib/2.58.3/my/stable/build/37ffc1180646bccd34925cc993d4062477e4c510/build_subfolder/meson-logs/meson-log.txt
glib/2.58.3@my/stable: 
glib/2.58.3@my/stable: ERROR: Package '37ffc1180646bccd34925cc993d4062477e4c510' build failed
glib/2.58.3@my/stable: WARN: Build folder /home/user/conan/glib/2.58.3/my/stable/build/37ffc1180646bccd34925cc993d4062477e4c510
ERROR: glib/2.58.3@my/stable: Error in build() method, line 123
        meson = self._configure_meson()
while calling '_configure_meson', line 98
        build_folder=self._build_subfolder, defs=defs)
        ConanException: Error 1 while executing meson "/home/user/conan/glib/2.58.3/my/stable/build/37ffc1180646bccd34925cc993d4062477e4c510/source_subfolder" "/home/user/conan/glib/2.58.3/my/stable/build/37ffc1180646bccd34925cc993d4062477e4c510/build_subfolder" --backend=ninja -Dlibmount="True" -Dbindir="bin" -Ddefault_library="static" -Db_staticpic="true" -Dlibexecdir="bin" -Dlibdir="lib" -Dprefix="/home/user/conan/glib/2.58.3/my/stable/package/37ffc1180646bccd34925cc993d4062477e4c510" -Dselinux="True" -Dinternal_pcre="False" -Dsbindir="bin" -Dincludedir="include" --buildtype=debug
@xahon
Copy link
Author

xahon commented Jan 29, 2021

I also tried CC=clang-9 CXX=clang++-9 conan install ..., the same error

@xahon
Copy link
Author

xahon commented Jan 29, 2021

My current workaround:

pushd /usr/local/bin
sudo ln -s /usr/bin/clang-9 clang-7
sudo ln -s /usr/bin/clang++-9 clang++-7
popd

@solvingj
Copy link
Contributor

solvingj commented Feb 1, 2021

ping @SSE4 please have a look

@SSE4
Copy link
Contributor

SSE4 commented Feb 1, 2021

probably, the same issue as #8311

@solvingj
Copy link
Contributor

solvingj commented Feb 1, 2021

@SSE4 it seems so.

@xahon is it ok with you if we close this as duplicate.

@AbrilRBS AbrilRBS closed this as not planned Won't fix, can't repro, duplicate, stale Apr 22, 2024
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

4 participants