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-13036] Cannot parse the debug map with "-emit-library -static -g" #55482

Open
swift-ci opened this issue Jun 17, 2020 · 2 comments
Open

[SR-13036] Cannot parse the debug map with "-emit-library -static -g" #55482

swift-ci opened this issue Jun 17, 2020 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-13036
Radar None
Original Reporter qRoC (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: c8433f47fd37df98e1dc943a12a78590

Issue Description:

touch main.swift
swiftc -emit-library -static -g main.swift
Apple Swift version 5.3-dev (LLVM 781480b1ff, Swift 16c9c007af)
Target: x86_64-apple-darwin19.5.0
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2020-06-14-a.xctoolchain/usr/bin/swift -frontend -c -primary-file main.swift -emit-module-path /var/folders/5p/psdwtxbn6lqggmpt8b8wnvn00000gn/T/main-cf40b5.swiftmodule -emit-module-doc-path /var/folders/5p/psdwtxbn6lqggmpt8b8wnvn00000gn/T/main-cf40b5.swiftdoc -emit-module-source-info-path /var/folders/5p/psdwtxbn6lqggmpt8b8wnvn00000gn/T/main-cf40b5.swiftsourceinfo -target x86_64-apple-darwin19.5.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -color-diagnostics -g -static -enable-anonymous-context-mangled-names -target-sdk-version 10.15.4 -parse-as-library -module-name main -o /var/folders/5p/psdwtxbn6lqggmpt8b8wnvn00000gn/T/main-cf40b5.o
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2020-06-14-a.xctoolchain/usr/bin/swift -frontend -merge-modules -emit-module /var/folders/5p/psdwtxbn6lqggmpt8b8wnvn00000gn/T/main-cf40b5.swiftmodule -parse-as-library -sil-merge-partial-modules -disable-diagnostic-passes -disable-sil-perf-optzns -target x86_64-apple-darwin19.5.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -color-diagnostics -g -static -enable-anonymous-context-mangled-names -target-sdk-version 10.15.4 -emit-module-doc-path /var/folders/5p/psdwtxbn6lqggmpt8b8wnvn00000gn/T/main-077d3e.swiftdoc -emit-module-source-info-path /var/folders/5p/psdwtxbn6lqggmpt8b8wnvn00000gn/T/main-077d3e.swiftsourceinfo -module-name main -o /var/folders/5p/psdwtxbn6lqggmpt8b8wnvn00000gn/T/main-077d3e.swiftmodule
/usr/bin/libtool -static /var/folders/5p/psdwtxbn6lqggmpt8b8wnvn00000gn/T/main-cf40b5.o -o libmain.a
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2020-06-14-a.xctoolchain/usr/bin/dsymutil libmain.a -o libmain.a.dSYM
error: cannot parse the debug map for 'libmain.a': The file was not recognized as a valid object file
<unknown>:0: error: generate-dSYM command failed with exit code 1 (use -v to see invocation)
@CodaFi
Copy link
Member

CodaFi commented Jun 19, 2020

Please attach main.swift here.

@swift-ci
Copy link
Collaborator Author

Comment by Andrey Savitsky (JIRA)

@CodaFi touch main.swift creates empty file.

@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