Skip to content

File not found error building release executable with swiftbuild build system on Linux #602

Closed
@cmcgee1024

Description

@cmcgee1024

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

Run the following command from a development environment on a Linux (Ubuntu 24.04) system:

swift run swift-build -c release --package-path Fixtures/Miscellaneous/Plugins/CommandPluginTestStub --build-system swiftbuild --product placeholder

There is an error with clang unable to find a placeholder.o object file as part of the auto-extract.

error: No such file or directory: '/swiftpm/Fixtures/Miscellaneous/Plugins/CommandPluginTestStub/.build/aarch64-unknown-linux-gnu/Intermediates.noindex/CommandPluginDiagnostics.build/Release-linux/placeholder-52FF33D38A18698E-testable.build/Objects-normal/aarch64/Modules/placeholder.o'
error: Ld /swiftpm/Fixtures/Miscellaneous/Plugins/CommandPluginTestStub/.build/aarch64-unknown-linux-gnu/Products/Release-linux/ExecutableModules/placeholder.o normal failed with a nonzero exit code
Process 26742 stopped and restarted: thread 1 received signal: SIGCHLD
error: SwiftAutolinkExtract placeholder failed with a nonzero exit code

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions