Skip to content

Instantly share code, notes, and snippets.

@ericoporto
Last active September 30, 2023 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericoporto/8860d4f4d8ddd609c6504cfa2bff6863 to your computer and use it in GitHub Desktop.
Save ericoporto/8860d4f4d8ddd609c6504cfa2bff6863 to your computer and use it in GitHub Desktop.
dav1d error in msys2
[82/107] Compiling C object tests/checkasm.exe.p/checkasm_checkasm.c.obj
FAILED: tests/checkasm.exe.p/checkasm_checkasm.c.obj
"cc" "-Itests/checkasm.exe.p" "-Itests" "-I../tests" "-I." "-I.." "-Iinclude/dav1d" "-I../include/dav1d" "-Iinclude" "-I../include" "-fdiagnostics-color=always" "-DNDEBUG" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-Wextra" "-std=c99" "-O3" "-fvisibility=hidden" "-Wundef" "-Werror=vla" "-Wno-maybe-uninitialized" "-Wno-missing-field-initializers" "-Wno-unused-parameter" "-Wstrict-prototypes" "-Werror=missing-prototypes" "-fomit-frame-pointer" "-ffast-math" -MD -MQ tests/checkasm.exe.p/checkasm_checkasm.c.obj -MF "tests/checkasm.exe.p/checkasm_checkasm.c.obj.d" -o tests/checkasm.exe.p/checkasm_checkasm.c.obj "-c" ../tests/checkasm/checkasm.c
../tests/checkasm/checkasm.c: In function ΓÇÿsignal_handlerΓÇÖ:
../tests/checkasm/checkasm.c:504:29: error: variable ΓÇÿdefault_saΓÇÖ has initializer but incomplete type
504 | static const struct sigaction default_sa = { .sa_handler = SIG_DFL };
| ^~~~~~~~~
../tests/checkasm/checkasm.c:504:55: error: ΓÇÿconst struct sigactionΓÇÖ has no member named ΓÇÿsa_handlerΓÇÖ
504 | static const struct sigaction default_sa = { .sa_handler = SIG_DFL };
| ^~~~~~~~~~
../tests/checkasm/checkasm.c:504:68: warning: excess elements in struct initializer
504 | static const struct sigaction default_sa = { .sa_handler = SIG_DFL };
| ^~~~~~~
../tests/checkasm/checkasm.c:504:68: note: (near initialization for ΓÇÿdefault_saΓÇÖ)
../tests/checkasm/checkasm.c:504:39: error: storage size of ΓÇÿdefault_saΓÇÖ isnΓÇÖt known
504 | static const struct sigaction default_sa = { .sa_handler = SIG_DFL };
| ^~~~~~~~~~
../tests/checkasm/checkasm.c:505:9: warning: implicit declaration of function ΓÇÿsigactionΓÇÖ [-Wimplicit-function-declaration]
505 | sigaction(s, &default_sa, NULL);
| ^~~~~~~~~
../tests/checkasm/checkasm.c:504:39: warning: unused variable ΓÇÿdefault_saΓÇÖ [-Wunused-variable]
504 | static const struct sigaction default_sa = { .sa_handler = SIG_DFL };
| ^~~~~~~~~~
../tests/checkasm/checkasm.c: In function ΓÇÿmainΓÇÖ:
../tests/checkasm/checkasm.c:671:18: error: variable ΓÇÿsaΓÇÖ has initializer but incomplete type
671 | const struct sigaction sa = {
| ^~~~~~~~~
../tests/checkasm/checkasm.c:672:10: error: ΓÇÿconst struct sigactionΓÇÖ has no member named ΓÇÿsa_handlerΓÇÖ
672 | .sa_handler = signal_handler,
| ^~~~~~~~~~
../tests/checkasm/checkasm.c:672:23: warning: excess elements in struct initializer
672 | .sa_handler = signal_handler,
| ^~~~~~~~~~~~~~
../tests/checkasm/checkasm.c:672:23: note: (near initialization for ΓÇÿsaΓÇÖ)
../tests/checkasm/checkasm.c:673:10: error: ΓÇÿconst struct sigactionΓÇÖ has no member named ΓÇÿsa_flagsΓÇÖ
673 | .sa_flags = SA_NODEFER,
| ^~~~~~~~
../tests/checkasm/checkasm.c:673:21: error: ΓÇÿSA_NODEFERΓÇÖ undeclared (first use in this function)
673 | .sa_flags = SA_NODEFER,
| ^~~~~~~~~~
../tests/checkasm/checkasm.c:673:21: note: each undeclared identifier is reported only once for each function it appears in
../tests/checkasm/checkasm.c:673:21: warning: excess elements in struct initializer
../tests/checkasm/checkasm.c:673:21: note: (near initialization for ΓÇÿsaΓÇÖ)
../tests/checkasm/checkasm.c:671:28: error: storage size of ΓÇÿsaΓÇÖ isnΓÇÖt known
671 | const struct sigaction sa = {
| ^~
../tests/checkasm/checkasm.c:671:28: warning: unused variable ΓÇÿsaΓÇÖ [-Wunused-variable]
$ meson setup ..
The Meson build system
Version: 1.2.1
Source dir: C:/Users/user/git/videolan/dav1d
Build dir: C:/Users/user/git/videolan/dav1d/build
Build type: native build
Project name: dav1d
Project version: 1.2.1
C compiler for the host machine: cc (gcc 11.3.0 "cc (GCC) 11.3.0")
C linker for the host machine: cc ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Fetching value of define "__ILP32__" :
Checking for function "fseeko" : NO
Library m found: YES
Check usable header "stdatomic.h" : YES
Check usable header "unistd.h" : YES
Check usable header "io.h" : YES
Check usable header "pthread_np.h" : NO
Checking for function "getopt_long" : YES
Checking for function "pthread_getaffinity_np" : NO
Checking for function "pthread_setaffinity_np" : NO
Checking if "_Generic" compiles: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C supports arguments -Wno-maybe-uninitialized: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Wshorten-64-to-32: NO
Compiler for C supports arguments -fomit-frame-pointer: YES
Compiler for C supports arguments -ffast-math: YES
Compiler for C supports link arguments -Wl,--dynamicbase,--nxcompat,--tsaware,--high-entropy-va: YES
Fetching value of define "__AVX__" :
Program nasm found: YES (C:\msys64\usr\bin/nasm.EXE)
Configuring config.asm using configuration
Configuring config.h using configuration
Configuring version.h using configuration
Configuring dav1d.rc using configuration
Windows resource compiler: GNU windres (GNU Binutils) 2.40
Header "xxhash.h" has symbol "XXH3_createState" : NO
Configuring cli_config.h using configuration
Configuring dav1d.rc using configuration
Compiler for C supports arguments -Werror=c11-extensions: NO
Compiler for C supports arguments -Werror=c99-c11-compat: YES
First supported argument: -Werror=c99-c11-compat
Program objcopy found: YES (C:\msys64\usr\bin/objcopy.EXE)
Build targets in project: 22
Found ninja-1.11.1 at C:\msys64\mingw64\bin/ninja.EXE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment