Code Monkey home page Code Monkey logo

Comments (5)

HerringtonDarkholme avatar HerringtonDarkholme commented on June 19, 2024

Try cargo build instead

from vue-compiler.

JerryWu1234 avatar JerryWu1234 commented on June 19, 2024

wuls@XD021NB2003146 crates % cargo build
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /Users/wuls/Desktop/rust/vue-compiler/crates/wasm/Cargo.toml
workspace: /Users/wuls/Desktop/rust/vue-compiler/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /Users/wuls/Desktop/rust/vue-compiler/napi/Cargo.toml
workspace: /Users/wuls/Desktop/rust/vue-compiler/Cargo.toml
Compiling vue-ref-transform v0.1.0 (/Users/wuls/Desktop/rust/vue-compiler/crates/ref_transform)
warning: function is never used: is_start_of_statement
--> crates/sfc/src/rewrite_default.rs:26:4
|
26 | fn is_start_of_statement(input: &str, pos: usize) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: vue-compiler-sfc (lib) generated 1 warning
Compiling vue-compiler-cli v0.1.0 (/Users/wuls/Desktop/rust/vue-compiler/crates/cli)
The following warnings were emitted during compilation:

warning: clang: error: no such file or directory: 'tree-sitter-javascript/src/parser.c'
warning: clang: error: no input files

error: failed to run custom build command for vue-ref-transform v0.1.0 (/Users/wuls/Desktop/rust/vue-compiler/crates/ref_transform)

Caused by:
process didn't exit successfully: /Users/wuls/Desktop/rust/vue-compiler/target/debug/build/vue-ref-transform-2b7ae479dd17cdb2/build-script-build (exit status: 1)
--- stdout
TARGET = Some("x86_64-apple-darwin")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-apple-darwin")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "tree-sitter-javascript/src" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-trigraphs" "-o" "/Users/wuls/Desktop/rust/vue-compiler/target/debug/build/vue-ref-transform-0bc9a8bcee6b0e99/out/tree-sitter-javascript/src/parser.o" "-c" "tree-sitter-javascript/src/parser.c"
cargo:warning=clang: error: no such file or directory: 'tree-sitter-javascript/src/parser.c'
cargo:warning=clang: error: no input files
exit status: 1

--- stderr

error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "tree-sitter-javascript/src" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-trigraphs" "-o" "/Users/wuls/Desktop/rust/vue-compiler/target/debug/build/vue-ref-transform-0bc9a8bcee6b0e99/out/tree-sitter-javascript/src/parser.o" "-c" "tree-sitter-javascript/src/parser.c" with args "cc" did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish...
error: build failed
wuls@XD021NB2003146 crates %

will be same error

from vue-compiler.

HerringtonDarkholme avatar HerringtonDarkholme commented on June 19, 2024

git submodule update --recursive

from vue-compiler.

JerryWu1234 avatar JerryWu1234 commented on June 19, 2024

wuls@XD021NB2003146 vue-compiler % git submodule update --recursive
wuls@XD021NB2003146 vue-compiler % cargo build
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /Users/wuls/Desktop/rust/vue-compiler/crates/wasm/Cargo.toml
workspace: /Users/wuls/Desktop/rust/vue-compiler/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /Users/wuls/Desktop/rust/vue-compiler/napi/Cargo.toml
workspace: /Users/wuls/Desktop/rust/vue-compiler/Cargo.toml
Compiling vue-ref-transform v0.1.0 (/Users/wuls/Desktop/rust/vue-compiler/crates/ref_transform)
warning: function is never used: is_start_of_statement
--> crates/sfc/src/rewrite_default.rs:26:4
|
26 | fn is_start_of_statement(input: &str, pos: usize) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: vue-compiler-sfc (lib) generated 1 warning
The following warnings were emitted during compilation:

warning: clang: error: no such file or directory: 'tree-sitter-javascript/src/parser.c'
warning: clang: error: no input files

error: failed to run custom build command for vue-ref-transform v0.1.0 (/Users/wuls/Desktop/rust/vue-compiler/crates/ref_transform)

Caused by:
process didn't exit successfully: /Users/wuls/Desktop/rust/vue-compiler/target/debug/build/vue-ref-transform-2b7ae479dd17cdb2/build-script-build (exit status: 1)
--- stdout
TARGET = Some("x86_64-apple-darwin")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-apple-darwin")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "tree-sitter-javascript/src" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-trigraphs" "-o" "/Users/wuls/Desktop/rust/vue-compiler/target/debug/build/vue-ref-transform-0bc9a8bcee6b0e99/out/tree-sitter-javascript/src/parser.o" "-c" "tree-sitter-javascript/src/parser.c"
cargo:warning=clang: error: no such file or directory: 'tree-sitter-javascript/src/parser.c'
cargo:warning=clang: error: no input files
exit status: 1

--- stderr

error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "tree-sitter-javascript/src" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-trigraphs" "-o" "/Users/wuls/Desktop/rust/vue-compiler/target/debug/build/vue-ref-transform-0bc9a8bcee6b0e99/out/tree-sitter-javascript/src/parser.o" "-c" "tree-sitter-javascript/src/parser.c" with args "cc" did not execute successfully (status code exit status: 1).

I executed git submodule update --recursive,
but still error

from vue-compiler.

HerringtonDarkholme avatar HerringtonDarkholme commented on June 19, 2024
git submodule init 
git submodule update --recursive

https://git-scm.com/book/en/v2/Git-Tools-Submodules#_cloning_submodules

from vue-compiler.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.