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

[package] osqp/0.6.2: Build fails with Visual Studio and Ninja as CMake generator #16821

Open
SpaceIm opened this issue Mar 31, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SpaceIm
Copy link
Contributor

SpaceIm commented Mar 31, 2023

Description

Build fails with ninja: error: build.ninja:320: multiple rules generate out/osqp.lib with Ninja generator and Visual Studio 2022

Package and Environment Details

  • Package Name/Version: osqp/0.6.2
  • Operating System+version: Windows 11
  • Compiler+version: Visual Studio 2022
  • Conan version: conan 2.0.2
  • Python version: Python 3.11.1

Conan profile

[settings]
os=Windows
arch=x86_64
compiler=msvc
compiler.version=193
compiler.runtime=dynamic
build_type=Release
[options]
[tool_requires]
[conf]
tools.microsoft.msbuild:installation_path=C:/Program Files/Microsoft Visual Studio/2022/Community
[buildenv]
CMAKE_EXPORT_COMPILE_COMMANDS=ON

Steps to reproduce

conan install --requires="osqp/0.6.2" -o "*:shared=True" -b missing

Logs

Click to expand log
osqp/0.6.2: Building from source
osqp/0.6.2: Package osqp/0.6.2:f7dcd1cec4586c154a242a765a1de011300db8e2
osqp/0.6.2: Copying sources to build folder
osqp/0.6.2: Building your package in C:\Users\spaceim\.conan2\p\t\osqp6542c78057d19\b
osqp/0.6.2: Calling generate()
osqp/0.6.2: Generators folder: C:\Users\spaceim\.conan2\p\t\osqp6542c78057d19\b\build\Release\generators
osqp/0.6.2: CMakeToolchain generated: conan_toolchain.cmake
osqp/0.6.2: CMakeToolchain generated: CMakePresets.json
osqp/0.6.2: CMakeToolchain generated: ..\..\..\src\CMakeUserPresets.json
osqp/0.6.2: Generating aggregated env files
osqp/0.6.2: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
osqp/0.6.2: Calling build()
osqp/0.6.2: Running CMake.configure()
osqp/0.6.2: RUN: cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="C:/Users/spaceim/.conan2/p/t/osqp6542c78057d19/b/build/Release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/spaceim/.conan2/p/t/osqp6542c78057d19/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "C:\Users\spaceim\.conan2\p\t\osqp6542c78057d19\b\src"
conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - vcvars_ver=14.3
[vcvarsall.bat] Environment initialized for: 'x64'
-- Using Conan toolchain: C:/Users/spaceim/.conan2/p/t/osqp6542c78057d19/b/build/Release/generators/conan_toolchain.cmake
-- Conan toolchain: Setting BUILD_SHARED_LIBS = ON
-- The C compiler identification is MSVC 19.35.32216.1
-- The CXX compiler identification is MSVC 19.35.32216.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/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/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- We are on a Windows system
-- Embedded is OFF
-- Printing is ON
-- Profiling is ON
-- User interrupt is ON
-- Floats are OFF
-- Long integers (64bit) are ON
-- Code coverage is OFF
-- MKL Pardiso: ON
-- Floats are OFF
-- Long integers (64bit) are ON
-- Configuring done (2.0s)
-- Generating done (0.0s)
CMake Error:
  Running

   'D:/Programmes/Ninja/ninja.exe' '-C' 'C:/Users/spaceim/.conan2/p/t/osqp6542c78057d19/b/build/Release' '-t' 'recompact'

  failed with:

   ninja: error: build.ninja:320: multiple rules generate out/osqp.lib





CMake Generate step failed.  Build files cannot be regenerated correctly.

osqp/0.6.2: ERROR:
Package 'f7dcd1cec4586c154a242a765a1de011300db8e2' build failed
osqp/0.6.2: WARN: Build folder C:\Users\spaceim\.conan2\p\t\osqp6542c78057d19\b\build\Release
*********************************************************
Recipe 'osqp/0.6.2' cannot build its binary
It is possible that this recipe is not Conan 2.0 ready
If the recipe comes from ConanCenter check: https://conan.io/cci-v2.html
If it is your recipe, check if it is updated to 2.0
*********************************************************

ERROR: osqp/0.6.2: Error in build() method, line 57
        cmake.configure()
        ConanException: Error 1 while executing
@SpaceIm SpaceIm added the bug Something isn't working label Mar 31, 2023
tkhyn added a commit to tkhyn/conan-center-index that referenced this issue Apr 14, 2024
tkhyn added a commit to tkhyn/conan-center-index that referenced this issue Apr 14, 2024
tkhyn added a commit to tkhyn/conan-center-index that referenced this issue Apr 14, 2024
tkhyn added a commit to tkhyn/conan-center-index that referenced this issue Apr 15, 2024
tkhyn added a commit to tkhyn/conan-center-index that referenced this issue Apr 15, 2024
tkhyn added a commit to tkhyn/conan-center-index that referenced this issue Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant