[LLVMdev] Cross building clang/LLVM for Linux/ARM on a Mac

Richard Pennington rich at pennware.com
Mon Dec 16 13:11:07 PST 2013


Hi,

I'm using a Mac build of my clang/LLVM based tool chain ELLCC 
(http://ellcc.org) and attempting to cross build itself for ARM/Linux.

I get the following error:
llvm[3]: (build tools): Linking Release+Asserts executable llvm-tblgen 
(whithout symbols)
ld: unknown option: 
--version-script=/Users/rich/ellcc/llvm/autoconf/ExportMap.map
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
make[3]: *** 
[/Users/rich/ellcc/llvm-build-arm-linux/BuildTools/Release+Asserts/bin/llvm-tblgen] 
Error 1 make[2]: *** [TableGen/.makeall] Error 2
make[1]: *** [all] Error 1 make: *** [cross-compile-build-tools] Error 1

It looks to me like the Apple ld doesn't like --version-script. How are 
the make rules (or configure) deciding to use --version-script, and what 
should I do to change their mind?

-Rich



More information about the llvm-dev mailing list