question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[package] libdeflate/1.9: can't build with clang on windows

See original GitHub issue

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: libdeflate/1.9
  • Operating System+version: windows 10
  • Compiler+version: clang 12
  • Conan version: conan 1.46.0

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.version=12
os=Windows
os_build=Windows
[options]
*:with_embree=False
[build_requires]
[env]
CC=clang-cl
CONAN_CMAKE_GENERATOR=Ninja
CXX=clang-cl

Steps to reproduce (Include if Applicable)

conan install libdeflate/1.9@ --build missing -pr clang

Logs (Include/Attach if Applicable)

Click to expand log
 conan install libdeflate/1.9@ --build missing -pr clang
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.version=12
os=Windows
os_build=Windows
[options]
*:with_embree=False
[build_requires]
[env]
CC=clang-cl
CONAN_CMAKE_GENERATOR=Ninja
CXX=clang-cl
libdeflate/1.9: WARN: Package binary is corrupted, removing: bd500648356902bb5cb5a6961daa81fc25f3f22c
Installing package: libdeflate/1.9
Requirements
    libdeflate/1.9 from 'artifactory' - Cache
Packages
    libdeflate/1.9:bd500648356902bb5cb5a6961daa81fc25f3f22c - Build
Build requirements
    msys2/cci.latest from 'artifactory' - Cache
Build requirements packages
    msys2/cci.latest:eee3fba89db6d777329de604625af8c30d46f080 - Cache

Installing (downloading, building) binaries...
msys2/cci.latest: Already installed!
msys2/cci.latest: Creating MSYS_ROOT env var : E:\.conan\4e2b37\1\bin\msys64
msys2/cci.latest: Creating MSYS_BIN env var : E:\.conan\4e2b37\1\bin\msys64\usr\bin
msys2/cci.latest: Appending PATH env var with : E:\.conan\4e2b37\1\bin\msys64\usr\bin
libdeflate/1.9: Applying build-requirement: msys2/cci.latest
libdeflate/1.9: WARN: Build folder is dirty, removing it: E:\conan_new\libdeflate\1.9\_\_\build\bd500648356902bb5cb5a6961daa81fc25f3f22c
libdeflate/1.9: Copying sources to build folder
libdeflate/1.9: Building your package in E:\conan_new\libdeflate\1.9\_\_\build\bd500648356902bb5cb5a6961daa81fc25f3f22c
libdeflate/1.9: Generator txt created conanbuildinfo.txt
libdeflate/1.9: Aggregating env generators
libdeflate/1.9: Calling build()
libdeflate/1.9: run_in_windows_bash: E:\.conan\4e2b37\1\bin\msys64\usr\bin\bash.exe --login -c ^"cd \^"/e/conan_new/libdeflate/1.9/_/_/build/bd500648356902bb5cb5a6961daa81fc25f3f22c/source_subfolder\^" ^&^& PATH=\^"/e/.conan/4e2b37/1/bin/msys64/usr/bin:$PATH\^" ^&^& make -j4 ^"

----Running------
> E:\.conan\4e2b37\1\bin\msys64\usr\bin\bash.exe --login -c ^"cd \^"/e/conan_new/libdeflate/1.9/_/_/build/bd500648356902bb5cb5a6961daa81fc25f3f22c/source_subfolder\^" ^&^& PATH=\^"/e/.conan/4e2b37/1/bin/msys64/usr/bin:$PATH\^" ^&^& make -j4 ^"
-----------------
  CC       lib/deflate_decompress.o
  CC       lib/utils.o
  CC       lib/arm/cpu_features.o
  CC       lib/x86/cpu_features.o
clang-cl: warning: unknown argument ignored in clang-cl: '-fomit-frame-pointer' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-std=c99' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-g' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fvisibility=hidden' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fomit-frame-pointer' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-std=c99' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-g' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fvisibility=hidden' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fomit-frame-pointer' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-std=c99' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-g' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fvisibility=hidden' [-Wunknown-argument]
In file included from lib/utils.c:28:
In file included from lib/lib_common.h:15:
In file included from lib/../common/common_defs.h:34:
lib/../common/compiler_msc.h(19,9): warning: macro name is a reserved identifier [-Wreserved-macro-identifier]
#define __bool_true_false_are_defined 1
        ^
lib/../common/compiler_msc.h(33,9): warning: keyword is hidden by macro definition [-Wkeyword-macro]
#define restrict
        ^
lib/../common/compiler_msc.h(49,2): warning: implicitly declaring library function '_BitScanReverse' with type 'unsigned char (unsigned long *, unsigned long)' [-Wimplicit-function-declaration]
        _BitScanReverse(&n, n);
        ^
lib/../common/compiler_msc.h(49,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanReverse'
lib/../common/compiler_msc.h(49,18): warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanReverse(&n, n);
                        ^~


...



lib/deflate_compress.c(2598,14): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
                                                in_end - in_next);
                                                ~~~~~~~^~~~~~~~~
lib/deflate_compress.c(2654,14): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
                                                in_end - in_next);
                                                ~~~~~~~^~~~~~~~~
lib/deflate_compress.c(2684,15): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
                                                        in_end - in_next);
                                                        ~~~~~~~^~~~~~~~~
lib/deflate_compress.c(2748,17): warning: implicit conversion loses integer precision: 'long long' to 'u32' (aka 'unsigned int') [-Wshorten-64-to-32]
                                    in_next - in_block_begin,
                                    ~~~~~~~~^~~~~~~~~~~~~~~~
14 warnings generated.
In file included from lib/zlib_compress.c:28:
In file included from lib/deflate_compress.h:4:
In file included from lib/lib_common.h:15:
In file included from lib/../common/common_defs.h:34:
lib/../common/compiler_msc.h(19,9): warning: macro name is a reserved identifier [-Wreserved-macro-identifier]
#define __bool_true_false_are_defined 1
        ^
lib/../common/compiler_msc.h(33,9): warning: keyword is hidden by macro definition [-Wkeyword-macro]
#define restrict
        ^
lib/../common/compiler_msc.h(49,2): warning: implicitly declaring library function '_BitScanReverse' with type 'unsigned char (unsigned long *, unsigned long)' [-Wimplicit-function-declaration]
        _BitScanReverse(&n, n);
        ^
lib/../common/compiler_msc.h(49,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanReverse'
lib/../common/compiler_msc.h(49,18): warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanReverse(&n, n);
                        ^~
lib/../common/compiler_msc.h(57,2): warning: implicitly declaring library function '_BitScanForward' with type 'unsigned char (unsigned long *, unsigned long)' [-Wimplicit-function-declaration]
        _BitScanForward(&n, n);
        ^
lib/../common/compiler_msc.h(57,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanForward'
lib/../common/compiler_msc.h(57,18): warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanForward(&n, n);
                        ^~
lib/../common/compiler_msc.h(67,2): warning: implicitly declaring library function '_BitScanReverse64' with type 'unsigned char (unsigned long *, unsigned long long)' [-Wimplicit-function-declaration]
        _BitScanReverse64(&n, n);
        ^
lib/../common/compiler_msc.h(67,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanReverse64'
lib/../common/compiler_msc.h(67,20): warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanReverse64(&n, n);
                          ^~
lib/../common/compiler_msc.h(68,9): warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
        return n;
        ~~~~~~ ^
lib/../common/compiler_msc.h(75,2): warning: implicitly declaring library function '_BitScanForward64' with type 'unsigned char (unsigned long *, unsigned long long)' [-Wimplicit-function-declaration]
        _BitScanForward64(&n, n);
        ^
lib/../common/compiler_msc.h(75,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanForward64'
lib/../common/compiler_msc.h(75,20): warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanForward64(&n, n);
                          ^~
lib/../common/compiler_msc.h(76,9): warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
        return n;
        ~~~~~~ ^
lib/deflate_compress.c(3430,23): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
                                        in_max_block_end - in_block_begin,
                                        ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
lib/deflate_compress.c(3444,30): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
                        size_t remaining = in_end - in_next;
                               ~~~~~~~~~   ~~~~~~~^~~~~~~~~
In file included from lib/zlib_compress.c:28:
In file included from lib/deflate_compress.h:4:
lib/lib_common.h(30,9): warning: macro name is a reserved identifier [-Wreserved-macro-identifier]
#define _cpu_features                   SYM_FIXUP(_cpu_features)
        ^
  CC       lib/zlib_decompress.shlib.o
lib/deflate_compress.c(3499,34): warning: implicit conversion loses integer precision: 'long long' to 'u16' (aka 'unsigned short') [-Wimplicit-int-conversion]
                        cache_ptr->length = cache_ptr - matches;
                                          ~ ~~~~~~~~~~^~~~~~~~~
lib/deflate_compress.c(3520,25): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
                                        remaining = in_end - in_next;
                                                  ~ ~~~~~~~^~~~~~~~~
lib/deflate_compress.c(3603,39): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
                        cache_len_rewound = orig_cache_ptr - cache_ptr;
                                          ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~
lib/deflate_compress.c(3562,21): warning: implicit conversion loses integer precision: 'long long' to 'u32' (aka 'unsigned int') [-Wshorten-64-to-32]
                                               in_next - in_block_begin)) {
                                               ~~~~~~~~^~~~~~~~~~~~~~~~
lib/deflate_compress.c(3592,36): warning: implicit conversion loses integer precision: 'long long' to 'u32' (aka 'unsigned int') [-Wshorten-64-to-32]
                        u32 block_length = in_block_end - in_block_begin;
                            ~~~~~~~~~~~~   ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
lib/deflate_compress.c(3595,38): warning: implicit conversion loses integer precision: 'long long' to 'u32' (aka 'unsigned int') [-Wshorten-64-to-32]
                        u32 num_bytes_to_rewind = in_next - in_block_end;
                            ~~~~~~~~~~~~~~~~~~~   ~~~~~~~~^~~~~~~~~~~~~~
lib/deflate_compress.c(3625,31): warning: implicit conversion loses integer precision: 'long long' to 'u32' (aka 'unsigned int') [-Wshorten-64-to-32]
                        u32 block_length = in_next - in_block_begin;
                            ~~~~~~~~~~~~   ~~~~~~~~^~~~~~~~~~~~~~~~
lib/deflate_compress.c(3658,38): warning: implicit conversion loses integer precision: 'unsigned int' to 'u8' (aka 'unsigned char') [-Wimplicit-int-conversion]
                        c->p.n.offset_slot_full[offset] = offset_slot;
                                                        ~ ^~~~~~~~~~~
In file included from lib/zlib_compress.c:28:
lib/deflate_compress.h(13,14): warning: identifier '_libdeflate_deflate_get_compression_level' is reserved because it starts with '_' at global scope [-Wreserved-identifier]
unsigned int deflate_get_compression_level(struct libdeflate_compressor *c);
             ^
lib/lib_common.h(29,39): note: expanded from macro 'deflate_get_compression_level'
#define deflate_get_compression_level   SYM_FIXUP(deflate_get_compression_level)
                                        ^
lib/lib_common.h(28,26): note: expanded from macro 'SYM_FIXUP'
#define SYM_FIXUP(sym)                  _libdeflate_##sym
                                        ^
<scratch space>(2,1): note: expanded from here
_libdeflate_deflate_get_compression_level
^
In file included from lib/zlib_compress.c:29:
lib/unaligned.h(59,27): warning: implicit conversion loses integer precision: 'int' to 'u16' (aka 'unsigned short') [-Wimplicit-int-conversion]
                return ((u16)p[1] << 8) | p[0];
                ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~
lib/unaligned.h(68,27): warning: implicit conversion loses integer precision: 'int' to 'u16' (aka 'unsigned short') [-Wimplicit-int-conversion]
                return ((u16)p[0] << 8) | p[1];
                ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~
lib/deflate_compress.c(3692,25): warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
        c->compression_level = compression_level;
                             ~ ^~~~~~~~~~~~~~~~~
lib/deflate_compress.c(3698,31): warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
        c->min_size_to_compress = 56 - (compression_level * 4);
                                ~ ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
lib/deflate_compress.c(3797,45): warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'u16' (aka 'unsigned short') [-Wimplicit-int-conversion]
                deflate_write_uncompressed_block(&os, in, in_nbytes, true);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~          ^~~~~~~~~
lib/deflate_compress.c(3817,65): warning: unused parameter 'c' [-Wunused-parameter]
libdeflate_deflate_compress_bound(struct libdeflate_compressor *c,
                                                                ^
lib/zlib_compress.c(76,18): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
        return out_next - (u8 *)out;
        ~~~~~~ ~~~~~~~~~^~~~~~~~~~~
17 warnings generated.
clang-cl: warning: unknown argument ignored in clang-cl: '-fomit-frame-pointer' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-std=c99' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-g' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fvisibility=hidden' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fPIC' [-Wunknown-argument]
In file included from lib/zlib_decompress.c:28:
In file included from lib/unaligned.h:8:
In file included from lib/lib_common.h:15:
In file included from lib/../common/common_defs.h:34:
lib/../common/compiler_msc.h(19,9): warning: macro name is a reserved identifier [-Wreserved-macro-identifier]
#define __bool_true_false_are_defined 1
        ^
lib/../common/compiler_msc.h(33,9): warning: keyword is hidden by macro definition [-Wkeyword-macro]
#define restrict
        ^
lib/../common/compiler_msc.h(49,2): warning: implicitly declaring library function '_BitScanReverse' with type 'unsigned char (unsigned long *, unsigned long)' [-Wimplicit-function-declaration]
        _BitScanReverse(&n, n);
        ^
lib/../common/compiler_msc.h(49,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanReverse'
lib/../common/compiler_msc.h(49,18): warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanReverse(&n, n);
                        ^~
lib/../common/compiler_msc.h(57,2): warning: implicitly declaring library function '_BitScanForward' with type 'unsigned char (unsigned long *, unsigned long)' [-Wimplicit-function-declaration]
        _BitScanForward(&n, n);
        ^
lib/../common/compiler_msc.h(57,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanForward'
lib/../common/compiler_msc.h(57,18): warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanForward(&n, n);
                        ^~
lib/../common/compiler_msc.h(67,2): warning: implicitly declaring library function '_BitScanReverse64' with type 'unsigned char (unsigned long *, unsigned long long)' [-Wimplicit-function-declaration]
        _BitScanReverse64(&n, n);
        ^
lib/../common/compiler_msc.h(67,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanReverse64'
lib/../common/compiler_msc.h(67,20): warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanReverse64(&n, n);
                          ^~
lib/../common/compiler_msc.h(68,9): warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
        return n;
        ~~~~~~ ^
lib/../common/compiler_msc.h(75,2): warning: implicitly declaring library function '_BitScanForward64' with type 'unsigned char (unsigned long *, unsigned long long)' [-Wimplicit-function-declaration]
        _BitScanForward64(&n, n);
        ^
lib/../common/compiler_msc.h(75,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanForward64'
lib/../common/compiler_msc.h(75,20): warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanForward64(&n, n);
                          ^~
lib/../common/compiler_msc.h(76,9): warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
        return n;
        ~~~~~~ ^
In file included from lib/zlib_decompress.c:28:
In file included from lib/unaligned.h:8:
lib/lib_common.h(30,9): warning: macro name is a reserved identifier [-Wreserved-macro-identifier]
#define _cpu_features                   SYM_FIXUP(_cpu_features)
        ^
  CC       lib/crc32.shlib.o
In file included from lib/zlib_decompress.c:28:
lib/unaligned.h(59,27): warning: implicit conversion loses integer precision: 'int' to 'u16' (aka 'unsigned short') [-Wimplicit-int-conversion]
                return ((u16)p[1] << 8) | p[0];
                ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~
lib/unaligned.h(68,27): warning: implicit conversion loses integer precision: 'int' to 'u16' (aka 'unsigned short') [-Wimplicit-int-conversion]
                return ((u16)p[0] << 8) | p[1];
                ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~
108 warnings generated.
lib/zlib_decompress.c(72,32): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
                                        in_end - ZLIB_FOOTER_SIZE - in_next,
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
lib/zlib_decompress.c(92,43): warning: cast from 'const void *' to 'unsigned char *' drops const qualifier [-Wcast-qual]
                *actual_in_nbytes_ret = in_next - (u8 *)in;
                                                        ^
lib/zlib_decompress.c(92,35): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
                *actual_in_nbytes_ret = in_next - (u8 *)in;
                                      ~ ~~~~~~~~^~~~~~~~~~
18 warnings generated.
  CC       lib/gzip_decompress.shlib.o
  CC       lib/gzip_compress.shlib.o
clang-cl: warning: unknown argument ignored in clang-cl: '-fomit-frame-pointer' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-std=c99' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-g' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fvisibility=hidden' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fPIC' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fomit-frame-pointer' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-std=c99' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-g' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fvisibility=hidden' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fPIC' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fomit-frame-pointer' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-std=c99' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-g' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fvisibility=hidden' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fPIC' [-Wunknown-argument]
In file included from lib/crc32.c:172:
In file included from lib/lib_common.h:15:
In file included from lib/../common/common_defs.h:34:
lib/../common/compiler_msc.h(19,9): warning: macro name is a reserved identifier [-Wreserved-macro-identifier]
#define __bool_true_false_are_defined 1
        ^
lib/../common/compiler_msc.h(33,9): warning: keyword is hidden by macro definition [-Wkeyword-macro]
#define restrict
        ^
lib/../common/compiler_msc.h(49,2): warning: implicitly declaring library function '_BitScanReverse' with type 'unsigned char (unsigned long *, unsigned long)' [-Wimplicit-function-declaration]
        _BitScanReverse(&n, n);
        ^
lib/../common/compiler_msc.h(49,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanReverse'
lib/../common/compiler_msc.h(49,18): warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanReverse(&n, n);
                        ^~
lib/../common/compiler_msc.h(57,2): warning: implicitly declaring library function '_BitScanForward' with type 'unsigned char (unsigned long *, unsigned long)' [-Wimplicit-function-declaration]
        _BitScanForward(&n, n);
        ^
lib/../common/compiler_msc.h(57,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanForward'
lib/../common/compiler_msc.h(57,18): warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanForward(&n, n);
                        ^~
lib/../common/compiler_msc.h(67,2): warning: implicitly declaring library function '_BitScanReverse64' with type 'unsigned char (unsigned long *, unsigned long long)' [-Wimplicit-function-declaration]
        _BitScanReverse64(&n, n);
        ^
lib/../common/compiler_msc.h(67,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanReverse64'
lib/../common/compiler_msc.h(67,20): warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanReverse64(&n, n);
                          ^~
lib/../common/compiler_msc.h(68,9): warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
        return n;
        ~~~~~~ ^
lib/../common/compiler_msc.h(75,2): warning: implicitly declaring library function '_BitScanForward64' with type 'unsigned char (unsigned long *, unsigned long long)' [-Wimplicit-function-declaration]
        _BitScanForward64(&n, n);
        ^
lib/../common/compiler_msc.h(75,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanForward64'
lib/../common/compiler_msc.h(75,20): warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanForward64(&n, n);
                          ^~
lib/../common/compiler_msc.h(76,9): warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
        return n;
        ~~~~~~ ^
In file included from lib/crc32.c:172:
lib/lib_common.h(30,9): warning: macro name is a reserved identifier [-Wreserved-macro-identifier]
#define _cpu_features                   SYM_FIXUP(_cpu_features)
        ^
  GEN      programs/config.h
lib/crc32.c(267,24): warning: cast from 'const u8 *' (aka 'const unsigned char *') to 'const u32 *' (aka 'const unsigned int *') increases required alignment from 1 to 4 [-Wcast-align]
                u32 v1 = le32_bswap(*(const u32 *)(p + 0));
                                     ^~~~~~~~~~~~~~~~~~~~
lib/../common/common_defs.h(232,50): note: expanded from macro 'le32_bswap'
#define le32_bswap(n) (CPU_IS_LITTLE_ENDIAN() ? (n) : bswap32(n))
                                                 ^
lib/crc32.c(267,24): warning: cast from 'const u8 *' (aka 'const unsigned char *') to 'const u32 *' (aka 'const unsigned int *') increases required alignment from 1 to 4 [-Wcast-align]
                u32 v1 = le32_bswap(*(const u32 *)(p + 0));
                                     ^~~~~~~~~~~~~~~~~~~~
lib/../common/common_defs.h(232,63): note: expanded from macro 'le32_bswap'
#define le32_bswap(n) (CPU_IS_LITTLE_ENDIAN() ? (n) : bswap32(n))
                                                              ^
lib/crc32.c(268,24): warning: cast from 'const u8 *' (aka 'const unsigned char *') to 'const u32 *' (aka 'const unsigned int *') increases required alignment from 1 to 4 [-Wcast-align]
                u32 v2 = le32_bswap(*(const u32 *)(p + 4));
                                     ^~~~~~~~~~~~~~~~~~~~
lib/../common/common_defs.h(232,50): note: expanded from macro 'le32_bswap'
#define le32_bswap(n) (CPU_IS_LITTLE_ENDIAN() ? (n) : bswap32(n))
                                                 ^
lib/crc32.c(268,24): warning: cast from 'const u8 *' (aka 'const unsigned char *') to 'const u32 *' (aka 'const unsigned int *') increases required alignment from 1 to 4 [-Wcast-align]
                u32 v2 = le32_bswap(*(const u32 *)(p + 4));
                                     ^~~~~~~~~~~~~~~~~~~~
lib/../common/common_defs.h(232,63): note: expanded from macro 'le32_bswap'
#define le32_bswap(n) (CPU_IS_LITTLE_ENDIAN() ? (n) : bswap32(n))
                                                              ^
In file included from lib/gzip_decompress.c:29:
In file included from lib/unaligned.h:8:
In file included from lib/lib_common.h:15:
In file included from lib/../common/common_defs.h:34:
lib/../common/compiler_msc.h(19,9): warning: macro name is a reserved identifier [-Wreserved-macro-identifier]
#define __bool_true_false_are_defined 1
        ^
lib/../common/compiler_msc.h(33,9): warning: keyword is hidden by macro definition [-Wkeyword-macro]
#define restrict
        ^
lib/../common/compiler_msc.h(49,2): warning: implicitly declaring library function '_BitScanReverse' with type 'unsigned char (unsigned long *, unsigned long)' [-Wimplicit-function-declaration]
        _BitScanReverse(&n, n);
        ^
lib/../common/compiler_msc.h(49,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanReverse'
lib/../common/compiler_msc.h(49,18): warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanReverse(&n, n);
                        ^~
lib/../common/compiler_msc.h(57,2): warning: implicitly declaring library function '_BitScanForward' with type 'unsigned char (unsigned long *, unsigned long)' [-Wimplicit-function-declaration]
        _BitScanForward(&n, n);
        ^
lib/../common/compiler_msc.h(57,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanForward'
lib/../common/compiler_msc.h(57,18): warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanForward(&n, n);
                        ^~
lib/../common/compiler_msc.h(67,2): warning: implicitly declaring library function '_BitScanReverse64' with type 'unsigned char (unsigned long *, unsigned long long)' [-Wimplicit-function-declaration]
        _BitScanReverse64(&n, n);
        ^
lib/../common/compiler_msc.h(67,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanReverse64'
lib/../common/compiler_msc.h(67,20): warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanReverse64(&n, n);
                          ^~
lib/../common/compiler_msc.h(68,9): warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
        return n;
        ~~~~~~ ^
lib/../common/compiler_msc.h(75,2): warning: implicitly declaring library function '_BitScanForward64' with type 'unsigned char (unsigned long *, unsigned long long)' [-Wimplicit-function-declaration]
        _BitScanForward64(&n, n);
        ^
lib/../common/compiler_msc.h(75,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanForward64'
lib/../common/compiler_msc.h(75,20): warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanForward64(&n, n);
                          ^~
lib/../common/compiler_msc.h(76,9): warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
        return n;
        ~~~~~~ ^
In file included from lib/gzip_decompress.c:29:
In file included from lib/unaligned.h:8:
lib/lib_common.h(30,9): warning: macro name is a reserved identifier [-Wreserved-macro-identifier]
#define _cpu_features                   SYM_FIXUP(_cpu_features)
        ^
17 warnings generated.
In file included from lib/gzip_compress.c:28:
In file included from lib/deflate_compress.h:4:
In file included from lib/lib_common.h:15:
In file included from lib/../common/common_defs.h:34:
lib/../common/compiler_msc.h(19,9): warning: macro name is a reserved identifier [-Wreserved-macro-identifier]
#define __bool_true_false_are_defined 1
        ^
lib/../common/compiler_msc.h(33,9): warning: keyword is hidden by macro definition [-Wkeyword-macro]
#define restrict
        ^
lib/../common/compiler_msc.h(49,2): warning: implicitly declaring library function '_BitScanReverse' with type 'unsigned char (unsigned long *, unsigned long)' [-Wimplicit-function-declaration]
        _BitScanReverse(&n, n);
        ^
lib/../common/compiler_msc.h(49,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanReverse'
lib/../common/compiler_msc.h(49,18): warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanReverse(&n, n);
                        ^~
lib/../common/compiler_msc.h(57,2): warning: implicitly declaring library function '_BitScanForward' with type 'unsigned char (unsigned long *, unsigned long)' [-Wimplicit-function-declaration]
        _BitScanForward(&n, n);
        ^
lib/../common/compiler_msc.h(57,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanForward'
lib/../common/compiler_msc.h(57,18): warning: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanForward(&n, n);
                        ^~
lib/../common/compiler_msc.h(67,2): warning: implicitly declaring library function '_BitScanReverse64' with type 'unsigned char (unsigned long *, unsigned long long)' [-Wimplicit-function-declaration]
        _BitScanReverse64(&n, n);
        ^
lib/../common/compiler_msc.h(67,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanReverse64'
lib/../common/compiler_msc.h(67,20): warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanReverse64(&n, n);
                          ^~
lib/../common/compiler_msc.h(68,9): warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
        return n;
        ~~~~~~ ^
lib/../common/compiler_msc.h(75,2): warning: implicitly declaring library function '_BitScanForward64' with type 'unsigned char (unsigned long *, unsigned long long)' [-Wimplicit-function-declaration]
        _BitScanForward64(&n, n);
        ^
lib/../common/compiler_msc.h(75,2): note: include the header <intrin.h> or explicitly provide a declaration for '_BitScanForward64'
lib/../common/compiler_msc.h(75,20): warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
        _BitScanForward64(&n, n);
                          ^~
lib/../common/compiler_msc.h(76,9): warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
        return n;
        ~~~~~~ ^
In file included from lib/gzip_compress.c:28:
In file included from lib/deflate_compress.h:4:
lib/lib_common.h(30,9): warning: macro name is a reserved identifier [-Wreserved-macro-identifier]
#define _cpu_features                   SYM_FIXUP(_cpu_features)
        ^
In file included from lib/gzip_decompress.c:29:
lib/unaligned.h(59,27): warning: implicit conversion loses integer precision: 'int' to 'u16' (aka 'unsigned short') [-Wimplicit-int-conversion]
                return ((u16)p[1] << 8) | p[0];
                ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~
lib/unaligned.h(68,27): warning: implicit conversion loses integer precision: 'int' to 'u16' (aka 'unsigned short') [-Wimplicit-int-conversion]
                return ((u16)p[0] << 8) | p[1];
                ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~
In file included from lib/gzip_compress.c:28:
lib/deflate_compress.h(13,14): warning: identifier '_libdeflate_deflate_get_compression_level' is reserved because it starts with '_' at global scope [-Wreserved-identifier]
unsigned int deflate_get_compression_level(struct libdeflate_compressor *c);
             ^
lib/lib_common.h(29,39): note: expanded from macro 'deflate_get_compression_level'
#define deflate_get_compression_level   SYM_FIXUP(deflate_get_compression_level)
                                        ^
lib/lib_common.h(28,26): note: expanded from macro 'SYM_FIXUP'
#define SYM_FIXUP(sym)                  _libdeflate_##sym
                                        ^
<scratch space>(2,1): note: expanded from here
_libdeflate_deflate_get_compression_level
^
lib/gzip_decompress.c(106,32): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
                                        in_end - GZIP_FOOTER_SIZE - in_next,
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
lib/gzip_decompress.c(132,43): warning: cast from 'const void *' to 'unsigned char *' drops const qualifier [-Wcast-qual]
                *actual_in_nbytes_ret = in_next - (u8 *)in;
                                                        ^
In file included from lib/gzip_compress.c:30:
lib/unaligned.h(59,lib/gzip_decompress.c(13227),: warning: 35): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
implicit conversion loses integer precision: 'int' to 'u16' (aka 'unsigned short') [-Wimplicit-int-conversion]
                *actual_in_nbytes_ret = in_next - (u8 *)in;
                                      ~ ~~~~~~~~^~~~~~~~~~
                return ((u16)p[1] << 8) | p[0];
                ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~
lib/unaligned.h(68,27): warning: implicit conversion loses integer precision: 'int' to 'u16' (aka 'unsigned short') [-Wimplicit-int-conversion]
                return ((u16)p[0] << 8) | p[1];
                ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~
lib/gzip_compress.c(84,18): warning: implicit conversion changes signedness: 'long long' to 'size_t' (aka 'unsigned long long') [-Wsign-conversion]
        return out_next - (u8 *)out;
        ~~~~~~ ~~~~~~~~~^~~~~~~~~~~
18 warnings generated.
17 warnings generated.
  AR       libdeflate.a
  CCLD     libdeflate.so.0
clang-cl: warning: unknown argument ignored in clang-cl: '-fomit-frame-pointer' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-std=c99' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-g' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-fvisibility=hidden' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-shared' [-Wunknown-argument]
   Creating library libdeflate.so.lib and object libdeflate.so.exp
LINK : fatal error LNK1561: entry point must be defined
clang-cl: error: linker command failed with exit code 1561 (use -v to see invocation)
make: *** [Makefile:232: libdeflate.so.0] Error 25
make: *** Waiting for unfinished jobs....
libdeflate/1.9:
libdeflate/1.9: ERROR: Package 'bd500648356902bb5cb5a6961daa81fc25f3f22c' build failed
libdeflate/1.9: WARN: Build folder E:\conan_new\libdeflate\1.9\_\_\build\bd500648356902bb5cb5a6961daa81fc25f3f22c
ERROR: libdeflate/1.9: Error in build() method, line 82
        self._build_make()
while calling '_build_make', line 76
        autotools.make()
        ConanException: Error 2 while executing make -j4

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
SSE4commented, Mar 18, 2022

@SSE4, could you please create a PR with this change?

yes, I’ll do later today

0reactions
AndreyMlashkincommented, Mar 18, 2022

@SSE4, could you please create a PR with this change?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[package] libvpx/1.11.0: can't compile on windows with clang
Package Name/Version: libdeflate/1.9; Operating System+version: windows 10; Compiler+version: clang 12; Conan version: conan 1.46.0 ...
Read more >
Can't Compile! with Ninja + clang+windows (#1177) · Issues
version 2.12.1 when I build with Ninja, some error: [build] llvm-rc: Error in VERSIONINFO statement (ID 1): [build] Non-ASCII 8-bit ...
Read more >
LLVM Download Page
These are available on the GitHub release page. Download LLVM 15.0.4. Sources / Pre-Built Binaries / Doxygen: These are available on the GitHub ......
Read more >
Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. It is automatically generated based on the packages in this Spack version....
Read more >
The build2 Toolchain Introduction
1.5, Build-Time Dependencies and Linked Configurations ... Note to Windows users: the build2-baseutils package includes core git utilities that are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found