Error trying to install on windows and Linux
marvelken opened this issue · comments
It always runs into error. After having everything installed.
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.9fr98zj2.cpp -Werror -Wcomma -c
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | c++: error: unrecognized command-line option ‘-Wcomma’; did you mean ‘-Wcomment’?
INFO: no
INFO: checking whether the C compiler supports -Wduplicated-cond...
DEBUG: Creating /tmp/conftest.026w_p6k.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.026w_p6k.c -Werror -Wduplicated-cond -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wduplicated-cond...
DEBUG: Creating /tmp/conftest.y0nx4jci.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.y0nx4jci.cpp -Werror -Wduplicated-cond -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wimplicit-fallthrough...
DEBUG: Creating /tmp/conftest.l5ercgl8.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.l5ercgl8.cpp -Werror -Wimplicit-fallthrough -c
INFO: yes
INFO: checking whether the C compiler supports -Wlogical-op...
DEBUG: Creating /tmp/conftest.660xmvuz.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.660xmvuz.c -Werror -Wlogical-op -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wlogical-op...
DEBUG: Creating /tmp/conftest.ip3gd72e.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.ip3gd72e.cpp -Werror -Wlogical-op -c
INFO: yes
INFO: checking whether the C compiler supports -Wstring-conversion...
DEBUG: Creating /tmp/conftest.23039fbw.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.23039fbw.c -Werror -Wstring-conversion -c
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | cc: error: unrecognized command-line option ‘-Wstring-conversion’; did you mean ‘-Wsign-conversion’?
INFO: no
INFO: checking whether the C++ compiler supports -Wstring-conversion...
DEBUG: Creating /tmp/conftest.1ddhp7mm.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.1ddhp7mm.cpp -Werror -Wstring-conversion -c
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | c++: error: unrecognized command-line option ‘-Wstring-conversion’; did you mean ‘-Wsign-conversion’?
INFO: no
INFO: checking whether the C++ compiler supports -Wno-inline-new-delete...
DEBUG: Creating /tmp/conftest.avnzy19t.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.avnzy19t.cpp -Werror -Winline-new-delete -c
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | c++: error: unrecognized command-line option ‘-Winline-new-delete’; did you mean ‘-Wmismatched-new-delete’?
INFO: no
INFO: checking whether the C compiler supports -Wno-error=maybe-uninitialized...
DEBUG: Creating /tmp/conftest.77xavmst.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.77xavmst.c -Werror -Wno-error=maybe-uninitialized -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wno-error=maybe-uninitialized...
DEBUG: Creating /tmp/conftest.e7hp_kux.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.e7hp_kux.cpp -Werror -Wno-error=maybe-uninitialized -c
INFO: yes
INFO: checking whether the C compiler supports -Wno-error=deprecated-declarations...
DEBUG: Creating /tmp/conftest.t6ti8jix.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.t6ti8jix.c -Werror -Wno-error=deprecated-declarations -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wno-error=deprecated-declarations...
DEBUG: Creating /tmp/conftest.oj7p074p.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.oj7p074p.cpp -Werror -Wno-error=deprecated-declarations -c
INFO: yes
INFO: checking whether the C compiler supports -Wno-error=array-bounds...
DEBUG: Creating /tmp/conftest.s63v8dy9.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.s63v8dy9.c -Werror -Wno-error=array-bounds -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wno-error=array-bounds...
DEBUG: Creating /tmp/conftest.61mxk718.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.61mxk718.cpp -Werror -Wno-error=array-bounds -c
INFO: yes
INFO: checking whether the C compiler supports -Wno-error=free-nonheap-object...
DEBUG: Creating /tmp/conftest.rba4e6un.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.rba4e6un.c -Werror -Wno-error=free-nonheap-object -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wno-error=free-nonheap-object...
DEBUG: Creating /tmp/conftest.w0tpvhsz.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.w0tpvhsz.cpp -Werror -Wno-error=free-nonheap-object -c
INFO: yes
INFO: checking whether the C compiler supports -Wno-multistatement-macros...
DEBUG: Creating /tmp/conftest.oic3rwv1.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.oic3rwv1.c -Werror -Wmultistatement-macros -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wno-multistatement-macros...
DEBUG: Creating /tmp/conftest.nuo5jck1.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.nuo5jck1.cpp -Werror -Wmultistatement-macros -c
INFO: yes
INFO: checking whether the C compiler supports -Wno-error=class-memaccess...
DEBUG: Creating /tmp/conftest.2lu6snwv.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.2lu6snwv.c -Werror -Wno-error=class-memaccess -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wno-error=class-memaccess...
DEBUG: Creating /tmp/conftest.vcxdwrau.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.vcxdwrau.cpp -Werror -Wno-error=class-memaccess -c
INFO: yes
INFO: checking whether the C compiler supports -Wno-error=atomic-alignment...
DEBUG: Creating /tmp/conftest.lbadr2gv.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.lbadr2gv.c -Werror -Wno-error=atomic-alignment -c
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | cc1: error: ‘-Wno-error=atomic-alignment’: no option ‘-Watomic-alignment’
INFO: no
INFO: checking whether the C++ compiler supports -Wno-error=atomic-alignment...
DEBUG: Creating /tmp/conftest.6o3no974.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.6o3no974.cpp -Werror -Wno-error=atomic-alignment -c
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | cc1plus: error: ‘-Wno-error=atomic-alignment’: no option ‘-Watomic-alignment’
INFO: no
INFO: checking whether the C compiler supports -Wno-error=deprecated-builtins...
DEBUG: Creating /tmp/conftest.2r7zdzv4.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.2r7zdzv4.c -Werror -Wno-error=deprecated-builtins -c
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | cc1: error: ‘-Wno-error=deprecated-builtins’: no option ‘-Wdeprecated-builtins’; did you mean ‘-Wdeprecated-declarations’?
INFO: no
INFO: checking whether the C++ compiler supports -Wno-error=deprecated-builtins...
DEBUG: Creating /tmp/conftest.7ac9vre7.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.7ac9vre7.cpp -Werror -Wno-error=deprecated-builtins -c
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | cc1plus: error: ‘-Wno-error=deprecated-builtins’: no option ‘-Wdeprecated-builtins’; did you mean ‘-Wdeprecated-declarations’?
INFO: no
INFO: checking whether the C compiler supports -Wformat...
DEBUG: Creating /tmp/conftest.euxqalab.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.euxqalab.c -Werror -Wformat -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wformat...
DEBUG: Creating /tmp/conftest.jki4pop1.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.jki4pop1.cpp -Werror -Wformat -c
INFO: yes
INFO: checking whether the C compiler supports -Wformat-security...
DEBUG: Creating /tmp/conftest.tun7dh4f.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.tun7dh4f.c -Werror -Wformat-security -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wformat-security...
DEBUG: Creating /tmp/conftest.q0pymjrf.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.q0pymjrf.cpp -Werror -Wformat-security -c
INFO: yes
INFO: checking whether the C compiler supports -Wformat-overflow=2...
DEBUG: Creating /tmp/conftest.plsy_7no.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.plsy_7no.c -Werror -Wformat-overflow=2 -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wformat-overflow=2...
DEBUG: Creating /tmp/conftest.ii4uf7fe.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.ii4uf7fe.cpp -Werror -Wformat-overflow=2 -c
INFO: yes
INFO: checking whether the C compiler supports -Werror=implicit-function-declaration...
DEBUG: Creating /tmp/conftest.ogg9buf5.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.ogg9buf5.c -Werror=implicit-function-declaration -c
INFO: yes
INFO: checking whether the C compiler supports -Wno-psabi...
DEBUG: Creating /tmp/conftest.7rvjay6z.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.7rvjay6z.c -Werror -Wpsabi -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wno-psabi...
DEBUG: Creating /tmp/conftest.m9rvbhg6.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.m9rvbhg6.cpp -Werror -Wpsabi -c
INFO: yes
INFO: checking whether the C compiler supports -Wno-error=builtin-macro-redefined...
DEBUG: Creating /tmp/conftest.h_zs6cf3.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.h_zs6cf3.c -Werror -Wno-error=builtin-macro-redefined -c
INFO: yes
INFO: checking whether the C++ compiler supports -Wno-error=builtin-macro-redefined...
DEBUG: Creating /tmp/conftest.mab0h8vw.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.mab0h8vw.cpp -Werror -Wno-error=builtin-macro-redefined -c
INFO: yes
INFO: checking whether the C compiler supports -Wno-unknown-warning-option...
DEBUG: Creating /tmp/conftest.ipog0rky.c
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.ipog0rky.c -Werror -Wunknown-warning-option -c
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | cc: error: unrecognized command-line option ‘-Wunknown-warning-option’
INFO: no
INFO: checking whether the C++ compiler supports -Wno-unknown-warning-option...
DEBUG: Creating /tmp/conftest.0p4jtdyb.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.0p4jtdyb.cpp -Werror -Wunknown-warning-option -c
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | c++: error: unrecognized command-line option ‘-Wunknown-warning-option’
INFO: no
INFO: checking whether the C++ compiler supports -fno-sized-deallocation...
DEBUG: Creating /tmp/conftest.32pqxa9u.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.32pqxa9u.cpp -Werror -fno-sized-deallocation -c
INFO: yes
INFO: checking whether the C++ compiler supports -fno-aligned-new...
DEBUG: Creating /tmp/conftest.oxn79bfv.cpp
with content:
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.oxn79bfv.cpp -Werror -fno-aligned-new -c
INFO: yes
INFO: checking for llvm_profdata...
DEBUG: llvm_profdata: Looking for llvm-profdata
INFO: /usr/bin/llvm-profdata
INFO: checking for llvm-objdump...
DEBUG: llvm_objdump: Looking for llvm-objdump
INFO: /usr/bin/llvm-objdump
INFO: checking for readelf...
DEBUG: readelf: Looking for llvm-readelf
DEBUG: Executing: /usr/bin/llvm-readelf --help
INFO: /usr/bin/llvm-readelf
INFO: checking for objcopy...
DEBUG: objcopy: Looking for llvm-objcopy
DEBUG: Executing: /usr/bin/llvm-objcopy --help
INFO: /usr/bin/llvm-objcopy
INFO: checking for rustc...
DEBUG: _rustc: Looking for /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/rustc
INFO: /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/rustc
INFO: checking for cargo...
DEBUG: _cargo: Looking for /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/cargo
INFO: /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/cargo
DEBUG: Executing: /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/rustc +stable
DEBUG: Executing: /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/cargo +stable
INFO: checking rustc version...
DEBUG: Executing: /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/rustc --version --verbose
INFO: 1.76.0
INFO: checking cargo version...
DEBUG: Executing: /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/cargo --version --verbose
INFO: 1.76.0
DEBUG: Executing: /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/rustc --print target-list
DEBUG: | warning: failed to connect to jobserver from environment variable CARGO_MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8"
: cannot open file descriptor 7 from the jobserver environment variable value: Bad file descriptor (os error 9)
DEBUG: | |
DEBUG: | = note: the build environment is likely misconfigured
DEBUG: |
INFO: checking for rust host triplet...
DEBUG: Creating /tmp/conftest3mnaie91.rs
with content:
DEBUG: | pub extern fn hello() { println!("Hello world"); }
DEBUG: Executing: /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/rustc --crate-type staticlib --target=x86_64-unknown-linux-gnu -o /tmp/conftestt7az1zoa.rlib /tmp/conftest3mnaie91.rs
DEBUG: | warning: failed to connect to jobserver from environment variable CARGO_MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8"
: cannot open file descriptor 7 from the jobserver environment variable value: Bad file descriptor (os error 9)
DEBUG: | |
DEBUG: | = note: the build environment is likely misconfigured
DEBUG: |
INFO: x86_64-unknown-linux-gnu
INFO: checking for rust target triplet...
DEBUG: Creating /tmp/conftest8wub0crr.rs
with content:
DEBUG: | pub extern fn hello() { println!("Hello world"); }
DEBUG: Executing: /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/rustc --crate-type staticlib --target=x86_64-unknown-linux-gnu -o /tmp/conftestbot0isht.rlib /tmp/conftest8wub0crr.rs
DEBUG: | warning: failed to connect to jobserver from environment variable CARGO_MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8"
: cannot open file descriptor 7 from the jobserver environment variable value: Bad file descriptor (os error 9)
DEBUG: | |
DEBUG: | = note: the build environment is likely misconfigured
DEBUG: |
INFO: x86_64-unknown-linux-gnu
INFO: checking for rustdoc...
DEBUG: rustdoc: Looking for /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/rustdoc
INFO: /home/marvelken/.rustup/toolchains/1.76-x86_64-unknown-linux-gnu/bin/rustdoc
INFO: checking for rustfmt...
DEBUG: rustfmt: Looking for rustfmt
INFO: /home/marvelken/.cargo/bin/rustfmt
INFO: checking for clang for bindgen...
DEBUG: Creating /tmp/conftest.aedzvg26.cpp
with content:
DEBUG: | #if defined(_MSC_VER) && defined(clang) && defined(_MT)
DEBUG: | %COMPILER "clang-cl"
DEBUG: | %VERSION clang_major.clang_minor.clang_patchlevel
DEBUG: | #elif defined(clang)
DEBUG: | %COMPILER "clang"
DEBUG: | %VERSION clang_major.clang_minor.clang_patchlevel
DEBUG: | # ifdef apple_build_version
DEBUG: | %XCODE 1
DEBUG: | # endif
DEBUG: | #elif defined(GNUC) && !defined(MINGW32)
DEBUG: | %COMPILER "gcc"
DEBUG: | %VERSION GNUC.GNUC_MINOR.GNUC_PATCHLEVEL
DEBUG: | #endif
DEBUG: |
DEBUG: | #if __cplusplus
DEBUG: | %cplusplus __cplusplus
DEBUG: | #elif STDC_VERSION
DEBUG: | %STDC_VERSION STDC_VERSION
DEBUG: | #endif
DEBUG: | #if i386 || _M_IX86
DEBUG: | %CPU "x86"
DEBUG: | #elif x86_64 || _M_X64
DEBUG: | %CPU "x86_64"
DEBUG: | #elif arm || _M_ARM
DEBUG: | %CPU "arm"
DEBUG: | #elif aarch64 || _M_ARM64
DEBUG: | %CPU "aarch64"
DEBUG: | #elif ia64
DEBUG: | %CPU "ia64"
DEBUG: | #elif s390x
DEBUG: | %CPU "s390x"
DEBUG: | #elif s390
DEBUG: | %CPU "s390"
DEBUG: | #elif powerpc64
DEBUG: | %CPU "ppc64"
DEBUG: | #elif powerpc
DEBUG: | %CPU "ppc"
DEBUG: | #elif alpha
DEBUG: | %CPU "Alpha"
DEBUG: | #elif hppa
DEBUG: | %CPU "hppa"
DEBUG: | #elif sparc && arch64
DEBUG: | %CPU "sparc64"
DEBUG: | #elif sparc
DEBUG: | %CPU "sparc"
DEBUG: | #elif m68k
DEBUG: | %CPU "m68k"
DEBUG: | #elif __mips64
DEBUG: | %CPU "mips64"
DEBUG: | #elif mips
DEBUG: | %CPU "mips32"
DEBUG: | #elif __riscv && __riscv_xlen == 64
DEBUG: | %CPU "riscv64"
DEBUG: | #elif __loongarch64
DEBUG: | %CPU "loongarch64"
DEBUG: | #elif sh
DEBUG: | %CPU "sh4"
DEBUG: | #elif wasm32
DEBUG: | %CPU "wasm32"
DEBUG: | #endif
DEBUG: | #if APPLE
DEBUG: | %KERNEL "Darwin"
DEBUG: | #elif DragonFly
DEBUG: | %KERNEL "DragonFly"
DEBUG: | #elif FreeBSD
DEBUG: | %KERNEL "FreeBSD"
DEBUG: | #elif FreeBSD_kernel
DEBUG: | %KERNEL "kFreeBSD"
DEBUG: | #elif linux
DEBUG: | %KERNEL "Linux"
DEBUG: | #elif NetBSD
DEBUG: | %KERNEL "NetBSD"
DEBUG: | #elif OpenBSD
DEBUG: | %KERNEL "OpenBSD"
DEBUG: | #elif sun
DEBUG: | %KERNEL "SunOS"
DEBUG: | #elif _WIN32 || CYGWIN
DEBUG: | %KERNEL "WINNT"
DEBUG: | #elif wasi
DEBUG: | %KERNEL "WASI"
DEBUG: | #endif
DEBUG: | #if ANDROID
DEBUG: | %OS "Android"
DEBUG: | #endif
DEBUG: | #if BYTE_ORDER == ORDER_LITTLE_ENDIAN
DEBUG: | %ENDIANNESS "little"
DEBUG: | #elif BYTE_ORDER == ORDER_BIG_ENDIAN
DEBUG: | %ENDIANNESS "big"
DEBUG: | #endif
DEBUG: Executing: /usr/bin/clang++ /tmp/conftest.aedzvg26.cpp -E
DEBUG: COMPILER = clang
DEBUG: VERSION = 14.0.0
DEBUG: cplusplus = 201402L
DEBUG: CPU = x86_64
DEBUG: KERNEL = Linux
DEBUG: ENDIANNESS = little
DEBUG: Creating /tmp/conftest.av7brcnv.cpp
with content:
DEBUG: | #if defined(_MSC_VER) && defined(clang) && defined(_MT)
DEBUG: | %COMPILER "clang-cl"
DEBUG: | %VERSION clang_major.clang_minor.clang_patchlevel
DEBUG: | #elif defined(clang)
DEBUG: | %COMPILER "clang"
DEBUG: | %VERSION clang_major.clang_minor.clang_patchlevel
DEBUG: | # ifdef apple_build_version
DEBUG: | %XCODE 1
DEBUG: | # endif
DEBUG: | #elif defined(GNUC) && !defined(MINGW32)
DEBUG: | %COMPILER "gcc"
DEBUG: | %VERSION GNUC.GNUC_MINOR.GNUC_PATCHLEVEL
DEBUG: | #endif
DEBUG: |
DEBUG: | #if __cplusplus
DEBUG: | %cplusplus __cplusplus
DEBUG: | #elif STDC_VERSION
DEBUG: | %STDC_VERSION STDC_VERSION
DEBUG: | #endif
DEBUG: | #if i386 || _M_IX86
DEBUG: | %CPU "x86"
DEBUG: | #elif x86_64 || _M_X64
DEBUG: | %CPU "x86_64"
DEBUG: | #elif arm || _M_ARM
DEBUG: | %CPU "arm"
DEBUG: | #elif aarch64 || _M_ARM64
DEBUG: | %CPU "aarch64"
DEBUG: | #elif ia64
DEBUG: | %CPU "ia64"
DEBUG: | #elif s390x
DEBUG: | %CPU "s390x"
DEBUG: | #elif s390
DEBUG: | %CPU "s390"
DEBUG: | #elif powerpc64
DEBUG: | %CPU "ppc64"
DEBUG: | #elif powerpc
DEBUG: | %CPU "ppc"
DEBUG: | #elif alpha
DEBUG: | %CPU "Alpha"
DEBUG: | #elif hppa
DEBUG: | %CPU "hppa"
DEBUG: | #elif sparc && arch64
DEBUG: | %CPU "sparc64"
DEBUG: | #elif sparc
DEBUG: | %CPU "sparc"
DEBUG: | #elif m68k
DEBUG: | %CPU "m68k"
DEBUG: | #elif __mips64
DEBUG: | %CPU "mips64"
DEBUG: | #elif mips
DEBUG: | %CPU "mips32"
DEBUG: | #elif __riscv && __riscv_xlen == 64
DEBUG: | %CPU "riscv64"
DEBUG: | #elif __loongarch64
DEBUG: | %CPU "loongarch64"
DEBUG: | #elif sh
DEBUG: | %CPU "sh4"
DEBUG: | #elif wasm32
DEBUG: | %CPU "wasm32"
DEBUG: | #endif
DEBUG: | #if APPLE
DEBUG: | %KERNEL "Darwin"
DEBUG: | #elif DragonFly
DEBUG: | %KERNEL "DragonFly"
DEBUG: | #elif FreeBSD
DEBUG: | %KERNEL "FreeBSD"
DEBUG: | #elif FreeBSD_kernel
DEBUG: | %KERNEL "kFreeBSD"
DEBUG: | #elif linux
DEBUG: | %KERNEL "Linux"
DEBUG: | #elif NetBSD
DEBUG: | %KERNEL "NetBSD"
DEBUG: | #elif OpenBSD
DEBUG: | %KERNEL "OpenBSD"
DEBUG: | #elif sun
DEBUG: | %KERNEL "SunOS"
DEBUG: | #elif _WIN32 || CYGWIN
DEBUG: | %KERNEL "WINNT"
DEBUG: | #elif wasi
DEBUG: | %KERNEL "WASI"
DEBUG: | #endif
DEBUG: | #if ANDROID
DEBUG: | %OS "Android"
DEBUG: | #endif
DEBUG: | #if BYTE_ORDER == ORDER_LITTLE_ENDIAN
DEBUG: | %ENDIANNESS "little"
DEBUG: | #elif BYTE_ORDER == ORDER_BIG_ENDIAN
DEBUG: | %ENDIANNESS "big"
DEBUG: | #endif
DEBUG: Executing: /usr/bin/clang++ -std=gnu++17 /tmp/conftest.av7brcnv.cpp -E
DEBUG: COMPILER = clang
DEBUG: VERSION = 14.0.0
DEBUG: cplusplus = 201703L
DEBUG: CPU = x86_64
DEBUG: KERNEL = Linux
DEBUG: ENDIANNESS = little
INFO: /usr/bin/clang++
INFO: checking for libclang for bindgen...
DEBUG: Executing: /usr/bin/clang++ -print-search-dirs
DEBUG: Trying "libclang.so" in "/usr/lib/llvm-14/lib"
INFO: /usr/lib/llvm-14/lib/libclang.so
INFO: checking that libclang is new enough...
INFO: yes
INFO: checking bindgen cflags...
INFO: -x c++ -fno-sized-deallocation -fno-aligned-new -DTRACING=1 -DIMPL_LIBXUL -DMOZILLA_INTERNAL_API -DRUST_BINDGEN -std=gnu++17
INFO: checking for tm_zone and tm_gmtoff in struct tm...
DEBUG: Creating /tmp/conftest.sd3yl15j.c
with content:
DEBUG: | #include <time.h>
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | struct tm tm; tm.tm_zone = 0; tm.tm_gmtoff = 1;
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.sd3yl15j.c -c
INFO: yes
INFO: checking for getpagesize...
DEBUG: Creating /tmp/conftest.pexbk1q1.c
with content:
DEBUG: | /* Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char getpagesize();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | getpagesize();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.pexbk1q1.c -fuse-ld=gold
INFO: yes
INFO: checking for gmtime_r...
DEBUG: Creating /tmp/conftest.va34hyyd.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char gmtime_r();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | gmtime_r();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.va34hyyd.c -fuse-ld=gold
INFO: yes
INFO: checking for localtime_r...
DEBUG: Creating /tmp/conftest.0fk2gksg.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char localtime_r();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | localtime_r();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.0fk2gksg.c -fuse-ld=gold
INFO: yes
INFO: checking for gettid...
DEBUG: Creating /tmp/conftest.tp8yldgt.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char gettid();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | gettid();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.tp8yldgt.c -fuse-ld=gold
INFO: yes
INFO: checking for setpriority...
DEBUG: Creating /tmp/conftest.fp6mh6av.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char setpriority();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | setpriority();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.fp6mh6av.c -fuse-ld=gold
INFO: yes
INFO: checking for syscall...
DEBUG: Creating /tmp/conftest.knehil0w.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char syscall();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | syscall();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.knehil0w.c -fuse-ld=gold
INFO: yes
INFO: checking for getc_unlocked...
DEBUG: Creating /tmp/conftest.g2wqm5vl.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char getc_unlocked();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | getc_unlocked();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.g2wqm5vl.c -fuse-ld=gold
INFO: yes
INFO: checking for pthread_getname_np...
DEBUG: Creating /tmp/conftest.i5h64whr.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char pthread_getname_np();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | pthread_getname_np();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.i5h64whr.c -fuse-ld=gold
INFO: yes
INFO: checking for pthread_get_name_np...
DEBUG: Creating /tmp/conftest.i_o9705q.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char pthread_get_name_np();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | pthread_get_name_np();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.i_o9705q.c -fuse-ld=gold
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | /tmp/ccigYL42.o:conftest.i_o9705q.c:function main: error: undefined reference to 'pthread_get_name_np'
DEBUG: | collect2: error: ld returned 1 exit status
INFO: no
INFO: checking for strerror...
DEBUG: Creating /tmp/conftest.ataddc60.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char strerror();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | strerror();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.ataddc60.c -fuse-ld=gold
INFO: yes
INFO: checking for __cxa_demangle...
DEBUG: Creating /tmp/conftest.z1c5366j.cpp
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | extern "C" char __cxa_demangle();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | __cxa_demangle();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.z1c5366j.cpp -fuse-ld=gold
INFO: yes
INFO: checking for unwind.h...
DEBUG: Creating /tmp/conftest.o0szd6ug.cpp
with content:
DEBUG: | #include <unwind.h>
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: |
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/c++ /tmp/conftest.o0szd6ug.cpp -c
INFO: yes
INFO: checking for _Unwind_Backtrace...
DEBUG: Creating /tmp/conftest.ydu5x7_u.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char _Unwind_Backtrace();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | _Unwind_Backtrace();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.ydu5x7_u.c -fuse-ld=gold
INFO: yes
INFO: checking for _getc_nolock...
DEBUG: Creating /tmp/conftest.01gfnhpd.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. /
DEBUG: | char _getc_nolock();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | _getc_nolock();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.01gfnhpd.c -fuse-ld=gold
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | /tmp/ccBifGYx.o:conftest.01gfnhpd.c:function main: error: undefined reference to '_getc_nolock'
DEBUG: | collect2: error: ld returned 1 exit status
INFO: no
INFO: checking for localeconv...
DEBUG: Creating /tmp/conftest.bgabpozn.c
with content:
DEBUG: | / Override any gcc2 internal prototype to avoid an error. /
DEBUG: | / We use char because int might match the return type of a gcc2
DEBUG: | builtin and then its argument prototype would still apply. */
DEBUG: | char localeconv();
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | localeconv();
DEBUG: | ;
DEBUG: | return 0;
DEBUG: | }
DEBUG: Executing: /usr/bin/cc -std=gnu99 /tmp/conftest.bgabpozn.c -fuse-ld=gold
INFO: yes
INFO: checking for awk...
DEBUG: awk: Looking for gawk
INFO: /usr/bin/gawk
INFO: checking for gmake...
DEBUG: gmake: Looking for gmake
INFO: /usr/bin/gmake
INFO: checking for watchman...
INFO: not found
INFO: checking for xargs...
DEBUG: xargs: Looking for xargs
INFO: /usr/bin/xargs
INFO: checking for rpmbuild...
DEBUG: rpmbuild: Looking for rpmbuild
INFO: not found
INFO: checking for strip...
DEBUG: strip: Looking for llvm-strip
DEBUG: Executing: /usr/bin/llvm-strip --help
INFO: /usr/bin/llvm-strip
ERROR: *** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
--- stderr
gmake: *** No targets specified and no makefile found. Stop.
ERROR: *** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
make: *** [/home/marvelken/.cargo/git/checkouts/mozjs-e1c76167ba7c548f/5e3485e/mozjs-sys/makefile.cargo:158: maybe-configure] Error 1
thread 'main' panicked at /home/marvelken/.cargo/git/checkouts/mozjs-e1c76167ba7c548f/5e3485e/mozjs-sys/build.rs:272:5:
assertion failed: result.success()
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Here is the error
Hey @marvelken. According to this error:
ERROR: *** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
I assume you need to install pkg-config
to be able to build WinterJS. Please note Windows is not officially supported.
Hello @Arshia001, thanks for responding.
I'm using Window's WSL 2 to set up WinterJS so I'm assuming it should work, or won't it?
Also, I'm trying to build WinterJS from Source, and according to documentation, I have to set up SpiderMonkey using wasmerio/mozjs
. And from the documentation on mozjs
, I have installed all the required Linux build-essential and others. Then tried running the cargo build
command and got the below error:
$ cargo build
Updating git repository `https://github.com/rust-lang/libz-sys`
Updating crates.io index
error: no matching package named `mozjs_sys` found
location searched: /home/marvelken/mozjs/mozjs-sys
required by package `mozjs v0.14.1 (/home/marvelken/mozjs/mozjs)`
I didn't change anything, and as much as I don't know Rust that well, I have inspected the Cargo.toml
file in the ./mozjs
directory and saw that it depends on the ./mozjs-sys
folder as a package but can't seem to find it even though it's there. So I'm really confuse as to what the issue might be. Any help or suggestions?
Yes, WSL should work, I can build WinterJS successfully on Ubuntu 22.04 running on WSL.
You don't need to clone and build mozjs
, you just need to be able to build it. It will be downloaded and built as part of the build/installation of WinterJS itself. When you have everything from the mozjs
README installed, simply running cargo build
in the WinterJS directory should be enough to build it.