LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 22438 - [powerpc/x86-darwin8] clang and llvm compile errors and failure to run because of @rpath library references
Summary: [powerpc/x86-darwin8] clang and llvm compile errors and failure to run becaus...
Status: NEW
Alias: None
Product: clang
Classification: Unclassified
Component: libclang (show other bugs)
Version: trunk
Hardware: Macintosh MacOS X
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-02 18:57 PST by Michael Weiser
Modified: 2015-02-02 19:01 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments
conditionalize macro and @rpath usage (2.17 KB, patch)
2015-02-02 18:57 PST, Michael Weiser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weiser 2015-02-02 18:57:54 PST
Created attachment 13799 [details]
conditionalize macro and @rpath usage

clang/llvm-3.5.1 and current trunk do not compile on powerpc-apple-darwin8 because they use some macros concerned with process management that don't exist.

Also the binaries are linked with @rpath library references which dyld on darwin8 does not support. An exception is already in Makefile.rules for @executable_path.

The attached patch conditionalizes macro and @rpath usage. It is against 3.5.1 but also applies to trunk with acceptable offset.