swiftlang/swift-package-manager

dsymutil emits warnings with experimental lto mode

Open

#6,890 opened on Sep 12, 2023

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Swift (1,462 forks)batch import
bughelp wanted

Repository metrics

Stars
 (10,145 stars)
PR merge metrics
 (Avg merge 8d 1h) (76 merged PRs in 30d)

Description

When using --experimental-lto-mode=full dsymutil complains about not being able to find (intermediate?) object files created during the LTO process. Example:

$ git clone git@github.com:apple/swift-nio.git
$ cd swift-nio
$ swift build --configuration release --experimental-lto-mode=full --verbose
warning: (arm64) /tmp/lto.o unable to open object file: No such file or directory
warning: (arm64)  could not find object file symbol for symbol _$sSo14_sa_DoubleWordaMa
warning: (arm64)  could not find object file symbol for symbol _$sSo14_sa_DoubleWordaMaTm
...

Contributor guide