Open paulharris opened 8 months ago
Hi @paulharris
Note that I have -s build_type=Debug in the command line, despite having the correct Release/Debug setting in the profiles. Not sure if that plays a part.
yes, whatever you type in the command line has precedence and will overwrite what you have in the profiles. In this case, even if the host profile has build_type=Release, it will be overwritten to Debug.
Regarding your report, thanks for it and the detail.
But I am afraid it is still not enough to know what could be happening. It would be necessary to have something we could reproduce. Ideally to remove most of the other unrelated things, try to leave only pcre2/10.42
dependency, and remove the many others. I am sure that removing most of the dependencies (we don't know the conanfile
by the way, it would be necessary to try to reproduce the issue)
Yes I tried to reproduce with a simple recipe, without luck. I'm happy to close this for now, I just wanted to capture it before I reset my cache (I'm changing what compiler I'm using, so no need to keep old builds/packages).
Sounds good, please re-open or create a new one if you manage to have something manageable that we can reproduce. Thanks!
I have something that is a bit simpler that acts weird. I specified build_type on the command line, but pcre2 wasn't happy.
NOT_ON_C3I=1 conan install . -pr:h=gcc-13 -pr:b=gcc-13 -s build_type=Debug --build=missing
CMake Error at /home/paul/.conan2/p/b/pcre29c508a64fd798/b/build/None/generators/cmakedeps_macros.cmake:84 (message):
Please, set the CMAKE_BUILD_TYPE variable when calling to CMake adding the
'-DCMAKE_BUILD_TYPE=<build_type>' argument.
NOTE the "build/NONE/generators" NOTE that there is no build_type in the profile.
IF I add build_type in the profile, IT WORKS . What?
RECIPE:
from conan import ConanFile
required_conan_version = ">=1.59.0"
class TestPcre2(ConanFile):
settings = "os", "compiler", "build_type", "arch"
def requirements(self):
self.requires("qt/6.6.1")
self.requires("pcre2/10.42")
options = {}
default_options = {
"qt/*:qtdoc": False,
"qt/*:with_dbus": False,
"qt/*:with_pq": False,
"qt/*:with_mysql": False,
"qt/*:with_odbc": False,
"qt/*:with_openal": False,
"qt/*:disabled_features": "egl linuxfb vnc linux_v4l",
}
PROFILE (note: had conflicts with expat, not relevant)
[replace_requires]
expat/*: expat/[>2]
[settings]
arch=x86_64
os=Linux
compiler=gcc
compiler.cppstd=gnu20
compiler.version=13
compiler.libcxx=libstdc++11
Command line:
NOT_ON_C3I=1 conan install . -pr:h=gcc-13 -pr:b=gcc-13 -s build_type=Debug --build=missing
Now, its already half-built, it wants to build pcre2, and it says this:
======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Debug
compiler=gcc
compiler.cppstd=20
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux
[conf]
tools.build:compiler_executables={'c': '/usr/bin/gcc-13', 'cpp': '/usr/bin/g++-13'}
tools.cmake.cmaketoolchain:generator=Ninja
Profile build:
[settings]
arch=x86_64
compiler=gcc
compiler.cppstd=20
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux
[conf]
tools.build:compiler_executables={'c': '/usr/bin/gcc-13', 'cpp': '/usr/bin/g++-13'}
tools.cmake.cmaketoolchain:generator=Ninja
======== Computing dependency graph ========
Graph root
conanfile.py: /build/mx/mxrap-native/conanfile.py
Requirements
brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519 - Cache
bzip2/1.0.8#8779e3ee0cf27649212cd3fc0db4438b - Cache
double-conversion/3.3.0#33321c201741cc32b51169c6d2d05e60 - Cache
expat/2.6.0#2f92fb3cf504e9731aba6d20dcd641bf - Cache
fontconfig/2.15.0#15a13e5b6d5931ff0144f92b579f6dd5 - Cache
freetype/2.13.2#fa35264c88edc6421a850d08c67630f4 - Cache
glib/2.78.1#6da549beee7208bd9fad0e6141581e8e - Cache
harfbuzz/8.3.0#7e7ea00066eaaa818d469d24dbc3a106 - Cache
icu/74.2#129a9b08abace8b2c748a567fc9b843a - Cache
libelf/0.8.13#4f70a3555809ae50cc8add44f0f84288 - Cache
libffi/3.4.4#35eb63842b505824b70aedc1baefc916 - Cache
libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd - Cache
libmount/2.39#9b2a81545c28668d2281639cc1657dd5 - Cache
libpng/1.6.42#fdba4ebf89df3c55d6db0145a2a66a24 - Cache
libselinux/3.5#776f35e238362c6b893220f437cb89ae - Cache
libxml2/2.12.3#071b32ddc1353a239d3697319c68beca - Cache
md4c/0.4.8#02b5e5d8640a6ef9fbd663134edfa1e4 - Cache
opengl/system#b29589c04d6df84c110d6acb066ab653 - Cache
openssl/3.2.1#39bd48ed31f1f3fbdcd75a0648aaedcf - Cache
pcre2/10.42#0a19ec28ac9b29b4b01b2ad1a345dfce - Cache
qt/6.6.1#dbfcf92fc905fce82a3642de76f06987 - Cache
sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6 - Cache
util-linux-libuuid/2.39.2#339f80aea7e5cf507b5b9839a128909f - Cache
wayland/1.22.0#44a1f9bf1092bea2f3d38e50db225ea6 - Cache
xkbcommon/1.5.0#9a5d6acb805f1f7d5c3162dfd45fa23b - Cache
xkeyboard-config/system#57dd5c08e72ab06bc2ee0e756c0a2c41 - Cache
xorg/system#c7039fe88e71c34398de15694304f0f0 - Cache
zlib/1.3.1#af8f2ef3d8e0fddf1975281d7fe43bf6 - Cache
Build requirements
autoconf/2.71#00a1e46d8ba5baaf7f10d64c1a6a0342 - Cache
bison/3.8.2#ed1ba0c42d2ab7ab64fc3a62e9ecc673 - Cache
bzip2/1.0.8#8779e3ee0cf27649212cd3fc0db4438b - Cache
cmake/3.28.1#92f79424d7b65b12a84a2180866c3a78 - Cache
expat/2.6.0#2f92fb3cf504e9731aba6d20dcd641bf - Cache
flex/2.6.4#e35bc44b3fcbcd661e0af0dc5b5b1ad4 - Cache
glib/2.78.1#6da549beee7208bd9fad0e6141581e8e - Cache
gnu-config/cci.20210814#dc430d754f465e8c74463019672fb97b - Cache
gperf/3.1#a9335f8833b550f10f655fd243c72978 - Cache
libelf/0.8.13#4f70a3555809ae50cc8add44f0f84288 - Cache
libffi/3.4.4#35eb63842b505824b70aedc1baefc916 - Cache
libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd - Cache
libmount/2.39#9b2a81545c28668d2281639cc1657dd5 - Cache
libselinux/3.5#776f35e238362c6b893220f437cb89ae - Cache
libxml2/2.12.3#071b32ddc1353a239d3697319c68beca - Cache
m4/1.4.19#b38ced39a01e31fef5435bc634461fd2 - Cache
meson/1.2.2#aace9dcc1db58fa42ecb5292f724092d - Cache
meson/1.2.3#7d2bfe1bfc0c4edd9579e812344d5490 - Cache
meson/1.3.0#83e9030e0cb3418759e72d3631213a5a - Cache
meson/1.3.1#23ad39607b5907947ed1a511bc02deee - Cache
ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21 - Cache
pcre2/10.42#0a19ec28ac9b29b4b01b2ad1a345dfce - Cache
pkgconf/2.0.3#f996677e96e61e6552d85e83756c328b - Cache
pkgconf/2.1.0#27f44583701117b571307cf5b5fe5605 - Cache
wayland/1.22.0#44a1f9bf1092bea2f3d38e50db225ea6 - Cache
wayland-protocols/1.32#d871f62234751f8d72e90445a44d5e49 - Cache
zlib/1.3.1#af8f2ef3d8e0fddf1975281d7fe43bf6 - Cache
Replaced requires
expat/2.6.0: expat/[>2]
expat/2.5.0: expat/[>2]
Resolved version ranges
cmake/[>=3.21.1 <4]: cmake/3.28.1
expat/[>2]: expat/2.6.0
openssl/[>=1.1 <4]: openssl/3.2.1
zlib/[>=1.2.11 <2]: zlib/1.3.1
======== Computing necessary packages ========
double-conversion/3.3.0: Checking 11 compatible configurations
double-conversion/3.3.0: Main binary package '973058e923b04a2702ae9885402c96fa5d7e8617' missing. Using compatible package 'fdf879af2e64dee2111594ee3efbbfa1132c5a66': compiler.cppstd=gnu20
icu/74.2: Checking 11 compatible configurations
icu/74.2: Main binary package '0fd96b3c3a84d91811e146dba93fad5cd35e4c22' missing. Using compatible package 'a09754479cf9aa1bcc0f36781d6cb3e150f2abec': compiler.cppstd=gnu20
harfbuzz/8.3.0: Checking 11 compatible configurations
harfbuzz/8.3.0: Compatible configurations not found in cache, checking servers
harfbuzz/8.3.0: '27bc790389dc6795519e969ba5bdca9bbe1b06cf': compiler.cppstd=98
harfbuzz/8.3.0: '5703d1f5e0043bb92a44bab2a718b78c24b36c4d': compiler.cppstd=gnu98
harfbuzz/8.3.0: '3d3a8f4174678192be54612c93c8358fc89d2134': compiler.cppstd=11
harfbuzz/8.3.0: '67f2baa723ea356f472f97f5693292dfa00d2d62': compiler.cppstd=gnu11
harfbuzz/8.3.0: '1acc4f4fa1f256a79bed8073a55ac71d41be5be3': compiler.cppstd=14
harfbuzz/8.3.0: 'f4d6443bc75f3337bfe007d56520723c422d1476': compiler.cppstd=gnu14
harfbuzz/8.3.0: '44f64ddb955bd1d82bfd3fc4bacfbc8be1dabeb2': compiler.cppstd=17
harfbuzz/8.3.0: '49879548fc5531317fbe4f04b34b2765b14fbe7b': compiler.cppstd=gnu17
harfbuzz/8.3.0: '6b83f970ba7a1d4417126f999d56cc5d1f60a01e': compiler.cppstd=gnu20
harfbuzz/8.3.0: 'd148be67aad7571fab26096f4fa9f3ba53fcd518': compiler.cppstd=23
harfbuzz/8.3.0: '223ef7914fc5403e64b2d2f4acbf0c7cceeb9559': compiler.cppstd=gnu23
qt/6.6.1: Checking 5 compatible configurations
qt/6.6.1: Compatible configurations not found in cache, checking servers
qt/6.6.1: 'f4ba7268415a97f62b10d4e7fdddaa1456951539': compiler.cppstd=17
qt/6.6.1: 'af4408209a5b4c8a4c27a30e195c98d26b8f958e': compiler.cppstd=gnu17
qt/6.6.1: '3f5a7e0567ff4cf25729721fa4a3e1b07c7b018c': compiler.cppstd=gnu20
qt/6.6.1: 'd222f7614982bcb09e655dc9daa87fdb4fec26f9': compiler.cppstd=23
qt/6.6.1: '085d638f67d64cc957c8cd9aaaf1714eb0f41546': compiler.cppstd=gnu23
Requirements
brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519:43605d214e137ec2764ff1d6f88f2a9439d2b5d0#a6a3cbce1da5afdeac72891fcbb88dd6 - Cache
bzip2/1.0.8#8779e3ee0cf27649212cd3fc0db4438b:f658a7d5064609a1016f930e03b14f656c1975b8#42ba7d4e0a1e9acf877e1de50151a5e4 - Cache
double-conversion/3.3.0#33321c201741cc32b51169c6d2d05e60:fdf879af2e64dee2111594ee3efbbfa1132c5a66#7de5dc1f22acb2468cf120b54f1865dd - Cache
expat/2.6.0#2f92fb3cf504e9731aba6d20dcd641bf:0e2bb68acc3f7240359efcb9860580187cd817dd#68631e7544534a714623de8d63b14cf4 - Cache
fontconfig/2.15.0#15a13e5b6d5931ff0144f92b579f6dd5:6b8b490bf135a0e9891c2873b1b58b649d59505d - Build
freetype/2.13.2#fa35264c88edc6421a850d08c67630f4:2c665e46db758d42ba27d094051dfd1a2e90735d - Build
glib/2.78.1#6da549beee7208bd9fad0e6141581e8e:31fb42d1af5e065523d0f27ba51faa14aff6f6c0 - Build
harfbuzz/8.3.0#7e7ea00066eaaa818d469d24dbc3a106:816595ae50a0674943ae0dc097689ac4902b7bfb - Build
icu/74.2#129a9b08abace8b2c748a567fc9b843a:a09754479cf9aa1bcc0f36781d6cb3e150f2abec#7717e9f51c6251488b927cfd0fa17186 - Cache
libelf/0.8.13#4f70a3555809ae50cc8add44f0f84288:38b2cc754fb9d09f09f3ffbd1ad34ef29bbb4b77 - Build
libffi/3.4.4#35eb63842b505824b70aedc1baefc916:38b2cc754fb9d09f09f3ffbd1ad34ef29bbb4b77#0d482804b8b6faf7db7a0c799eeb7d48 - Cache
libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd:38b2cc754fb9d09f09f3ffbd1ad34ef29bbb4b77#6bc81283a16d427816d9e11cc8f2234f - Cache
libmount/2.39#9b2a81545c28668d2281639cc1657dd5:38b2cc754fb9d09f09f3ffbd1ad34ef29bbb4b77#4d2d54b0ba10717e9ddef26ab9c21bee - Cache
libpng/1.6.42#fdba4ebf89df3c55d6db0145a2a66a24:4d2a6b62bdd46355315a0dd5a633f8dc38760ffc#7a1ff14ff34e59edcfd73544284048d4 - Cache
libselinux/3.5#776f35e238362c6b893220f437cb89ae:3d4dc27690d258bc2a976ffa1486c33bdd757fa4 - Build
libxml2/2.12.3#071b32ddc1353a239d3697319c68beca:beb9d1e97dc68d615414002908e56125a86f1e41 - Build
md4c/0.4.8#02b5e5d8640a6ef9fbd663134edfa1e4:ef3acf7b6fe8ed0fd7d648d0c727dd4b012d280a#14817553874f857007e018bc25d05248 - Cache
opengl/system#b29589c04d6df84c110d6acb066ab653:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache
openssl/3.2.1#39bd48ed31f1f3fbdcd75a0648aaedcf:e32efef8691313c26d4834d7e43a6ccab4031c00#81a14a3b8567411f6ae9550ef3ad08c1 - Cache
pcre2/10.42#0a19ec28ac9b29b4b01b2ad1a345dfce:7629796b82df2b52164f91870b24bf01c7c966a8#e4fdd34b558f65a474639c6e61c2c92d - Cache
qt/6.6.1#dbfcf92fc905fce82a3642de76f06987:2755e10005b809d0cf59b21df7bd7615fd967fbf - Build
sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6:ee9ef457fceb807852d606f727e2ae81f05efb43#47d89799e17d9e561b384883c7b6dfd2 - Cache
util-linux-libuuid/2.39.2#339f80aea7e5cf507b5b9839a128909f:38b2cc754fb9d09f09f3ffbd1ad34ef29bbb4b77#117bbedba1d762be7110005f434434bf - Cache
wayland/1.22.0#44a1f9bf1092bea2f3d38e50db225ea6:e865a4b8dd825453d4537ae0e9095bf71e177e18 - Build
xkbcommon/1.5.0#9a5d6acb805f1f7d5c3162dfd45fa23b:bc2e1632047be106dc12131f1e385f7e713164bd - Build
xkeyboard-config/system#57dd5c08e72ab06bc2ee0e756c0a2c41:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache
xorg/system#c7039fe88e71c34398de15694304f0f0:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache
zlib/1.3.1#af8f2ef3d8e0fddf1975281d7fe43bf6:38b2cc754fb9d09f09f3ffbd1ad34ef29bbb4b77#533906af0f139925b36ece1fa41d3ea1 - Cache
Build requirements
autoconf/2.71#00a1e46d8ba5baaf7f10d64c1a6a0342:da39a3ee5e6b4b0d3255bfef95601890afd80709#7440f8a166fc2063a7fc2b7bed8eacb3 - Cache
bison/3.8.2#ed1ba0c42d2ab7ab64fc3a62e9ecc673:18197216e9cfbea845bfc82eabfdb6d4d9546af5 - Build
bzip2/1.0.8#8779e3ee0cf27649212cd3fc0db4438b:9bda5094c08403e8d7f720bc82e8f73cff2344e7#941e1c844d3d7bc50d9fe9a69710b713 - Cache
cmake/3.28.1#92f79424d7b65b12a84a2180866c3a78:63fead0844576fc02943e16909f08fcdddd6f44b#501f62ef1d3711dd838dc1d91a2d866e - Cache
expat/2.6.0#2f92fb3cf504e9731aba6d20dcd641bf:e14390aa082b3212a0aac7a67c24b1fdc0f97174#ebd932dcc7ea5f36ada2949010d28aa9 - Cache
flex/2.6.4#e35bc44b3fcbcd661e0af0dc5b5b1ad4:7af6b976ed392a74268476ccaff527e6c2809f42#572d6194886ac98e9cd1fdebc033f610 - Cache
glib/2.78.1#6da549beee7208bd9fad0e6141581e8e:56cb934d578bc92d99c14779912e32f57e4f5f0e - Build
gnu-config/cci.20210814#dc430d754f465e8c74463019672fb97b:da39a3ee5e6b4b0d3255bfef95601890afd80709#22618e30bd9e326eb95e824dc90cc860 - Cache
gperf/3.1#a9335f8833b550f10f655fd243c72978:63fead0844576fc02943e16909f08fcdddd6f44b#31eba92082eeb9aba9e1ac560f53ff13 - Cache
libelf/0.8.13#4f70a3555809ae50cc8add44f0f84288:7af6b976ed392a74268476ccaff527e6c2809f42 - Build
libffi/3.4.4#35eb63842b505824b70aedc1baefc916:7af6b976ed392a74268476ccaff527e6c2809f42#8a87eebe28230076d84950e9bc015310 - Cache
libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd:7af6b976ed392a74268476ccaff527e6c2809f42#42aa178a1e6ea17c0d7dc2274e01c891 - Cache
libmount/2.39#9b2a81545c28668d2281639cc1657dd5:7af6b976ed392a74268476ccaff527e6c2809f42#10183fd510c01d460a21629648385acd - Cache
libselinux/3.5#776f35e238362c6b893220f437cb89ae:61322bd5e62717f7b6c7ba08097ba987510bfe21 - Build
libxml2/2.12.3#071b32ddc1353a239d3697319c68beca:eb6eb8fd63ed9690f6fa2187516876bdc63e95c3 - Build
m4/1.4.19#b38ced39a01e31fef5435bc634461fd2:63fead0844576fc02943e16909f08fcdddd6f44b#9530f8f5ced7f00cd055e7604fb98275 - Cache
meson/1.2.2#aace9dcc1db58fa42ecb5292f724092d:da39a3ee5e6b4b0d3255bfef95601890afd80709#2bfd29b9a8744e08daf4c11bdb43a4ce - Cache
meson/1.2.3#7d2bfe1bfc0c4edd9579e812344d5490:da39a3ee5e6b4b0d3255bfef95601890afd80709#4becb3f1c11645ff6ca5e0618cef53e7 - Cache
meson/1.3.0#83e9030e0cb3418759e72d3631213a5a:da39a3ee5e6b4b0d3255bfef95601890afd80709#58c1084c0045f884355e79a276509348 - Cache
meson/1.3.1#23ad39607b5907947ed1a511bc02deee:da39a3ee5e6b4b0d3255bfef95601890afd80709#63cd3207f6b4bc458239ae82c3e98e8f - Cache
ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21:63fead0844576fc02943e16909f08fcdddd6f44b#70900abb42378ab14284181d953cfe94 - Cache
pcre2/10.42#0a19ec28ac9b29b4b01b2ad1a345dfce:8c78ed481d270869061c953f2001dc5efd3ee0de - Build
pkgconf/2.0.3#f996677e96e61e6552d85e83756c328b:9e48e75edb412bd7e3a0f977719b58dff2c23b51#0ff95dbbecbacd90b10aa9dd6b0fa4f7 - Cache
pkgconf/2.1.0#27f44583701117b571307cf5b5fe5605:9e48e75edb412bd7e3a0f977719b58dff2c23b51#cd75fbc1c9f323d0c1022d6eb4780844 - Cache
wayland-protocols/1.32#d871f62234751f8d72e90445a44d5e49:da39a3ee5e6b4b0d3255bfef95601890afd80709#6746bae53eb0ea0d4a69e958720820d5 - Cache
wayland/1.22.0#44a1f9bf1092bea2f3d38e50db225ea6:b58d505e2668b213391ab19f1218212a187e1e0b - Build
zlib/1.3.1#af8f2ef3d8e0fddf1975281d7fe43bf6:7af6b976ed392a74268476ccaff527e6c2809f42#c6cbd4aad563d748f4a63bacc65c7eb8 - Cache
opengl/system: System requirements: already installed
xkeyboard-config/system: System requirements: already installed
xorg/system: System requirements: already installed
xorg/system: System requirements: already installed
======== Installing packages ========
brotli/1.1.0: Already installed! (1 of 55)
bzip2/1.0.8: Already installed! (2 of 55)
bzip2/1.0.8: Already installed! (3 of 55)
cmake/3.28.1: Already installed! (4 of 55)
cmake/3.28.1: Appending PATH environment variable: /home/paul/.conan2/p/cmakecf6b18ccaa9f5/p/bin
double-conversion/3.3.0: Already installed! (5 of 55)
expat/2.6.0: Already installed! (6 of 55)
expat/2.6.0: Already installed! (7 of 55)
gnu-config/cci.20210814: Already installed! (8 of 55)
gperf/3.1: Already installed! (9 of 55)
icu/74.2: Already installed! (10 of 55)
libffi/3.4.4: Already installed! (11 of 55)
libffi/3.4.4: Already installed! (12 of 55)
libiconv/1.17: Already installed! (13 of 55)
libiconv/1.17: Already installed! (14 of 55)
libmount/2.39: Already installed! (15 of 55)
libmount/2.39: Already installed! (16 of 55)
m4/1.4.19: Already installed! (17 of 55)
md4c/0.4.8: Already installed! (18 of 55)
ninja/1.11.1: Already installed! (19 of 55)
opengl/system: Already installed! (20 of 55)
sqlite3/3.45.0: Already installed! (21 of 55)
util-linux-libuuid/2.39.2: Already installed! (22 of 55)
xkeyboard-config/system: Already installed! (23 of 55)
xorg/system: Already installed! (24 of 55)
zlib/1.3.1: Already installed! (25 of 55)
zlib/1.3.1: Already installed! (26 of 55)
pkgconf/2.0.3: Already installed! (27 of 55)
pkgconf/2.0.3: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/2.0.3: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/2.0.3: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/2.0.3: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/2.0.3: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/2.0.3: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/2.1.0: Already installed! (28 of 55)
pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/2.1.0: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
wayland-protocols/1.32: Already installed! (29 of 55)
autoconf/2.71: Already installed! (30 of 55)
flex/2.6.4: Already installed! (31 of 55)
flex/2.6.4: Appending PATH environment variable: /home/paul/.conan2/p/b/flex32bd6f09329f4/p/bin
flex/2.6.4: Setting LEX environment variable: /home/paul/.conan2/p/b/flex32bd6f09329f4/p/bin/flex
flex/2.6.4: Appending PATH environment variable: /home/paul/.conan2/p/b/flex32bd6f09329f4/p/bin
flex/2.6.4: Setting LEX environment variable: /home/paul/.conan2/p/b/flex32bd6f09329f4/p/bin/flex
flex/2.6.4: Appending PATH environment variable: /home/paul/.conan2/p/b/flex32bd6f09329f4/p/bin
flex/2.6.4: Setting LEX environment variable: /home/paul/.conan2/p/b/flex32bd6f09329f4/p/bin/flex
libpng/1.6.42: Already installed! (32 of 55)
meson/1.2.2: Already installed! (33 of 55)
meson/1.2.3: Already installed! (34 of 55)
meson/1.3.0: Already installed! (35 of 55)
meson/1.3.1: Already installed! (36 of 55)
openssl/3.2.1: Already installed! (37 of 55)
pcre2/10.42: Already installed! (38 of 55)
pcre2/10.42: Appending PATH environment variable: /home/paul/.conan2/p/b/pcre26efdcf38f22cf/p/bin
-------- Installing package pcre2/10.42 (39 of 55) --------
pcre2/10.42: Building from source
pcre2/10.42: Package pcre2/10.42:8c78ed481d270869061c953f2001dc5efd3ee0de
pcre2/10.42: Copying sources to build folder
pcre2/10.42: Building your package in /home/paul/.conan2/p/b/pcre29c508a64fd798/b
pcre2/10.42: Calling generate()
pcre2/10.42: Generators folder: /home/paul/.conan2/p/b/pcre29c508a64fd798/b/build/None/generators
pcre2/10.42: CMakeToolchain generated: conan_toolchain.cmake
pcre2/10.42: CMakeToolchain generated: CMakePresets.json
pcre2/10.42: CMakeToolchain generated: ../../../src/CMakeUserPresets.json
pcre2/10.42: Generating aggregated env files
pcre2/10.42: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
pcre2/10.42: Calling build()
pcre2/10.42: Running CMake.configure()
pcre2/10.42: RUN: cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="/home/paul/.conan2/p/b/pcre29c508a64fd798/b/build/None/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/paul/.conan2/p/b/pcre29c508a64fd798/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "/home/paul/.conan2/p/b/pcre29c508a64fd798/b/src"
CMake Deprecation Warning at CMakeLists.txt:106 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Using Conan toolchain: /home/paul/.conan2/p/b/pcre29c508a64fd798/b/build/None/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The C compiler identification is GNU 13.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-13 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Conan: Target declared 'BZip2::BZip2'
CMake Error at /home/paul/.conan2/p/b/pcre29c508a64fd798/b/build/None/generators/cmakedeps_macros.cmake:84 (message):
Please, set the CMAKE_BUILD_TYPE variable when calling to CMake adding the
'-DCMAKE_BUILD_TYPE=<build_type>' argument.
Call Stack (most recent call first):
/home/paul/.conan2/p/b/pcre29c508a64fd798/b/build/None/generators/BZip2Config.cmake:19 (check_build_type_defined)
CMakeLists.txt:127 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
pcre2/10.42: ERROR:
Package '8c78ed481d270869061c953f2001dc5efd3ee0de' build failed
pcre2/10.42: WARN: Build folder /home/paul/.conan2/p/b/pcre29c508a64fd798/b/build/None
ERROR: pcre2/10.42: Error in build() method, line 125
cmake.configure()
ConanException: Error 1 while executing
Environment details
Linux Ubuntu Focal Clang-17 Conan 2.1.0 Python 3.8.10
Steps to reproduce
This seems hard to reproduce so I captured as much as I could. I'm building my project like so:
NOT_ON_C3I=1 conan install . -pr:h=clang-asan -pr:b=clang -s build_type=Debug --build=missing
Host profile has debug+asan, build profile is just Release. I'm pretty sure I didn't change the profiles during the build, I don't think I ever has asan in the build profile.
Note that I have
-s build_type=Debug
in the command line, despite having the correct Release/Debug setting in the profiles. Not sure if that plays a part.The end result is I had a Release pcre2 trying to link to the Release libbz2.a (this is correct), but there were linker errors related to asan symbols. When I checked with
xxd libbz2.a
(correct specific library file from the error), I could see asan symbol names. That library is in the .conan2 cache, and it's conaninfo.txt has this info:There is not enough info to see all the profile flags ... unless that IS IT ? If true, then how did the asan symbols end up in the library?
Note that bzip2 was not built in this particular build run (it had already been built).
Logs
KEY THINGS from below: pcre2 being build is for the 'build' profile, ie release flags, no asan. It is trying to link to:
/home/paul/.conan2/p/b/bzip27b557cc7fd54c/p/lib/libbz2.a
From the conan graph dump at the start (full log below):