Makefile warnings shown as errors in Xcode External Build System projects
| Originator: | greg | ||
| Number: | rdar://16701004 | Date Originated: | 04/23/2014 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 5.1.1/5B1008 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: If a warning is emitted from a Makefile (e.g., $(warning Watch Out!)) that is being used with an Xcode "External Build System" project, Xcode marks it as an error. At the end, it gets confused because a zero return value was returned, but Xcode is expecting non-zero. Steps to Reproduce: 1. Make a new External Build System project for /usr/bin/make 2. Add a Makefile that displays the warning 3. Build the project Expected Results: Build successful with 1 warning. Actual Results: Build successful with 2 errors. Output from `xcodebuild`: Makefile:4: This is a warning c++ main.cpp -o main Command /usr/bin/make emitted errors but did not return a nonzero exit code to indicate failure ** BUILD SUCCEEDED ** Version: Version 5.1.1 (5B1008) Notes: Attached sample project and screenshots from Xcode showing warnings being treated as errors. Configuration: Attachments: 'MakefileWarningAsError.zip', 'ss1.png' and 'ss2.png' were 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!