Problem with compilation, rust - intel mkl - multidimensional-array
I've bin trying to use the ndarray crate for rust and wanted to use the blas/lapack binding.
I'm using windows and as far as I know, only intel-mkl is supported at the moment (https://github.com/blas-lapack-rs/blas-lapack-rs.github.io/wiki). I'm getting a compiler error for the mkl-library..
Trying to install mkl didn't help...
gcc in on the path variable.
cargo.toml:
[dependencies]
rayon = "1.3.0"
ndarray = "0.13.0"
nalgebra = "0.19.0"
blas = "0.20.0"
lapack = "0.16.0"
blas-sys = "0.7.1"
lapack-sys = "0.12.1"
intel-mkl-src = "0.5.0"
I get this error message:
C:/Users/madachej/.cargo/bin/cargo.exe build --color=always --package adNoVa --bin adNoVa
Compiling libz-sys v1.0.25
Compiling zstd-sys v1.4.15+zstd.1.4.4
Compiling backtrace-sys v0.1.32
Compiling dirs-sys v0.3.4
Compiling filetime v0.2.8
Compiling socket2 v0.3.11
error: failed to run custom build command for `libz-sys v1.0.25`
Caused by:
process didn't exit successfully: `C:\Users\madachej\Desktop\Priorities\adNoVa\target\debug\build\libz-sys-e01a9589ac0f26fc\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-env-changed=LIBZ_SYS_STATIC
cargo:rerun-if-changed=build.rs
TARGET = Some("x86_64-pc-windows-gnu")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/inffast.o" "-c" "src/zlib/inffast.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/crc32.o" "-c" "src/zlib/crc32.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/inflate.o" "-c" "src/zlib/inflate.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/gzclose.o" "-c" "src/zlib/gzclose.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/adler32.o" "-c" "src/zlib/adler32.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/infback.o" "-c" "src/zlib/infback.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/gzread.o" "-c" "src/zlib/gzread.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/compress.o" "-c" "src/zlib/compress.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/gzlib.o" "-c" "src/zlib/gzlib.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/gzwrite.o" "-c" "src/zlib/gzwrite.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/deflate.o" "-c" "src/zlib/deflate.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/zlib" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\libz-sys-6e48369494127d19\\out\\build\\src/zlib/inftrees.o" "-c" "src/zlib/inftrees.c"
--- stderr
error occurred: Failed to find tool. Is `gcc.exe` installed? (see https://github.com/alexcrichton/cc-rs#compile-time-requirements for help)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `backtrace-sys v0.1.32`
Caused by:
process didn't exit successfully: `C:\Users\madachej\Desktop\Priorities\adNoVa\target\debug\build\backtrace-sys-0a3f36f16d79e9f4\build-script-build` (exit code: 1)
--- stdout
cargo:rustc-cfg=rbt
TARGET = Some("x86_64-pc-windows-gnu")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "src/libbacktrace" "-I" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out" "-fvisibility=hidden" "-DBACKTRACE_SUPPORTED=1" "-DBACKTRACE_USES_MALLOC=1" "-DBACKTRACE_SUPPORTS_THREADS=0" "-DBACKTRACE_SUPPORTS_DATA=0" "-DHAVE_DL_ITERATE_PHDR=1" "-D_GNU_SOURCE=1" "-D_LARGE_FILES=1" "-Dbacktrace_full=__rbt_backtrace_full" "-Dbacktrace_dwarf_add=__rbt_backtrace_dwarf_add" "-Dbacktrace_initialize=__rbt_backtrace_initialize" "-Dbacktrace_pcinfo=__rbt_backtrace_pcinfo" "-Dbacktrace_syminfo=__rbt_backtrace_syminfo" "-Dbacktrace_get_view=__rbt_backtrace_get_view" "-Dbacktrace_release_view=__rbt_backtrace_release_view" "-Dbacktrace_alloc=__rbt_backtrace_alloc" "-Dbacktrace_free=__rbt_backtrace_free" "-Dbacktrace_vector_finish=__rbt_backtrace_vector_finish" "-Dbacktrace_vector_grow=__rbt_backtrace_vector_grow" "-Dbacktrace_vector_release=__rbt_backtrace_vector_release" "-Dbacktrace_close=__rbt_backtrace_close" "-Dbacktrace_open=__rbt_backtrace_open" "-Dbacktrace_print=__rbt_backtrace_print" "-Dbacktrace_simple=__rbt_backtrace_simple" "-Dbacktrace_qsort=__rbt_backtrace_qsort" "-Dbacktrace_create_state=__rbt_backtrace_create_state" "-Dbacktrace_uncompress_zdebug=__rbt_backtrace_uncompress_zdebug" "-Dmacho_get_view=__rbt_macho_get_view" "-Dmacho_symbol_type_relevant=__rbt_macho_symbol_type_relevant" "-Dmacho_get_commands=__rbt_macho_get_commands" "-Dmacho_try_dsym=__rbt_macho_try_dsym" "-Dmacho_try_dwarf=__rbt_macho_try_dwarf" "-Dmacho_get_addr_range=__rbt_macho_get_addr_range" "-Dmacho_get_uuid=__rbt_macho_get_uuid" "-Dmacho_add=__rbt_macho_add" "-Dmacho_add_symtab=__rbt_macho_add_symtab" "-Dmacho_file_to_host_u64=__rbt_macho_file_to_host_u64" "-Dmacho_file_to_host_u32=__rbt_macho_file_to_host_u32" "-Dmacho_file_to_host_u16=__rbt_macho_file_to_host_u16" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out\\src/libbacktrace/fileline.o" "-c" "src/libbacktrace/fileline.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "src/libbacktrace" "-I" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out" "-fvisibility=hidden" "-DBACKTRACE_SUPPORTED=1" "-DBACKTRACE_USES_MALLOC=1" "-DBACKTRACE_SUPPORTS_THREADS=0" "-DBACKTRACE_SUPPORTS_DATA=0" "-DHAVE_DL_ITERATE_PHDR=1" "-D_GNU_SOURCE=1" "-D_LARGE_FILES=1" "-Dbacktrace_full=__rbt_backtrace_full" "-Dbacktrace_dwarf_add=__rbt_backtrace_dwarf_add" "-Dbacktrace_initialize=__rbt_backtrace_initialize" "-Dbacktrace_pcinfo=__rbt_backtrace_pcinfo" "-Dbacktrace_syminfo=__rbt_backtrace_syminfo" "-Dbacktrace_get_view=__rbt_backtrace_get_view" "-Dbacktrace_release_view=__rbt_backtrace_release_view" "-Dbacktrace_alloc=__rbt_backtrace_alloc" "-Dbacktrace_free=__rbt_backtrace_free" "-Dbacktrace_vector_finish=__rbt_backtrace_vector_finish" "-Dbacktrace_vector_grow=__rbt_backtrace_vector_grow" "-Dbacktrace_vector_release=__rbt_backtrace_vector_release" "-Dbacktrace_close=__rbt_backtrace_close" "-Dbacktrace_open=__rbt_backtrace_open" "-Dbacktrace_print=__rbt_backtrace_print" "-Dbacktrace_simple=__rbt_backtrace_simple" "-Dbacktrace_qsort=__rbt_backtrace_qsort" "-Dbacktrace_create_state=__rbt_backtrace_create_state" "-Dbacktrace_uncompress_zdebug=__rbt_backtrace_uncompress_zdebug" "-Dmacho_get_view=__rbt_macho_get_view" "-Dmacho_symbol_type_relevant=__rbt_macho_symbol_type_relevant" "-Dmacho_get_commands=__rbt_macho_get_commands" "-Dmacho_try_dsym=__rbt_macho_try_dsym" "-Dmacho_try_dwarf=__rbt_macho_try_dwarf" "-Dmacho_get_addr_range=__rbt_macho_get_addr_range" "-Dmacho_get_uuid=__rbt_macho_get_uuid" "-Dmacho_add=__rbt_macho_add" "-Dmacho_add_symtab=__rbt_macho_add_symtab" "-Dmacho_file_to_host_u64=__rbt_macho_file_to_host_u64" "-Dmacho_file_to_host_u32=__rbt_macho_file_to_host_u32" "-Dmacho_file_to_host_u16=__rbt_macho_file_to_host_u16" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out\\src/libbacktrace/pecoff.o" "-c" "src/libbacktrace/pecoff.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "src/libbacktrace" "-I" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out" "-fvisibility=hidden" "-DBACKTRACE_SUPPORTED=1" "-DBACKTRACE_USES_MALLOC=1" "-DBACKTRACE_SUPPORTS_THREADS=0" "-DBACKTRACE_SUPPORTS_DATA=0" "-DHAVE_DL_ITERATE_PHDR=1" "-D_GNU_SOURCE=1" "-D_LARGE_FILES=1" "-Dbacktrace_full=__rbt_backtrace_full" "-Dbacktrace_dwarf_add=__rbt_backtrace_dwarf_add" "-Dbacktrace_initialize=__rbt_backtrace_initialize" "-Dbacktrace_pcinfo=__rbt_backtrace_pcinfo" "-Dbacktrace_syminfo=__rbt_backtrace_syminfo" "-Dbacktrace_get_view=__rbt_backtrace_get_view" "-Dbacktrace_release_view=__rbt_backtrace_release_view" "-Dbacktrace_alloc=__rbt_backtrace_alloc" "-Dbacktrace_free=__rbt_backtrace_free" "-Dbacktrace_vector_finish=__rbt_backtrace_vector_finish" "-Dbacktrace_vector_grow=__rbt_backtrace_vector_grow" "-Dbacktrace_vector_release=__rbt_backtrace_vector_release" "-Dbacktrace_close=__rbt_backtrace_close" "-Dbacktrace_open=__rbt_backtrace_open" "-Dbacktrace_print=__rbt_backtrace_print" "-Dbacktrace_simple=__rbt_backtrace_simple" "-Dbacktrace_qsort=__rbt_backtrace_qsort" "-Dbacktrace_create_state=__rbt_backtrace_create_state" "-Dbacktrace_uncompress_zdebug=__rbt_backtrace_uncompress_zdebug" "-Dmacho_get_view=__rbt_macho_get_view" "-Dmacho_symbol_type_relevant=__rbt_macho_symbol_type_relevant" "-Dmacho_get_commands=__rbt_macho_get_commands" "-Dmacho_try_dsym=__rbt_macho_try_dsym" "-Dmacho_try_dwarf=__rbt_macho_try_dwarf" "-Dmacho_get_addr_range=__rbt_macho_get_addr_range" "-Dmacho_get_uuid=__rbt_macho_get_uuid" "-Dmacho_add=__rbt_macho_add" "-Dmacho_add_symtab=__rbt_macho_add_symtab" "-Dmacho_file_to_host_u64=__rbt_macho_file_to_host_u64" "-Dmacho_file_to_host_u32=__rbt_macho_file_to_host_u32" "-Dmacho_file_to_host_u16=__rbt_macho_file_to_host_u16" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out\\src/libbacktrace/read.o" "-c" "src/libbacktrace/read.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "src/libbacktrace" "-I" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out" "-fvisibility=hidden" "-DBACKTRACE_SUPPORTED=1" "-DBACKTRACE_USES_MALLOC=1" "-DBACKTRACE_SUPPORTS_THREADS=0" "-DBACKTRACE_SUPPORTS_DATA=0" "-DHAVE_DL_ITERATE_PHDR=1" "-D_GNU_SOURCE=1" "-D_LARGE_FILES=1" "-Dbacktrace_full=__rbt_backtrace_full" "-Dbacktrace_dwarf_add=__rbt_backtrace_dwarf_add" "-Dbacktrace_initialize=__rbt_backtrace_initialize" "-Dbacktrace_pcinfo=__rbt_backtrace_pcinfo" "-Dbacktrace_syminfo=__rbt_backtrace_syminfo" "-Dbacktrace_get_view=__rbt_backtrace_get_view" "-Dbacktrace_release_view=__rbt_backtrace_release_view" "-Dbacktrace_alloc=__rbt_backtrace_alloc" "-Dbacktrace_free=__rbt_backtrace_free" "-Dbacktrace_vector_finish=__rbt_backtrace_vector_finish" "-Dbacktrace_vector_grow=__rbt_backtrace_vector_grow" "-Dbacktrace_vector_release=__rbt_backtrace_vector_release" "-Dbacktrace_close=__rbt_backtrace_close" "-Dbacktrace_open=__rbt_backtrace_open" "-Dbacktrace_print=__rbt_backtrace_print" "-Dbacktrace_simple=__rbt_backtrace_simple" "-Dbacktrace_qsort=__rbt_backtrace_qsort" "-Dbacktrace_create_state=__rbt_backtrace_create_state" "-Dbacktrace_uncompress_zdebug=__rbt_backtrace_uncompress_zdebug" "-Dmacho_get_view=__rbt_macho_get_view" "-Dmacho_symbol_type_relevant=__rbt_macho_symbol_type_relevant" "-Dmacho_get_commands=__rbt_macho_get_commands" "-Dmacho_try_dsym=__rbt_macho_try_dsym" "-Dmacho_try_dwarf=__rbt_macho_try_dwarf" "-Dmacho_get_addr_range=__rbt_macho_get_addr_range" "-Dmacho_get_uuid=__rbt_macho_get_uuid" "-Dmacho_add=__rbt_macho_add" "-Dmacho_add_symtab=__rbt_macho_add_symtab" "-Dmacho_file_to_host_u64=__rbt_macho_file_to_host_u64" "-Dmacho_file_to_host_u32=__rbt_macho_file_to_host_u32" "-Dmacho_file_to_host_u16=__rbt_macho_file_to_host_u16" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out\\src/libbacktrace/alloc.o" "-c" "src/libbacktrace/alloc.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "src/libbacktrace" "-I" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out" "-fvisibility=hidden" "-DBACKTRACE_SUPPORTED=1" "-DBACKTRACE_USES_MALLOC=1" "-DBACKTRACE_SUPPORTS_THREADS=0" "-DBACKTRACE_SUPPORTS_DATA=0" "-DHAVE_DL_ITERATE_PHDR=1" "-D_GNU_SOURCE=1" "-D_LARGE_FILES=1" "-Dbacktrace_full=__rbt_backtrace_full" "-Dbacktrace_dwarf_add=__rbt_backtrace_dwarf_add" "-Dbacktrace_initialize=__rbt_backtrace_initialize" "-Dbacktrace_pcinfo=__rbt_backtrace_pcinfo" "-Dbacktrace_syminfo=__rbt_backtrace_syminfo" "-Dbacktrace_get_view=__rbt_backtrace_get_view" "-Dbacktrace_release_view=__rbt_backtrace_release_view" "-Dbacktrace_alloc=__rbt_backtrace_alloc" "-Dbacktrace_free=__rbt_backtrace_free" "-Dbacktrace_vector_finish=__rbt_backtrace_vector_finish" "-Dbacktrace_vector_grow=__rbt_backtrace_vector_grow" "-Dbacktrace_vector_release=__rbt_backtrace_vector_release" "-Dbacktrace_close=__rbt_backtrace_close" "-Dbacktrace_open=__rbt_backtrace_open" "-Dbacktrace_print=__rbt_backtrace_print" "-Dbacktrace_simple=__rbt_backtrace_simple" "-Dbacktrace_qsort=__rbt_backtrace_qsort" "-Dbacktrace_create_state=__rbt_backtrace_create_state" "-Dbacktrace_uncompress_zdebug=__rbt_backtrace_uncompress_zdebug" "-Dmacho_get_view=__rbt_macho_get_view" "-Dmacho_symbol_type_relevant=__rbt_macho_symbol_type_relevant" "-Dmacho_get_commands=__rbt_macho_get_commands" "-Dmacho_try_dsym=__rbt_macho_try_dsym" "-Dmacho_try_dwarf=__rbt_macho_try_dwarf" "-Dmacho_get_addr_range=__rbt_macho_get_addr_range" "-Dmacho_get_uuid=__rbt_macho_get_uuid" "-Dmacho_add=__rbt_macho_add" "-Dmacho_add_symtab=__rbt_macho_add_symtab" "-Dmacho_file_to_host_u64=__rbt_macho_file_to_host_u64" "-Dmacho_file_to_host_u32=__rbt_macho_file_to_host_u32" "-Dmacho_file_to_host_u16=__rbt_macho_file_to_host_u16" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out\\src/libbacktrace/sort.o" "-c" "src/libbacktrace/sort.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "src/libbacktrace" "-I" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out" "-fvisibility=hidden" "-DBACKTRACE_SUPPORTED=1" "-DBACKTRACE_USES_MALLOC=1" "-DBACKTRACE_SUPPORTS_THREADS=0" "-DBACKTRACE_SUPPORTS_DATA=0" "-DHAVE_DL_ITERATE_PHDR=1" "-D_GNU_SOURCE=1" "-D_LARGE_FILES=1" "-Dbacktrace_full=__rbt_backtrace_full" "-Dbacktrace_dwarf_add=__rbt_backtrace_dwarf_add" "-Dbacktrace_initialize=__rbt_backtrace_initialize" "-Dbacktrace_pcinfo=__rbt_backtrace_pcinfo" "-Dbacktrace_syminfo=__rbt_backtrace_syminfo" "-Dbacktrace_get_view=__rbt_backtrace_get_view" "-Dbacktrace_release_view=__rbt_backtrace_release_view" "-Dbacktrace_alloc=__rbt_backtrace_alloc" "-Dbacktrace_free=__rbt_backtrace_free" "-Dbacktrace_vector_finish=__rbt_backtrace_vector_finish" "-Dbacktrace_vector_grow=__rbt_backtrace_vector_grow" "-Dbacktrace_vector_release=__rbt_backtrace_vector_release" "-Dbacktrace_close=__rbt_backtrace_close" "-Dbacktrace_open=__rbt_backtrace_open" "-Dbacktrace_print=__rbt_backtrace_print" "-Dbacktrace_simple=__rbt_backtrace_simple" "-Dbacktrace_qsort=__rbt_backtrace_qsort" "-Dbacktrace_create_state=__rbt_backtrace_create_state" "-Dbacktrace_uncompress_zdebug=__rbt_backtrace_uncompress_zdebug" "-Dmacho_get_view=__rbt_macho_get_view" "-Dmacho_symbol_type_relevant=__rbt_macho_symbol_type_relevant" "-Dmacho_get_commands=__rbt_macho_get_commands" "-Dmacho_try_dsym=__rbt_macho_try_dsym" "-Dmacho_try_dwarf=__rbt_macho_try_dwarf" "-Dmacho_get_addr_range=__rbt_macho_get_addr_range" "-Dmacho_get_uuid=__rbt_macho_get_uuid" "-Dmacho_add=__rbt_macho_add" "-Dmacho_add_symtab=__rbt_macho_add_symtab" "-Dmacho_file_to_host_u64=__rbt_macho_file_to_host_u64" "-Dmacho_file_to_host_u32=__rbt_macho_file_to_host_u32" "-Dmacho_file_to_host_u16=__rbt_macho_file_to_host_u16" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out\\src/libbacktrace/posix.o" "-c" "src/libbacktrace/posix.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "src/libbacktrace" "-I" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out" "-fvisibility=hidden" "-DBACKTRACE_SUPPORTED=1" "-DBACKTRACE_USES_MALLOC=1" "-DBACKTRACE_SUPPORTS_THREADS=0" "-DBACKTRACE_SUPPORTS_DATA=0" "-DHAVE_DL_ITERATE_PHDR=1" "-D_GNU_SOURCE=1" "-D_LARGE_FILES=1" "-Dbacktrace_full=__rbt_backtrace_full" "-Dbacktrace_dwarf_add=__rbt_backtrace_dwarf_add" "-Dbacktrace_initialize=__rbt_backtrace_initialize" "-Dbacktrace_pcinfo=__rbt_backtrace_pcinfo" "-Dbacktrace_syminfo=__rbt_backtrace_syminfo" "-Dbacktrace_get_view=__rbt_backtrace_get_view" "-Dbacktrace_release_view=__rbt_backtrace_release_view" "-Dbacktrace_alloc=__rbt_backtrace_alloc" "-Dbacktrace_free=__rbt_backtrace_free" "-Dbacktrace_vector_finish=__rbt_backtrace_vector_finish" "-Dbacktrace_vector_grow=__rbt_backtrace_vector_grow" "-Dbacktrace_vector_release=__rbt_backtrace_vector_release" "-Dbacktrace_close=__rbt_backtrace_close" "-Dbacktrace_open=__rbt_backtrace_open" "-Dbacktrace_print=__rbt_backtrace_print" "-Dbacktrace_simple=__rbt_backtrace_simple" "-Dbacktrace_qsort=__rbt_backtrace_qsort" "-Dbacktrace_create_state=__rbt_backtrace_create_state" "-Dbacktrace_uncompress_zdebug=__rbt_backtrace_uncompress_zdebug" "-Dmacho_get_view=__rbt_macho_get_view" "-Dmacho_symbol_type_relevant=__rbt_macho_symbol_type_relevant" "-Dmacho_get_commands=__rbt_macho_get_commands" "-Dmacho_try_dsym=__rbt_macho_try_dsym" "-Dmacho_try_dwarf=__rbt_macho_try_dwarf" "-Dmacho_get_addr_range=__rbt_macho_get_addr_range" "-Dmacho_get_uuid=__rbt_macho_get_uuid" "-Dmacho_add=__rbt_macho_add" "-Dmacho_add_symtab=__rbt_macho_add_symtab" "-Dmacho_file_to_host_u64=__rbt_macho_file_to_host_u64" "-Dmacho_file_to_host_u32=__rbt_macho_file_to_host_u32" "-Dmacho_file_to_host_u16=__rbt_macho_file_to_host_u16" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out\\src/libbacktrace/dwarf.o" "-c" "src/libbacktrace/dwarf.c"
running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "src/libbacktrace" "-I" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out" "-fvisibility=hidden" "-DBACKTRACE_SUPPORTED=1" "-DBACKTRACE_USES_MALLOC=1" "-DBACKTRACE_SUPPORTS_THREADS=0" "-DBACKTRACE_SUPPORTS_DATA=0" "-DHAVE_DL_ITERATE_PHDR=1" "-D_GNU_SOURCE=1" "-D_LARGE_FILES=1" "-Dbacktrace_full=__rbt_backtrace_full" "-Dbacktrace_dwarf_add=__rbt_backtrace_dwarf_add" "-Dbacktrace_initialize=__rbt_backtrace_initialize" "-Dbacktrace_pcinfo=__rbt_backtrace_pcinfo" "-Dbacktrace_syminfo=__rbt_backtrace_syminfo" "-Dbacktrace_get_view=__rbt_backtrace_get_view" "-Dbacktrace_release_view=__rbt_backtrace_release_view" "-Dbacktrace_alloc=__rbt_backtrace_alloc" "-Dbacktrace_free=__rbt_backtrace_free" "-Dbacktrace_vector_finish=__rbt_backtrace_vector_finish" "-Dbacktrace_vector_grow=__rbt_backtrace_vector_grow" "-Dbacktrace_vector_release=__rbt_backtrace_vector_release" "-Dbacktrace_close=__rbt_backtrace_close" "-Dbacktrace_open=__rbt_backtrace_open" "-Dbacktrace_print=__rbt_backtrace_print" "-Dbacktrace_simple=__rbt_backtrace_simple" "-Dbacktrace_qsort=__rbt_backtrace_qsort" "-Dbacktrace_create_state=__rbt_backtrace_create_state" "-Dbacktrace_uncompress_zdebug=__rbt_backtrace_uncompress_zdebug" "-Dmacho_get_view=__rbt_macho_get_view" "-Dmacho_symbol_type_relevant=__rbt_macho_symbol_type_relevant" "-Dmacho_get_commands=__rbt_macho_get_commands" "-Dmacho_try_dsym=__rbt_macho_try_dsym" "-Dmacho_try_dwarf=__rbt_macho_try_dwarf" "-Dmacho_get_addr_range=__rbt_macho_get_addr_range" "-Dmacho_get_uuid=__rbt_macho_get_uuid" "-Dmacho_add=__rbt_macho_add" "-Dmacho_add_symtab=__rbt_macho_add_symtab" "-Dmacho_file_to_host_u64=__rbt_macho_file_to_host_u64" "-Dmacho_file_to_host_u32=__rbt_macho_file_to_host_u32" "-Dmacho_file_to_host_u16=__rbt_macho_file_to_host_u16" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\backtrace-sys-aba5d57d129debdb\\out\\src/libbacktrace/state.o" "-c" "src/libbacktrace/state.c"
--- stderr
error occurred: Failed to find tool. Is `gcc.exe` installed? (see https://github.com/alexcrichton/cc-rs#compile-time-requirements for help)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `zstd-sys v1.4.15+zstd.1.4.4`
Caused by:
process didn't exit successfully: `C:\Users\madachej\Desktop\Priorities\adNoVa\target\debug\build\zstd-sys-98b37296c1c0d055\build-script-build` (exit code: 1)
--- stdout
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-pc-windows-gnu")
CC_x86_64-pc-windows-gnu = None
CC_x86_64_pc_windows_gnu = None
HOST_CC = None
CC = None
CFLAGS_x86_64-pc-windows-gnu = None
CFLAGS_x86_64_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\zstd-sys-357fb6d8f290c064\\out\\zstd\\lib\\common\\debug.o" "-c" "zstd\\lib\\common\\debug.c"
running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\zstd-sys-357fb6d8f290c064\\out\\zstd\\lib\\common\\pool.o" "-c" "zstd\\lib\\common\\pool.c"
running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\zstd-sys-357fb6d8f290c064\\out\\zstd\\lib\\common\\error_private.o" "-c" "zstd\\lib\\common\\error_private.c"
running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\zstd-sys-357fb6d8f290c064\\out\\zstd\\lib\\common\\entropy_common.o" "-c" "zstd\\lib\\common\\entropy_common.c"
running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\zstd-sys-357fb6d8f290c064\\out\\zstd\\lib\\common\\fse_decompress.o" "-c" "zstd\\lib\\common\\fse_decompress.c"
running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\zstd-sys-357fb6d8f290c064\\out\\zstd\\lib\\common\\threading.o" "-c" "zstd\\lib\\common\\threading.c"
running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\zstd-sys-357fb6d8f290c064\\out\\zstd\\lib\\common\\xxhash.o" "-c" "zstd\\lib\\common\\xxhash.c"
running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "C:\\Users\\madachej\\Desktop\\Priorities\\adNoVa\\target\\debug\\build\\zstd-sys-357fb6d8f290c064\\out\\zstd\\lib\\common\\zstd_common.o" "-c" "zstd\\lib\\common\\zstd_common.c"
--- stderr
error occurred: Failed to find tool. Is `gcc.exe` installed? (see https://github.com/alexcrichton/cc-rs#compile-time-requirements for help)
warning: build failed, waiting for other jobs to finish...
error: build failed
Related
Module build failed: Error: Cannot find module 'babel-core' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
Module build failed: Error: Cannot find module 'babel-core' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) sharing package.json file "dependencies": { "babel-loader": "^7.1.5", "cli-color": "^2.0.0", "colors": "^1.3.3", "diff": "^4.0.1", "file-loader": "^4.2.0", "google-spreadsheet-to-json": "^1.0.0", "gulp-template": "^5.0.0", "html-webpack-plugin": "^3.0.6", "i": "^0.3.6", "lodash": "^4.17.5", "mkdirp": "^0.5.1", "modernizr": "^3.6.0", "moment": "^2.24.0", "npm": "^6.12.0", "npm-check-updates": "^3.1.25", "prop-types": "^15.6.1", "puppeteer": "^1.14.0", "react": "^16.8.6", "react-dom": "^16.2.0", "react-ga": "^2.4.1", "react-graceful-unmount": "^1.0.7", "react-iframe": "^1.8.0", "react-loadable": "^5.3.1", "react-onclickoutside": "^6.7.1", "react-redux": "^7.1.1", "react-router": "^5.1.2", "react-router-dom": "^5.1.2", "react-slick": "^0.25.2", "redux": "^4.0.4", "redux-thunk": "^2.2.0", "scriptjs": "^2.5.8", "slick-carousel": "^1.8.1", "uglifyjs-webpack-plugin": "^2.2.0", "url-loader": "^2.2.0", "webpack": "^3.11.0", "webpack-browser-plugin": "^1.0.20", "webpack-dev-server": "^2.11.2", "webpack-merge": "^4.1.2", "whatwg-fetch": "^3.0.0", "yargs": "^14.2.0" }, "devDependencies": { "#babel/cli": "^7.6.4", "#babel/core": "^7.6.4", "#babel/plugin-proposal-class-properties": "^7.5.5", "#babel/preset-env": "^7.6.3", "#babel/preset-react": "^7.6.3", "babel-eslint": "^8.2.2", "babel-minify": "^0.3.0", "babel-plugin-syntax-dynamic-import": "^6.18.0", "babel-polyfill": "^6.26.0", "babel-preset-env": "^1.7.0", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "babel-preset-stage-2": "^6.24.1", "babel-register": "^6.24.1", "cross-env": "^6.0.3", "css-loader": "^3.2.0", "del": "^5.1.0", "eslint": "^4.18.2", "eslint-config-airbnb": "^16.1.0", "eslint-plugin-import": "^2.9.0", "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.7.0", "gulp": "^3.9.1", "gulp-awspublish": "^3.3.1", "gulp-babel": "^7.0.1", "gulp-bump": "^3.1.3", "gulp-git": "^2.9.0", "gulp-if": "^2.0.2", "gulp-prompt": "^1.2.0", "gulp-rename": "^1.2.2", "json-loader": "^0.5.7", "modernizr-loader": "^1.0.1", "node-sass": "^4.7.2", "path": "^0.12.7", "prettier-eslint": "^8.8.2", "react-hot-loader": "^4.0.0", "sass-loader": "^8.0.0", "style-loader": "^1.0.0", "webpack-cli": "^3.3.9" }, "scripts": { "install": "npm run install-webpack-dev-server", "install-webpack-dev-server": "npm install -g webpack webpack-dev-server", "prebuild": "gulp clean && gulp bump", "build": "cross-env NODE_ENV=production webpack --config webpack.prod.js", "prepublish": "npm run build", "publish": "gulp publish && gulp git", "push": "npm run publish && gulp sync", "start": "cross-env NODE_ENV=development webpack-dev-server --progress --inline --hot --config webpack.dev.js", "split": "gulp react-split" } }
React Native build failed - "Error: While trying to resolve module `react-native-firebase`"
I am upgrading from RN 0.55.3 to 0.57.0 (manually). After running react-native run-ios or react-native run-android I'm now getting the error: error: bundling failed: Error: While trying to resolve module `react-native-firebase` I already tried re-running react-native link react-native-firebase (per this post) as well as deleting node_modules and re-running yarn and neither worked. Full error report: error: bundling failed: Error: While trying to resolve module `react-native-firebase` from file `MyApp/src/screens/StarterPage.js`, the package `MyApp/node_modules/react-native-firebase/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`MyApp/node_modules/react-native-firebase/dist/index.js`. Indeed, none of these files exist: * `MyApp/node_modules/react-native-firebase/dist/index.js(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)` * `MyApp/node_modules/react-native-firebase/dist/index.js/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)` at ResolutionRequest.resolveDependency (MyApp/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:95:15) at DependencyGraph.resolveDependency (MyApp/node_modules/metro/src/node-haste/DependencyGraph.js:238:485) at Object.resolve (MyApp/node_modules/metro/src/lib/transformHelpers.js:180:25) at dependencies.map.result (MyApp/node_modules/metro/src/DeltaBundler/traverseDependencies.js:311:29) at Array.map (<anonymous>) at resolveDependencies (MyApp/node_modules/metro/src/DeltaBundler/traverseDependencies.js:307:16) at MyApp/node_modules/metro/src/DeltaBundler/traverseDependencies.js:164:33 at Generator.next (<anonymous>) at step (MyApp/node_modules/metro/src/DeltaBundler/traverseDependencies.js:266:307) at MyApp/node_modules/metro/src/DeltaBundler/traverseDependencies.js:266:467 BUNDLE [ios, dev] ../../index.js ▓▓▓▓▓▓▓▓▓▓▓░░░░░ 73.4% (796/929)::1 - - [04/Jun/2019:00:27:03 +0000] "GET /index.bundle?platform=ios&dev=true&minify=false HTTP/1.1" 200 - "-" "MyApp/79 CFNetwork/978.0.7 Darwin/18.6.0" BUNDLE [ios, dev] ../../index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░ 92.7% (904/939) I checked and all these files are in node_modules/react-native-firebase. For instance, /dist/index.js is: import firebase from './modules/core/firebase'; export default firebase; export * from './modules/core/firebase'; /* * Export App types */ My package.json { "name": "MyApp", "version": "2.1.27", "private": true, "scripts": { "clean:android": "./android/gradlew -p android/ clean && git clean -dfX -e *.iml android/build android/app/src", "bundle:android": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res", "build:android:release": "yarn clean:android && yarn bundle:android && ./android/gradlew -p android/ assembleRelease", "run:android:release": "react-native run-android --variant=release", "run:android:debug": "react-native run-android", "test": "jest", "android-linux": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && react-native run-android", "eslint": "eslint —-ext .js ./src/", "eslint:fix": "eslint --fix ./src/", "flow": "flow", "flow-stop": "flow stop", "postinstall": "sed -i '' \"s/version.startsWith('iOS')/version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS')/g\" ./node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js" }, "dependencies": { "#babel/runtime": "^7.4.5", "#react-native-community/async-storage": "^1.3.3", "adm-zip": "^0.4.11", "axios": "^0.18.0", "babel-plugin-transform-remove-console": "^6.9.4", "base-64": "^0.1.0", "d3-format": "^1.3.0", "hoist-non-react-statics": "^3.0.1", "lodash": "^4.17.11", "moment": "^2.22.2", "moment-timezone": "^0.5.17", "piexifjs": "^2.0.0-beta.7", "plist": "^3.0.1", "prop-types": "^15.6.2", "react": "16.5.0", "react-native": "0.57.0", "react-native-animatable": "^1.3.0", "react-native-camera": "^1.6.3", "react-native-carrier-info": "^1.0.1", "react-native-circular-progress": "git+https://git#github.com/bartgryszko/react-native-circular-progress.git", "react-native-confetti": "^0.1.0", "react-native-contacts": "^2.2.3", "react-native-country-picker-modal": "^0.5.1", "react-native-datepicker": "^1.7.2", "react-native-default-preference": "^1.3.1", "react-native-device-info": "^0.21.5", "react-native-dotenv": "^0.2.0", "react-native-extended-stylesheet": "^0.8.1", "react-native-fbsdk": "^0.8.0", "react-native-firebase": "5.2.0", "react-native-fs": "^2.13.3", "react-native-image-crop-picker": "^0.24.0", "react-native-keyboard-aware-scrollview": "^2.0.0", "react-native-localization": "1.0.9", "react-native-maps": "^0.22.1", "react-native-mixpanel": "^1.1.1", "react-native-modalbox": "^1.4.2", "react-native-permissions": "^1.1.1", "react-native-popover-tooltip": "^1.1.4", "react-native-popup-menu": "^0.14.0", "react-native-share": "^1.1.3", "react-native-snap-carousel": "^3.7.5", "react-native-sound": "^0.10.9", "react-native-svg": "^9.2.4", "react-native-svg-charts": "^5.2.0", "react-native-swiper": "^1.5.13", "react-native-version-number": "^0.3.4", "react-native-webview-android-file-upload": "git+https://git#github.com/andreipfeiffer/react-native-webview-android-file-upload.git", "react-navigation": "^1.5.11", "xcode": "^1.0.0" }, "devDependencies": { "babel-jest": "24.7.1", "babel-preset-react-native": "5.0.2", "eslint-config-rallycoding": "^3.2.0", "flow-bin": "^0.67.1", "jest": "24.7.1", "metro-react-native-babel-preset": "0.53.1", "react-test-renderer": "16.5.0" }, "jest": { "preset": "react-native" }, "rnpm": { "assets": [ "./assets/fonts/" ] } } I expect my app to run in the emulator (iOS) or on my phone (Android).
Have you tried resetting the watchman and Metro Bundler caches? watchman watch-del-all react-native start --reset-cache
Get BrowserslistError: Unknown browser query `dead` when try to compile the react application
I use in my project react template - React Isomorphic Redux Admin Dashboard Try to compile the react app with this template: 1. npm install yarn install 2. npm run build dev or yarn run build and every time I get this error when use yarn for instance: yarn run v1.13.0 $ node build && node copy Creating an optimized production build... Failed to compile. ./node_modules/nprogress/nprogress.css Module build failed: BrowserslistError: Unknown browser query dead at Array.forEach () BrowserslistError when try to compile the react app with yarn When I use npm I get the same error, but with different ....css file. Here img of error with npm BrowserslistError when try to compile the react app with npm isomorphic#2.9.3 build /Users/romank/code/instagram/public node build && node copy "dev" Creating an optimized production build... Failed to compile. ./src/containers/App/global.css Module build failed: BrowserslistError: Unknown browser query dead at Array.forEach () npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! isomorphic#2.9.3 build: node build && node copy "dev" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the isomorphic#2.9.3 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/romank/.npm/_logs/2019-02-21T15_10_28_618Z-debug.log Here is my package.json : { "name": "isomorphic", "version": "2.9.3", "private": true, "dependencies": { "antd": "^3.6.5", "antd-local-icon": "^0.1.3", "auth0-lock": "^11.1.2", "autoprefixer": "7.1.6", "babel-core": "6.26.0", "babel-eslint": "7.2.3", "babel-jest": "20.0.3", "babel-loader": "^8.0.2", "babel-preset-react-app": "^3.1.0", "babel-runtime": "6.26.0", "card-react": "^1.2.7", "case-sensitive-paths-webpack-plugin": "2.1.1", "chalk": "1.1.3", "chart.js": "^2.5.0", "classnames": "^2.2.5", "clone": "^2.1.1", "cp": "^0.2.0", "cp-cli": "^1.1.2", "cp-file": "^6.0.0", "cp-folder": "^1.0.8", "css-loader": "0.28.7", "d3-shape": "^1.0.6", "dotenv": "4.0.0", "enzyme-adapter-react-16": "^1.1.1", "enzyme-react-intl": "^1.4.8", "eslint": "4.10.0", "eslint-config-react-app": "^2.0.1", "eslint-loader": "1.9.0", "eslint-plugin-flowtype": "2.39.1", "eslint-plugin-import": "2.8.0", "eslint-plugin-jsx-a11y": "5.1.1", "eslint-plugin-react": "7.4.0", "express": "^4.15.3", "extract-text-webpack-plugin": "3.0.2", "file-loader": "1.1.5", "firebase": "^5.2.0", "fixed-data-table-2": "^0.8.8", "frappe-charts": "^0.0.8", "fs-extra": "^7.0.0", "globalize": "^1.2.3", "history": "^4.6.3", "html-webpack-plugin": "2.29.0", "immutable": "^3.8.1", "immutable-devtools": "^0.0.7", "jest": "20.0.4", "js-info-bubble": "git+https://github.com/RedQ/js-info-bubble.git", "js-rich-marker": "^1.1.2", "lodash": "^4.17.4", "moment": "^2.18.1", "nprogress": "^0.2.0", "object-assign": "4.1.1", "polished": "^1.7.0", "postcss-flexbugs-fixes": "3.2.0", "postcss-inline-rtl": "^0.9.8", "postcss-loader": "2.0.8", "promise": "8.0.1", "prop-types": "^15.5.10", "raf": "3.4.0", "react": "^16.2.0", "react-addons-shallow-compare": "^15.5.2", "react-big-calendar": "^0.17.0", "react-chartjs-2": "^2.5.7", "react-codemirror": "^1.0.0", "react-count-down": "^1.1.0", "react-dates": "12.2.4", "react-dev-utils": "^4.2.1", "react-dnd": "^2.3.0", "react-dnd-html5-backend": "^2.3.0", "react-dom": "^16.2.0", "react-drawer": "^1.2.5", "react-dropzone-component": "^3.0.0", "react-element-resize": "^0.2.1", "react-error-overlay": "1.0.6", "react-flexbox-grid": "^2.0.0", "react-flip-move": "^2.9.2", "react-google-charts": "^1.6.0", "react-grid-layout": "^0.16.2", "react-instantsearch": "^4.0.7", "react-intl": "^2.3.0", "react-ladda": "^5.0.6", "react-motion-drawer": "^2.1.7", "react-perfect-scrollbar": "^0.2.0", "react-placeholder": "^2.0.0", "react-quill": "^1.2.0", "react-redux": "^5.0.4", "react-router": "^4.1.1", "react-router-dom": "^4.1.0", "react-router-redux": "^5.0.0-alpha.5", "react-sidebar": "^2.3.2", "react-smooth-scrollbar": "^8.0.6", "react-speech-recognition": "^1.0.4", "react-tag-input": "^4.7.2", "react-tags": "^0.2.2", "react-test-renderer": "^16.2.0", "react-throttle": "^0.3.0", "react-trend": "^1.2.3", "react-vis": "^1.7.2", "react-window-size-listener": "^1.0.10", "react-yandex-maps": "^2.3.0", "react-youtube": "^7.4.0", "recharts": "^1.0.0-alpha.2", "redux": "^3.6.0", "redux-devtools": "^3.3.2", "redux-devtools-dock-monitor": "^1.1.1", "redux-devtools-log-monitor": "^1.2.0", "redux-logger": "^3.0.6", "redux-saga": "^0.16.0", "redux-saga-firebase": "0.10.0", "redux-thunk": "^2.2.0", "reselect": "^3.0.0", "rheostat": "^2.1.1", "rich-marker": "^0.0.1", "smooth-scrollbar": "^8.2.5", "style-loader": "0.19.0", "styled-components": "^2.2.1", "styled-theme": "^0.3.3", "sw-precache-webpack-plugin": "0.11.4", "uppy": "^0.30.0", "url-loader": "0.6.2", "webpack": "3.8.1", "webpack-dev-server": "2.9.4", "webpack-manifest-plugin": "1.3.2", "whatwg-fetch": "2.0.3", "yandex-map-react": "^1.1.1" }, "devDependencies": { "#babel/core": "^7.1.0", "#babel/plugin-proposal-class-properties": "^7.1.0", "#babel/plugin-syntax-dynamic-import": "^7.0.0", "#babel/preset-env": "^7.1.0", "#babel/preset-react": "^7.0.0", "babel-polyfill": "^6.26.0", "enzyme": "^3.2.0", "enzyme-to-json": "^3.3.0", "fs-extra": "^7.0.0", "google-maps-react": "^1.1.0", "leaflet": "^1.2.0", "leaflet-routing-machine": "^3.2.5", "leaflet.markercluster": "^1.0.6", "mv": "^2.1.1", "react-app-rewired": "1.4.0", "redux-mock-store": "^1.2.3", "webpack-php-loader": "^0.5.0" }, "scripts": { "build": "node build && node copy" }, "jest": { "collectCoverageFrom": [ "src/**/*.{js,jsx,mjs}" ], "setupFiles": [ "<rootDir>/config/polyfills.js" ], "testMatch": [ "<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}", "<rootDir>/src/**/?(*.)(spec|test).{js,jsx,mjs}" ], "testEnvironment": "node", "testURL": "http://localhost", "transform": { "^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest", "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js", "^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js" }, "transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$" ], "moduleNameMapper": { "^react-native$": "react-native-web" }, "moduleFileExtensions": [ "web.js", "mjs", "js", "json", "web.jsx", "jsx", "node" ] }, "eslintConfig": { "extends": "react-app" } } How can I fix this error? Did anyone face to this problem? By the way, how do better run the npm and yarn commands with sudo or without? Thank you.
Angular 4 - ASP.Net Core - Compiling error
After having ejected webpack.config.js I use to compile my Angular project using the command: npm run build, lately while launched the build I got the following error: ERROR in ./node_modules/#angular/http/#angular/http.es5.js Module not found: Error: Can't resolve 'rxjs/operator/share' in 'C:\...\node_modules#angular\c ore#angular' # ./node_modules/#angular/core/#angular/core.es5.js 9:0-44 # ./ClientApp/main.ts # multi ./ClientApp/main.ts Modules versions are as next: #angular/cli: 1.4.9 (e) node: 6.11.3 os: win32 x64 #angular/animations: 4.4.6 #angular/common: 4.4.6 #angular/compiler: 4.4.6 #angular/core: 4.4.6 #angular/forms: 4.4.6 #angular/http: 4.4.6 #angular/platform-browser: 4.4.6 #angular/platform-browser-dynamic: 4.4.6 #angular/router: 4.4.6 #angular/cli: 1.4.9 #angular/compiler-cli: 4.4.6 #angular/language-service: 4.4.6 #ngtools/webpack: 1.7.4 typescript: 2.7.0-dev.20171031 and here is the npm-debug log: info it worked if it ends with ok verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', verbose cli 'run', verbose cli 'build' ] info using npm#3.10.10 info using node#v6.11.3 verbose run-script [ 'prebuild', 'build', 'postbuild' ] info lifecycle ng2-asp-core#0.0.0~prebuild: ng2-asp-core#0.0.0 silly lifecycle ng2-asp-core#0.0.0~prebuild: no script for prebuild, continuing info lifecycle ng2-asp-core#0.0.0~build: ng2-asp-core#0.0.0 verbose lifecycle ng2-asp-core#0.0.0~build: unsafe-perm in lifecycle true verbose lifecycle ng2-asp-core#0.0.0~build: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;..............etc ...... verbose lifecycle ng2-asp-core#0.0.0~build: CWD: C:\MyApp silly lifecycle ng2-asp-core#0.0.0~build: Args: [ '/d /s /c', 'webpack' ] silly lifecycle ng2-asp-core#0.0.0~build: Returned: code: 2 signal: null info lifecycle ng2-asp-core#0.0.0~build: Failed to exec build script verbose stack Error: ng2-asp-core#0.0.0 build: `webpack` verbose stack Exit status 2 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16) verbose stack at emitTwo (events.js:106:13) verbose stack at EventEmitter.emit (events.js:191:7) verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14) verbose stack at emitTwo (events.js:106:13) verbose stack at ChildProcess.emit (events.js:191:7) verbose stack at maybeClose (internal/child_process.js:920:16) verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5) verbose pkgid ng2-asp-core#0.0.0 verbose cwd C:\MyApp error Windows_NT 10.0.14393 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" error node v6.11.3 error npm v3.10.10 error code ELIFECYCLE error ng2-asp-core#0.0.0 build: `webpack` error Exit status 2 error Failed at the ng2-asp-core#0.0.0 build script 'webpack'. error Make sure you have the latest version of node.js and npm installed. error If you do, this is most likely a problem with the ng2-asp-core package, error not with npm itself. error Tell the author that this fails on your system: error webpack error You can get information on how to open an issue for this project with: error npm bugs ng2-asp-core error Or if that isn't available, you can get their info via: error npm owner ls ng2-asp-core error There is likely additional logging output above. verbose exit [ 1, true ] As the debug log points to ng2-asp-core package as error source, I have run the command npm owner ls ng2-asp-core to get the owner but got a 404 error: ng2-asp-core' is not in the npm registry^ Update: Package.json file: { "name": "ng2-asp-core", "version": "0.0.0", "license": "MIT", "scripts": { "ng": "ng", "start": "webpack-dev-server --port=4200", "build": "webpack", "test": "karma start ./karma.conf.js", "lint": "ng lint", "e2e": "protractor ./protractor.conf.js", "pree2e": "webdriver-manager update --standalone false --gecko false --quiet" }, "private": true, "dependencies": { "#angular/animations": "^4.2.4", "#angular/common": "^4.2.4", "#angular/compiler": "^4.2.4", "#angular/core": "^4.2.4", "#angular/forms": "^4.2.4", "#angular/http": "^4.2.4", "#angular/platform-browser": "^4.2.4", "#angular/platform-browser-dynamic": "^4.2.4", "#angular/router": "^4.2.4", "core-js": "^2.4.1", "rxjs": "^5.4.2", "zone.js": "^0.8.14", "lodash": "^4.17.4" }, "devDependencies": { "#angular/cli": "1.4.9", "#angular/compiler-cli": "^4.2.4", "#angular/language-service": "^4.2.4", "#ngtools/webpack": "^1.7.4", "#types/jasmine": "~2.5.53", "#types/jasminewd2": "~2.0.2", "#types/lodash": "^4.14.66", "#types/node": "~6.0.60", "autoprefixer": "^6.5.3", "circular-dependency-plugin": "^3.0.0", "codelyzer": "~3.2.0", "copy-webpack-plugin": "^4.1.1", "css-loader": "^0.28.1", "cssnano": "^3.10.0", "exports-loader": "^0.6.3", "file-loader": "^1.1.5", "html-webpack-plugin": "^2.29.0", "istanbul-instrumenter-loader": "^2.0.0", "jasmine-core": "~2.6.2", "jasmine-spec-reporter": "~4.1.0", "karma": "~1.7.0", "karma-chrome-launcher": "~2.1.1", "karma-cli": "~1.0.1", "karma-coverage-istanbul-reporter": "^1.2.1", "karma-jasmine": "~1.1.0", "karma-jasmine-html-reporter": "^0.2.2", "less-loader": "^4.0.5", "postcss-loader": "^1.3.3", "postcss-url": "^5.1.2", "protractor": "~5.1.2", "raw-loader": "^0.5.1", "sass-loader": "^6.0.3", "source-map-loader": "^0.2.0", "style-loader": "^0.13.1", "stylus-loader": "^3.0.1", "ts-node": "~3.2.0", "tslint": "~5.7.0", "typescript": "~2.3.3", "url-loader": "^0.6.2", "webpack": "~3.7.1", "webpack-concat-plugin": "1.4.0", "webpack-dev-server": "~2.7.1", "concurrently": "^3.2.0", "lite-server": "^2.2.2" } }
It looks to me like you don't have rxjs installed so you should run npm install rxjs to fix.
Local Npm module "grunt-parallel" not found. Is it installed?
After update to node5 and npm3 I got such kind of warning for running grunt: Local Npm module "grunt-parallel" not found. Is it installed? I don't use grunt-parallel and would like to know the reason why this warning appeared. Set of modules that we are using in our project: var modules = { "MD5": "~1.2.1", "bower": "~1.4.1", "chai": "~1.9.1", "colors": "~0.6.2", "express": "~3.4.8", "grunt": "~0.4.5", "grunt-cli": "~0.1.13", "grunt-contrib-clean": "~0.5.0", "grunt-contrib-compass": "~0.7.2", "grunt-contrib-concat": "~0.3.0", "grunt-contrib-copy": "~0.5.0", "grunt-contrib-cssmin": "~0.10.0", "grunt-contrib-jshint": "^0.10.0", "grunt-contrib-uglify": "~0.5.0", "grunt-contrib-watch": "~0.5.3", "grunt-express": "~1.2.1", "grunt-grunticon": "^1.2.3", "grunt-html2js": "~0.2.4", "grunt-jslinker": "~0.1.5", "grunt-json": "^0.1.3", "grunt-karma": "~0.8.3", "grunt-ng-annotate": "~0.2.3", "grunt-open": "~0.2.3", "grunt-protractor-runner": "~1.1.4", "grunt-replace": "~0.7.8", "karma": "~0.12.17", "karma-chai": "~0.1.0", "karma-chrome-launcher": "~0.1.4", "karma-coverage": "~0.2.4", "karma-mocha": "~0.1.6", "karma-phantomjs-launcher": "~0.1.4", "karma-sinon": "~1.0.3", "load-grunt-tasks": "~0.6.0", "method-override": "^2.0.2", "mocha": "~1.20.1", "protractor": "~2.0.0", "request": "^2.40.0", "sinon": "~1.10.3", "grunt-aws-s3": "^0.14.0", "grunt-contrib-compress": "^0.13.0", "grunt-git-rev-parse": "~0.1.4" };
The problem was with old version of grunt-express.