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

criterion: Could not initialize inheritable arena: Not enough space, lib 2.3.2 msvc, Windows 10 X64 #525

Open
Raduq91 opened this issue Mar 12, 2024 · 2 comments

Comments

@Raduq91
Copy link

Raduq91 commented Mar 12, 2024

v2.3.2
Tried this criterion-v2.3.2-windows-msvc-x86_64.tar.bz2

In VS2022 using msvc/Visual Studio 2022 (v143); (same with intel compiler):
sample code:

#include <criterion/criterion.h>

Test(misc, failing, .description = "Just a failing test") {
    cr_assert(0);
}

Test(misc, skipped, .description = " This one is skipped", .disabled = true) {
}

running the output exe:
criterion: Could not initialize inheritable arena: Not enough space

I built from the latest source using msys64 mingw, it built the same sample I tried and it worked:

E:\msys64\home\Radu\Criterion\build\samples>description.c.bin.exe
[----] ../samples/description.c:4: Assertion Failed
[----]
[----]   The expression 0 is false.
[----]
[FAIL] misc::failing: (0.00s)
[====] Synthesis: Tested: 1 | Passing: 0 | Failing: 1 | Crashing: 0

I tried the new "E:\msys64\home\Radu\Criterion\build\src\libcriterion.dll.a" as > criterion.lib (and the new include files and new built libcriterion-3.dll), same issue.

Tried this command from VS2022 project command prompt:

C:\Users\Radu\source\repos\clang_llvm_toolset>cl.exe clang_llvm_toolset.cpp /EHsc /I"C:\Users\Radu\source\repos\clang_llvm_toolset\Include" /link "C:\Users\Radu\source\repos\clang_llvm_toolset\criterion.lib" /ENTRY:mainCRTStartup
Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33130 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

clang_llvm_toolset.cpp
Microsoft (R) Incremental Linker Version 14.38.33130.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:clang_llvm_toolset.exe
C:\Users\Radu\source\repos\clang_llvm_toolset\criterion.lib
/ENTRY:mainCRTStartup
clang_llvm_toolset.obj
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__cr_malloc referenced in function "void __cdecl criterion::`dynamic initializer for 'malloc''(void)" (??__Emalloc@criterion@@YAXXZ)
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__cr_calloc referenced in function "void __cdecl criterion::`dynamic initializer for 'calloc''(void)" (??__Ecalloc@criterion@@YAXXZ)
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__cr_realloc referenced in function "void __cdecl criterion::`dynamic initializer for 'realloc''(void)" (??__Erealloc@criterion@@YAXXZ)
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__cr_free referenced in function "void __cdecl criterion::`dynamic initializer for 'free''(void)" (??__Efree@criterion@@YAXXZ)
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__cr_asprintf referenced in function _misc_failing_impl
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__cr_asprintf_free referenced in function _misc_failing_impl
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__criterion_send_assert referenced in function _misc_failing_impl
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__criterion_abort_test referenced in function _misc_failing_impl
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__criterion_test_die referenced in function __catch$?misc_failing_jmp@@YAXXZ$0
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__cr_log referenced in function "void __cdecl criterion::logging::`dynamic initializer for 'log''(void)" (??__Elog@logging@criterion@@YAXXZ)
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__cr_translate_assert_msg referenced in function _misc_failing_impl
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__cri_asserts_passed_incr referenced in function _misc_failing_impl
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__criterion_internal_test_setup referenced in function _misc_failing_impl
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__criterion_internal_test_main referenced in function __catch$?misc_failing_jmp@@YAXXZ$1
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__criterion_internal_test_teardown referenced in function __catch$?misc_failing_jmp@@YAXXZ$4
clang_llvm_toolset.obj : error LNK2019: unresolved external symbol __imp__criterion_options referenced in function _misc_failing_impl
LIBCMT.lib(exe_main.obj) : error LNK2019: unresolved external symbol _main referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
C:\Users\Radu\source\repos\clang_llvm_toolset\criterion.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86'
clang_llvm_toolset.exe : fatal error LNK1120: 17 unresolved externals

Added /machine:x64:

C:\Users\Radu\source\repos\clang_llvm_toolset>cl.exe clang_llvm_toolset.cpp /EHsc /I"C:\Users\Radu\source\repos\clang_llvm_toolset\Include" /link "C:\Users\Radu\source\repos\clang_llvm_toolset\criterion.lib" /ENTRY:mainCRTStartup /machine:x64
Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33130 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

clang_llvm_toolset.cpp
Microsoft (R) Incremental Linker Version 14.38.33130.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:clang_llvm_toolset.exe
C:\Users\Radu\source\repos\clang_llvm_toolset\criterion.lib
/ENTRY:mainCRTStartup
/machine:x64
clang_llvm_toolset.obj
clang_llvm_toolset.obj : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'
@Raduq91
Copy link
Author

Raduq91 commented Mar 12, 2024

and tried to build latest criterion from source using the clang package of meson and it failed (mingw-w64-clang-x86_64-meson ) :


Radu@DAPD98DP MSYS ~
$ meson --version
1.3.2

Radu@DAPD98DP MSYS ~
$ cd Criterion/

Radu@DAPD98DP MSYS ~/Criterion
$ meson build --wipe
The Meson build system
Version: 1.3.2
Source dir: E:/msys64/home/Radu/Criterion
Build dir: E:/msys64/home/Radu/Criterion/build
Build type: native build
Project name: criterion
Project version: 2.4.2
C compiler for the host machine: cc (clang 17.0.2 "clang version 17.0.2")
C linker for the host machine: cc ld.lld 17.0.2
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (E:\msys64\clang64\bin/python3.EXE)
Program git found: YES (E:\msys64\usr\bin/git.EXE)
meson.build:39: WARNING: add_languages is missing native:, assuming languages are wanted for both ho
st and build.
C++ compiler for the host machine: c++ (clang 17.0.2 "clang version 17.0.2")
C++ linker for the host machine: c++ ld.lld 17.0.2
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wno-unused-value: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Compiler for C supports arguments -fexceptions: YES
Compiler for C supports arguments /SAFESEH:NO: NO
Compiler for C supports arguments /source-charset:utf-8: NO
Checking for function "clock_gettime" : NO
Checking for function "fopencookie" : NO
Checking for function "funopen" : NO
Checking for function "getcwd" : YES
Checking for function "isatty" : YES
Checking for function "nl_langinfo" : NO
Checking for function "open_memstream" : NO
Checking for function "strtok_r" : YES
Checking for function "strtok_s" : YES
Header "time.h" has symbol "CLOCK_MONOTONIC_RAW" : NO
Checking for function "GetCurrentDirectory" : NO
Checking for function "PathIsRelative" : NO
Has header "synchapi.h" : YES
Program gettext found: YES (E:\msys64\clang64\bin/gettext.EXE)
Program msgfmt found: YES (E:\msys64\clang64\bin/msgfmt.EXE)
Program msginit found: YES (E:\msys64\clang64\bin/msginit.EXE)
Program msgmerge found: YES (E:\msys64\clang64\bin/msgmerge.EXE)
Program xgettext found: YES (E:\msys64\clang64\bin/xgettext.EXE)
Found pkg-config: YES (E:\msys64\clang64\bin/pkg-config.EXE) 2.0.3
Found CMake: E:\msys64\clang64\bin/cmake.EXE (3.27.7)
Run-time dependency debugbreak found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency debugbreak

Executing subproject debugbreak

debugbreak| Project name: debugbreak
debugbreak| Project version: undefined
debugbreak| C compiler for the host machine: cc (clang 17.0.2 "clang version 17.0.2")
debugbreak| C linker for the host machine: cc ld.lld 17.0.2
debugbreak| Build targets in project: 5
debugbreak| Subproject debugbreak finished.

Dependency debugbreak from subproject subprojects/debugbreak found: YES undefined
Run-time dependency klib found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency klib

Executing subproject klib

klib| Project name: klib
klib| Project version: undefined
klib| C compiler for the host machine: cc (clang 17.0.2 "clang version 17.0.2")
klib| C linker for the host machine: cc ld.lld 17.0.2
klib| Build targets in project: 5
klib| Subproject klib finished.

Dependency klib from subproject subprojects/klib found: YES undefined
Run-time dependency threads found: YES
Run-time dependency nanomsg found: NO (tried pkgconfig and cmake)

Executing subproject nanomsg-cmake method cmake

nanomsg-cmake| Found CMake: E:\msys64\clang64\bin/cmake.EXE (3.27.7)

| Configuring the build directory with CMake version 3.27.7
| Running CMake with: -G Ninja -DCMAKE_INSTALL_PREFIX=E:/msys64/clang64 -DNN_TESTS=False -DNN_TOOLS=
False -DNN_STATIC_LIB=True -DBUILD_SHARED_LIBS=False -DCMAKE_POSITION_INDEPENDENT_CODE=True
|   - build directory:          E:/msys64/home/Radu/Criterion/build/subprojects/nanomsg/__CMake_buil
d
|   - source directory:         E:/msys64/home/Radu/Criterion/subprojects/nanomsg
|   - toolchain file:           E:/msys64/home/Radu/Criterion/build/subprojects/nanomsg/__CMake_buil
d/CMakeMesonToolchainFile.cmake
|   - preload file:             E:/msys64/clang64/lib/python3.11/site-packages/mesonbuild/cmake/data
/preload.cmake
|   - trace args:               --trace-expand --trace-format=json-v1 --no-warn-unused-cli --trace-r
edirect=cmake_trace.txt
|   - disabled policy warnings: [CMP0025, CMP0047, CMP0056, CMP0060, CMP0065, CMP0066, CMP0067, CMP0
082, CMP0089, CMP0102]

| Put cmake in trace mode, but with variables expanded.
| Put cmake in trace mode and sets the trace output format.
| Not searching for unused variables given on the command line.
| Put cmake in trace mode and redirect trace output to a file instead of stderr.
| Trace will be written to cmake_trace.txt
| CMake Deprecation Warning at CMakeLists.txt:27 (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.


| -- The C compiler identification is Clang 17.0.2
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - done
| -- Check for working C compiler: E:/msys64/clang64/bin/cc.EXE - skipped
| -- Detecting C compile features
| -- Detecting C compile features - done
| -- Detected nanomsg ABI v6 (v6.0.1)
| -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
| -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
| -- Looking for pthread_create in pthreads
| -- Looking for pthread_create in pthreads - not found
| -- Looking for pthread_create in pthread
| -- Looking for pthread_create in pthread - found
| -- Found Threads: TRUE
| -- OS System is Windows
| -- OS Version is 6.2.9200
| -- Looking for InitializeConditionVariable
| -- Looking for InitializeConditionVariable - found
| -- Performing Test NN_HAVE_GCC_ATOMIC_BUILTINS
| -- Performing Test NN_HAVE_GCC_ATOMIC_BUILTINS - Success
| CMake Warning at CMakeLists.txt:294 (message):
| Could not find asciidoctor: skipping docs


| -- Configuring done (0.0s)
| -- Generating done (0.0s)
| -- Build files have been written to: E:/msys64/home/Radu/Criterion/build/subprojects/nanomsg/__CMa
ke_build

nanomsg-cmake| CMake configuration: SUCCEEDED
nanomsg-cmake| CMake project nanomsg has 2 build targets.
nanomsg-cmake| Generated Meson AST: E:/msys64/home/Radu/Criterion/build/subprojects/nanomsg/meson.bu
ild
nanomsg-cmake| Project name: nanomsg
nanomsg-cmake| Project version: undefined
nanomsg-cmake| C compiler for the host machine: cc (clang 17.0.2 "clang version 17.0.2")
nanomsg-cmake| C linker for the host machine: cc ld.lld 17.0.2
nanomsg-cmake| Build targets in project: 7
nanomsg-cmake| Subproject nanomsg-cmake finished.

Library anl found: NO
Library ws2_32 found: YES
Library mswsock found: YES
Run-time dependency nanopb found: NO (tried cmake)

Executing subproject nanopb-cmake method cmake


| Configuring the build directory with CMake version 3.27.7
| Running CMake with: -G Ninja -DCMAKE_INSTALL_PREFIX=E:/msys64/clang64 -Dnanopb_BUILD_GENERATOR=Fal
se -DBUILD_SHARED_LIBS=False -DCMAKE_C_FLAGS=-DPB_ENABLE_MALLOC=1 -DPB_NO_PACKED_STRUCTS=1 -DCMAKE_P
OSITION_INDEPENDENT_CODE=True
|   - build directory:          E:/msys64/home/Radu/Criterion/build/subprojects/nanopb/__CMake_build
|   - source directory:         E:/msys64/home/Radu/Criterion/subprojects/nanopb
|   - toolchain file:           E:/msys64/home/Radu/Criterion/build/subprojects/nanopb/__CMake_build
/CMakeMesonToolchainFile.cmake
|   - preload file:             E:/msys64/clang64/lib/python3.11/site-packages/mesonbuild/cmake/data
/preload.cmake
|   - trace args:               --trace-expand --trace-format=json-v1 --no-warn-unused-cli --trace-r
edirect=cmake_trace.txt
|   - disabled policy warnings: [CMP0025, CMP0047, CMP0056, CMP0060, CMP0065, CMP0066, CMP0067, CMP0
082, CMP0089, CMP0102]

| Put cmake in trace mode, but with variables expanded.
| Put cmake in trace mode and sets the trace output format.
| Not searching for unused variables given on the command line.
| Put cmake in trace mode and redirect trace output to a file instead of stderr.
| Trace will be written to cmake_trace.txt
| CMake Deprecation Warning at CMakeLists.txt:1 (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.


| -- The C compiler identification is Clang 17.0.2
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - done
| -- Check for working C compiler: E:/msys64/clang64/bin/cc.EXE - skipped
| -- Detecting C compile features
| -- Detecting C compile features - done
| -- Found Python: E:/msys64/clang64/bin/python3.11.exe (found version "3.11.6") found components: I
nterpreter
| -- Configuring done (0.0s)
| -- Generating done (0.0s)
| -- Build files have been written to: E:/msys64/home/Radu/Criterion/build/subprojects/nanopb/__CMak
e_build

nanopb-cmake| CMake configuration: SUCCEEDED
nanopb-cmake| CMake project nanopb has 1 build targets.
nanopb-cmake| Generated Meson AST: E:/msys64/home/Radu/Criterion/build/subprojects/nanopb/meson.buil
d
nanopb-cmake| Project name: nanopb
nanopb-cmake| Project version: undefined
nanopb-cmake| C compiler for the host machine: cc (clang 17.0.2 "clang version 17.0.2")
nanopb-cmake| C linker for the host machine: cc ld.lld 17.0.2
nanopb-cmake| Build targets in project: 8
nanopb-cmake| Subproject nanopb-cmake finished.

Run-time dependency libgit2 found: NO (tried pkgconfig and cmake)
Cloning into 'libgit2'...
remote: Enumerating objects: 127663, done.
remote: Counting objects: 100% (127663/127663), done.
remote: Compressing objects: 100% (35296/35296), done.
remote: Total 127663 (delta 90892), reused 126971 (delta 90282), pack-reused 0
Receiving objects: 100% (127663/127663), 67.52 MiB | 18.09 MiB/s, done.
Resolving deltas: 100% (90892/90892), done.
Updating files: 100% (11854/11854), done.
Updating files: 100% (10879/10879), done.
HEAD is now at 2fcb8705e Merge pull request #4076 from libgit2/cmn/sec-update-25

Executing subproject libgit2-cmake method cmake


| Configuring the build directory with CMake version 3.27.7
| Running CMake with: -G Ninja -DCMAKE_INSTALL_PREFIX=E:/msys64/clang64 -DBUILD_SHARED_LIBS=False -D
BUILD_CLAR=False -DUSE_ICONV=False -DUSE_SSH=False -DUSE_GSSAPI=False -DUSE_OPENSSL=False -DVALGRIND
=False -DCURL=False -DWINHTTP=False -DCMAKE_DISABLE_FIND_PACKAGE_HTTP_Parser=True -DCMAKE_DISABLE_FI
ND_PACKAGE_ZLIB=True -DCMAKE_DISABLE_FIND_PACKAGE_Iconv=True -DCMAKE_DISABLE_FIND_PACKAGE_Security=T
rue -DCMAKE_POSITION_INDEPENDENT_CODE=True
|   - build directory:          E:/msys64/home/Radu/Criterion/build/subprojects/libgit2/__CMake_buil
d
|   - source directory:         E:/msys64/home/Radu/Criterion/subprojects/libgit2
|   - toolchain file:           E:/msys64/home/Radu/Criterion/build/subprojects/libgit2/__CMake_buil
d/CMakeMesonToolchainFile.cmake
|   - preload file:             E:/msys64/clang64/lib/python3.11/site-packages/mesonbuild/cmake/data
/preload.cmake
|   - trace args:               --trace-expand --trace-format=json-v1 --no-warn-unused-cli --trace-r
edirect=cmake_trace.txt
|   - disabled policy warnings: [CMP0025, CMP0047, CMP0056, CMP0060, CMP0065, CMP0066, CMP0067, CMP0
082, CMP0089, CMP0102]

| Put cmake in trace mode, but with variables expanded.
| Put cmake in trace mode and sets the trace output format.
| Not searching for unused variables given on the command line.
| Put cmake in trace mode and redirect trace output to a file instead of stderr.
| Trace will be written to cmake_trace.txt
| CMake Warning (dev) at CMakeLists.txt:14 (PROJECT):
| cmake_minimum_required() should be called prior to this top-level project()
| call.  Please see the cmake-commands(7) manual for usage documentation of
| both commands.
| This warning is for project developers.  Use -Wno-dev to suppress it.

| -- The C compiler identification is Clang 17.0.2
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - done
| -- Check for working C compiler: E:/msys64/clang64/bin/cc.EXE - skipped
| -- Detecting C compile features
| -- Detecting C compile features - done
| CMake Deprecation Warning at CMakeLists.txt:15 (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.


| -- Found PkgConfig: E:/msys64/clang64/bin/pkg-config.exe (found version "2.0.3")
| -- Performing Test HAVE_STRUCT_STAT_ST_MTIM
| -- Performing Test HAVE_STRUCT_STAT_ST_MTIM - Failed
| -- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC
| -- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC - Failed
| -- Performing Test HAVE_STRUCT_STAT_MTIME_NSEC
| -- Performing Test HAVE_STRUCT_STAT_MTIME_NSEC - Failed
| -- http-parser was not found or is too old; using bundled 3rd-party sources.
| -- zlib was not found; using bundled 3rd-party sources.
| -- LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path.
| -- Performing Test IS_WDOCUMENTATION_SUPPORTED
| -- Performing Test IS_WDOCUMENTATION_SUPPORTED - Success
| -- Performing Test IS_WNO-MISSING-FIELD-INITIALIZERS_SUPPORTED
| -- Performing Test IS_WNO-MISSING-FIELD-INITIALIZERS_SUPPORTED - Success
| -- Performing Test IS_WSTRICT-ALIASING=2_SUPPORTED
| -- Performing Test IS_WSTRICT-ALIASING=2_SUPPORTED - Success
| -- Performing Test IS_WSTRICT-PROTOTYPES_SUPPORTED
| -- Performing Test IS_WSTRICT-PROTOTYPES_SUPPORTED - Success
| -- Performing Test IS_WDECLARATION-AFTER-STATEMENT_SUPPORTED
| -- Performing Test IS_WDECLARATION-AFTER-STATEMENT_SUPPORTED - Success
| -- Performing Test IS_WNO-UNUSED-CONST-VARIABLE_SUPPORTED
| -- Performing Test IS_WNO-UNUSED-CONST-VARIABLE_SUPPORTED - Success
| -- Performing Test IS_WNO-UNUSED-FUNCTION_SUPPORTED
| -- Performing Test IS_WNO-UNUSED-FUNCTION_SUPPORTED - Success
| -- Looking for regcomp_l
| -- Looking for regcomp_l - not found
| -- Looking for futimens
| -- Looking for futimens - not found
| -- Looking for qsort_r
| -- Looking for qsort_r - not found
| -- Looking for qsort_s
| -- Looking for qsort_s - found
| -- Looking for clock_gettime in rt
| -- Looking for clock_gettime in rt - not found
| -- Configuring done (0.0s)
| -- Generating done (0.0s)
| -- Build files have been written to: E:/msys64/home/Radu/Criterion/build/subprojects/libgit2/__CMa
ke_build

libgit2-cmake| CMake configuration: SUCCEEDED
libgit2-cmake| CMake project libgit2 has 1 build targets.
libgit2-cmake| Generated Meson AST: E:/msys64/home/Radu/Criterion/build/subprojects/libgit2/meson.bu
ild
libgit2-cmake| Project name: libgit2
libgit2-cmake| Project version: undefined
libgit2-cmake| C compiler for the host machine: cc (clang 17.0.2 "clang version 17.0.2")
libgit2-cmake| C linker for the host machine: cc ld.lld 17.0.2
libgit2-cmake| Build targets in project: 9
libgit2-cmake| Subproject libgit2-cmake finished.

Run-time dependency boxfort found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency boxfort

Executing subproject boxfort

boxfort| Project name: boxfort
boxfort| Project version: 0.0.1
boxfort| C compiler for the host machine: cc (clang 17.0.2 "clang version 17.0.2")
boxfort| C linker for the host machine: cc ld.lld 17.0.2
boxfort| Program python3 found: YES (E:\msys64\clang64\bin/python3.EXE)
boxfort| Program git found: YES (E:\msys64\usr\bin/git.EXE)
boxfort| Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
boxfort| Compiler for C supports arguments -Wno-unused-value: YES (cached)
boxfort| Compiler for C supports arguments -fvisibility=hidden: YES (cached)
boxfort| Compiler for C supports arguments /SAFESEH:NO: NO (cached)
boxfort| Compiler for C supports arguments /source-charset:utf-8: NO (cached)
boxfort| Dependency threads found: YES unknown (cached)
boxfort| Library rt found: NO
boxfort| Library m found: YES
boxfort| Checking for function "clock_gettime" : NO
boxfort| Checking for function "gettimeofday" : NO
boxfort| Checking for function "mincore" : NO
boxfort| Checking for function "prctl" : NO
boxfort| Checking for function "shm_open" : NO
boxfort| Checking for function "mach_vm_protect" : NO
boxfort| Checking for function "__builtin___clear_cache" : NO
boxfort| Header "sys/prctl.h" has symbol "PR_SET_PDEATHSIG" : NO
boxfort| Header "time.h" has symbol "CLOCK_MONOTONIC_RAW" : NO
boxfort| Header "unistd.h" has symbol "environ" : NO
boxfort| Configuring config.h using configuration
boxfort| Compiler for C supports arguments -DBXF_STATIC_LIB=1: YES
boxfort| Compiler for C supports link arguments -Wl,--exclude-libs,ALL: NO
boxfort| Compiler for C supports arguments -fvisibility=default: YES
boxfort| Compiler for C supports arguments -fvisibility=default: YES (cached)
boxfort| Compiler for C supports arguments -fvisibility=default: YES (cached)
boxfort| Compiler for C supports arguments -fvisibility=default: YES (cached)
boxfort| Program sh found: YES (E:\msys64\usr\bin/sh.EXE)
boxfort| Program cram cram3 found: NO
boxfort| Build targets in project: 14
boxfort| NOTICE: Future-deprecated features used:
boxfort| * 0.55.0: {'ExternalProgram.path'}
boxfort| Subproject boxfort finished.

Dependency boxfort from subproject subprojects/boxfort found: YES 0.0.1
Run-time dependency libffi found: YES 3.4.4
Library rt found: NO
Library m found: YES
Library intl found: YES
Header "libintl.h" has symbol "gettext" with dependency -lintl: YES
Configuring config.h using configuration
Compiler for C supports link arguments -Wl,--exclude-libs,ALL: NO (cached)
Program sh found: YES (E:\msys64\usr\bin/sh.EXE)
Program cram found: NO
Build targets in project: 58
NOTICE: Future-deprecated features used:
 * 0.56.0: {'meson.source_root'}

criterion 2.4.2

  Subprojects
    boxfort      : YES 1 warnings
    debugbreak   : YES
    klib         : YES
    libgit2-cmake: YES
    nanomsg-cmake: YES
    nanopb-cmake : YES

Found ninja-1.11.1 at E:\msys64\clang64\bin/ninja.EXE
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambigu
ous and deprecated.

Radu@DAPD98DP MSYS ~/Criterion
$ meson compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: E:\msys64\clang64\bin/ninja.EXE -C E:/msys64/home/Radu/Cri
terion/build
ninja: Entering directory `E:/msys64/home/Radu/Criterion/build'
[11/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_aio_pool.c.obj
In file included from ../subprojects/nanomsg/src/aio/pool.c:23:
In file included from ../subprojects/nanomsg/src/aio/pool.h:26:
In file included from ../subprojects/nanomsg/src/aio/worker.h:31:
../subprojects/nanomsg/src/aio/worker_win.h:52:26: warning: declaration of 'struct nn_usock' will no
t be visible outside of this function [-Wvisibility]
   52 |     void (*start)(struct nn_usock *);
      |                          ^
1 warning generated.
[16/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_core_sock.c.obj
In file included from ../subprojects/nanomsg/src/core/sock.c:29:
In file included from ../subprojects/nanomsg/src/core/sock.h:30:
In file included from ../subprojects/nanomsg/src/core/../aio/ctx.h:29:
In file included from ../subprojects/nanomsg/src/core/../aio/worker.h:31:
../subprojects/nanomsg/src/core/../aio/worker_win.h:52:26: warning: declaration of 'struct nn_usock'
 will not be visible outside of this function [-Wvisibility]
   52 |     void (*start)(struct nn_usock *);
      |                          ^
1 warning generated.
[17/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_aio_ctx.c.obj
In file included from ../subprojects/nanomsg/src/aio/ctx.c:23:
In file included from ../subprojects/nanomsg/src/aio/ctx.h:29:
In file included from ../subprojects/nanomsg/src/aio/worker.h:31:
../subprojects/nanomsg/src/aio/worker_win.h:52:26: warning: declaration of 'struct nn_usock' will no
t be visible outside of this function [-Wvisibility]
   52 |     void (*start)(struct nn_usock *);
      |                          ^
1 warning generated.
[18/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_aio_fsm.c.obj
In file included from ../subprojects/nanomsg/src/aio/fsm.c:25:
In file included from ../subprojects/nanomsg/src/aio/ctx.h:29:
In file included from ../subprojects/nanomsg/src/aio/worker.h:31:
../subprojects/nanomsg/src/aio/worker_win.h:52:26: warning: declaration of 'struct nn_usock' will no
t be visible outside of this function [-Wvisibility]
   52 |     void (*start)(struct nn_usock *);
      |                          ^
1 warning generated.
[19/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_core_sockbase.c.obj
In file included from ../subprojects/nanomsg/src/core/sockbase.c:25:
In file included from ../subprojects/nanomsg/src/core/sock.h:30:
In file included from ../subprojects/nanomsg/src/core/../aio/ctx.h:29:
In file included from ../subprojects/nanomsg/src/core/../aio/worker.h:31:
../subprojects/nanomsg/src/core/../aio/worker_win.h:52:26: warning: declaration of 'struct nn_usock'
 will not be visible outside of this function [-Wvisibility]
   52 |     void (*start)(struct nn_usock *);
      |                          ^
1 warning generated.
[20/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_core_global.c.obj
In file included from ../subprojects/nanomsg/src/core/global.c:30:
In file included from ../subprojects/nanomsg/src/core/sock.h:30:
In file included from ../subprojects/nanomsg/src/core/../aio/ctx.h:29:
In file included from ../subprojects/nanomsg/src/core/../aio/worker.h:31:
../subprojects/nanomsg/src/core/../aio/worker_win.h:52:26: warning: declaration of 'struct nn_usock'
 will not be visible outside of this function [-Wvisibility]
   52 |     void (*start)(struct nn_usock *);
      |                          ^
1 warning generated.
[21/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_aio_worker.c.obj
In file included from ../subprojects/nanomsg/src/aio/worker.c:23:
In file included from ../subprojects/nanomsg/src/aio/worker.h:31:
../subprojects/nanomsg/src/aio/worker_win.h:52:26: warning: declaration of 'struct nn_usock' will no
t be visible outside of this function [-Wvisibility]
   52 |     void (*start)(struct nn_usock *);
      |                          ^
In file included from ../subprojects/nanomsg/src/aio/worker.c:26:
../subprojects/nanomsg/src/aio/worker_win.inc:52:50: warning: unused parameter 'self' [-Wunused-para
meter]
   52 | void nn_worker_task_term (struct nn_worker_task *self)
      |                                                  ^
2 warnings generated.
[22/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_aio_timer.c.obj
In file included from ../subprojects/nanomsg/src/aio/timer.c:24:
In file included from ../subprojects/nanomsg/src/aio/timer.h:27:
In file included from ../subprojects/nanomsg/src/aio/worker.h:31:
../subprojects/nanomsg/src/aio/worker_win.h:52:26: warning: declaration of 'struct nn_usock' will no
t be visible outside of this function [-Wvisibility]
   52 |     void (*start)(struct nn_usock *);
      |                          ^
1 warning generated.
[23/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_core_pipe.c.obj
In file included from ../subprojects/nanomsg/src/core/pipe.c:27:
In file included from ../subprojects/nanomsg/src/core/sock.h:30:
In file included from ../subprojects/nanomsg/src/core/../aio/ctx.h:29:
In file included from ../subprojects/nanomsg/src/core/../aio/worker.h:31:
../subprojects/nanomsg/src/core/../aio/worker_win.h:52:26: warning: declaration of 'struct nn_usock'
 will not be visible outside of this function [-Wvisibility]
   52 |     void (*start)(struct nn_usock *);
      |                          ^
1 warning generated.
[24/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_core_ep.c.obj
In file included from ../subprojects/nanomsg/src/core/ep.c:28:
In file included from ../subprojects/nanomsg/src/core/sock.h:30:
In file included from ../subprojects/nanomsg/src/core/../aio/ctx.h:29:
In file included from ../subprojects/nanomsg/src/core/../aio/worker.h:31:
../subprojects/nanomsg/src/core/../aio/worker_win.h:52:26: warning: declaration of 'struct nn_usock'
 will not be visible outside of this function [-Wvisibility]
   52 |     void (*start)(struct nn_usock *);
      |                          ^
1 warning generated.
[26/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_aio_usock.c.obj
FAILED: subprojects/nanomsg/libnanomsg.a.p/src_aio_usock.c.obj
"cc" "-Isubprojects/nanomsg/libnanomsg.a.p" "-Isubprojects/nanomsg" "-I../subprojects/nanomsg" "-Isu
bprojects/nanomsg/__CMake_build" "-I../subprojects/nanomsg/__CMake_build" "-fdiagnostics-color=alway
s" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-Wextra" "-std=c11" "-O0" "-g" "-DNN_HAVE_CONDV
AR=1" "-DNN_HAVE_GCC_ATOMIC_BUILTINS" "-DNN_HAVE_WINDOWS" "-DNN_MAX_SOCKETS=512" "-DNN_STATIC_LIB" "
-DNN_USE_WINSOCK" "-D_CRT_SECURE_NO_WARNINGS" "-D_WIN32_WINNT=0x0600" -MD -MQ subprojects/nanomsg/li
bnanomsg.a.p/src_aio_usock.c.obj -MF "subprojects/nanomsg/libnanomsg.a.p/src_aio_usock.c.obj.d" -o s
ubprojects/nanomsg/libnanomsg.a.p/src_aio_usock.c.obj "-c" ../subprojects/nanomsg/src/aio/usock.c
In file included from ../subprojects/nanomsg/src/aio/usock.c:23:
In file included from ../subprojects/nanomsg/src/aio/usock.h:49:
In file included from ../subprojects/nanomsg/src/aio/usock_win.h:24:
In file included from ../subprojects/nanomsg/src/aio/worker.h:31:
../subprojects/nanomsg/src/aio/worker_win.h:52:26: warning: declaration of 'struct nn_usock' will no
t be visible outside of this function [-Wvisibility]
   52 |     void (*start)(struct nn_usock *);
      |                          ^
In file included from ../subprojects/nanomsg/src/aio/usock.c:26:
../subprojects/nanomsg/src/aio/usock_win.inc:177:42: warning: unused parameter 'self' [-Wunused-para
meter]
  177 | void nn_usock_start_fd (struct nn_usock *self, int fd)
      |                                          ^
../subprojects/nanomsg/src/aio/usock_win.inc:177:52: warning: unused parameter 'fd' [-Wunused-parame
ter]
  177 | void nn_usock_start_fd (struct nn_usock *self, int fd)
      |                                                    ^
../subprojects/nanomsg/src/aio/usock_win.inc:523:24: error: incompatible function pointer types assi
gning to 'void (*)(struct nn_usock *)' from 'void (void *)' [-Wincompatible-function-pointer-types]
  523 |         self->in.start = nn_usock_recv_start_pipe;
      |                        ^ ~~~~~~~~~~~~~~~~~~~~~~~~
../subprojects/nanomsg/src/aio/usock_win.inc:526:24: error: incompatible function pointer types assi
gning to 'void (*)(struct nn_usock *)' from 'void (void *)' [-Wincompatible-function-pointer-types]
  526 |         self->in.start = nn_usock_recv_start_wsock;
      |                        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
../subprojects/nanomsg/src/aio/usock_win.inc:686:11: warning: unused parameter 'srcptr' [-Wunused-pa
rameter]
  686 |     void *srcptr)
      |           ^
../subprojects/nanomsg/src/aio/usock_win.inc:755:11: warning: unused parameter 'srcptr' [-Wunused-pa
rameter]
  755 |     void *srcptr)
      |           ^
5 warnings and 2 errors generated.
[30/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_utils_efd.c.obj
In file included from ../subprojects/nanomsg/src/utils/efd.c:37:
../subprojects/nanomsg/src/utils/efd_win.inc:95:9: warning: misleading indentation; statement is not
 part of the previous 'if' [-Wmisleading-indentation]
   95 |         nodelay = 1;
      |         ^
../subprojects/nanomsg/src/utils/efd_win.inc:89:5: note: previous statement is here
   89 |     if (listener == SOCKET_ERROR)
      |     ^
../subprojects/nanomsg/src/utils/efd_win.inc:51:18: warning: comparison of integers of different sig
ns: 'SOCKET' (aka 'unsigned long long') and 'int' [-Wsign-compare]
   51 |     if (listener == SOCKET_ERROR)
      |         ~~~~~~~~ ^  ~~~~~~~~~~~~
../subprojects/nanomsg/src/utils/efd_win.inc:89:18: warning: comparison of integers of different sig
ns: 'SOCKET' (aka 'unsigned long long') and 'int' [-Wsign-compare]
   89 |     if (listener == SOCKET_ERROR)
      |         ~~~~~~~~ ^  ~~~~~~~~~~~~
../subprojects/nanomsg/src/utils/efd_win.inc:135:24: warning: comparison of integers of different si
gns: 'int' and 'SOCKET' (aka 'unsigned long long') [-Wsign-compare]
  135 |         wsa_assert (rc != INVALID_SOCKET);
      |                     ~~ ^  ~~~~~~~~~~~~~~
../subprojects/nanomsg/src/utils/err.h:124:24: note: expanded from macro 'wsa_assert'
  124 |         if (nn_slow (!(x))) {\
      |                        ^
../subprojects/nanomsg/src/utils/fast.h:28:39: note: expanded from macro 'nn_slow'
   28 | #define nn_slow(x) __builtin_expect ((x), 0)
      |                                       ^
In file included from ../subprojects/nanomsg/src/utils/efd.c:37:
../subprojects/nanomsg/src/utils/efd_win.inc:148:24: warning: comparison of integers of different si
gns: 'int' and 'SOCKET' (aka 'unsigned long long') [-Wsign-compare]
  148 |         wsa_assert (rc != INVALID_SOCKET);
      |                     ~~ ^  ~~~~~~~~~~~~~~
../subprojects/nanomsg/src/utils/err.h:124:24: note: expanded from macro 'wsa_assert'
  124 |         if (nn_slow (!(x))) {\
      |                        ^
../subprojects/nanomsg/src/utils/fast.h:28:39: note: expanded from macro 'nn_slow'
   28 | #define nn_slow(x) __builtin_expect ((x), 0)
      |                                       ^
In file included from ../subprojects/nanomsg/src/utils/efd.c:37:
../subprojects/nanomsg/src/utils/efd_win.inc:154:23: warning: comparison of integers of different si
gns: 'int' and 'SOCKET' (aka 'unsigned long long') [-Wsign-compare]
  154 |        wsa_assert (rc != INVALID_SOCKET);
      |                    ~~ ^  ~~~~~~~~~~~~~~
../subprojects/nanomsg/src/utils/err.h:124:24: note: expanded from macro 'wsa_assert'
  124 |         if (nn_slow (!(x))) {\
      |                        ^
../subprojects/nanomsg/src/utils/fast.h:28:39: note: expanded from macro 'nn_slow'
   28 | #define nn_slow(x) __builtin_expect ((x), 0)
      |                                       ^
In file included from ../subprojects/nanomsg/src/utils/efd.c:37:
../subprojects/nanomsg/src/utils/efd_win.inc:189:41: warning: comparison of integers of different si
gns: 'int' and 'unsigned long long' [-Wsign-compare]
  189 |         if ((rc == SOCKET_ERROR) || (rc < sizeof (buf)))
      |                                      ~~ ^ ~~~~~~~~~~~~
7 warnings generated.
[35/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_utils_condvar.c.obj
../subprojects/nanomsg/src/utils/condvar.c:35:37: warning: unused parameter 'cond' [-Wunused-paramet
er]
   35 | void nn_condvar_term (nn_condvar_t *cond)
      |                                     ^
1 warning generated.
[36/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_utils_once.c.obj
../subprojects/nanomsg/src/utils/once.c:29:41: warning: unused parameter 'InitOnce' [-Wunused-parame
ter]
   29 | BOOL CALLBACK nn_do_once_cb (PINIT_ONCE InitOnce,
      |                                         ^
../subprojects/nanomsg/src/utils/once.c:30:29: warning: unused parameter 'Context' [-Wunused-paramet
er]
   30 |     PVOID Parameter, PVOID *Context)
      |                             ^
2 warnings generated.
[43/418] Compiling C object subprojects/nanomsg/libnanomsg.a.p/src_devices_device.c.obj
ninja: build stopped: subcommand failed.

Radu@DAPD98DP MSYS ~/Criterion
$

@Raduq91
Copy link
Author

Raduq91 commented Mar 15, 2024

Could not initialize inheritable arena: Not enough space

is because of using "LARGEADDRESSAWARE:NO"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant