can not build rust project with llvm#13 on macos M1 - rust
I am developing a rust web project.
I am using argonautica v0.2.0 that uses llvm. I changed my computer. I'm going with a macos using the M1 chipset. I installed llvm13 with brew. It gives an error when I say cargo build. I think it happened on my previous mac computer, but I couldn't find the solution this time. what should I do?
my new computer clang --version:
(base) burakdagli#Burak-MacBook-Pro ~ % clang --version
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
my old computer clang --version (there is no error):
(base) burakdagli#BurakDagli-MacBook-Pro backend % clang --version
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Error:
The following warnings were emitted during compilation:
warning: In file included from phc-winner-argon2/src/opt.c:26:
warning: In file included from phc-winner-argon2/src/blake2/blamka-round-opt.h:23:
warning: In file included from /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/emmintrin.h:13:
warning: In file included from /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/xmmintrin.h:13:
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:50:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:129:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:159:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:189:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:216:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:239:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:260:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:287:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:310:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:331:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:352:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:373:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:394:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:416:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_paddsb((__v8qi)__m1, (__v8qi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:439:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_paddsw((__v4hi)__m1, (__v4hi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:461:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_paddusb((__v8qi)__m1, (__v8qi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:483:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_paddusw((__v4hi)__m1, (__v4hi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:504:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_psubb((__v8qi)__m1, (__v8qi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:525:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
warning: return (__m64)__builtin_ia32_psubw((__v4hi)__m1, (__v4hi)__m2);
warning: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: fatal error: too many errors emitted, stopping now [-ferror-limit=]
warning: 20 errors generated.
error: failed to run custom build command for `argonautica v0.2.0`
Caused by:
process didn't exit successfully: `/Users/burakdagli/Desktop/wheelme/workspace/backend/target/debug/build/argonautica-b254c800add8ce34/build-script-build` (exit status: 1)
--- stdout
TARGET = Some("aarch64-apple-darwin")
OPT_LEVEL = Some("0")
HOST = Some("aarch64-apple-darwin")
CC_aarch64-apple-darwin = None
CC_aarch64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_aarch64-apple-darwin = None
CFLAGS_aarch64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = None
CC_aarch64-apple-darwin = None
CC_aarch64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_aarch64-apple-darwin = None
CFLAGS_aarch64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = None
CC_aarch64-apple-darwin = None
CC_aarch64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_aarch64-apple-darwin = None
CFLAGS_aarch64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = None
CC_aarch64-apple-darwin = None
CC_aarch64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_aarch64-apple-darwin = None
CFLAGS_aarch64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = None
CC_aarch64-apple-darwin = None
CC_aarch64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_aarch64-apple-darwin = None
CFLAGS_aarch64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = None
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/var/folders/12/40djlr0j2b34zqj5k7_b72kr0000gn/T/argonautica.0e8KYDgOzE23" "-pthread" "-std=c89" "-g" "-o" "/Users/burakdagli/Desktop/wheelme/workspace/backend/target/debug/build/argonautica-bb74aac0caaa86b4/out/phc-winner-argon2/src/argon2.o" "-c" "phc-winner-argon2/src/argon2.c"
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/var/folders/12/40djlr0j2b34zqj5k7_b72kr0000gn/T/argonautica.0e8KYDgOzE23" "-pthread" "-std=c89" "-g" "-o" "/Users/burakdagli/Desktop/wheelme/workspace/backend/target/debug/build/argonautica-bb74aac0caaa86b4/out/phc-winner-argon2/src/blake2/blake2b.o" "-c" "phc-winner-argon2/src/blake2/blake2b.c"
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/var/folders/12/40djlr0j2b34zqj5k7_b72kr0000gn/T/argonautica.0e8KYDgOzE23" "-pthread" "-std=c89" "-g" "-o" "/Users/burakdagli/Desktop/wheelme/workspace/backend/target/debug/build/argonautica-bb74aac0caaa86b4/out/phc-winner-argon2/src/thread.o" "-c" "phc-winner-argon2/src/thread.c"
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/var/folders/12/40djlr0j2b34zqj5k7_b72kr0000gn/T/argonautica.0e8KYDgOzE23" "-pthread" "-std=c89" "-g" "-o" "/Users/burakdagli/Desktop/wheelme/workspace/backend/target/debug/build/argonautica-bb74aac0caaa86b4/out/phc-winner-argon2/src/core.o" "-c" "phc-winner-argon2/src/core.c"
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/var/folders/12/40djlr0j2b34zqj5k7_b72kr0000gn/T/argonautica.0e8KYDgOzE23" "-pthread" "-std=c89" "-g" "-o" "/Users/burakdagli/Desktop/wheelme/workspace/backend/target/debug/build/argonautica-bb74aac0caaa86b4/out/phc-winner-argon2/src/opt.o" "-c" "phc-winner-argon2/src/opt.c"
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/var/folders/12/40djlr0j2b34zqj5k7_b72kr0000gn/T/argonautica.0e8KYDgOzE23" "-pthread" "-std=c89" "-g" "-o" "/Users/burakdagli/Desktop/wheelme/workspace/backend/target/debug/build/argonautica-bb74aac0caaa86b4/out/phc-winner-argon2/src/encoding.o" "-c" "phc-winner-argon2/src/encoding.c"
cargo:warning=In file included from phc-winner-argon2/src/opt.c:26:
cargo:warning=In file included from phc-winner-argon2/src/blake2/blamka-round-opt.h:23:
cargo:warning=In file included from /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/emmintrin.h:13:
cargo:warning=In file included from /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/xmmintrin.h:13:
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:50:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:129:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:159:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:189:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:216:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:239:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:260:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:287:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:310:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:331:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:352:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:373:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
exit status: 0
cargo:warning= return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:394:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:416:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_paddsb((__v8qi)__m1, (__v8qi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:439:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_paddsw((__v4hi)__m1, (__v4hi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:461:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_paddusb((__v8qi)__m1, (__v8qi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:483:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_paddusw((__v4hi)__m1, (__v4hi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:504:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_psubb((__v8qi)__m1, (__v8qi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:525:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
cargo:warning= return (__m64)__builtin_ia32_psubw((__v4hi)__m1, (__v4hi)__m2);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=fatal error: too many errors emitted, stopping now [-ferror-limit=]
cargo:warning=20 errors generated.
exit status: 1
exit status: 0
exit status: 0
exit status: 0
exit status: 0
--- stderr
error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/var/folders/12/40djlr0j2b34zqj5k7_b72kr0000gn/T/argonautica.0e8KYDgOzE23" "-pthread" "-std=c89" "-g" "-o" "/Users/burakdagli/Desktop/wheelme/workspace/backend/target/debug/build/argonautica-bb74aac0caaa86b4/out/phc-winner-argon2/src/opt.o" "-c" "phc-winner-argon2/src/opt.c" with args "cc" did not execute successfully (status code exit status: 1).
Apparently, phc-winner-argon2/src/blake2/blamka-round-opt.h unconditionally includes (and relies on) x86-only headers and features. So, you cannot compile it on ARM / AArch64
There is an open issue (https://github.com/P-H-C/phc-winner-argon2/issues/272) back from 2019 for ARM support.
Related
Getting (compile) error trying to get open source AI "talking head generation" to work
I'm trying to get Talking-head-Generation-with-Rhythmic-Head-Motion to work inside Google Colab. I just start a new Notebook and executed this: !pip3 install dominate !git clone https://github.com/lelechen63/Talking-head-Generation-with-Rhythmic-Head-Motion cd Talking-head-Generation-with-Rhythmic-Head-Motion !python scripts/download_flownet2.py and got this: /usr/local/lib/python3.7/dist-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’: /usr/local/lib/python3.7/dist-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:17: required from here /usr/local/lib/python3.7/dist-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:77:21: error: could not convert ‘c10::nullopt’ from ‘const c10::nullopt_t’ to ‘c10::optional<c10::MemoryFormat>’ torch::empty(weight_sizes)); ~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/local/lib/python3.7/dist-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:85:21: error: could not convert ‘c10::nullopt’ from ‘const c10::nullopt_t’ to ‘c10::optional<c10::MemoryFormat>’ torch::empty(weight_sizes)); ~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/local/lib/python3.7/dist-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:89:59: error: could not convert ‘c10::nullopt’ from ‘const c10::nullopt_t’ to ‘c10::optional<c10::MemoryFormat>’ bias = this->register_parameter("bias", torch::empty({options.out_channels()})); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/lib/python3.7/dist-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’: /usr/local/lib/python3.7/dist-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:17: required from here /usr/local/lib/python3.7/dist-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:77:21: error: could not convert ‘c10::nullopt’ from ‘const c10::nullopt_t’ to ‘c10::optional<c10::MemoryFormat>’ torch::empty(weight_sizes)); ~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/local/lib/python3.7/dist-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:85:21: error: could not convert ‘c10::nullopt’ from ‘const c10::nullopt_t’ to ‘c10::optional<c10::MemoryFormat>’ torch::empty(weight_sizes)); ~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/local/lib/python3.7/dist-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:89:59: error: could not convert ‘c10::nullopt’ from ‘const c10::nullopt_t’ to ‘c10::optional<c10::MemoryFormat>’ bias = this->register_parameter("bias", torch::empty({options.out_channels()})); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Looks like it is trying to compile it after downloading, and failed. Anyone knows how to make it work? Or should I not be using Google Colab, and something else - like a VM or in a real Linux box?
Warnings when installing R package with Rcpp
I am tring to build an R package with Rcpp using Rstudio. When I click "install and restart", Rstudio outputs hundreds of warning information and I cannot easily find the error information. I tried to find out reason to avoid the warning information but failed. It seems the warnings are from Rcpp package. BTW, the package can still work. The below is the additional options for R CMD INSTALL --no-multiarch --with-keep.source The information can be replicated using the below commands library(devtools) # author version: 2.3.0, use install.packages("devtools") first install_github("GeneticAnalysisinBiobanks/GRAB", INSTALL_opts=c("--no-multiarch")) # The INSTALL_opts is required in Windows OS. My working environment: > sessionInfo() R version 4.1.0 (2021-05-18) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19042) Matrix products: default locale: [1] LC_COLLATE=Chinese (Simplified)_China.936 LC_CTYPE=Chinese (Simplified)_China.936 [3] LC_MONETARY=Chinese (Simplified)_China.936 LC_NUMERIC=C [5] LC_TIME=Chinese (Simplified)_China.936 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] devtools_2.4.2 usethis_2.0.1 loaded via a namespace (and not attached): [1] rstudioapi_0.13 magrittr_2.0.1 pkgload_1.2.1 R6_2.5.0 [5] rlang_0.4.11 fastmap_1.1.0 tools_4.1.0 pkgbuild_1.2.0 [9] sessioninfo_1.1.1 cli_3.0.0 withr_2.4.2 ellipsis_0.3.2 [13] remotes_2.4.0 rprojroot_2.0.2 lifecycle_1.0.0 crayon_1.4.1 [17] processx_3.5.2 purrr_0.3.4 callr_3.7.0 fs_1.5.0 [21] ps_1.6.0 curl_4.3.1 testthat_3.0.4 memoise_2.0.0 [25] glue_1.4.2 cachem_1.0.5 compiler_4.1.0 desc_1.3.0 [29] prettyunits_1.1.1 The below include the warning information when I install and restart the package. In file included from C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/RcppCommon.h:118, from C:/Users/wenjianb/Documents/R/win-library/4.1/RcppArmadillo/include/RcppArmadilloForward.h:26, from C:/Users/wenjianb/Documents/R/win-library/4.1/RcppArmadillo/include/RcppArmadillo.h:31, from RcppExports.cpp:4: C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/Rcpp/routines.h: In function 'const char* Rcpp::type2name(SEXP)': C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/Rcpp/routines.h:70:73: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'const char* (*)(SEXPREC*)'} [-Wcast-function-type] #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) ^ C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/Rcpp/routines.h:74:26: note: in expansion of macro 'GET_CALLABLE' static Fun fun = GET_CALLABLE("type2name"); ^~~~~~~~~~~~ C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/Rcpp/routines.h: In function 'long unsigned int Rcpp::internal::enterRNGScope()': C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/Rcpp/routines.h:70:73: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'long unsigned int (*)()'} [-Wcast-function-type] #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) ^ C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/Rcpp/routines.h:81:30: note: in expansion of macro 'GET_CALLABLE' static Fun fun = GET_CALLABLE("enterRNGScope"); ^~~~~~~~~~~~ C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/Rcpp/routines.h: In function 'long unsigned int Rcpp::internal::exitRNGScope()': C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/Rcpp/routines.h:70:73: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'long unsigned int (*)()'} [-Wcast-function-type] #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) ^ C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/Rcpp/routines.h:87:30: note: in expansion of macro 'GET_CALLABLE' static Fun fun = GET_CALLABLE("exitRNGScope"); ^~~~~~~~~~~~ C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/Rcpp/routines.h: In function 'long unsigned int Rcpp::internal::beginSuspendRNGSynchronization()': C:/Users/wenjianb/Documents/R/win-library/4.1/Rcpp/include/Rcpp/routines.h:70:73: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'long unsigned int (*)()'} [-Wcast-function-type] #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) ^ The other warnings are all similar to the above. Thank you all in advance. Wenjian
Can't install PHPREDIS on PHP7 with Ubuntu 14.04
I'm using PHP7 on ubuntu 14.04. Here is my PHP version information from terminal(using command PHP -v). PHP 7.0.11-1+deb.sury.org~trusty+1 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.11-1+deb.sury.org~trusty+1, Copyright (c) 1999-2016, by Zend Technologies I downloaded phpredis from php7 branch(https://github.com/phpredis/phpredis/tree/php7) & followed the following commands to install as it has mentioned in readme. phpize ./configure make && make install But, I'm getting following error just after executing the command make && make install /bin/bash /home/justdial/Downloads/phpredis-php7/libtool --mode=compile cc -I. -I/home/justdial/Downloads/phpredis-php7 -DPHP_ATOM_INC -I/home/justdial/Downloads/phpredis-php7/include -I/home/justdial/Downloads/phpredis-php7/main -I/home/justdial/Downloads/phpredis-php7 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/justdial/Downloads/phpredis-php7/redis.c -o redis.lo libtool: compile: cc -I. -I/home/justdial/Downloads/phpredis-php7 -DPHP_ATOM_INC -I/home/justdial/Downloads/phpredis-php7/include -I/home/justdial/Downloads/phpredis-php7/main -I/home/justdial/Downloads/phpredis-php7 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/justdial/Downloads/phpredis-php7/redis.c -fPIC -DPIC -o .libs/redis.o In file included from /home/justdial/Downloads/phpredis-php7/redis.c:32:0: /home/justdial/Downloads/phpredis-php7/redis_array.h:11:35: error: unknown type name 'zend_resource' void redis_destructor_redis_array(zend_resource *rsrc TSRMLS_DC); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'redis_get_exception_base': /home/justdial/Downloads/phpredis-php7/redis.c:380:13: warning: assignment makes pointer from integer without a cast [enabled by default] if ((pce = zend_hash_str_find_ptr(CG(class_table), "runtimeexception", sizeof("RuntimeException") - 1))) { ^ /home/justdial/Downloads/phpredis-php7/redis.c:389:9: error: 'zend_ce_exception' undeclared (first use in this function) return zend_ce_exception; ^ /home/justdial/Downloads/phpredis-php7/redis.c:389:9: note: each undeclared identifier is reported only once for each function it appears in /home/justdial/Downloads/phpredis-php7/redis.c: At top level: /home/justdial/Downloads/phpredis-php7/redis.c:423:41: error: unknown type name 'zend_resource' static void redis_destructor_redis_sock(zend_resource * rsrc TSRMLS_DC) ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'redis_sock_get': /home/justdial/Downloads/phpredis-php7/redis.c:439:46: warning: assignment makes pointer from integer without a cast [enabled by default] if (Z_TYPE_P(id) != IS_OBJECT || (socket = zend_hash_str_find(Z_OBJPROP_P(id), "socket", ^ /home/justdial/Downloads/phpredis-php7/redis.c:440:71: warning: comparison between pointer and integer [enabled by default] sizeof("socket") - 1)) == NULL || Z_RES_P(socket) == NULL) { ^ /home/justdial/Downloads/phpredis-php7/redis.c:449:47: error: invalid type argument of '->' (have 'int') *redis_sock = (RedisSock *)Z_RES_P(socket)->ptr; ^ /home/justdial/Downloads/phpredis-php7/redis.c:451:40: error: invalid type argument of '->' (have 'int') if (!*redis_sock || Z_RES_P(socket)->type != le_redis_sock) { ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zm_startup_redis': /home/justdial/Downloads/phpredis-php7/redis.c:575:37: warning: assignment from incompatible pointer type [enabled by default] redis_cluster_ce->create_object = create_cluster_context; ^ /home/justdial/Downloads/phpredis-php7/redis.c:578:9: error: 'redis_destructor_redis_array' undeclared (first use in this function) redis_destructor_redis_array, ^ /home/justdial/Downloads/phpredis-php7/redis.c:588:5: error: too few arguments to function 'zend_register_internal_class_ex' ); ^ In file included from /usr/include/php5/main/php.h:39:0, from /home/justdial/Downloads/phpredis-php7/common.h:1, from /home/justdial/Downloads/phpredis-php7/redis.c:27: /usr/include/php5/Zend/zend_API.h:277:28: note: declared here ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce, char *parent_name TSRMLS_DC); ^ /home/justdial/Downloads/phpredis-php7/redis.c:596:5: error: too few arguments to function 'zend_register_internal_class_ex' ); ^ In file included from /usr/include/php5/main/php.h:39:0, from /home/justdial/Downloads/phpredis-php7/common.h:1, from /home/justdial/Downloads/phpredis-php7/redis.c:27: /usr/include/php5/Zend/zend_API.h:277:28: note: declared here ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce, char *parent_name TSRMLS_DC); ^ /home/justdial/Downloads/phpredis-php7/redis.c:599:9: error: 'redis_destructor_redis_sock' undeclared (first use in this function) redis_destructor_redis_sock, ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'redis_connect': /home/justdial/Downloads/phpredis-php7/redis.c:719:5: error: unknown type name 'zend_long' zend_long port = -1, retry_interval = 0; ^ /home/justdial/Downloads/phpredis-php7/redis.c:764:21: warning: assignment makes pointer from integer without a cast [enabled by default] if ((socket = zend_hash_str_find(Z_OBJPROP_P(object), "socket", sizeof("socket") -1)) == NULL) ^ /home/justdial/Downloads/phpredis-php7/redis.c:781:8: warning: assignment makes pointer from integer without a cast [enabled by default] id = zend_list_insert(redis_sock, le_redis_sock TSRMLS_CC); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_getMultiple': /home/justdial/Downloads/phpredis-php7/redis.c:984:9: error: unknown type name 'zend_string' zend_string *key_zstr; ^ /home/justdial/Downloads/phpredis-php7/redis.c:987:18: warning: assignment makes pointer from integer without a cast [enabled by default] key_zstr = zval_get_string(z_ele); ^ /home/justdial/Downloads/phpredis-php7/redis.c:988:13: warning: assignment makes pointer from integer without a cast [enabled by default] key = ZSTR_VAL(key_zstr); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'generic_sort_cmd': /home/justdial/Downloads/phpredis-php7/redis.c:1398:5: error: unknown type name 'zend_long' zend_long sort_start = -1, sort_count = -1; ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_select': /home/justdial/Downloads/phpredis-php7/redis.c:1757:5: error: unknown type name 'zend_long' zend_long dbNumber; ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'generic_mset': /home/justdial/Downloads/phpredis-php7/redis.c:1832:13: error: unknown type name 'zend_string' zend_string *key_zstr; ^ /home/justdial/Downloads/phpredis-php7/redis.c:1841:71: error: macro "zend_hash_get_current_key" requires 4 arguments, but only 3 given type = zend_hash_get_current_key(keytable, &key_zstr, &idx); ^ /home/justdial/Downloads/phpredis-php7/redis.c:1841:20: error: 'zend_hash_get_current_key' undeclared (first use in this function) type = zend_hash_get_current_key(keytable, &key_zstr, &idx); ^ /home/justdial/Downloads/phpredis-php7/redis.c:1842:64: error: macro "zend_hash_get_current_data" requires 2 arguments, but only 1 given if((z_value_p = zend_hash_get_current_data(keytable)) == NULL) ^ /home/justdial/Downloads/phpredis-php7/redis.c:1842:29: error: 'zend_hash_get_current_data' undeclared (first use in this function) if((z_value_p = zend_hash_get_current_data(keytable)) == NULL) ^ /home/justdial/Downloads/phpredis-php7/redis.c:1856:35: error: request for member 'len' in something not a structure or union key_len = key_zstr->len; ^ /home/justdial/Downloads/phpredis-php7/redis.c:1857:31: error: request for member 'val' in something not a structure or union key = key_zstr->val; ^ /home/justdial/Downloads/phpredis-php7/redis.c:1873:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=] p += sprintf(p, "$%d" _NL, key_len); /* key len */ ^ /home/justdial/Downloads/phpredis-php7/redis.c:1877:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=] p += sprintf(p, "$%d" _NL, val_len); /* val len */ ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_multi': /home/justdial/Downloads/phpredis-php7/redis.c:2196:5: error: unknown type name 'zend_long' zend_long multi_value = MULTI; ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'generic_unsubscribe_cmd': /home/justdial/Downloads/phpredis-php7/redis.c:2567:13: error: too few arguments to function 'zend_hash_index_find' if ((z_channel = zend_hash_index_find(Z_ARRVAL(z_tab), 1)) == NULL) ^ In file included from /usr/include/php5/Zend/zend.h:286:0, from /usr/include/php5/main/php.h:35, from /home/justdial/Downloads/phpredis-php7/common.h:1, from /home/justdial/Downloads/phpredis-php7/redis.c:27: /usr/include/php5/Zend/zend_hash.h:166:14: note: declared here ZEND_API int zend_hash_index_find(const HashTable *ht, ulong h, void **pData); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_slaveof': /home/justdial/Downloads/phpredis-php7/redis.c:2610:5: error: unknown type name 'zend_long' zend_long port = 6379; ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_slowlog': /home/justdial/Downloads/phpredis-php7/redis.c:2764:5: error: unknown type name 'zend_long' zend_long option; ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_wait': /home/justdial/Downloads/phpredis-php7/redis.c:2818:5: error: unknown type name 'zend_long' zend_long num_slaves, timeout; ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'redis_build_pubsub_cmd': /home/justdial/Downloads/phpredis-php7/redis.c:2901:13: error: unknown type name 'zend_string' zend_string *key_zstr; ^ /home/justdial/Downloads/phpredis-php7/redis.c:2902:22: warning: assignment makes pointer from integer without a cast [enabled by default] key_zstr = zval_get_string(z_ele); ^ /home/justdial/Downloads/phpredis-php7/redis.c:2903:17: warning: assignment makes pointer from integer without a cast [enabled by default] key = ZSTR_VAL(key_zstr); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'redis_build_eval_cmd': /home/justdial/Downloads/phpredis-php7/redis.c:3041:17: error: unknown type name 'zend_string' zend_string *key_zstr; ^ /home/justdial/Downloads/phpredis-php7/redis.c:3042:26: warning: assignment makes pointer from integer without a cast [enabled by default] key_zstr = zval_get_string(elem); ^ /home/justdial/Downloads/phpredis-php7/redis.c:3043:21: warning: assignment makes pointer from integer without a cast [enabled by default] key = ZSTR_VAL(key_zstr); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_evalsha': /home/justdial/Downloads/phpredis-php7/redis.c:3086:5: error: unknown type name 'zend_long' zend_long keys_count = 0; ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_eval': /home/justdial/Downloads/phpredis-php7/redis.c:3124:5: error: unknown type name 'zend_long' zend_long keys_count = 0; ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'redis_build_script_exists_cmd': /home/justdial/Downloads/phpredis-php7/redis.c:3167:9: error: unknown type name 'zend_string' zend_string *arg_zstr = zval_get_string(&argv[i]); ^ /home/justdial/Downloads/phpredis-php7/redis.c:3167:33: warning: initialization makes pointer from integer without a cast [enabled by default] zend_string *arg_zstr = zval_get_string(&argv[i]); ^ /home/justdial/Downloads/phpredis-php7/redis.c:3171:13: warning: passing argument 3 of 'redis_cmd_append_str' makes pointer from integer without a cast [enabled by default] ZSTR_LEN(arg_zstr)); ^ In file included from /home/justdial/Downloads/phpredis-php7/redis_commands.h:17:0, from /home/justdial/Downloads/phpredis-php7/redis.c:31: /home/justdial/Downloads/phpredis-php7/library.h:15:5: note: expected 'char *' but argument is of type 'int' int redis_cmd_append_str(char **cmd, int cmd_len, char *append, int append_len); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_script': /home/justdial/Downloads/phpredis-php7/redis.c:3203:5: warning: passing argument 3 of '_zend_get_parameters_array' from incompatible pointer type [enabled by default] if(zend_get_parameters_array(ht, argc, z_args) == FAILURE || ^ In file included from /usr/include/php5/main/php.h:39:0, from /home/justdial/Downloads/phpredis-php7/common.h:1, from /home/justdial/Downloads/phpredis-php7/redis.c:27: /usr/include/php5/Zend/zend_API.h:237:14: note: expected 'struct zval **' but argument is of type 'struct zval *' ZEND_API int _zend_get_parameters_array(int ht, int param_count, zval **argument_array TSRMLS_DC); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_migrate': /home/justdial/Downloads/phpredis-php7/redis.c:3285:5: error: unknown type name 'zend_long' zend_long port, dest_db, timeout; ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_getLastError': /home/justdial/Downloads/phpredis-php7/redis.c:3394:60: error: macro "RETURN_STRINGL" requires 3 arguments, but only 2 given RETURN_STRINGL(redis_sock->err, redis_sock->err_len); ^ /home/justdial/Downloads/phpredis-php7/redis.c:3394:9: error: 'RETURN_STRINGL' undeclared (first use in this function) RETURN_STRINGL(redis_sock->err, redis_sock->err_len); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_getHost': /home/justdial/Downloads/phpredis-php7/redis.c:3475:39: error: macro "RETURN_STRING" requires 2 arguments, but only 1 given RETURN_STRING(redis_sock->host); ^ /home/justdial/Downloads/phpredis-php7/redis.c:3475:9: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(redis_sock->host); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_getPersistentID': /home/justdial/Downloads/phpredis-php7/redis.c:3533:52: error: macro "RETURN_STRING" requires 2 arguments, but only 1 given RETURN_STRING(redis_sock->persistent_id); ^ /home/justdial/Downloads/phpredis-php7/redis.c:3533:13: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(redis_sock->persistent_id); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_getAuth': /home/justdial/Downloads/phpredis-php7/redis.c:3548:43: error: macro "RETURN_STRING" requires 2 arguments, but only 1 given RETURN_STRING(redis_sock->auth); ^ /home/justdial/Downloads/phpredis-php7/redis.c:3548:13: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(redis_sock->auth); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'zim_Redis_rawcommand': /home/justdial/Downloads/phpredis-php7/redis.c:3625:5: warning: passing argument 3 of '_zend_get_parameters_array' from incompatible pointer type [enabled by default] if (zend_get_parameters_array(ht, argc, z_args) == FAILURE) { ^ In file included from /usr/include/php5/main/php.h:39:0, from /home/justdial/Downloads/phpredis-php7/common.h:1, from /home/justdial/Downloads/phpredis-php7/redis.c:27: /usr/include/php5/Zend/zend_API.h:237:14: note: expected 'struct zval **' but argument is of type 'struct zval *' ZEND_API int _zend_get_parameters_array(int ht, int param_count, zval **argument_array TSRMLS_DC); ^ /home/justdial/Downloads/phpredis-php7/redis.c: In function 'generic_scan_cmd': /home/justdial/Downloads/phpredis-php7/redis.c:3725:5: error: unknown type name 'zend_long' zend_long count=0; ^ make: *** [redis.lo] Error 1 I've also created one issue about this at PHPREDIS github repository (https://github.com/phpredis/phpredis/issues/958). Don't know what's going wrong at here.
please try this way. 1.Delete the existing PHP-Redis extension and clean 2.Install required package (skip if you already installed php7) apt-get install php7.0-dev 3.Download PhpRedis cd /tmp wget https://github.com/phpredis/phpredis/archive/php7.zip -O phpredis.zip 4.Unpack, compile and install PhpRedis unzip -o /tmp/phpredis.zip && mv /tmp/phpredis-* /tmp/phpredis && cd /tmp/phpredis && phpize && ./configure && make && sudo make install Now it is necessary to add compiled extension to PHP config 5.Add PhpRedis extension to PHP 7 sudo touch /etc/php/mods-available/redis.ini && echo extension=redis.so > /etc/php/mods-available/redis.ini sudo ln -s /etc/php/mods-available/redis.ini /etc/php/7.0/apache2/conf.d/redis.ini sudo ln -s /etc/php/mods-available/redis.ini /etc/php/7.0/fpm/conf.d/redis.ini sudo ln -s /etc/php/mods-available/redis.ini /etc/php/7.0/cli/conf.d/redis.ini 6.Restart PHP-FPM sudo service php7.0-fpm restart 7.Restart Apache sudo service apache2 restart Note: if you are using Nginx there is no need to restart it because in most cases it works wit PHP-FPM. You can check successfully installed PhpRedis with command below php -r "if (new Redis() == true){ echo \"OK \r\n\"; }"
Huh.. Finally, I've solved the issue. I think, I'd some problem in my php7.0-dev configuration. So reinstall it by using apt-get install php7.0-dev. After that use following commands - sudo make sudo make install Then in php.ini file I added the path of redis.so extension link. Ex - extension=/usr/lib/php/20151012/redis.so (path is system dependent) That's it. It fixed the thing. #Renjith VR : Thanks for the reply. It really helped me fig out the issue.
error: implicit declaration of function ‘create_proc_entry’
Kernel version : 3.13.0-32-generic When i am building the module getting the error make -C /lib/modules/3.13.0-32-generic/build M=/home/wipro/Downloads/proc modules make[1]: Entering directory /usr/src/linux-headers-3.13.0-32-generic' CC [M] /home/wipro/Downloads/proc/proc.o /home/wipro/Downloads/proc/proc.c: In function ‘proc_win_init’: /home/wipro/Downloads/proc/proc.c:21:5: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration] if ((file = create_proc_entry("rel_time", 0666, parent)) == NULL) { ^ /home/wipro/Downloads/proc/proc.c:21:15: warning: assignment makes pointer from integer without a cast [enabled by default] if ((file = create_proc_entry("rel_time", 0666, parent)) == NULL) { ^ /home/wipro/Downloads/proc/proc.c:25:9: error: dereferencing pointer to incomplete type file->read_proc = time_read; ^ /home/wipro/Downloads/proc/proc.c:26:9: error: dereferencing pointer to incomplete type file->write_proc = time_write; ^ /home/wipro/Downloads/proc/proc.c:32:9: error: dereferencing pointer to incomplete type link->uid = 0; ^ /home/wipro/Downloads/proc/proc.c:33:9: error: dereferencing pointer to incomplete type link->gid = 100; ^ cc1: some warnings being treated as errors make[2]: *** [/home/wipro/Downloads/proc/proc.o] Error 1 make[1]: *** [_module_/home/wipro/Downloads/proc] Error 2 make[1]: Leaving directory/usr/src/linux-headers-3.13.0-32-generic' make: *** [default] Error 2 How to remove the error
create_proc_entry has been removed since 3.10 kernel version. Alternative is to use proc_create. See that question for more info.
wxc-0.91.0.0 failed to install
I'm trying to install reactive-banana, wx, wxcore in cabal sandbox. When cabal install --only-dependencies is run following error message is given: src\cpp\eljlistctrl.cpp: In function 'int ListCmp(long int, long int, long int)': src\cpp\eljlistctrl.cpp:16:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] src\cpp\eljlistctrl.cpp:16:53: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] src\cpp\eljlistctrl.cpp: In function 'bool wxListCtrl_SortItems(wxListCtrl*, void*, void*)': src\cpp\eljlistctrl.cpp:478:41: error: cast from 'EiffelSort* {aka _EiffelSort*}' to 'long int' loses precision [-fpermissive] src\cpp\eljlistctrl.cpp:478:44: error: invalid conversion from 'int (*)(long int, long int, long int)' to 'wxListCtrlCompare {aka int (*)(long long int, long long int, long long int)}' [-fpermissive] C:\wxWidgets-3.0.2\include/wx/msw/listctrl.h:342:10: error: initializing argument 1 of 'bool wxListCtrl::SortItems(wxListCtrlCompare, wxIntPtr)' [-fpermissive] What is wrong and how to solve this?
The code in this file just seems to be wrong and uses 32 bit types even in what looks like 64 bit build. Unless it was fixed in later versions, the only solution would be to build it in 32 bits, i.e. use a 32 bit Haskell installation.