Skip to content

error: fatalError when building tests for swift-testing #7086

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

Closed
compnerd opened this issue Nov 13, 2023 · 3 comments
Closed

error: fatalError when building tests for swift-testing #7086

compnerd opened this issue Nov 13, 2023 · 3 comments

Comments

@compnerd
Copy link
Member

compnerd commented Nov 13, 2023

Description

When building swift-testing on Windows, we get a rather unhelpful error of:

Linking C:\Users\WDAGUtilityAccount\swift-testing\.build\x86_64-unknown-windows-msvc\debug\swift-testingPackageTests.xctest
error: fatalError

Enabling verbose builds yields the following:

lld-link: error: duplicate symbol: main
>>> defined at C:\\Users\\WDAGUtilityAccount\\swift-testing\\.build\\x86_64-unknown-windows-msvc\\debug\\TestingMacros.build\\TestingMacrosMain.swift.o
>>> defined at C:\\Users\\WDAGUtilityAccount\\swift-testing\\.build\\x86_64-unknown-windows-msvc\\debug\\swift_testingPackageTests.build\\runner.swift.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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)

swift --version
Swift version 5.10-dev (LLVM ba9a450cf5b5694, Swift 21a47b0d0fa6b68)
Target: x86_64-unknown-windows-msvc

@neonichu
Copy link
Contributor

Sounds like a dupe of #6367

@grynspan
Copy link
Contributor

I think we've resolved this issue and can close it?

@compnerd
Copy link
Member Author

compnerd commented Nov 27, 2023

Duplicate of #6367

@compnerd compnerd marked this as a duplicate of #6367 Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants