Skip to content

[bug] profile include() does not work with os=Linux #16448

@paulharris

Description

@paulharris

Describe the bug

(conan 2.4.0, on linux)

I have a base profile, base-linux:

[settings]
arch=x86_64
os=Linux

I have another profile, base-clang:

include(base-linux)
[settings]
compiler=clang
compiler.libcxx=libstdc++11
compiler.version=18
compiler.cppstd=20

And I have the top level profile, reldeb-clang:

include(base-clang-18)

[settings]
build_type=RelWithDebInfo

When I build with this as the host profile, the resulting output is:

======== Input profiles ========
Profile host:
[settings]
build_type=RelWithDebInfo
compiler=clang
compiler.cppstd=20
compiler.libcxx=libstdc++11
compiler.version=18

Note, there is no os (and arch) listed, and the recipes complain and fail to build.

If I move the base-linux contents into base-clang, then it works.

There seems to be no documentation on the website about this behaviour (that I could see),
and seems to be a bug.
If the user can't do this, then conan should detect this problem and fail earlier with a clear error message.

How to reproduce it

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions