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] pcre2/10.42: Fails to compile - loop initial declarations are only allowed in C99 or C11 mode #19725

Closed
bryce-cahill opened this issue Sep 10, 2023 · 0 comments · Fixed by #19726
Labels
bug Something isn't working

Comments

@bryce-cahill
Copy link
Contributor

Description

PCRE2 is currently failing to compile when cross compiling

error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code

Package and Environment Details

  • Package Name/Version: zlib/1.2.8
  • Operating System+version: Linux Ubuntu 18.04
  • Compiler+version: GCC 8
  • Docker image: conanio/gcc8
  • Conan version: conan 1.18.0
  • Python version: Python 3.7.4

Conan profile

Host profile:
[settings]
arch=armv7
build_type=Release
compiler=gcc
compiler.cppstd=gnu14
compiler.libcxx=libstdc++11
compiler.version=4.9
os=Linux
[buildenv]
CC=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
CXX=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
CMAKE_C_COMPILER=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
CMAKE_CXX_COMPILER=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
STRIP=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-strip
AS=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-as
AR=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar
LD=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld
FC=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gfortran
GCOV=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcov

Build profile:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu14
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux

Steps to reproduce

conan create . --version=10.42 --build=missing --profile:b=default --profile:h=host_profile

Logs

Click to expand log
conan create . --version=10.42 --build=missing --profile:b=default --profile:h=host_profile

======== Exporting recipe to the cache ========
pcre2/10.42: Exporting package recipe: /mnt/data/recipes/pcre2/all/conanfile.py
pcre2/10.42: exports: File 'conandata.yml' found. Exporting it...
pcre2/10.42: Calling export_sources()
pcre2/10.42: Copied 1 '.yml' file: conandata.yml
pcre2/10.42: Copied 1 '.py' file: conanfile.py
pcre2/10.42: Exported to cache folder: /root/.conan2/p/pcre203829c169d3c6/e
pcre2/10.42: Exported: pcre2/10.42#e1c62a17f9844a3386627e3f6c6aee1b (2023-09-10 21:19:26 UTC)

======== Input profiles ========
Profile host:
[settings]
arch=armv7
build_type=Release
compiler=gcc
compiler.cppstd=gnu14
compiler.libcxx=libstdc++11
compiler.version=4.9
os=Linux
[buildenv]
CC=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
CXX=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
CMAKE_C_COMPILER=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
CMAKE_CXX_COMPILER=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
STRIP=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-strip
AS=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-as
AR=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar
LD=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld
FC=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gfortran
GCOV=/root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcov

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu14
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux


======== Computing dependency graph ========
Graph root
    cli
Requirements
    bzip2/1.0.8#411fc05e80d47a89045edc1ee6f23c1d - Cache
    pcre2/10.42#e1c62a17f9844a3386627e3f6c6aee1b - Cache
    zlib/1.2.13#97d5730b529b4224045fe7090592d4c1 - Cache

======== Computing necessary packages ========
Requirements
    bzip2/1.0.8#411fc05e80d47a89045edc1ee6f23c1d:865a5d462c834b1d3f8731abe1eed86d3f5d351c#eb4135a02a4d5adfe222db47ab9eff2f - Cache
    pcre2/10.42#e1c62a17f9844a3386627e3f6c6aee1b:7ea413191afb5971197659bec7768025878fccb9 - Build
    zlib/1.2.13#97d5730b529b4224045fe7090592d4c1:59ca810128384c10cc00bfa99b1e05f204ac5bfd#88dab451908c7f34377650395fcb1c69 - Cache

======== Installing packages ========
bzip2/1.0.8: Already installed! (1 of 3)
zlib/1.2.13: Already installed! (2 of 3)

-------- Installing package pcre2/10.42 (3 of 3) --------
pcre2/10.42: Building from source
pcre2/10.42: Package pcre2/10.42:7ea413191afb5971197659bec7768025878fccb9
pcre2/10.42: Copying sources to build folder
pcre2/10.42: Building your package in /root/.conan2/p/b/pcre24d18cc78ddd74/b
pcre2/10.42: Calling generate()
pcre2/10.42: Generators folder: /root/.conan2/p/b/pcre24d18cc78ddd74/b/build/Release/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 "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/root/.conan2/p/b/pcre24d18cc78ddd74/b/build/Release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/root/.conan2/p/b/pcre24d18cc78ddd74/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/root/.conan2/p/b/pcre24d18cc78ddd74/b/src"
-- Using Conan toolchain: /root/.conan2/p/b/pcre24d18cc78ddd74/b/build/Release/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 4.9.4
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Conan: Target declared 'BZip2::BZip2'
-- Conan: Including build module from '/root/.conan2/p/b/bzip2108836bb5dafa/p/lib/cmake/conan-official-bzip2-variables.cmake'
-- Conan: Target declared 'ZLIB::ZLIB'
CMake Warning at CMakeLists.txt:129 (FIND_PACKAGE):
  By not providing "FindReadline.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Readline",
  but CMake did not find one.

  Could not find a package configuration file provided by "Readline" with any
  of the following names:

    ReadlineConfig.cmake
    readline-config.cmake

  Add the installation prefix of "Readline" to CMAKE_PREFIX_PATH or set
  "Readline_DIR" to a directory containing one of the above files.  If
  "Readline" provides a separate development package or SDK, be sure it has
  been installed.


CMake Warning at CMakeLists.txt:130 (FIND_PACKAGE):
  By not providing "FindEditline.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Editline",
  but CMake did not find one.

  Could not find a package configuration file provided by "Editline" with any
  of the following names:

    EditlineConfig.cmake
    editline-config.cmake

  Add the installation prefix of "Editline" to CMAKE_PREFIX_PATH or set
  "Editline_DIR" to a directory containing one of the above files.  If
  "Editline" provides a separate development package or SDK, be sure it has
  been installed.


-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for bcopy
-- Looking for bcopy - found
-- Looking for memfd_create
-- Looking for memfd_create - not found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for secure_getenv
-- Looking for secure_getenv - not found
-- Looking for strerror
-- Looking for strerror - found
-- Performing Test HAVE_REALPATH
-- Performing Test HAVE_REALPATH - Success
-- Performing Test HAVE_ATTRIBUTE_UNINITIALIZED
-- Performing Test HAVE_ATTRIBUTE_UNINITIALIZED - Failed
-- Performing Test INTEL_CET_ENABLED
-- Performing Test INTEL_CET_ENABLED - Failed
-- 
-- 
-- PCRE2-10.42 configuration summary:
-- 
--   Install prefix .................. : /root/.conan2/p/b/pcre24d18cc78ddd74/p
--   C compiler ...................... : /root/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
--   C compiler flags ................ : -O3 -DNDEBUG
-- 
--   Build 8 bit PCRE2 library ....... : True
--   Build 16 bit PCRE2 library ...... : True
--   Build 32 bit PCRE2 library ...... : True
--   Enable JIT compiling support .... : False
--   Use SELinux allocator in JIT .... : OFF
--   Enable Unicode support .......... : ON
--   Newline char/sequence ........... : LF
--   \R matches only ANYCRLF ......... : OFF
--   \C is disabled .................. : OFF
--   EBCDIC coding ................... : OFF
--   EBCDIC coding with NL=0x25 ...... : OFF
--   Rebuild char tables ............. : OFF
--   Internal link size .............. : 2
--   Parentheses nest limit .......... : 250
--   Heap limit ...................... : 20000000
--   Match limit ..................... : 10000000
--   Match depth limit ............... : MATCH_LIMIT
--   Build shared libs ............... : OFF
--   Build static libs ............... : ON
--      with PIC enabled ............. : OFF
--   Build pcre2grep ................. : True
--   Enable JIT in pcre2grep ......... : ON
--   Enable callouts in pcre2grep .... : ON
--   Enable callout fork in pcre2grep. : True
--   Buffer size for pcre2grep ....... : 20480
--   Build tests (implies pcre2test .. : OFF
--                and pcre2grep)
--   Link pcre2grep with libz ........ : True
--   Link pcre2grep with libbz2 ...... : True
--   Link pcre2test with libeditline . : Library not found
--   Link pcre2test with libreadline . : Library not found
--   Support Valgrind .................: OFF
--   Use %zu and %td ..................: AUTO
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /root/.conan2/p/b/pcre24d18cc78ddd74/b/build/Release

pcre2/10.42: Running CMake.build()
pcre2/10.42: RUN: cmake --build "/root/.conan2/p/b/pcre24d18cc78ddd74/b/build/Release" -- -j8
[  3%] Building C object CMakeFiles/pcre2-16-static.dir/src/pcre2_auto_possess.c.o
[  3%] Building C object CMakeFiles/pcre2-16-static.dir/pcre2_chartables.c.o
[  3%] Building C object CMakeFiles/pcre2-32-static.dir/pcre2_chartables.c.o
[  5%] Building C object CMakeFiles/pcre2-32-static.dir/src/pcre2_auto_possess.c.o
[  6%] Building C object CMakeFiles/pcre2-8-static.dir/src/pcre2_auto_possess.c.o
[  5%] Building C object CMakeFiles/pcre2-32-static.dir/src/pcre2_compile.c.o
[  9%] Building C object CMakeFiles/pcre2-8-static.dir/src/pcre2_compile.c.o
[  7%] Building C object CMakeFiles/pcre2-8-static.dir/pcre2_chartables.c.o
[ 10%] Building C object CMakeFiles/pcre2-16-static.dir/src/pcre2_compile.c.o
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c: In function ‘compile_branch’:
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5859:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
             for (int i = 0; i < 32; i++) pbits[i] |= cbits[(int)i + taboffset];
             ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5859:13: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5861:22: error: redefinition of ‘i’
             for (int i = 0; i < 32; i++) pbits[i] &= ~cbits[(int)i + taboffset];
                      ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5859:22: note: previous definition of ‘i’ was here
             for (int i = 0; i < 32; i++) pbits[i] |= cbits[(int)i + taboffset];
                      ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5861:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
             for (int i = 0; i < 32; i++) pbits[i] &= ~cbits[(int)i + taboffset];
             ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5875:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= (uint8_t)(~pbits[i]);
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5877:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++) classbits[i] |= pbits[i];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5875:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= (uint8_t)(~pbits[i]);
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5877:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= pbits[i];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5916:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_digit];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5921:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5916:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_digit];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5921:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++)
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5926:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_word];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5921:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5926:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_word];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5931:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5926:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_word];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5931:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++)
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5943:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_space];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5931:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5943:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_space];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5948:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5943:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_space];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5948:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++)
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6190:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] = 255 ^ classbits[i];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6216:8: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
        for (int i = 0; i < 32; i++) classbits[i] = 255 ^ classbits[i];
        ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6290:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 0; i < (int)verbarglen; i++)
     ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6773:7: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
       for (unsigned int i = 0; i < cb->names_found; i++, ng++)
       ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:7132:14: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
         else for (int i = 0; i < replicate; i++)
              ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:7313:15: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
               for (uint32_t i = 1; i < repeat_min; i++)
               ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:7357:16: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           else for (uint32_t i = repeat_max; i >= 1; i--)
                ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c: In function ‘compile_branch’:
[ 11%] Building C object CMakeFiles/pcre2-32-static.dir/src/pcre2_config.c.o
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5859:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
             for (int i = 0; i < 32; i++) pbits[i] |= cbits[(int)i + taboffset];
             ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5859:13: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5861:22: error: redefinition of ‘i’
             for (int i = 0; i < 32; i++) pbits[i] &= ~cbits[(int)i + taboffset];
                      ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5859:22: note: previous definition of ‘i’ was here
             for (int i = 0; i < 32; i++) pbits[i] |= cbits[(int)i + taboffset];
                      ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5861:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
             for (int i = 0; i < 32; i++) pbits[i] &= ~cbits[(int)i + taboffset];
             ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5875:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= (uint8_t)(~pbits[i]);
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5877:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++) classbits[i] |= pbits[i];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5875:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= (uint8_t)(~pbits[i]);
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5877:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= pbits[i];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5916:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_digit];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5921:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5916:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_digit];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5921:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++)
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5926:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_word];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5921:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5926:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_word];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5931:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5926:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_word];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5931:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++)
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5943:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_space];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5931:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5943:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_space];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5948:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5943:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_space];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5948:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++)
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6190:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] = 255 ^ classbits[i];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6216:8: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
        for (int i = 0; i < 32; i++) classbits[i] = 255 ^ classbits[i];
        ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6290:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 0; i < (int)verbarglen; i++)
     ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6773:7: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
       for (unsigned int i = 0; i < cb->names_found; i++, ng++)
       ^
[ 12%] Building C object CMakeFiles/pcre2-8-static.dir/src/pcre2_config.c.o
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:7132:14: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
         else for (int i = 0; i < replicate; i++)
              ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:7313:15: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
               for (uint32_t i = 1; i < repeat_min; i++)
               ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:7357:16: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           else for (uint32_t i = repeat_max; i >= 1; i--)
                ^
make[2]: *** [CMakeFiles/pcre2-8-static.dir/build.make:104: CMakeFiles/pcre2-8-static.dir/src/pcre2_compile.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 13%] Building C object CMakeFiles/pcre2-32-static.dir/src/pcre2_context.c.o
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c: In function ‘compile_branch’:
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5859:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
             for (int i = 0; i < 32; i++) pbits[i] |= cbits[(int)i + taboffset];
             ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5859:13: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5861:22: error: redefinition of ‘i’
             for (int i = 0; i < 32; i++) pbits[i] &= ~cbits[(int)i + taboffset];
                      ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5859:22: note: previous definition of ‘i’ was here
             for (int i = 0; i < 32; i++) pbits[i] |= cbits[(int)i + taboffset];
                      ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5861:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
             for (int i = 0; i < 32; i++) pbits[i] &= ~cbits[(int)i + taboffset];
             ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5875:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= (uint8_t)(~pbits[i]);
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5877:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++) classbits[i] |= pbits[i];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5875:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= (uint8_t)(~pbits[i]);
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5877:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= pbits[i];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5916:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_digit];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5921:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5916:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_digit];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5921:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++)
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5926:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_word];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5921:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5926:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_word];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5931:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5926:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_word];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5931:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++)
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5943:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_space];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5931:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5943:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_space];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5948:20: error: redefinition of ‘i’
           for (int i = 0; i < 32; i++)
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5943:20: note: previous definition of ‘i’ was here
           for (int i = 0; i < 32; i++) classbits[i] |= cbits[i+cbit_space];
                    ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:5948:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++)
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6190:11: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           for (int i = 0; i < 32; i++) classbits[i] = 255 ^ classbits[i];
           ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6216:8: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
        for (int i = 0; i < 32; i++) classbits[i] = 255 ^ classbits[i];
        ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6290:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 0; i < (int)verbarglen; i++)
     ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:6773:7: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
       for (unsigned int i = 0; i < cb->names_found; i++, ng++)
       ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:7132:14: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
         else for (int i = 0; i < replicate; i++)
              ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:7313:15: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
               for (uint32_t i = 1; i < repeat_min; i++)
               ^
/root/.conan2/p/b/pcre24d18cc78ddd74/b/src/src/pcre2_compile.c:7357:16: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
           else for (uint32_t i = repeat_max; i >= 1; i--)
                ^
make[2]: *** [CMakeFiles/pcre2-32-static.dir/build.make:104: CMakeFiles/pcre2-32-static.dir/src/pcre2_compile.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 14%] Building C object CMakeFiles/pcre2-16-static.dir/src/pcre2_config.c.o
make[2]: *** [CMakeFiles/pcre2-16-static.dir/build.make:104: CMakeFiles/pcre2-16-static.dir/src/pcre2_compile.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:143: CMakeFiles/pcre2-16-static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:169: CMakeFiles/pcre2-32-static.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/pcre2-8-static.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

pcre2/10.42: ERROR: 
Package '7ea413191afb5971197659bec7768025878fccb9' build failed
pcre2/10.42: WARN: Build folder /root/.conan2/p/b/pcre24d18cc78ddd74/b/build/Release
*********************************************************
Recipe 'pcre2/10.42' 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: pcre2/10.42: Error in build() method, line 127
        cmake.build()
        ConanException: Error 2 while executing
@bryce-cahill bryce-cahill added the bug Something isn't working label Sep 10, 2023
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

Successfully merging a pull request may close this issue.

1 participant