Open valeriyvan opened 1 month ago
Have you installed jemalloc
? If you try swift build --explicit-target-dependency-import-check error
it should clearly mention that you're missing something, if my guess is correct.
Have you installed
jemalloc
? If you tryswift build --explicit-target-dependency-import-check error
it should clearly mention that you're missing something, if my guess is correct.
Readme doesn't mention this step.
And I've had it:
Warning: jemalloc 5.3.0 is already installed and up-to-date.
Here's output of swift build --explicit-target-dependency-import-check error
:
swift build --explicit-target-dependency-import-check error
warning: 'swift-algorithms': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/******/.build/checkouts/swift-algorithms/Sources/Algorithms/Documentation.docc
Building for debugging...
[4/4] Write swift-version--58304C5D6DBC2206.txt
Build complete! (0.74s)
Running swift package --allow-writing-to-package-directory benchmark init MyNewBenchmarkTarget
still fails.
@valeriyvan I'm out of guesses then. Perhaps you might get a better answer by filing an issue in the Swift repo. In any case I don't see why the linker should fail without a more helpful message so you can debug your problem easier.
@valeriyvan I'm out of guesses then. Perhaps you might get a better answer by filing an issue in the Swift repo. In any case I don't see why the linker should fail without a more helpful message so you can debug your problem easier.
I don't think it's Swift issue. I was able manually adding benchmark target and this target runs normally. I think there's some problem with plugin.
@lehtihet do you think you could have a look at this one too?
I have followed steps from README:
Then I try running newly created benchmark with
swift package benchmark --target MyNewBenchmarkTarget
but it fails with link error: