Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed when setting CARGO_TARGET_DIR path #20337

Open
1 task done
lydiandy opened this issue Nov 7, 2024 · 0 comments
Open
1 task done

Build failed when setting CARGO_TARGET_DIR path #20337

lydiandy opened this issue Nov 7, 2024 · 0 comments
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue

Comments

@lydiandy
Copy link

lydiandy commented Nov 7, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

When I disabled the CARGO_TARGET_DIR path, build sucessed.
But when I enabled the path, build failed.

Here is the error message:

warning: [email protected]: Info: using 'f6fbf662b4da903bcf56112cb5dc565b51a56309' hash for ZED_COMMIT_SHA env var
Compiling zed v0.162.0 (/Users/tony/rust/zed/zed_src/crates/zed)
error: linking with cc failed: exit status: 1

...

"-Wl,-dead_strip" "-nodefaultlibs" "-Wl,-rpath,@executable_path" "-Wl,-weak_framework,ReplayKit" "-Wl,-rpath,/usr/lib/swift" "-Wl,-ObjC"
= note: ld: warning: ignoring duplicate libraries: '-lSystem', '-liconv', '-lobjc'
ld: warning: search path '/Users/tony/rust/zed/zed_src/crates/live_kit_client/../../target/aarch64-apple-darwin/LiveKitBridge_target/arm64-apple-macosx/release' not found
ld: warning: search path '/Users/tony/rust/zed/zed_src/crates/live_kit_client/../../target/aarch64-apple-darwin/LiveKitBridge_target/arm64-apple-macosx/release' not found
ld: framework 'WebRTC' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The following warnings were emitted during compilation:

warning: [email protected]: Info: using 'f6fbf662b4da903bcf56112cb5dc565b51a56309' hash for ZED_COMMIT_SHA env var

error: could not compile zed (bin "zed") due to 1 previous error

Environment

build from the latest main branch

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

@lydiandy lydiandy added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

1 participant