question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[package] 7zip/19.00: Circular dependency when building from source

See original GitHub issue

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: 7zip/19.00
  • Operating System+version: Windows 10
  • Compiler+version: Visual Studio 2017 15.9.14
  • Docker image: N/A
  • Conan version: conan 1.21.2
  • Python version: Python 3.7.0

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
arch=x86
arch_build=x86
build_type=RelWithDebInfo
compiler=Visual Studio
compiler.runtime=MD
compiler.version=15
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

  1. Launch Visual Studio dev prompt (x86 Native Tools Command Prompt for VS2017)
  2. conan install 7zip/19.00 -s arch_build=x86 -s arch=x86 --build missing
  3. Receive the following error: ERROR: Loop detected: 'msys2/20161025' requires '7zip/19.00' which is an ancestor too

Logs (Include/Attach if Applicable)

Click to expand log
C:\projects\conan-qt>conan install 7zip/19.00@ -s arch_build=x86 -s arch=x86 --build missing
Configuration:
[settings]
arch=x86
arch_build=x86
build_type=RelWithDebInfo
compiler=Visual Studio
compiler.runtime=MD
compiler.version=15
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

ERROR: Loop detected: 'msys2/20161025' requires '7zip/19.00' which is an ancestor too

C:\projects\conan-qt>conan install msys2/20161025@ -s arch_build=x86 -s arch=x86 --build missing
Configuration:
[settings]
arch=x86
arch_build=x86
build_type=RelWithDebInfo
compiler=Visual Studio
compiler.runtime=MD
compiler.version=15
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

ERROR: Loop detected: 'lzma_sdk/9.20' requires 'msys2/20161025' which is an ancestor too

C:\projects\conan-qt>conan install lzma_sdk/9.20@ -s arch_build=x86 -s arch=x86 --build missing
Configuration:
[settings]
arch=x86
arch_build=x86
build_type=RelWithDebInfo
compiler=Visual Studio
compiler.runtime=MD
compiler.version=15
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

ERROR: Loop detected: '7zip/19.00' requires 'lzma_sdk/9.20' which is an ancestor too

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
puetzkcommented, Feb 4, 2020

Hmm. Well, the build_requires is apparently already has behavior conditional on having 7zr in PATH. Would it make sense to also/instead make the msys2 build_requires conditional on python version, and use tools.untgz if python is >= 3.3 and has xz support? That would at least limit the scope of the issue to those using python 2 (who would get status quo)

1reaction
shelpercommented, May 6, 2020

any update on this? i am still seeing error like below on windows.

ERROR: Loop detected: 'lzma_sdk/9.20' requires 'msys2/20190524' which is an ancestor too
Read more comments on GitHub >

github_iconTop Results From Across the Web

circular dependency error in R package check, yet no circular ...
Depends and imports both require a dependency. The main difference is that imports doesn't add items to the user's search path.
Read more >
Xcode 13.3 cycle in dependencies between targets
So using latest Xcode 13.3 on an Apple Silicon MacBook I get a compile error the 2nd time and every time there after...
Read more >
Circular Dependency on 5.5.36 - MariaDB Knowledge Base
Does anyone have a clever solution to installing 5.5.36 when compat and common rpms have a circular dependency, Since the contents appear to...
Read more >
circular-dependency-plugin - npm
Detect modules with circular dependencies when bundling with webpack.. Latest version: 5.2.2, last published: 2 years ago.
Read more >
Circular Dependencies in C++ - pvigier's blog
cpp”. For example, these three files should compile successfully. A.h: #pragma once #include "B.h" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found