sheebz / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

llvm-gcc-4.0-iphone compile error #121

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn

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
-I/home/iphone-dev/llvm-svn/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../../../llvm-gcc-4.0-iphone/gcc/../libcpp/include 
-I/home/iphone-dev/llvm-svn/include -I/home/iphone-dev/llvm-svn/include
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp -o llvm-backend.o
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp: In function ‘void
llvm_initialize_backend()’:
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:165: error: expected
initializer before ‘*’ token
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:167: error: ‘TME’ was not
declared in this scope
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:181: error: ‘TME’ was not
declared in this scope
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:191: error:
‘createBFS_DAGScheduler’ was not declared in this scope
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp: In function ‘void
llvm_asm_file_end()’:
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:483: error: no matching
function for call to ‘llvm::PointerType::get(const llvm::IntegerType*&)’
/home/iphone-dev/llvm-svn/include/llvm/DerivedTypes.h:374: note: candidates
are: static llvm::PointerType* llvm::PointerType::get(const llvm::Type*,
unsigned int)
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:500: error: no matching
function for call to ‘llvm::PointerType::get(const llvm::IntegerType*&)’
/home/iphone-dev/llvm-svn/include/llvm/DerivedTypes.h:374: note: candidates
are: static llvm::PointerType* llvm::PointerType::get(const llvm::Type*,
unsigned int)
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp: In function ‘void
AddAnnotateAttrsToGlobal(llvm::GlobalValue*, tree_node*)’:
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:718: error: no matching
function for call to ‘llvm::PointerType::get(const llvm::IntegerType*&)’
/home/iphone-dev/llvm-svn/include/llvm/DerivedTypes.h:374: note: candidates
are: static llvm::PointerType* llvm::PointerType::get(const llvm::Type*,
unsigned int)
make[1]: *** [llvm-backend.o] Ошибка 1
make[1]: Leaving directory `/home/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
make: *** [all-gcc] Ошибка 2

Original issue reported on code.google.com by Anton.Du...@gmail.com on 10 Feb 2008 at 5:26

GoogleCodeExporter commented 9 years ago
OS Debian stable i686

Original comment by Anton.Du...@gmail.com on 10 Feb 2008 at 5:36

GoogleCodeExporter commented 9 years ago
Got the same problem !

It's not exactly like Issue #70 !

Original comment by exod....@gmail.com on 15 Apr 2008 at 2:26

GoogleCodeExporter commented 9 years ago
I got the same problem. Did someone fix it?

Original comment by mits...@gmail.com on 4 May 2008 at 4:12

GoogleCodeExporter commented 9 years ago
get other revisin of llvm

Original comment by Anton.Du...@gmail.com on 4 May 2008 at 7:09

GoogleCodeExporter commented 9 years ago
got the same problem with "all" revs of LLVM till 49604 (after this rev I cant
compile because of LLVMBuilder.h which is renamed to IRBuilder.h) even with 
42498 of
this page : http://code.google.com/p/iphone-dev/wiki/Building

../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:165: error: expected
initializer before ‘*’ token
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:167: error: ‘TME’ was not
declared in this scope
../../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:181: error: ‘TME’ was not
declared in this scope

this error can be fixed by editing llvm-backend.cpp at line 165 : replace 
"Entry *
TME" by "entry * TME"

as for the others I have no idea...

the interesting thing that these errors do not appear under Kubuntu-kde4 with 
gcc-4.2.3
I'm trying to build it under Arch Linux and both gcc-4.3.0 and gcc-4.2.3 output 
these
errors

Original comment by sergio.k...@gmail.com on 2 Jun 2008 at 9:58