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

add spirv-tools/2020.3 + cmake components + pkg_config name + propagate C++ lib for C API #1931

Merged
merged 2 commits into from
Jul 20, 2020

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Jun 16, 2020

Specify library name and version: spirv-tools/2020.3

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@conan-center-bot
Copy link
Collaborator

Some configurations of 'spirv-tools/v2019.2' failed in build 1 (441110569ccf2b0f3cbb0f7666b1465d55d7ac25):

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Jun 16, 2020

I've introduced tools.stdcpp_library (conan 1.26.0) in this recipe #1918
(I rebase to not rely on 1.26.0 and use custom stdcpp_library function).

@conan-center-bot
Copy link
Collaborator

All green in build 2 (8643f014525b3dc4b3b074e90050f675f4aa30fc)! 😊

uilianries
uilianries previously approved these changes Jun 16, 2020
@uilianries uilianries requested review from danimtb and SSE4 June 16, 2020 21:02
@SpaceIm
Copy link
Contributor Author

SpaceIm commented Jun 17, 2020

By the way, how to raise ConanInvalidConfiguration if spirv-headers is overidden with non compatible version?

@uilianries
Copy link
Member

uilianries commented Jun 17, 2020

@SpaceIm you can use self.deps_cpp_info["spirv-headers"].version under the build() method.

SSE4
SSE4 previously approved these changes Jun 22, 2020
@SpaceIm
Copy link
Contributor Author

SpaceIm commented Jun 28, 2020

@uilianries But build method is not called for pre-built binaries.

@SpaceIm SpaceIm dismissed stale reviews from SSE4 and uilianries via aa23c61 July 3, 2020 15:29
@SpaceIm SpaceIm requested review from SSE4 and uilianries July 3, 2020 15:30
@conan-center-bot
Copy link
Collaborator

Some configurations of 'spirv-tools/v2019.2' failed in build 3 (aa23c61d3ec6aed379476fdab266a982900f3f01):

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost good to go

recipes/spirv-tools/all/conanfile.py Show resolved Hide resolved
@SpaceIm
Copy link
Contributor Author

SpaceIm commented Jul 3, 2020

Some configurations of 'spirv-tools/v2019.2' failed in build 3 (aa23c61d3ec6aed379476fdab266a982900f3f01):

* **Windows x86_64, Debug, Visual Studio 14,  MTd. Options:  spirv-tools:shared-False**
  
  * [Log download](https://c3i.jfrog.io/c3i/misc/logs/pr/1931/3/spirv-tools/v2019.2/fd7c50537851c0c29e9130b0cfd8fd5601d842c3/create_stdout.txt)
  * [Log error Download](https://c3i.jfrog.io/c3i/misc/logs/pr/1931/3/spirv-tools/v2019.2/fd7c50537851c0c29e9130b0cfd8fd5601d842c3/create_stderr.txt)
  * [Profile](https://c3i.jfrog.io/c3i/misc/logs/pr/1931/3/spirv-tools/v2019.2/fd7c50537851c0c29e9130b0cfd8fd5601d842c3/profile.txt)

* [Access to all the logs](https://c3i.jfrog.io/c3i/misc/logs/pr/1931/3/spirv-tools/v2019.2/)
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(312,5): error MSB3491: Could not write lines to file "x64\Debug\spirv-tools-spv-amd-shader-explicit-vertex-parameter\spirv-to.DA7493CC.tlog\spirv-tools-spv-amd-shader-explicit-vertex-parameter.lastbuildstate". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. [C:\J\workspace\onan-center-pull-request_PR-1931\3\pr_1931_3_0_2\.short\9ec970\1\build_subfolder\source_subfolder\source\spirv-tools-spv-amd-shader-explicit-vertex-parameter.vcxproj]

This recipe has short_paths=True, so why this error? Moreover it was working previously, I did minor changes unrelated to path length.

Co-authored-by: Uilian Ries <uilianries@gmail.com>
@SpaceIm SpaceIm requested a review from uilianries July 3, 2020 21:20
@conan-center-bot
Copy link
Collaborator

Some configurations of 'spirv-tools/v2019.2' failed in build 4 (8546f62eb2b8b2c483602d322a4c122f2bbb7e14):

@@ -2,3 +2,6 @@ sources:
"v2019.2":
sha256: 1fde9d2a0df920a401441cd77253fc7b3b9ab0578eabda8caaaceaa6c7638440
url: https://github.com/KhronosGroup/SPIRV-Tools/archive/v2019.2.tar.gz
"v2020.3":
Copy link
Contributor

@Croydon Croydon Jul 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably too late to change now, but regularly we remove the v prefix if there is one

Copy link
Contributor Author

@SpaceIm SpaceIm Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has been discussed when this recipe was added: #1349 (comment). @jgsogo requested to add v prefix.

@conan-center-bot
Copy link
Collaborator

Some configurations of 'spirv-tools/v2019.2' failed in build 5 (8546f62eb2b8b2c483602d322a4c122f2bbb7e14):

@jgsogo
Copy link
Contributor

jgsogo commented Jul 6, 2020

I'm writing to the people in charge of the infrastructure. The path length limitation on Windows should have been removed, maybe this one is a rebel Windows node. I'll keep you updated.

@conan-center-bot
Copy link
Collaborator

Some configurations of 'spirv-tools/v2019.2' failed in build 6 (8546f62eb2b8b2c483602d322a4c122f2bbb7e14):

@jgsogo jgsogo mentioned this pull request Jul 7, 2020
4 tasks
@SpaceIm SpaceIm mentioned this pull request Jul 7, 2020
4 tasks
@SSE4 SSE4 added infrastructure Waiting on tools or services belonging to the infra blocked Affected by an external issue and waiting until it is solved labels Jul 7, 2020
@conan-center-bot
Copy link
Collaborator

Some configurations of 'spirv-tools/v2019.2' failed in build 7 (8546f62eb2b8b2c483602d322a4c122f2bbb7e14):

@SpaceIm SpaceIm closed this Jul 18, 2020
@SpaceIm SpaceIm reopened this Jul 18, 2020
@conan-center-bot
Copy link
Collaborator

All green in build 8 (8546f62eb2b8b2c483602d322a4c122f2bbb7e14)! 😊

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Jul 19, 2020

I should add a TODO. SPIRV-Tools exports one config file per target, and these imported targets aren't namespaced. It can't be modeled currently in conan for cmake_find_package and cmake_find_package_multi generators.

@uilianries uilianries merged commit 239e948 into conan-io:master Jul 20, 2020
@SpaceIm SpaceIm deleted the bump/spirv-tools/2020.3 branch July 20, 2020 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Affected by an external issue and waiting until it is solved infrastructure Waiting on tools or services belonging to the infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants