What steps will reproduce the problem?
1. Follow the instructions on http://code.google.com/p/iphone-dev/wiki/Building
Since gcc won't compile with llvm-svn use llvm-2.1 instead
2. Error is produced when you reach this step:
Configure and make LLVM-GCC. Make sure that $LLVMOBJDIR and $HEAVENLY are set
per the
instructions above.
$ mkdir -p build/llvm-gcc-4.0-iphone
$ pushd build/llvm-gcc-4.0-iphone
$ ../../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
$ make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn
$ sudo make install
$ popd
$ popd
What is the expected output? What do you see instead?
GCC should compile and installe. Instead i get the following error while
compiling:
c++ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wno-
variadic-macros -DHAVE_CONFIG_H -Wno-unused -DTARGET_NAME=\"arm-apple-darwin\" -
DNDEBUG -DENABLE_LLVM -I/Users/CooperRS/llvm-2.1/include -D_DEBUG
-D_GNU_SOURCE -
D__STDC_LIMIT_MACROS -DLLVM_VERSION_INFO='"2.0-svn-iphone-dev-0.3-svn"' -I.
-I. -
I../../../llvm-gcc-4.0-iphone/gcc -I../../../llvm-gcc-4.0-iphone/gcc/.
-I../../../llvm-gcc-4.0-
iphone/gcc/../include -I./../intl
-I../../../llvm-gcc-4.0-iphone/gcc/../libcpp/include -
I/Users/CooperRS/llvm-2.1/include -I/Users/CooperRS/llvm-2.1/include
../../../llvm-gcc-4.0-
iphone/gcc/llvm-convert.cpp -o llvm-convert.o
../../../llvm-gcc-4.0-iphone/gcc/llvm-convert.cpp: In member function 'bool
TreeToLLVM::EmitBuiltinCall(tree_node*, tree_node*, llvm::Value*,
llvm::Value*&)':
../../../llvm-gcc-4.0-iphone/gcc/llvm-convert.cpp:4438: error: 'annotation' is
not a member of
'llvm::Intrinsic'
make[1]: *** [llvm-convert.o] Error 1
make: *** [all-gcc] Error 2
What version of the product are you using? On what operating system?
I'm running MacOS X 10.4.10 on a PowerMac G3
Any ideas?
Original issue reported on code.google.com by CooperRS on 15 Oct 2007 at 7:47
Original issue reported on code.google.com by
CooperRS
on 15 Oct 2007 at 7:47