What steps will reproduce the problem?
1. ../../llvm-gcc-4.0-iphone/configure --enable-llvm=`llvm-config --obj-root`
--enable-languages=c,c++,objc,obj-c++ --target=arm-apple-darwin
--enable-sjlj-exceptions --with-heavenly=$HEAVENLY
--with-as=/usr/local/bin/arm-apple-darwin-as
--with-ld=/usr/local/bin/arm-apple-darwin-ld --enable-wchar_t=no
2. make LLVM_VERSION_INFO=2.9-svn-iphone-dev-0.3-svn
What is the expected output? What do you see instead?
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp: In function 'void
llvm_mark_decl_weak(tree_node*)':
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:1161: error: 'WeakLinkage' is
not a member of 'llvm::GlobalValue'
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp: In function 'void
print_llvm(FILE*, void*)':
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:1203: error: no matching
function for call to 'WriteAsOperand(oFILEstream&, llvm::Value*, bool,
llvm::Module*&)'
/tmp/SBo/llvm-2.9/include/llvm/Assembly/Writer.h:73: note: candidates are: void
llvm::WriteAsOperand(llvm::raw_ostream&, const llvm::Value*, bool, const
llvm::Module*)
/tmp/SBo/llvm-2.9/include/llvm/CodeGen/MachineBasicBlock.h:413: note:
void llvm::WriteAsOperand(llvm::raw_ostream&, const
llvm::MachineBasicBlock*, bool)
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp: In function 'void
print_llvm_type(FILE*, void*)':
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:1212: error: invalid
initialization of reference of type 'llvm::raw_ostream&' from expression of
type 'oFILEstream'
/tmp/SBo/llvm-2.9/include/llvm/Assembly/Writer.h:65: error: in passing argument
1 of 'void llvm::WriteTypeSymbolic(llvm::raw_ostream&, const llvm::Type*, const
llvm::Module*)'
make[1]: *** [llvm-backend.o] Error 1
make[1]: Leaving directory
`/usr/local/build/build/iphone_dev/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
make: *** [all-gcc] Error 2
What version of the product are you using? On what operating system?
slackware 13.1 compile LLVM 2.9
Please provide any additional information below.
Original issue reported on code.google.com by frn...@gmail.com on 9 Nov 2011 at 4:52
Original issue reported on code.google.com by
frn...@gmail.com
on 9 Nov 2011 at 4:52Attachments: