NamseEnt / namseent

Mono Repository for Namse Entertainment Ltd.
GNU Affero General Public License v3.0
13 stars 2 forks source link

[Bug]: Can not build fasthash-sys in client side #991

Closed bigfoodK closed 2 days ago

bigfoodK commented 3 days ago

Expected Behavior

Success

Actual Behavior

[fasthash-sys 0.3.2] thread 'main' panicked at /home/bigfood/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gcc-0.3.55/src/lib.rs:1672:5:
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] Internal error occurred: Command "/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=wasm32-wasip1-threads" "-Wno-implicit-fallthrough" "-Wno-unknown-attributes" "-msse4.2" "-maes" "-mavx" "-mavx2" "-DT1HA0_RUNTIME_SELECT=1" "-DT1HA0_AESNI_AVAILABLE=1" "-Wall" "-Wextra" "-o" "/home/bigfood/programming/namseent/luda-editor/new-client/target/namui/target/wasm32-wasip1-threads/debug/build/fasthash-sys-16dad87fe4ec6b6f/out/src/fasthash.o" "-c" "src/fasthash.cpp" with args "clang" did not execute successfully (status code exit status: 1).
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[fasthash-sys 0.3.2] thread 'main' panicked at /home/bigfood/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gcc-0.3.55/src/lib.rs:1672:5:
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] Internal error occurred: Command "/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=x86_64-unknown-linux-gnu" "-Wno-implicit-fallthrough" "-Wno-unknown-attributes" "-msse4.2" "-maes" "-mavx" "-mavx2" "-DT1HA0_RUNTIME_SELECT=1" "-DT1HA0_AESNI_AVAILABLE=1" "-Wall" "-Wextra" "-o" "/home/bigfood/programming/namseent/luda-editor/new-client/target/namui/target/debug/build/fasthash-sys-f8a4783e4362029b/out/src/fasthash.o" "-c" "src/fasthash.cpp" with args "clang" did not execute successfully (status code exit status: 1).
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[fasthash-sys 0.3.2] TARGET = Some("wasm32-wasip1-threads")
[fasthash-sys 0.3.2] OPT_LEVEL = Some("1")
[fasthash-sys 0.3.2] TARGET = Some("wasm32-wasip1-threads")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] TARGET = Some("wasm32-wasip1-threads")
[fasthash-sys 0.3.2] TARGET = Some("wasm32-wasip1-threads")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] CC_wasm32-wasip1-threads = None
[fasthash-sys 0.3.2] CC_wasm32_wasip1_threads = None
[fasthash-sys 0.3.2] TARGET_CC = None
[fasthash-sys 0.3.2] CC = Some("/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang")
[fasthash-sys 0.3.2] TARGET = Some("wasm32-wasip1-threads")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] CFLAGS_wasm32-wasip1-threads = None
[fasthash-sys 0.3.2] CFLAGS_wasm32_wasip1_threads = None
[fasthash-sys 0.3.2] TARGET_CFLAGS = None
[fasthash-sys 0.3.2] CFLAGS = None
[fasthash-sys 0.3.2] DEBUG = Some("true")
[fasthash-sys 0.3.2] running: "/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=wasm32-wasip1-threads" "-Wno-implicit-fallthrough" "-Wno-unknown-attributes" "-msse4.2" "-maes" "-mavx" "-mavx2" "-DT1HA0_RUNTIME_SELECT=1" "-DT1HA0_AESNI_AVAILABLE=1" "-Wall" "-Wextra" "-o" "/home/bigfood/programming/namseent/luda-editor/new-client/target/namui/target/wasm32-wasip1-threads/debug/build/fasthash-sys-16dad87fe4ec6b6f/out/src/fasthash.o" "-c" "src/fasthash.cpp"
[fasthash-sys 0.3.2] TARGET = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] OPT_LEVEL = Some("0")
[fasthash-sys 0.3.2] TARGET = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] TARGET = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] TARGET = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] CC_x86_64-unknown-linux-gnu = None
[fasthash-sys 0.3.2] CC_x86_64_unknown_linux_gnu = None
[fasthash-sys 0.3.2] HOST_CC = None
[fasthash-sys 0.3.2] CC = Some("/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang")
[fasthash-sys 0.3.2] TARGET = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] CFLAGS_x86_64-unknown-linux-gnu = None
[fasthash-sys 0.3.2] CFLAGS_x86_64_unknown_linux_gnu = None
[fasthash-sys 0.3.2] HOST_CFLAGS = None
[fasthash-sys 0.3.2] CFLAGS = None
[fasthash-sys 0.3.2] DEBUG = Some("true")
[fasthash-sys 0.3.2] running: "/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=x86_64-unknown-linux-gnu" "-Wno-implicit-fallthrough" "-Wno-unknown-attributes" "-msse4.2" "-maes" "-mavx" "-mavx2" "-DT1HA0_RUNTIME_SELECT=1" "-DT1HA0_AESNI_AVAILABLE=1" "-Wall" "-Wextra" "-o" "/home/bigfood/programming/namseent/luda-editor/new-client/target/namui/target/debug/build/fasthash-sys-f8a4783e4362029b/out/src/fasthash.o" "-c" "src/fasthash.cpp"
[fasthash-sys 0.3.2] cargo:warning=clang: warning: argument unused during compilation: '-msse4.2' [-Wunused-command-line-argument]
[fasthash-sys 0.3.2] cargo:warning=clang: error: unsupported option '-maes' for target 'wasm32-wasip1-threads'
[fasthash-sys 0.3.2] cargo:warning=clang: error: unsupported option '-mavx' for target 'wasm32-wasip1-threads'
[fasthash-sys 0.3.2] cargo:warning=clang: error: unsupported option '-mavx2' for target 'wasm32-wasip1-threads'
[fasthash-sys 0.3.2] exit status: 1
[fasthash-sys 0.3.2] cargo:warning=In file included from src/fasthash.cpp:1:
[fasthash-sys 0.3.2] cargo:warning=In file included from src/fasthash.hpp:1:
[fasthash-sys 0.3.2] cargo:warning=In file included from src/smhasher/City.h:46:
[fasthash-sys 0.3.2] cargo:warning=src/smhasher/Platform.h:47:10: fatal error: 'stdlib.h' file not found
[fasthash-sys 0.3.2] cargo:warning=   47 | #include <stdlib.h>
[fasthash-sys 0.3.2] cargo:warning=      |          ^~~~~~~~~~
[fasthash-sys 0.3.2] cargo:warning=1 error generated.
[fasthash-sys 0.3.2] exit status: 1
[fasthash-sys 0.3.2] thread 'main' panicked at /home/bigfood/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gcc-0.3.55/src/lib.rs:1672:5:
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] Internal error occurred: Command "/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=wasm32-wasip1-threads" "-Wno-implicit-fallthrough" "-Wno-unknown-attributes" "-msse4.2" "-maes" "-mavx" "-mavx2" "-DT1HA0_RUNTIME_SELECT=1" "-DT1HA0_AESNI_AVAILABLE=1" "-Wall" "-Wextra" "-o" "/home/bigfood/programming/namseent/luda-editor/new-client/target/namui/target/wasm32-wasip1-threads/debug/build/fasthash-sys-16dad87fe4ec6b6f/out/src/fasthash.o" "-c" "src/fasthash.cpp" with args "clang" did not execute successfully (status code exit status: 1).
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[fasthash-sys 0.3.2] thread 'main' panicked at /home/bigfood/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gcc-0.3.55/src/lib.rs:1672:5:
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] Internal error occurred: Command "/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=x86_64-unknown-linux-gnu" "-Wno-implicit-fallthrough" "-Wno-unknown-attributes" "-msse4.2" "-maes" "-mavx" "-mavx2" "-DT1HA0_RUNTIME_SELECT=1" "-DT1HA0_AESNI_AVAILABLE=1" "-Wall" "-Wextra" "-o" "/home/bigfood/programming/namseent/luda-editor/new-client/target/namui/target/debug/build/fasthash-sys-f8a4783e4362029b/out/src/fasthash.o" "-c" "src/fasthash.cpp" with args "clang" did not execute successfully (status code exit status: 1).
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] 
[fasthash-sys 0.3.2] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[fasthash-sys 0.3.2] TARGET = Some("wasm32-wasip1-threads")
[fasthash-sys 0.3.2] OPT_LEVEL = Some("1")
[fasthash-sys 0.3.2] TARGET = Some("wasm32-wasip1-threads")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] TARGET = Some("wasm32-wasip1-threads")
[fasthash-sys 0.3.2] TARGET = Some("wasm32-wasip1-threads")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] CC_wasm32-wasip1-threads = None
[fasthash-sys 0.3.2] CC_wasm32_wasip1_threads = None
[fasthash-sys 0.3.2] TARGET_CC = None
[fasthash-sys 0.3.2] CC = Some("/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang")
[fasthash-sys 0.3.2] TARGET = Some("wasm32-wasip1-threads")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] CFLAGS_wasm32-wasip1-threads = None
[fasthash-sys 0.3.2] CFLAGS_wasm32_wasip1_threads = None
[fasthash-sys 0.3.2] TARGET_CFLAGS = None
[fasthash-sys 0.3.2] CFLAGS = None
[fasthash-sys 0.3.2] DEBUG = Some("true")
[fasthash-sys 0.3.2] running: "/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=wasm32-wasip1-threads" "-Wno-implicit-fallthrough" "-Wno-unknown-attributes" "-msse4.2" "-maes" "-mavx" "-mavx2" "-DT1HA0_RUNTIME_SELECT=1" "-DT1HA0_AESNI_AVAILABLE=1" "-Wall" "-Wextra" "-o" "/home/bigfood/programming/namseent/luda-editor/new-client/target/namui/target/wasm32-wasip1-threads/debug/build/fasthash-sys-16dad87fe4ec6b6f/out/src/fasthash.o" "-c" "src/fasthash.cpp"
[fasthash-sys 0.3.2] TARGET = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] OPT_LEVEL = Some("0")
[fasthash-sys 0.3.2] TARGET = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] TARGET = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] TARGET = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] CC_x86_64-unknown-linux-gnu = None
[fasthash-sys 0.3.2] CC_x86_64_unknown_linux_gnu = None
[fasthash-sys 0.3.2] HOST_CC = None
[fasthash-sys 0.3.2] CC = Some("/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang")
[fasthash-sys 0.3.2] TARGET = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] HOST = Some("x86_64-unknown-linux-gnu")
[fasthash-sys 0.3.2] CFLAGS_x86_64-unknown-linux-gnu = None
[fasthash-sys 0.3.2] CFLAGS_x86_64_unknown_linux_gnu = None
[fasthash-sys 0.3.2] HOST_CFLAGS = None
[fasthash-sys 0.3.2] CFLAGS = None
[fasthash-sys 0.3.2] DEBUG = Some("true")
[fasthash-sys 0.3.2] running: "/home/bigfood/programming/namseent/namui/namui-cli/wasi-sdk/bin/clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "--target=x86_64-unknown-linux-gnu" "-Wno-implicit-fallthrough" "-Wno-unknown-attributes" "-msse4.2" "-maes" "-mavx" "-mavx2" "-DT1HA0_RUNTIME_SELECT=1" "-DT1HA0_AESNI_AVAILABLE=1" "-Wall" "-Wextra" "-o" "/home/bigfood/programming/namseent/luda-editor/new-client/target/namui/target/debug/build/fasthash-sys-f8a4783e4362029b/out/src/fasthash.o" "-c" "src/fasthash.cpp"
[fasthash-sys 0.3.2] cargo:warning=clang: warning: argument unused during compilation: '-msse4.2' [-Wunused-command-line-argument]
[fasthash-sys 0.3.2] cargo:warning=clang: error: unsupported option '-maes' for target 'wasm32-wasip1-threads'
[fasthash-sys 0.3.2] cargo:warning=clang: error: unsupported option '-mavx' for target 'wasm32-wasip1-threads'
[fasthash-sys 0.3.2] cargo:warning=clang: error: unsupported option '-mavx2' for target 'wasm32-wasip1-threads'
[fasthash-sys 0.3.2] exit status: 1
[fasthash-sys 0.3.2] cargo:warning=In file included from src/fasthash.cpp:1:
[fasthash-sys 0.3.2] cargo:warning=In file included from src/fasthash.hpp:1:
[fasthash-sys 0.3.2] cargo:warning=In file included from src/smhasher/City.h:46:
[fasthash-sys 0.3.2] cargo:warning=src/smhasher/Platform.h:47:10: fatal error: 'stdlib.h' file not found
[fasthash-sys 0.3.2] cargo:warning=   47 | #include <stdlib.h>
[fasthash-sys 0.3.2] cargo:warning=      |          ^~~~~~~~~~
[fasthash-sys 0.3.2] cargo:warning=1 error generated.
[fasthash-sys 0.3.2] exit status: 1

Steps to Reproduce

run namui start wasm32-wasi-web in luda-editor new-client

Other Info

No response