New in Xcode 7 beta 5: Clang balks at legitimate OS X dylib
| Originator: | jalkut | ||
| Number: | rdar://22188625 | Date Originated: | 07-Aug-2015 12:02 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Reproducible: |
Summary: My builds stopped working in Xcode 7 beta 5 because clang is balking over a precompiled framework library from the Open Source "Growl" project: ld: building for OSX, but linking in object file built for (unknown), file '/Volumes/Data/daniel/Sources-Modern/RSCommon/OpenSource/Growl-SDK/Growl.framework/Growl' for architecture x86_64 Put aside for a moment the fact that I will probably be removing Growl from my app :) It still serves to illustrate a change in clang that may affect linking against other pre-existing libraries. Steps to Reproduce: 1. Download the attached "Growl" binary 2. From the command line with Xcode 7 beta 5 tools, run: clang ./Growl Expected Results: Clang should process the library as an input and yield (in this case) an error about missing a _main symbol. Actual Results: Clang doesn't get that far, it balks over the binary apparently because it is unable to determine its platform suitability: ld: building for OSX, but linking in object file built for (unknown), file 'Growl' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Note that if you run the same command with clang from Xcode 7 beta 4 or earlier, the library is accepted. Version: 10.11 Beta (15A244d) Xcode Version 7.0 beta 5 (7A176x) Notes: Configuration: Attachments: 'Growl' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!