Closed GoogleCodeExporter closed 9 years ago
LLVM from trunk seems very iffy. There was a version that wasn't tested &
couldn't
build that was committed for a while yesterday :( yuck.
But now, I've tried compiling LLVM 2.0 from tag, switching my LLVMOBJDIR and
then
re-configuring and making llvm-gcc. I get the following error:
c++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
-pedantic
-Wno-long-long -Wno-variadic-macros -DHAVE_CONFIG_H -Wno-unused
-DTARGET_NAME=\"arm-apple-darwin\" -DNDEBUG -DENABLE_LLVM
-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../../llvm-gcc-4.0-iphone/gcc/../libcpp/include
-I/home/joeBrain/Development/iPhone/llvm-branch/include
-I/home/joeBrain/Development/iPhone/llvm-branch/include
../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp -o llvm-backend.o
In file included from
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/ADT/SmallPtrSet.h:20,
from
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/ADT/SmallSet.h:18,
from
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/ADT/SetVector.h:23,
from ../../llvm-gcc-4.0-iphone/gcc/llvm-internal.h:37,
from ../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:23:
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/Support/DataTypes.h:3
8:3:
error: #error "Must #define __STDC_LIMIT_MACROS before #including
Support/DataTypes.h"
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/Transforms/Scalar.h:
In
function ‘void createOptimizationPasses()’:
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/Transforms/Scalar.h:1
30:
error: too many arguments to function ‘llvm::LoopPass*
llvm::createLoopUnswitchPass()’
../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:342: error: at this point in file
../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:348: error: ‘createGVNPass’
was not
declared in this scope
make[1]: *** [llvm-backend.o] Error 1
make[1]: Leaving directory
`/home/joeBrain/Development/iPhone/iphone-dev/llvm-gcc-4.0-iphone-build/gcc'
make: *** [all-gcc] Error 2
Original comment by insanita...@yahoo.com
on 13 Sep 2007 at 1:43
Duplicate of issue 18.
Original comment by nightwat...@gmail.com
on 13 Sep 2007 at 4:21
Original issue reported on code.google.com by
insanita...@yahoo.com
on 13 Sep 2007 at 12:51