Skip to content

Freebsd error, "cargo install asm-lsp" #275

@devosalain

Description

@devosalain

cargo install asm-lsp returns,

warning: symbolic-demangle@12.17.0: 17 | #include
warning: symbolic-demangle@12.17.0: | ^~~~~~~~~
warning: symbolic-demangle@12.17.0: compilation terminated.
warning: symbolic-demangle@12.17.0: ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-std=c++17" "-I" "vendor/swift/include" "-w" "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" "-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1" "-fpermissive" "-Wno-changes-meaning" "-o" "/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out/9e67921832b6be5b-Remangler.o" "-c" "vendor/swift/lib/Demangling/Remangler.cpp"
error: failed to run custom build command for symbolic-demangle v12.17.0

Caused by:
process didn't exit successfully: /tmp/cargo-installkiI4mw/release/build/symbolic-demangle-50b82ffe079105e0/build-script-build (exit status: 1)
--- stdout
OUT_DIR = Some(/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out)
OPT_LEVEL = Some(3)
TARGET = Some(x86_64-unknown-freebsd)
CARGO_ENCODED_RUSTFLAGS = Some()
HOST = Some(x86_64-unknown-freebsd)
cargo:rerun-if-env-changed=CXX_x86_64-unknown-freebsd
CXX_x86_64-unknown-freebsd = None
cargo:rerun-if-env-changed=CXX_x86_64_unknown_freebsd
CXX_x86_64_unknown_freebsd = None
cargo:rerun-if-env-changed=HOST_CXX
HOST_CXX = None
cargo:rerun-if-env-changed=CXX
CXX = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
RUSTC_WRAPPER = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some(false)
CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_freebsd
CXXFLAGS_x86_64_unknown_freebsd = None
cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-freebsd
CXXFLAGS_x86_64-unknown-freebsd = None
OUT_DIR = Some(/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(x86_64-unknown-freebsd)
CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
HOST = Some(x86_64-unknown-freebsd)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_freebsd
CXXFLAGS_x86_64_unknown_freebsd = None
cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-freebsd
CXXFLAGS_x86_64-unknown-freebsd = None
OUT_DIR = Some(/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(x86_64-unknown-freebsd)
CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
HOST = Some(x86_64-unknown-freebsd)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_freebsd
CXXFLAGS_x86_64_unknown_freebsd = None
cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-freebsd
CXXFLAGS_x86_64-unknown-freebsd = None
cargo:warning=In file included from vendor/swift/include/llvm/ADT/StringRef.h:12,
cargo:warning= from vendor/swift/include/swift/Demangling/Demangle.h:24,
cargo:warning= from src/swiftdemangle.cpp:1:
cargo:warning=vendor/swift/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: cassert: No such file or directory
cargo:warning= 17 | #include
cargo:warning= | ^~~~~~~~~
cargo:warning=compilation terminated.
exit status: 1
cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-std=c++17" "-I" "vendor/swift/include" "-w" "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" "-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1" "-fpermissive" "-Wno-changes-meaning" "-o" "/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out/0602fb52cb66f316-swiftdemangle.o" "-c" "src/swiftdemangle.cpp"cargo:warning=In file included from vendor/swift/include/llvm/ADT/StringRef.h:12,
cargo:warning= from vendor/swift/include/swift/Demangling/Demangle.h:24,
cargo:warning= from vendor/swift/include/swift/Demangling/Demangler.h:22,
cargo:warning= from vendor/swift/lib/Demangling/Context.cpp:17:
cargo:warning=vendor/swift/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: cassert: No such file or directory
cargo:warning= 17 | #include
cargo:warning= | ^~~~~~~~~
cargo:warning=compilation terminated.

exit status: 1
cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-std=c++17" "-I" "vendor/swift/include" "-w" "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" "-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1" "-fpermissive" "-Wno-changes-meaning" "-o" "/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out/9e67921832b6be5b-Context.o" "-c" "vendor/swift/lib/Demangling/Context.cpp"cargo:warning=In file included from vendor/swift/include/llvm/ADT/StringRef.h:12,
cargo:warning= from vendor/swift/include/swift/Demangling/Demangle.h:24,
cargo:warning= from vendor/swift/include/swift/Demangling/Demangler.h:22,
cargo:warning= from vendor/swift/lib/Demangling/Demangler.cpp:18:
cargo:warning=vendor/swift/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: cassert: No such file or directory
cargo:warning= 17 | #include
cargo:warning= | ^~~~~~~~~
cargo:warning=compilation terminated.

exit status: 0
exit status: 1
cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-std=c++17" "-I" "vendor/swift/include" "-w" "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" "-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1" "-fpermissive" "-Wno-changes-meaning" "-o" "/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out/9e67921832b6be5b-Demangler.o" "-c" "vendor/swift/lib/Demangling/Demangler.cpp"cargo:warning=In file included from vendor/swift/include/llvm/ADT/StringRef.h:12,
cargo:warning= from vendor/swift/include/swift/Demangling/Punycode.h:30,
cargo:warning= from vendor/swift/include/swift/Demangling/ManglingUtils.h:17,
cargo:warning= from vendor/swift/lib/Demangling/ManglingUtils.cpp:13:
cargo:warning=vendor/swift/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: cassert: No such file or directory
cargo:warning= 17 | #include
cargo:warning= | ^~~~~~~~~
cargo:warning=compilation terminated.

exit status: 0
exit status: 1
cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-std=c++17" "-I" "vendor/swift/include" "-w" "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" "-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1" "-fpermissive" "-Wno-changes-meaning" "-o" "/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out/9e67921832b6be5b-ManglingUtils.o" "-c" "vendor/swift/lib/Demangling/ManglingUtils.cpp"cargo:warning=In file included from vendor/swift/include/llvm/ADT/StringRef.h:12,
cargo:warning= from vendor/swift/include/swift/Demangling/Demangle.h:24,
cargo:warning= from vendor/swift/lib/Demangling/NodeDumper.cpp:13:
cargo:warning=vendor/swift/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: cassert: No such file or directory
cargo:warning= 17 | #include
cargo:warning= | ^~~~~~~~~
cargo:warning=compilation terminated.

exit status: 1
cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-std=c++17" "-I" "vendor/swift/include" "-w" "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" "-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1" "-fpermissive" "-Wno-changes-meaning" "-o" "/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out/9e67921832b6be5b-NodeDumper.o" "-c" "vendor/swift/lib/Demangling/NodeDumper.cpp"cargo:warning=In file included from vendor/swift/include/swift/AST/Ownership.h:22,
cargo:warning= from vendor/swift/lib/Demangling/NodePrinter.cpp:17:
cargo:warning=vendor/swift/include/swift/Basic/InlineBitfield.h:21:10: fatal error: cstdint: No such file or directory
cargo:warning= 21 | #include
cargo:warning= | ^~~~~~~~~
cargo:warning=compilation terminated.

exit status: 1
cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-std=c++17" "-I" "vendor/swift/include" "-w" "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" "-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1" "-fpermissive" "-Wno-changes-meaning" "-o" "/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out/9e67921832b6be5b-NodePrinter.o" "-c" "vendor/swift/lib/Demangling/NodePrinter.cpp"cargo:warning=In file included from vendor/swift/include/llvm/ADT/StringRef.h:12,
cargo:warning= from vendor/swift/include/swift/Demangling/Punycode.h:30,
cargo:warning= from vendor/swift/lib/Demangling/Punycode.cpp:13:
cargo:warning=vendor/swift/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: cassert: No such file or directory
cargo:warning= 17 | #include
cargo:warning= | ^~~~~~~~~
cargo:warning=compilation terminated.

exit status: 1
cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-std=c++17" "-I" "vendor/swift/include" "-w" "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" "-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1" "-fpermissive" "-Wno-changes-meaning" "-o" "/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out/9e67921832b6be5b-Punycode.o" "-c" "vendor/swift/lib/Demangling/Punycode.cpp"cargo:warning=In file included from vendor/swift/include/llvm/ADT/StringRef.h:12,
cargo:warning= from vendor/swift/include/swift/Demangling/Demangle.h:24,
cargo:warning= from vendor/swift/lib/Demangling/DemanglerAssert.h:22,
cargo:warning= from vendor/swift/lib/Demangling/Remangler.cpp:19:
cargo:warning=vendor/swift/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: cassert: No such file or directory
cargo:warning= 17 | #include
cargo:warning= | ^~~~~~~~~
cargo:warning=compilation terminated.

exit status: 1
cargo:warning=ToolExecError: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-std=c++17" "-I" "vendor/swift/include" "-w" "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" "-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1" "-fpermissive" "-Wno-changes-meaning" "-o" "/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out/9e67921832b6be5b-Remangler.o" "-c" "vendor/swift/lib/Demangling/Remangler.cpp"

--- stderr

error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-std=c++17" "-I" "vendor/swift/include" "-w" "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" "-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1" "-fpermissive" "-Wno-changes-meaning" "-o" "/tmp/cargo-installkiI4mw/release/build/symbolic-demangle-1a85cab9de5e6666/out/9e67921832b6be5b-Remangler.o" "-c" "vendor/swift/lib/Demangling/Remangler.cpp"

warning: build failed, waiting for other jobs to finish...
error: failed to compile asm-lsp v0.10.1, intermediate artifacts can be found at /tmp/cargo-installkiI4mw.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions