-
Notifications
You must be signed in to change notification settings - Fork 993
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] full_deploy
generates paths to res
relative to the cache instead of the deploy folder
#14022
Comments
Hi @sykhro Thanks for your report. First, I'd suggest to update to 2.0.6, that comes with some bugfixes. Then, I am trying to isolate this, tried (it seems the one at fault is the "headers", not the "loader"):
But then I inspect the generated
Can you please share with me some more details to reproduce it? Thanks! |
Thanks for the quick reply! If I run
and look at set(vulkan-loader_PACKAGE_FOLDER_RELEASE "${CMAKE_CURRENT_LIST_DIR}/full_deploy/host/vulkan-loader/1.3.239.0/Release/x86_64")
set(vulkan-loader_BUILD_MODULES_PATHS_RELEASE )
set(vulkan-loader_INCLUDE_DIRS_RELEASE "${vulkan-loader_PACKAGE_FOLDER_RELEASE}/../../../vulka0e9c2dc266fb1/p/res/vulkan/registry"
"${vulkan-loader_PACKAGE_FOLDER_RELEASE}/../../../vulka0e9c2dc266fb1/p/include") |
Could be the specific version of the package, I am not even getting that No, I don't get generated the |
Also, it is not only the |
Maybe it could be related to having things in different units, Windows is bad because it doesn't allow to compute relative paths from one unit to another, maybe sharing the full logs and the location of your cache and your deployed folder. |
My cache is in the standard path I'm getting it with conan install --requires=vulkan-loader/1.3.239.0 --deployer=full_deploy -g CMakeDeps --build =missing Full log of the comand above======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows
[conf]
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows
[conf]
======== Computing dependency graph ========
vulkan-loader/1.3.239.0: Not found in local cache, looking in remotes...
vulkan-loader/1.3.239.0: Checking remote: gamemaker-internal
vulkan-loader/1.3.239.0: Checking remote: conancenter
vulkan-loader/1.3.239.0: Downloaded recipe revision 9599fdff19ef2e78223bdd9b63e730ac
vulkan-headers/1.3.239.0: Not found in local cache, looking in remotes...
vulkan-headers/1.3.239.0: Checking remote: gamemaker-internal
vulkan-headers/1.3.239.0: Checking remote: conancenter
vulkan-headers/1.3.239.0: Downloaded recipe revision 3f678623fcd7aa3a39015b5770f4f31d
Graph root
cli
Requirements
vulkan-headers/1.3.239.0#3f678623fcd7aa3a39015b5770f4f31d - Downloaded (conancenter)
vulkan-loader/1.3.239.0#9599fdff19ef2e78223bdd9b63e730ac - Downloaded (conancenter)
======== Computing necessary packages ========
Requirements
vulkan-headers/1.3.239.0#3f678623fcd7aa3a39015b5770f4f31d:da39a3ee5e6b4b0d3255bfef95601890afd80709#854aca8847e06c517b5861c97603fe0c - Download (conancenter)
vulkan-loader/1.3.239.0#9599fdff19ef2e78223bdd9b63e730ac:906ece26ace02323af89c7b1f712b86e52f96270 - Build
======== Installing packages ========
-------- Downloading 1 package --------
Downloading binary packages in 10 parallel threads
vulkan-headers/1.3.239.0: Retrieving package da39a3ee5e6b4b0d3255bfef95601890afd80709 from remote 'conancenter'
vulkan-headers/1.3.239.0: Downloading 1.8MB conan_package.tgz
vulkan-headers/1.3.239.0: Decompressing 1.8MB conan_package.tgz
vulkan-headers/1.3.239.0: Package installed da39a3ee5e6b4b0d3255bfef95601890afd80709
vulkan-headers/1.3.239.0: Downloaded package revision 854aca8847e06c517b5861c97603fe0c
vulkan-loader/1.3.239.0: Sources downloaded from 'conancenter'
vulkan-loader/1.3.239.0: Calling source() in C:\Users\Erin\.conan2\p\vulkab31c46df8e224\s\src
vulkan-loader/1.3.239.0: Downloading 1.6MB sdk-1.3.239.0.tar.gz
-------- Installing package vulkan-loader/1.3.239.0 (2 of 2) --------
vulkan-loader/1.3.239.0: Building from source
vulkan-loader/1.3.239.0: Package vulkan-loader/1.3.239.0:906ece26ace02323af89c7b1f712b86e52f96270
vulkan-loader/1.3.239.0: Copying sources to build folder
vulkan-loader/1.3.239.0: Building your package in C:\Users\Erin\.conan2\p\b\vulka4731808889187\b
vulkan-loader/1.3.239.0: Calling generate()
vulkan-loader/1.3.239.0: Generators folder: C:\Users\Erin\.conan2\p\b\vulka4731808889187\b\build\generators
vulkan-loader/1.3.239.0: CMakeToolchain generated: conan_toolchain.cmake
vulkan-loader/1.3.239.0: CMakeToolchain generated: CMakePresets.json
vulkan-loader/1.3.239.0: CMakeToolchain generated: ..\..\src\CMakeUserPresets.json
vulkan-loader/1.3.239.0: Generating aggregated env files
vulkan-loader/1.3.239.0: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
vulkan-loader/1.3.239.0: Calling build()
vulkan-loader/1.3.239.0: apply_conandata_patches(): No patches defined in conandata
vulkan-loader/1.3.239.0: Running CMake.configure()
vulkan-loader/1.3.239.0: RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="C:/Users/Erin/.conan2/p/b/vulka4731808889187/b/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/Erin/.conan2/p/b/vulka4731808889187/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\Users\Erin\.conan2\p\b\vulka4731808889187\b\src"
-- Using Conan toolchain: C:/Users/Erin/.conan2/p/b/vulka4731808889187/b/build/generators/conan_toolchain.cmake
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.35.32217.1
-- The CXX compiler identification is MSVC 19.35.32217.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - 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: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
********************************************************************************
* NOTE: Not adding target to run update_deps.py automatically. *
********************************************************************************
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.39.2.windows.1")
-- Looking for secure_getenv
-- Looking for secure_getenv - not found
-- Looking for __secure_getenv
-- Looking for __secure_getenv - not found
-- The ASM_MASM compiler identification is MSVC
-- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/ml64.exe
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Erin/.conan2/p/b/vulka4731808889187/b/build
vulkan-loader/1.3.239.0: Running CMake.build()
vulkan-loader/1.3.239.0: RUN: cmake --build "C:\Users\Erin\.conan2\p\b\vulka4731808889187\b\build" --config Release
MSBuild version 17.5.1+f6fdcf537 for .NET Framework
Checking Build System
Building Custom Rule C:/Users/Erin/.conan2/p/b/vulka4731808889187/b/src/loader/CMakeLists.txt
asm_offset.c
asm_offset.vcxproj -> C:\Users\Erin\.conan2\p\b\vulka4731808889187\b\build\loader\Release\asm_offset.exe
Generating gen_defines.asm
Building Custom Rule C:/Users/Erin/.conan2/p/b/vulka4731808889187/b/src/loader/CMakeLists.txt
Building Custom Rule C:/Users/Erin/.conan2/p/b/vulka4731808889187/b/src/loader/CMakeLists.txt
Assembling C:\Users\Erin\.conan2\p\b\vulka4731808889187\b\src\loader\unknown_ext_chain_masm.asm...
loader-unknown-chain.vcxproj -> C:\Users\Erin\.conan2\p\b\vulka4731808889187\b\build\loader\loader-unknown-chain.dir\Release\loader-unknown-chain.lib
Building Custom Rule C:/Users/Erin/.conan2/p/b/vulka4731808889187/b/src/loader/CMakeLists.txt
dev_ext_trampoline.c
phys_dev_ext.c
loader-opt.vcxproj -> C:\Users\Erin\.conan2\p\b\vulka4731808889187\b\build\loader\Release\loader-opt.lib
Building Custom Rule C:/Users/Erin/.conan2/p/b/vulka4731808889187/b/src/loader/CMakeLists.txt
allocation.c
cJSON.c
debug_utils.c
extension_manual.c
loader_environment.c
gpa_helper.c
loader.c
log.c
terminator.c
trampoline.c
unknown_function_handling.c
wsi.c
loader_windows.c
dirent_on_windows.c
Creating library C:/Users/Erin/.conan2/p/b/vulka4731808889187/b/build/loader/Release/vulkan-1.lib and object C:/Users/Erin/.conan2/p/b/vulka4731808889187/b/build/loader/Release/vulkan-1.exp
vulkan.vcxproj -> C:\Users\Erin\.conan2\p\b\vulka4731808889187\b\build\loader\Release\vulkan-1.dll
Building Custom Rule C:/Users/Erin/.conan2/p/b/vulka4731808889187/b/src/CMakeLists.txt
vulkan-loader/1.3.239.0: Package '906ece26ace02323af89c7b1f712b86e52f96270' built
vulkan-loader/1.3.239.0: Build folder C:\Users\Erin\.conan2\p\b\vulka4731808889187\b\build
vulkan-loader/1.3.239.0: Generating the package
vulkan-loader/1.3.239.0: Temporary package folder C:\Users\Erin\.conan2\p\b\vulka4731808889187\p
vulkan-loader/1.3.239.0: Calling package()
vulkan-loader/1.3.239.0: Running CMake.install()
vulkan-loader/1.3.239.0: RUN: cmake --install "C:\Users\Erin\.conan2\p\b\vulka4731808889187\b\build" --config Release --prefix "C:/Users/Erin/.conan2/p/b/vulka4731808889187/p"
-- Installing: C:/Users/Erin/.conan2/p/b/vulka4731808889187/p/lib/vulkan-1.lib
-- Installing: C:/Users/Erin/.conan2/p/b/vulka4731808889187/p/bin/vulkan-1.dll
vulkan-loader/1.3.239.0: package(): Packaged 1 '.dll' file: vulkan-1.dll
vulkan-loader/1.3.239.0: package(): Packaged 1 '.lib' file: vulkan-1.lib
vulkan-loader/1.3.239.0: package(): Packaged 1 '.txt' file: LICENSE.txt
vulkan-loader/1.3.239.0: Created package revision fc254ee0226d95aa33fcf3dda8c246ad
vulkan-loader/1.3.239.0: Package '906ece26ace02323af89c7b1f712b86e52f96270' created
vulkan-loader/1.3.239.0: Full package reference: vulkan-loader/1.3.239.0#9599fdff19ef2e78223bdd9b63e730ac:906ece26ace02323af89c7b1f712b86e52f96270#fc254ee0226d95aa33fcf3dda8c246ad
vulkan-loader/1.3.239.0: Package folder C:\Users\Erin\.conan2\p\b\vulka4731808889187\p
vulkan-loader/1.3.239.0: Create VULKAN_SDK environment variable: C:\Users\Erin\.conan2\p\b\vulka4731808889187\p
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'cpp_info.filenames' used in: vulkan-headers/1.3.239.0
WARN: deprecated: 'cpp_info.names' used in: vulkan-loader/1.3.239.0, vulkan-headers/1.3.239.0
WARN: deprecated: 'env_info' used in: vulkan-loader/1.3.239.0
======== Finalizing install (deploy, generators) ========
cli: Conan built-in full deployer to C:\source\e
cli: Writing generators to C:\source\e
cli: Generator 'CMakeDeps' calling 'generate()'
cli: Generating aggregated env files
cli: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
Install finished successfully |
I'm getting the same on set(vulkan-loader_INCLUDE_DIRS_RELEASE "${vulkan-loader_PACKAGE_FOLDER_RELEASE}/../../../vulka0e9c2dc266fb1/p/res/vulkan/registry"
"${vulkan-loader_PACKAGE_FOLDER_RELEASE}/../../../vulka0e9c2dc266fb1/p/include") |
I am struggling to see why the
|
I often see those files. Are they not supposed to be there?
No, I can reproduce this on a clean install on macOS with no changes whatsoever:
installed with
Yes, same issue. Here's the whole folder. Cheers! |
Thanks for the repro! I think I have found the root cause. def package_info():
...
self.cpp_info.includedirs = self.dependencies["vulkan-headers"].cpp_info.aggregated_components().includedirs That call to |
Thank you! I'll fork the recipe locally, if I end up with something that works well I'll send a PR to CCI |
I am submitting a PR for Conan 2.0.7 in #14060 that avoids the root cause, which is caching of the Thanks very much to you for raising this issue and all the feedback to help! |
Environment details
Steps to reproduce
See this comment for an example command that causes the issue.
vulkan-loader
&vulkan-headers
to some output directory using thefull_deploy
deployerfind_package(Vulkan)
Vulkan::Vulkan
has a path which is relative to the Conan cache and not the deploy folderLogs
No response
The text was updated successfully, but these errors were encountered: