conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
950 stars 1.74k forks source link

[package] pulseaudio/14.2 : I'm using clang 18 but error; Compiler does not support -std=gnu11 #25075

Open wbfw109 opened 1 month ago

wbfw109 commented 1 month ago

Description

.. I've installed cmake, conan by poetry tool and

sudo apt install -y cmake build-essential llvm clang libc++-dev libc++abi-dev \
libva-dev libvdpau-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxxf86vm-dev libxcb-glx0-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-dri3-dev uuid-dev libxcb-cursor-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-present-dev libxcb-composite0-dev libxcb-ewmh-dev libxcb-res0-dev libxcb-util-dev libxcb-util0-dev \
pkg-config

Package and Environment Details

import os

from conan import ConanFile
from conan.tools.build import check_max_cppstd, check_min_cppstd
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.env import Environment
from conan.tools.files import copy, get
from conan.tools.gnu import AutotoolsToolchain
from conan.tools.scm import Git

class cpp_studyRecipe(ConanFile):
    name = "cpp_study"
    version = "0.1"
    package_type = "application"

    # Optional metadata
    license = "Apache License 2.0"
    author = ""
    url = ""
    description = "Cpp study"
    topics = ("cpp", "opencv", "vision")

    # Binary configuration
    settings = "os", "compiler", "build_type", "arch"

    options = {"shared": [True, False], "fPIC": [True, False]}

    default_options = {
        "shared": False,
        # "fPIC": True}
        "fPIC": False,
    }

    # Sources are located in the same place as this recipe, copy them to the recipe
    exports_sources = "CMakeLists.txt", "src/*"

    def config_options(self):
        if self.settings.os == "Windows":
            del self.options.fPIC

    def configure(self):
        if self.options.shared:
            # If os=Windows, fPIC will have been removed in config_options()
            # use rm_safe to avoid double delete errors
            self.options.rm_safe("fPIC")

    def layout(self):
        cmake_layout(self)

    def requirements(self):
        self.requires("opencv/[^4.10.0]")
        self.requires("fmt/[^11.0.2]")
        self.requires("pulseaudio/[^14.0]")

        self.test_requires("gtest/1.11.0")

        # self.requires("libmp3lame/[^3.100]")

    def build_requirements(self):
        self.tool_requires("cmake/[^3.30.1]")
        self.tool_requires("ninja/[^1.12.1]")

    def validate(self):
        check_min_cppstd(self, "23")
        check_max_cppstd(self, "23")

    # https://stackoverflow.com/questions/71548337/how-to-choose-ninja-as-cmake-generator-with-conan
    def generate(self):
        deps = CMakeDeps(self)
        deps.generate()
        tc = CMakeToolchain(self)
        tc.generate()

    def build(self):
        cmake = CMake(self)
        cmake.configure()
        cmake.build()

    def package(self):
        cmake = CMake(self)
        cmake.install()
        copy(
            self,
            "LICENSE",
            src=self.source_folder,
            dst=os.path.join(self.package_folder, "licenses"),
        )

Conan profile

[settings] arch=x86_64 build_type=Debug compiler=clang compiler.version=18 compiler.cstd=23 compiler.cppstd=23 compiler.libcxx=libc++ os=Linux

[conf] tools.cmake.cmaketoolchain:generator=Ninja tools.build:compiler_executables={"c": "/usr/bin/clang", "cpp": "/usr/bin/clang++"}

[buildenv] CC=(path)/usr/bin/clang CXX=(path)/usr/bin/clang++

Steps to reproduce

How to reproduce it

when use 'conan install . --build=missing' with the profile,

Logs

======== Input profiles ======== Profile host: [settings] arch=x86_64 build_type=Debug compiler=clang compiler.cppstd=23 compiler.cstd=23 compiler.libcxx=libc++ compiler.version=18 os=Linux [conf] tools.build:compiler_executables={'c': '/usr/bin/clang', 'cpp': '/usr/bin/clang++'} tools.cmake.cmaketoolchain:generator=Ninja [buildenv] CC=(path)/usr/bin/clang CXX=(path)/usr/bin/clang++

Profile build: [settings] arch=x86_64 build_type=Debug compiler=clang compiler.cppstd=23 compiler.cstd=23 compiler.libcxx=libc++ compiler.version=18 os=Linux [conf] tools.build:compiler_executables={'c': '/usr/bin/clang', 'cpp': '/usr/bin/clang++'} tools.cmake.cmaketoolchain:generator=Ninja [buildenv] CC=(path)/usr/bin/clang CXX=(path)/usr/bin/clang++

======== Computing dependency graph ======== Graph root conanfile.py (cpp_study/0.1): /home/wbfw109v2/repo/project_by_language/prototypes/cpp_study/conanfile.py Requirements ade/0.1.2d#f225d0a218a7c9fbb81746806c7de53d - Cache autoconf/2.71#f9307992909d7fb3df459340f1932809 - Cache automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50 - Cache brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519 - Cache bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Cache dav1d/1.4.3#5e2459e132c77183bd16d23d12fd8f4a - Cache eigen/3.4.0#2e192482a8acff96fe34766adca2b24c - Cache expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b - Cache ffmpeg/4.4.4#4a8420d12e27d959e07b23c9b06c650b - Cache flac/1.4.2#d4051f8b37ee93725dea40dfd6a10168 - Cache fmt/11.0.2#5c7438ef4d5d69ab106a41e460ce11f3 - Cache freetype/2.13.2#7934d59c447d72edcd56025dc60e1aeb - Cache imath/3.1.9#2e7f5802b247baae47235b4c8d5642c9 - Cache jbig/20160605#2d29fa02aacd76902e0d2cbbc24631ef - Cache libalsa/1.2.10#e64d5e1ced869a2f676145bab4f4a181 - Cache libaom-av1/3.6.1#a2b22c70d6fce43887881431808ab8a6 - Cache libcap/2.69#7ef2d60864c2e58e89db957be936dc49 - Cache libdeflate/1.19#3ea74a4549efc14d4b1202dc4bfbf602 - Cache libfdk_aac/2.0.3#0115f6598be7303e042684e3a846b12d - Cache libffi/3.4.4#72cccac6139293b6e97ec9cd676547ff - Cache libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd - Cache libjpeg/9e#3cd27a78643419450ee6d3739514d25c - Cache libmp3lame/3.100#44b12d19316eb2b223d98d3e75dae438 - Cache libpng/1.6.43#c219d8f01983bac10c404fc613605eef - Cache libsndfile/1.2.2#b3662f832e29507e8d9840a43737cc14 - Cache libtiff/4.6.0#51d0e7e15d032aeec1b64e65c44ecd9f - Cache libtool/2.4.7#08316dad5c72c541ed21e039e4cf217b - Cache libvpx/1.14.1#3b2a56aea1e29b9a8f7753030c620f38 - Cache libwebp/1.3.2#52f69c4a31c5cf033fdd9230d77a8e38 - Cache libx264/cci.20240224#3c88c23b44dfb42c6d5ccbc5c04900c7 - Cache libx265/3.4#719e50b2b2c3fd1b9133fea12da42c62 - Cache libxml2/2.12.7#1c4d20b7ab8b618ce699733723ba4df6 - Cache m4/1.4.19#b38ced39a01e31fef5435bc634461fd2 - Cache mpg123/1.31.2#ce831c936b2284e2066ab3dc58a2628e - Cache ogg/1.3.5#062626875f5c8c59f069f76f148098ef - Cache opencv/4.10.0#375c6f12ed7803970f0ec84298011dae - Cache openexr/3.2.3#cc76d7ca85ee7dfe03114eaa2a8e8c1b - Cache openh264/2.4.1#f65570895428516317d5236ac3bc5360 - Cache openjpeg/2.5.2#6f7b733e151d1bbf5ed05cbabb846828 - Cache openssl/3.3.1#279e86dc2a7dded8c1fe8512e775bdb1 - Cache opus/1.4#54631f551fc450783fb2df8cd63f80a2 - Cache protobuf/3.21.12#2099e6c66fcd31b52c3afc0c096c1d02 - Cache pulseaudio/14.2#30afeff38a7770cb9cda17a66da49a19 - Cache quirc/1.2#92179dd521786aea0729f2c859cbbcb9 - Cache vaapi/system#9fa40059fb979af4f9b301b84fb2dfa1 - Cache vdpau/system#bdd7d010c4e3d8762a8f6f08a3cf6760 - Cache vorbis/1.3.7#37e58f52e59a6232199b34ef402714a6 - Cache wayland/1.22.0#284b56bdbe57868770f46100784e3b4d - Cache xkbcommon/1.6.0#dababe41c183634d88ad56ef4740c045 - Cache xkeyboard-config/system#57dd5c08e72ab06bc2ee0e756c0a2c41 - Cache xorg/system#f626cbdd0ba57d9c53bce2d8b9362fad - Cache xz_utils/5.4.5#b885d1d79c9d30cff3803f7f551dbe66 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache zstd/1.5.5#1f239731dc45147c7fc2f54bfbde73df - Cache Test requirements gtest/1.15.0#9eb07f548819215e766e41399858454f - Cache Build requirements autoconf/2.71#f9307992909d7fb3df459340f1932809 - Cache automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50 - Cache bison/3.8.2#ed1ba0c42d2ab7ab64fc3a62e9ecc673 - Cache cmake/3.30.1#6d832cf2d46f6ec969ca5ed5b41f91eb - Cache expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b - Cache flex/2.6.4#e35bc44b3fcbcd661e0af0dc5b5b1ad4 - Cache gettext/0.21#a2bd3513f212013764c9040f4c70ed69 - Cache gnu-config/cci.20210814#dc430d754f465e8c74463019672fb97b - Cache libffi/3.4.4#72cccac6139293b6e97ec9cd676547ff - Cache libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd - Cache libtool/2.4.7#08316dad5c72c541ed21e039e4cf217b - Cache libxml2/2.12.7#1c4d20b7ab8b618ce699733723ba4df6 - Cache m4/1.4.19#b38ced39a01e31fef5435bc634461fd2 - Cache meson/1.2.2#29cf77c283f6af08818f6fd8068c37e8 - Cache meson/1.3.0#21176d1eacfb0ad6a1bd0c8c3c93f8b6 - Cache meson/1.3.2#726f715cfedf3f94cc4d30a5d5d9c281 - Cache meson/1.4.0#d04d88a761cf81e05206dbbe0f1bfea2 - Cache meson/1.4.1#d1b27e4988cfee59b212addebb1474d5 - Cache nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568 - Cache nasm/2.16.01#d0aebbd20ccbb6ad9c9c753ab708098c - Cache ninja/1.12.1#fd583651bf0c6a901943495d49878803 - Cache pkgconf/2.0.3#f996677e96e61e6552d85e83756c328b - Cache pkgconf/2.1.0#27f44583701117b571307cf5b5fe5605 - Cache pkgconf/2.2.0#6462942a22803086372db44689ba825f - Cache protobuf/3.21.12#2099e6c66fcd31b52c3afc0c096c1d02 - Cache wayland/1.22.0#284b56bdbe57868770f46100784e3b4d - Cache wayland-protocols/1.33#b9e56b7662c2a25f30bfb4eb72df9ad6 - Cache yasm/1.3.0#fb800a15413dca19bfaef9e4b5d50694 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache Resolved version ranges cmake/[>=3.18 <4]: cmake/3.30.1 cmake/[^3.30.1]: cmake/3.30.1 expat/[>=2.6.2 <3]: expat/2.6.2 fmt/[^11.0.2]: fmt/11.0.2 libpng/[>=1.6 <2]: libpng/1.6.43 libxml2/[>=2.12.5 <3]: libxml2/2.12.7 ninja/[>=1.10.2 <2]: ninja/1.12.1 ninja/[^1.12.1]: ninja/1.12.1 opencv/[^4.10.0]: opencv/4.10.0 openssl/[>=1.1 <4]: openssl/3.3.1 zlib/[>=1.2.11 <2]: zlib/1.3.1

======== Computing necessary packages ======== opencv/4.10.0: Main binary package 'acb98f1adc5c2b45e8fd3938e49d9d7b3060f257' missing opencv/4.10.0: Checking 9 compatible configurations opencv/4.10.0: Compatible configurations not found in cache, checking servers opencv/4.10.0: 'cd383f6d5fb0d4f5cf0f2be520efd750f1fcea1d': compiler.cppstd=11 opencv/4.10.0: '63827ad3f52d412e82aecb3a3b13b63fc69647b6': compiler.cppstd=gnu11 opencv/4.10.0: '0beeaeebc54d2859eb67d9a84ffe0239335564f7': compiler.cppstd=14 opencv/4.10.0: '40d148d27c7719e58e0e8bc75522d4e00465c6a7': compiler.cppstd=gnu14 opencv/4.10.0: '79bd2b24b1cb79a6d912f29869c0b24a7e06f5f5': compiler.cppstd=17 opencv/4.10.0: '35634b5b88a795ac8a803a2193a855b5f9871989': compiler.cppstd=gnu17 opencv/4.10.0: '90729ddc277392108a1c3db5253f30fe1d4eaf51': compiler.cppstd=20 opencv/4.10.0: 'd851d29384a63cf6c5effb1fdf07e593a030e9e3': compiler.cppstd=gnu20 opencv/4.10.0: '0fc017956d175316943b0e491fe5ae0fb0d153cb': compiler.cppstd=gnu23 Requirements ade/0.1.2d#f225d0a218a7c9fbb81746806c7de53d:a918bb0e5b81c109b2456d9e165c897569b06fab#637df46c73b3e9ca66e00f26620ad611 - Cache autoconf/2.71#f9307992909d7fb3df459340f1932809:da39a3ee5e6b4b0d3255bfef95601890afd80709#5b77f70c17ad1741f5845d4e468a347e - Cache automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50:9a4eb3c8701508aa9458b1a73d0633783ecc2270#9719e51a6a62041af6a63e00eef35434 - Cache brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519:e82b803adb665c6cb02af9af5650f37fd68034d5#e0894b3c7b6be5e3af56b4d074755987 - Cache bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4:ee138b0ffebd124b61c0ed6735b0f0f0e5fea34c#8e4e3b739f93bd3e642224a7266cad1a - Cache dav1d/1.4.3#5e2459e132c77183bd16d23d12fd8f4a:94e1f02cd0eaafdc924d1246214fc73990ff6699#ea02926f1cf718e7cd4edc64638651d2 - Cache eigen/3.4.0#2e192482a8acff96fe34766adca2b24c:da39a3ee5e6b4b0d3255bfef95601890afd80709#b2e7c2d86c5d1dbefc534889aa72e12c - Cache expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b:72ba9e17115f4018d6a6ff14d065dc8168c05a35#80ebc4961b2ce83684fb40f68b121cd4 - Cache ffmpeg/4.4.4#4a8420d12e27d959e07b23c9b06c650b:6cb09b03b07f7535c69778fd8903e6bc571e284b - Build flac/1.4.2#d4051f8b37ee93725dea40dfd6a10168:338558923e315be3f84fdae5e25c1432a0d1b76a#a20cbb3e8ded47131bd275b56f912423 - Cache fmt/11.0.2#5c7438ef4d5d69ab106a41e460ce11f3:16bf05ee7de9eb0216f69d3cc04bcfeca113d5d1#61e4d08aa8a7e5ff198022d629237b90 - Cache freetype/2.13.2#7934d59c447d72edcd56025dc60e1aeb:9454dbe939fa093c8ebcde8003dd744784eabf9f#cb9b5f8f9a4c7e84e4bf359d92dae16d - Cache imath/3.1.9#2e7f5802b247baae47235b4c8d5642c9:b61c4451b3bc58d3ed0111f637e2c7e81e8ecb26#50086a9ef47ec48a7d1b33aa2b14e194 - Cache jbig/20160605#2d29fa02aacd76902e0d2cbbc24631ef:eeee321de54f0de0885a16dc23db11531986c639#a74e60976c83e989fb481a34e16d62d0 - Cache libalsa/1.2.10#e64d5e1ced869a2f676145bab4f4a181:6512a81f5a1f87b97ec8607f757a09d000ffe4c5#9a4e537fe606293d5aaace677b784776 - Cache libaom-av1/3.6.1#a2b22c70d6fce43887881431808ab8a6:3ead060f69757eac62556af0fe2f11cbec30c7ed#50fb6cca9f091a23b5f640a9dffe76d1 - Cache libcap/2.69#7ef2d60864c2e58e89db957be936dc49:e79fab2e9abc77d5f8ae92174408c9447c9d2d25#0f882fdc8fb8db3bf8320ce0aa7776d2 - Cache libdeflate/1.19#3ea74a4549efc14d4b1202dc4bfbf602:18c4a68d8fc68a5eb98bd8b04693097b6253838e#8070746999f25bcf0c3f89e589bf3440 - Cache libfdk_aac/2.0.3#0115f6598be7303e042684e3a846b12d:b61c4451b3bc58d3ed0111f637e2c7e81e8ecb26#c1e012cc636ba00e2df0015842878ccc - Cache libffi/3.4.4#72cccac6139293b6e97ec9cd676547ff:18c4a68d8fc68a5eb98bd8b04693097b6253838e#c5f95cdec0f8d8c7f46ed9535c5ec229 - Cache libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd:18c4a68d8fc68a5eb98bd8b04693097b6253838e#ba9f7ec0839dea237f73f1f49002280b - Cache libjpeg/9e#3cd27a78643419450ee6d3739514d25c:18c4a68d8fc68a5eb98bd8b04693097b6253838e#deae1f72e2afb0a9a6116364baf5a755 - Cache libmp3lame/3.100#44b12d19316eb2b223d98d3e75dae438:18c4a68d8fc68a5eb98bd8b04693097b6253838e#260fcfa84a49d3aac09dc1166512ab4f - Cache libpng/1.6.43#c219d8f01983bac10c404fc613605eef:fb7fbe8672b9cc4e2a2b563a1d66a810cbc3e84e#49298401b659644f3765afc9fc8b3e56 - Cache libsndfile/1.2.2#b3662f832e29507e8d9840a43737cc14:475fda91563e48f27132a960e1cadb8b21f9302f#5f4d015ab087dd949221adc075240866 - Cache libtiff/4.6.0#51d0e7e15d032aeec1b64e65c44ecd9f:6b318f6e37b152c375db1aebc79c5c08ed22dac2#bad899019859366bcf3788d62712039e - Cache libtool/2.4.7#08316dad5c72c541ed21e039e4cf217b:18c4a68d8fc68a5eb98bd8b04693097b6253838e#a5f8d21b52ecbe28cc10ce13c0598fc6 - Cache libvpx/1.14.1#3b2a56aea1e29b9a8f7753030c620f38:d9da68aa2551e331e5a7fb84b2c7440b13497eda#30cf39419a9be3d2a225f0131f0f019b - Cache libwebp/1.3.2#52f69c4a31c5cf033fdd9230d77a8e38:9edb1801f68b12d0e9ad2cc91a0f86b04b46e215#249a0bbabf919f68f8726d82467fd19a - Cache libx264/cci.20240224#3c88c23b44dfb42c6d5ccbc5c04900c7:9c3e1b1feb17eb3e066f24e21ce5ba522cc0bd22#7bf5700f04d4456564e9a2911990c73e - Cache libx265/3.4#719e50b2b2c3fd1b9133fea12da42c62:7be68fe0a35d1adc87c161cf70f020c4e29ac3f0#61560c5b20aeb4cd28bfe58672b89485 - Cache libxml2/2.12.7#1c4d20b7ab8b618ce699733723ba4df6:e58bf92e00fd0c584accba274379d7b056adcfe7#baebbbd57f1c08841a830e1d690b3111 - Cache m4/1.4.19#b38ced39a01e31fef5435bc634461fd2:6c3784688ce1ae7a69d803259982d21dd8171d61#88adec53bd133865c005e18479b0d457 - Cache mpg123/1.31.2#ce831c936b2284e2066ab3dc58a2628e:8a081a7b3b4a1cf76761ddd8c127a6d109bbf1ba#24eb0a61df4ea894c6fd16bf84b5efc5 - Cache ogg/1.3.5#062626875f5c8c59f069f76f148098ef:18c4a68d8fc68a5eb98bd8b04693097b6253838e#8db3af42565cf652e6b6fb609f3e58b4 - Cache opencv/4.10.0#375c6f12ed7803970f0ec84298011dae:acb98f1adc5c2b45e8fd3938e49d9d7b3060f257 - Build openexr/3.2.3#cc76d7ca85ee7dfe03114eaa2a8e8c1b:9f54ffd60beebe46035b167dea8c55fd5ef6d99e#0c5d773c5b4db98660e765a87d71d3f3 - Cache openh264/2.4.1#f65570895428516317d5236ac3bc5360:b61c4451b3bc58d3ed0111f637e2c7e81e8ecb26#3bb558c4eb21893c75ecff38d5e6ae7a - Cache openjpeg/2.5.2#6f7b733e151d1bbf5ed05cbabb846828:18c4a68d8fc68a5eb98bd8b04693097b6253838e#df0a61e108a2156c885f249b7047470d - Cache openssl/3.3.1#279e86dc2a7dded8c1fe8512e775bdb1:395d2e6e3b191aafa38e64831699eaef9a54bfa1#a737e9a7d8bedb4ac2f7ab3a7471e424 - Cache opus/1.4#54631f551fc450783fb2df8cd63f80a2:02e6aa86d687fed535f359279f308128b14a487e#85f362c8de0f33cecea64d40b2351b28 - Cache protobuf/3.21.12#2099e6c66fcd31b52c3afc0c096c1d02:8947ffbf98c9372066aea35793064169d4648066#30e56d51916682f85ba41d92f4ba9dd5 - Cache pulseaudio/14.2#30afeff38a7770cb9cda17a66da49a19:11163bd72edfa8a64f1022d859d8f33bc067da22 - Build quirc/1.2#92179dd521786aea0729f2c859cbbcb9:f5dac08e1249b496e70aaf2140f7c12c3fd6628e#27e3dfa71257bd95cfb3c9d8e7dcdcfc - Cache vaapi/system#9fa40059fb979af4f9b301b84fb2dfa1:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache vdpau/system#bdd7d010c4e3d8762a8f6f08a3cf6760:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache vorbis/1.3.7#37e58f52e59a6232199b34ef402714a6:e418c0cfc835b931a74ef59e3933f2f6a6eed224#f1a9ef319576568fa4291e0c7d12abef - Cache wayland/1.22.0#284b56bdbe57868770f46100784e3b4d:9cbd032cd5a3ee137c6b53e195b9614a0f0309f3#0f11007acaf89857bc5d9bb37f5a76ab - Cache xkbcommon/1.6.0#dababe41c183634d88ad56ef4740c045:760d0c33699f71c1763345b5703fc0733d6b3605#e864166ba4107969947cfe1730826db7 - Cache xkeyboard-config/system#57dd5c08e72ab06bc2ee0e756c0a2c41:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache xorg/system#f626cbdd0ba57d9c53bce2d8b9362fad:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache xz_utils/5.4.5#b885d1d79c9d30cff3803f7f551dbe66:18c4a68d8fc68a5eb98bd8b04693097b6253838e#275b060be11b38ef38fba4cbf274b201 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:18c4a68d8fc68a5eb98bd8b04693097b6253838e#7d9542197782e9e61f539d2ea7a0fbbb - Cache zstd/1.5.5#1f239731dc45147c7fc2f54bfbde73df:10caf0d1c7b292f41102651d40faa99a145c4f72#8037044709fd4c5f38d67a5d68aed9f7 - Cache Test requirements gtest/1.15.0#9eb07f548819215e766e41399858454f:c3ce6fc4c31d3eb849c5d1d7d14c68621d1e3179#003a4d68f23e39893964919222864ae6 - Cache Build requirements autoconf/2.71#f9307992909d7fb3df459340f1932809:da39a3ee5e6b4b0d3255bfef95601890afd80709#5b77f70c17ad1741f5845d4e468a347e - Cache automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50:9a4eb3c8701508aa9458b1a73d0633783ecc2270#9719e51a6a62041af6a63e00eef35434 - Cache cmake/3.30.1#6d832cf2d46f6ec969ca5ed5b41f91eb:63fead0844576fc02943e16909f08fcdddd6f44b#041a38980949bccd356d9142f4e0a2bf - Cache gettext/0.21#a2bd3513f212013764c9040f4c70ed69:755e81b559c84845cb7dc883c3c41ba3d9e53a8d#66ee45a7a6c7f789a70b7b75efbc5583 - Cache libtool/2.4.7#08316dad5c72c541ed21e039e4cf217b:18c4a68d8fc68a5eb98bd8b04693097b6253838e#a5f8d21b52ecbe28cc10ce13c0598fc6 - Cache m4/1.4.19#b38ced39a01e31fef5435bc634461fd2:6c3784688ce1ae7a69d803259982d21dd8171d61#88adec53bd133865c005e18479b0d457 - Cache ninja/1.12.1#fd583651bf0c6a901943495d49878803:6c3784688ce1ae7a69d803259982d21dd8171d61#ca1ac6f84506778fb890c86bad8ba940 - Cache pkgconf/2.1.0#27f44583701117b571307cf5b5fe5605:d64aaee87d753dff24e174b1e2aba3ff67a2d980#4fa4be72de14076bfca5ecc6aeff9ea4 - Cache protobuf/3.21.12#2099e6c66fcd31b52c3afc0c096c1d02:8947ffbf98c9372066aea35793064169d4648066#30e56d51916682f85ba41d92f4ba9dd5 - Cache wayland-protocols/1.33#b9e56b7662c2a25f30bfb4eb72df9ad6:da39a3ee5e6b4b0d3255bfef95601890afd80709#f85f08cf8936bf98a464db0e7a468e8f - Cache wayland/1.22.0#284b56bdbe57868770f46100784e3b4d:9cbd032cd5a3ee137c6b53e195b9614a0f0309f3#0f11007acaf89857bc5d9bb37f5a76ab - Cache yasm/1.3.0#fb800a15413dca19bfaef9e4b5d50694:6c3784688ce1ae7a69d803259982d21dd8171d61#1af2f772a30dbf2ffd471081869be81c - Cache Skipped binaries bison/3.8.2, expat/2.6.2, flex/2.6.4, gnu-config/cci.20210814, libffi/3.4.4, libiconv/1.17, libxml2/2.12.7, meson/1.2.2, meson/1.3.0, meson/1.3.2, meson/1.4.0, meson/1.4.1, nasm/2.15.05, nasm/2.16.01, pkgconf/2.0.3, pkgconf/2.2.0, zlib/1.3.1 vaapi/system: System requirements: already installed vdpau/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 ======== ade/0.1.2d: Already installed! (1 of 61) brotli/1.1.0: Already installed! (2 of 61) bzip2/1.0.8: Already installed! (3 of 61) cmake/3.30.1: Already installed! (4 of 61) cmake/3.30.1: Appending PATH environment variable: /home/wbfw109v2/.conan2/p/cmakefaa1321642d5b/p/bin eigen/3.4.0: Already installed! (5 of 61) expat/2.6.2: Already installed! (6 of 61) fmt/11.0.2: Already installed! (7 of 61) gtest/1.15.0: Already installed! (8 of 61) imath/3.1.9: Already installed! (9 of 61) jbig/20160605: Already installed! (10 of 61) libaom-av1/3.6.1: Already installed! (11 of 61) libcap/2.69: Already installed! (12 of 61) libdeflate/1.19: Already installed! (13 of 61) libfdk_aac/2.0.3: Already installed! (14 of 61) libffi/3.4.4: Already installed! (15 of 61) libiconv/1.17: Already installed! (16 of 61) libjpeg/9e: Already installed! (17 of 61) libwebp/1.3.2: Already installed! (18 of 61) m4/1.4.19: Already installed! (19 of 61) ninja/1.12.1: Already installed! (20 of 61) ogg/1.3.5: Already installed! (21 of 61) openjpeg/2.5.2: Already installed! (22 of 61) opus/1.4: Already installed! (23 of 61) quirc/1.2: Already installed! (24 of 61) vaapi/system: Already installed! (25 of 61) vdpau/system: Already installed! (26 of 61) xkeyboard-config/system: Already installed! (27 of 61) xorg/system: Already installed! (28 of 61) xz_utils/5.4.5: Already installed! (29 of 61) yasm/1.3.0: Already installed! (30 of 61) yasm/1.3.0: Appending PATH environment variable: /home/wbfw109v2/.conan2/p/b/yasmb2f8f399ba3fe/p/bin zlib/1.3.1: Already installed! (31 of 61) zstd/1.5.5: Already installed! (32 of 61) gettext/0.21: Already installed! (33 of 61) gettext/0.21: 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. gettext/0.21: 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. libmp3lame/3.100: Already installed! (34 of 61) libvpx/1.14.1: Already installed! (35 of 61) libx264/cci.20240224: Already installed! (36 of 61) libx265/3.4: Already installed! (37 of 61) dav1d/1.4.3: Already installed! (38 of 61) pkgconf/2.1.0: Already installed! (39 of 61) 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.33: Already installed! (40 of 61) mpg123/1.31.2: Already installed! (41 of 61) mpg123/1.31.2: Appending PATH environment variable: /home/wbfw109v2/.conan2/p/b/mpg126ed945c9c17e1/p/bin openh264/2.4.1: Already installed! (42 of 61) libalsa/1.2.10: Already installed! (43 of 61) autoconf/2.71: Already installed! (44 of 61) flac/1.4.2: Already installed! (45 of 61) libpng/1.6.43: Already installed! (46 of 61) libtiff/4.6.0: Already installed! (47 of 61) openexr/3.2.3: Already installed! (48 of 61) openssl/3.3.1: Already installed! (49 of 61) protobuf/3.21.12: Already installed! (50 of 61) vorbis/1.3.7: Already installed! (51 of 61) libxml2/2.12.7: Already installed! (52 of 61) libxml2/2.12.7: Appending PATH environment variable: /home/wbfw109v2/.conan2/p/b/libxm1f1cb27cd8166/p/bin automake/1.16.5: Already installed! (53 of 61) freetype/2.13.2: Already installed! (54 of 61) libsndfile/1.2.2: Already installed! (55 of 61) wayland/1.22.0: Already installed! (56 of 61) libtool/2.4.7: Already installed! (57 of 61) libtool/2.4.7: 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. libtool/2.4.7: 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. libtool/2.4.7: 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. libtool/2.4.7: 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. xkbcommon/1.6.0: Already installed! (58 of 61)

-------- Installing package pulseaudio/14.2 (59 of 61) -------- pulseaudio/14.2: Building from source pulseaudio/14.2: Package pulseaudio/14.2:11163bd72edfa8a64f1022d859d8f33bc067da22 pulseaudio/14.2: Copying sources to build folder pulseaudio/14.2: Building your package in /home/wbfw109v2/.conan2/p/b/pulsef4b7e555e03d5/b pulseaudio/14.2: Calling generate() pulseaudio/14.2: Generators folder: /home/wbfw109v2/.conan2/p/b/pulsef4b7e555e03d5/b/build-debug/conan pulseaudio/14.2: Generating aggregated env files pulseaudio/14.2: Generated aggregated env files: ['conanbuild.sh'] pulseaudio/14.2: Calling build() pulseaudio/14.2: RUN: "/home/wbfw109v2/.conan2/p/b/pulsef4b7e555e03d5/b/src/configure" --disable-shared --enable-static --prefix=/ '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' --enable-shared=no --enable-static=yes --enable-glib2=no --with-fftw=no '--with-udev-rules-dir=${prefix}/bin/udev/rules.d' --with-systemduserunitdir=/home/wbfw109v2/.conan2/p/b/pulsef4b7e555e03d5/b/build-debug/ignore --enable-alsa=yes --enable-x11=yes --enable-openssl=yes --enable-dbus=no '--libexecdir=${prefix}/bin' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '1000' is supported by ustar format... yes checking whether GID '1000' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether to enable maintainer-specific portions of Makefiles... yes checking for stow... no checking whether make supports nested variables... (cached) yes checking whether ln -s works... yes checking for gcc... /usr/bin/clang checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/clang accepts -g... yes checking for /usr/bin/clang option to accept ISO C89... none needed checking whether /usr/bin/clang understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of /usr/bin/clang... gcc3 checking whether we are using the GNU C++ compiler... yes checking whether /usr/bin/clang++ accepts -g... yes checking dependency style of /usr/bin/clang++... gcc3 checking how to run the C preprocessor... /usr/bin/clang -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking whether /usr/bin/clang needs -traditional... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define EXTENSIONS... yes checking whether /usr/bin/clang++ supports C++11 features by default... yes checking for gm4... /home/wbfw109v2/.conan2/p/b/m4838c7df5f758c/p/bin/m4 checking pkg-config is at least version 0.9.0... yes checking for a sed that does not truncate output... /usr/bin/sed checking whether NLS is requested... yes checking for msgfmt... /home/wbfw109v2/.conan2/p/b/gette6532680a6b0b4/p/bin/msgfmt checking for gmsgfmt... /home/wbfw109v2/.conan2/p/b/gette6532680a6b0b4/p/bin/msgfmt checking for xgettext... /home/wbfw109v2/.conan2/p/b/gette6532680a6b0b4/p/bin/xgettext checking for msgmerge... /home/wbfw109v2/.conan2/p/b/gette6532680a6b0b4/p/bin/msgmerge checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for ld used by /usr/bin/clang... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking host operating system... linux checking whether C compiler accepts -std=gnu11... no configure: error: *** Compiler does not support -std=gnu11

pulseaudio/14.2: ERROR: Package '11163bd72edfa8a64f1022d859d8f33bc067da22' build failed pulseaudio/14.2: WARN: Build folder /home/wbfw109v2/.conan2/p/b/pulsef4b7e555e03d5/b/build-debug ERROR: pulseaudio/14.2: Error in build() method, line 131 autotools.configure() ConanException: Error 1 while executing

naja1987 commented 2 weeks ago

Can confirm this issue. I got it to work when I changed the line https://github.com/conan-io/conan-center-index/blob/c2c5964ace4be2a0905a5503554c7a2642e71e0d/recipes/pulseaudio/all/conanfile.py#L117 to if self.settings.compiler == "clang" and self.settings.compiler.version in (15,18):

FeignClaims commented 1 week ago

also fails when using clang 19.