Skip to content

easy-build flow: on linux, if both GCC and Clang are installed, build fails because CMake picks GCC #8515

Open
@dneto0

Description

@dneto0

⚠️ Issues not using this template will be systematically closed.

Describe the bug
On Linux a default build will fail because CMake selects GCC instead of Clang

To Reproduce
Steps to reproduce the behavior:

  1. On linux, where both GCC and Clang are installed, run ./build.sh release

Expected behavior
When clang is available, Filament should be built.

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
If applicable, copy full logs from your console here. Please do not
use screenshots of logs, copy them as text, use gist or attach an uncompressed file.

$ ./build.sh release
Building release in out/cmake-release...
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:286 (message):
  Detected C compiler GNU is unsupported


-- Configuring incomplete, errors occurred!

Desktop (please complete the following information):

  • OS: Linux
  • GPU: n/a
  • Backend: n/a

Smartphone (please complete the following information):

  • Device: n/a
  • OS: n/a

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

buildBuild & build system issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions