Skip to content

Conversation

brooke-callahan
Copy link
Contributor

No description provided.

@brooke-callahan brooke-callahan force-pushed the main branch 3 times, most recently from 40cba8d to 6879e99 Compare September 4, 2025 22:26
@jakepetroules
Copy link
Collaborator

@swift-ci test

@jakepetroules
Copy link
Collaborator

Oh, you've got one test failing:

16:58:40  ✘ Test linkerDriverDiagnosticsParsing() recorded an issue at LinkerTests.swift:64:35: Issue recorded
16:58:40  ↳ Unable to find error: '.prefix("Unknown argument: \'-not-a-real-flag\'")' (other errors: ["/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/TestProject.xcodeproj: Unknown argument: \'-not-a-real-flag\' (for task: [\"Ld\", \"/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/build/Debug/testTarget.framework/Versions/A/testTarget\", \"normal\"])", "Command Ld failed. The command `(cd /private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex && env \'PATH=/Users/ec2-user/jenkins/workspace/pr-swift-build-macos@2/branch-main/swift-build/.build/x86_64-apple-macosx/debug/SwiftBuild_SWBUniversalPlatform.bundle:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin\' /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target x86_64-apple-macos15.2 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -Os -L/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/build/EagerLinkingTBDs/Debug -L/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/build/Debug -F/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/build/EagerLinkingTBDs/Debug -F/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/build/Debug -filelist /private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/build/TestProject.build/Debug/testTarget.build/Objects-normal/x86_64/testTarget.LinkFileList -install_name /Library/Frameworks/testTarget.framework/Versions/A/testTarget -Xlinker -object_path_lto -Xlinker /private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/build/TestProject.build/Debug/testTarget.build/Objects-normal/x86_64/testTarget_lto.o -Xlinker -dependency_info -Xlinker /private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/build/TestProject.build/Debug/testTarget.build/Objects-normal/x86_64/testTarget_dependency_info.dat -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/build/TestProject.build/Debug/testTarget.build/Objects-normal/x86_64/testTarget.swiftmodule -not-a-real-flag -o /private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/build/Debug/testTarget.framework/Versions/A/testTarget)` exited with status 1. The command\'s output was:\n\nclang: error: unknown argument: \'-not-a-real-flag\'\n"])
16:58:40  ✘ Test linkerDriverDiagnosticsParsing() recorded an issue at LinkerTests.swift:63:40: Issue recorded
16:58:40  ↳ found unexpected error: /private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/TestProject.xcodeproj: Unknown argument: '-not-a-real-flag' (for task: ["Ld", "/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/swbuild.tmp.upP6pray/Data.noindex/build/Debug/testTarget.framework/Versions/A/testTarget", "normal"])
16:58:40  ✘ Test linkerDriverDiagnosticsParsing() recorded an issue at LinkerTests.swift:63:40: Issue recorded

You'll need to change it to incorporate the xcodeproj path into the expected error message (you can use tmpDir to compute the prefix part of the path, since it's variable).

@brooke-callahan
Copy link
Contributor Author

@swift-ci test

1 similar comment
@jakepetroules
Copy link
Collaborator

@swift-ci test

@jakepetroules jakepetroules merged commit 1a2b65d into swiftlang:main Sep 8, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants