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

[SR-13960] Fresh checkout and build is looking for libcmark.a in the wrong place a #56357

Open
swift-ci opened this issue Dec 11, 2020 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-13960
Radar None
Original Reporter mohit.athwani (JIRA User)
Type Bug
Status Reopened
Resolution
Environment

Mac OS 10.15.7

Xcode 12.2

Additional Detail from JIRA
Votes 1
Component/s Project Infrastructure
Labels Bug
Assignee None
Priority Medium

md5: 929e567874a55314a660b651b7fd1ac8

Issue Description:

I just did a fresh checkout and fresh build using :

utils/build-script --skip-build-benchmarks --skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "x86_64" --sccache --release-debuginfo  --xcode

Once the Xcode project is ready, I tried to build the ALL_BUILD scheme and saw that the linker fails with:

clang: error: no such file or directory: '/Users/Labs/Documents/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/src/Debug/libcmark.a'
Command Ld failed with a nonzero exit code

On inspection, the I found that the libcmark.a is actually placed at:

swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/src/RelWithDebInfo

I created a symlink called Debug to point to this path and got the build working. I'm wondering if there is some build script that needs updating.

I could do it and start a PR, but I'll need time figuring out where to look and what to change.

@typesanitizer
Copy link

I've hit this before too, but I couldn't narrow down it down in CMake. I was sure there was a JIRA for this, but I can't find one at the moment.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

2 participants