You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When cross-compiling large recipes that are used as both requires and tool_requires, such as qt or protobuf, it would be very helpful if the log messages containing the package ref could include info about whether the package being built is for the host or build context.
For example, in logs like
-------- Installing package qt/6.8.2 (83 of 84) --------
qt/6.8.2: Building from source
qt/6.8.2: Package qt/6.8.2:c6dbd07191d6497f198f28e308a4b699b70b2ac9
qt/6.8.2: Copying sources to build folder
qt/6.8.2: Building your package in /home/user/.conan2/p/b/qtc8d3483cfcb1b/b
qt/6.8.2: Calling generate()
qt/6.8.2: Generators folder: /home/user/.conan2/p/b/qtc8d3483cfcb1b/b/build/Release/generators
qt/6.8.2: CMakeToolchain generated: conan_toolchain.cmake
qt/6.8.2: CMakeToolchain generated: /home/user/.conan2/p/b/qtc8d3483cfcb1b/b/build/Release/generators/CMakePresets.json
qt/6.8.2: Generating aggregated env files
qt/6.8.2: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
qt/6.8.2: Calling build()
...
qt/6.8.2: ERROR:
Package 'c6dbd07191d6497f198f28e308a4b699b70b2ac9' build failed
qt/6.8.2: WARN: Build folder /home/user/.conan2/p/b/qtc8d3483cfcb1b/b/build/Release
ERROR: qt/6.8.2: Error in build() method, line 848
cmake.build()
ConanException: Error 1 while executing
I would replace the qt/6.8.2 refs with qt/6.8.2 [build] or qt/6.8.2 [host]. This would help quite a bit in case of build errors like the above, where it's hard to tell which graph node exactly failed.
It's also quite relevant for the graph computation step, e.g.:
What is your suggestion?
When cross-compiling large recipes that are used as both requires and tool_requires, such as
qt
orprotobuf
, it would be very helpful if the log messages containing the package ref could include info about whether the package being built is for the host or build context.For example, in logs like
I would replace the
qt/6.8.2
refs withqt/6.8.2 [build]
orqt/6.8.2 [host]
. This would help quite a bit in case of build errors like the above, where it's hard to tell which graph node exactly failed.It's also quite relevant for the graph computation step, e.g.:
I would only include this info in case the same recipe is present multiple times in the build graph, though, to not overburden the logs.
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: