conan: [bug]: "package-id doesn't match" error with zlib/1.2.11, doxygen/1.9.1, and base lockfiles

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: zlib/1.2.11 and doxygen/1.9.1 (both appear to be important)
  • Operating System+version: Linux Ubuntu 20.04.1
  • Compiler+version: gcc 9.3.0
  • Conan version: conan 1.39.0
  • Python version: Python 3.8.10
  • Conan package ID mode: package_revision_mode
  • Revisions enabled: True

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

This bug report requires two profiles.

test-debug
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.cppstd=20
compiler.version=9
compiler.libcxx=libstdc++11
build_type=Debug
[options]
[build_requires]
[env]
CC=x86_64-linux-gnu-gcc-9
CXX=x86_64-linux-gnu-g++-9
test-release
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.cppstd=20
compiler.version=9
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]
CC=x86_64-linux-gnu-gcc-9
CXX=x86_64-linux-gnu-g++-9

Steps to reproduce (Include if Applicable)

  1. Create a conanfile.txt with the following contents:
[requires]
zlib/1.2.11

[build_requires]
doxygen/1.9.1
  1. Generate a base lockfile, specifying “build all packages”:
conan lock create --base --lockfile-out conan-base.lock conanfile.txt --build
  1. Generate a lockfile from this base lockfile:
conan lock create -l conan-base.lock -pr:h test-debug -pr:b test-release conanfile.txt --build

When I run this sequence, the following error appears after step 3:

ERROR: 'zlib/1.2.11#280f98686dda91120690d3b58806868a' package-id '6af9cc7cb931c5ad942174fd7838eb655717c709' doesn't match the locked one '23b828d52c0630e6b0b96d2945419feb7843c4f8'

Package ID 6af9cc7cb931c5ad942174fd7838eb655717c709 is the package for build type Release; ID 23b828d52c0630e6b0b96d2945419feb7843c4f8 is the package for build type Debug.

Logs (Include/Attach if Applicable)

conan lock create --base --lockfile-out conan-base.lock conanfile.txt --build
$ conan lock create --base --lockfile-out conan-base.lock conanfile.txt --build 
zlib/1.2.11: Not found in local cache, looking in remotes...
zlib/1.2.11: Trying with 'develop'...
Downloading conanmanifest.txt completed [0.35k]                                          
Downloading conanfile.py completed [5.94k]                                               
Downloading conan_export.tgz completed [0.36k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
zlib/1.2.11: Downloaded recipe revision 280f98686dda91120690d3b58806868a
zlib/1.2.11: Forced build from source
doxygen/1.9.1: Not found in local cache, looking in remotes...
doxygen/1.9.1: Trying with 'develop'...
Downloading conanmanifest.txt completed [0.52k]                                          
Downloading conanfile.py completed [4.16k]                                               
Downloading conan_export.tgz completed [0.50k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
doxygen/1.9.1: Downloaded recipe revision c255db0964b60e0ba76a60cdb1a52a6a
xapian-core/1.4.18: Not found in local cache, looking in remotes...
xapian-core/1.4.18: Trying with 'develop'...
Downloading conanmanifest.txt completed [0.52k]                                          
Downloading conanfile.py completed [7.25k]                                               
Downloading conan_export.tgz completed [0.42k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
xapian-core/1.4.18: Downloaded recipe revision 8c004fe7a233faa1df33dabcfed6c2e6
libuuid/1.0.3: Not found in local cache, looking in remotes...
libuuid/1.0.3: Trying with 'develop'...
Downloading conanmanifest.txt completed [0.20k]                                          
Downloading conanfile.py completed [2.88k]                                               
Downloading conan_export.tgz completed [0.32k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
libuuid/1.0.3: Downloaded recipe revision 9c105b3c225d3534bd909800d28c0e7f
libuuid/1.0.3: Forced build from source
libtool/2.4.6: Not found in local cache, looking in remotes...
libtool/2.4.6: Trying with 'develop'...
Downloading conanmanifest.txt completed [0.28k]                                          
Downloading conanfile.py completed [9.29k]                                               
Downloading conan_export.tgz completed [0.31k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
libtool/2.4.6: Downloaded recipe revision 24c41fe9c9cc178ee1f009c2402beb7f
automake/1.16.3: Not found in local cache, looking in remotes...
automake/1.16.3: Trying with 'develop'...
Downloading conanmanifest.txt completed [1.38k]                                          
Downloading conanfile.py completed [5.47k]                                               
Downloading conan_export.tgz completed [0.51k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
automake/1.16.3: Downloaded recipe revision 9f811cf1e5ae7c0f292cf316dd885e17
autoconf/2.71: Not found in local cache, looking in remotes...
autoconf/2.71: Trying with 'develop'...
Downloading conanmanifest.txt completed [1.05k]                                          
Downloading conanfile.py completed [5.02k]                                               
Downloading conan_export.tgz completed [0.47k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
autoconf/2.71: Downloaded recipe revision 0496601066d53aab9abdd1123dade2ef
m4/1.4.18: Not found in local cache, looking in remotes...
m4/1.4.18: Trying with 'develop'...
Downloading conanmanifest.txt completed [0.94k]                                          
Downloading conanfile.py completed [4.84k]                                               
Downloading conan_export.tgz completed [0.46k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
m4/1.4.18: Downloaded recipe revision 8fb1f99229e460194872a73077bd50ab
m4/1.4.18: Forced build from source
autoconf/2.71: Forced build from source
gnu-config/cci.20201022: Not found in local cache, looking in remotes...
gnu-config/cci.20201022: Trying with 'develop'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [2.09k]                                               
Downloading conan_export.tgz completed [0.28k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
gnu-config/cci.20201022: Downloaded recipe revision 2cbbb9aac74039632f715306fdb1ce5a
gnu-config/cci.20201022: Forced build from source
flex/2.6.4: Not found in local cache, looking in remotes...
flex/2.6.4: Trying with 'develop'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [4.04k]                                               
Downloading conan_export.tgz completed [0.26k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
flex/2.6.4: Downloaded recipe revision ac6aa2cae00c591c053d6ee479f3bc06
bison/3.7.1: Not found in local cache, looking in remotes...
bison/3.7.1: Trying with 'develop'...
Downloading conanmanifest.txt completed [0.73k]                                          
Downloading conanfile.py completed [7.10k]                                               
Downloading conan_export.tgz completed [0.50k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
bison/3.7.1: Downloaded recipe revision 4bb3c1142ded811ce0e45f1109c4d75b
Requirements
    zlib/1.2.11 from 'develop' - Downloaded
Packages
    zlib/1.2.11:6af9cc7cb931c5ad942174fd7838eb655717c709 - Build
Build requirements
    autoconf/2.71 from 'develop' - Downloaded
    automake/1.16.3 from 'develop' - Downloaded
    bison/3.7.1 from 'develop' - Downloaded
    doxygen/1.9.1 from 'develop' - Downloaded
    flex/2.6.4 from 'develop' - Downloaded
    gnu-config/cci.20201022 from 'develop' - Downloaded
    libtool/2.4.6 from 'develop' - Downloaded
    libuuid/1.0.3 from 'develop' - Downloaded
    m4/1.4.18 from 'develop' - Cache
    xapian-core/1.4.18 from 'develop' - Downloaded
Build requirements packages
    autoconf/2.71:cb054d0b3e1ca595dc66bc2339d40f1f8f04ab31 - Build
    automake/1.16.3:Package_ID_unknown - Unknown
    bison/3.7.1:Package_ID_unknown - Unknown
    doxygen/1.9.1:Package_ID_unknown - Unknown
    flex/2.6.4:Package_ID_unknown - Unknown
    gnu-config/cci.20201022:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Build
    libtool/2.4.6:Package_ID_unknown - Unknown
    libuuid/1.0.3:6af9cc7cb931c5ad942174fd7838eb655717c709 - Build
    m4/1.4.18:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Build
    xapian-core/1.4.18:Package_ID_unknown - Unknown

Generated lockfile: /home/user/prj/bugcheck/conan-base.lock
conan lock create -l conan-base.lock -pr:h test-debug -pr:b test-release conanfile.txt --build
$ conan lock create -l conan-base.lock -pr:h test-debug -pr:b test-release conanfile.txt --build
zlib/1.2.11: Forced build from source
libuuid/1.0.3: Forced build from source
ERROR: 'zlib/1.2.11#280f98686dda91120690d3b58806868a' package-id '6af9cc7cb931c5ad942174fd7838eb655717c709' doesn't match the locked one '23b828d52c0630e6b0b96d2945419feb7843c4f8'

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments

https://github.com/conan-io/docs/pull/2203, will be published in 1.40, I think we can close this issue now?