salah1979 / iphone-dev

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

problems while performing 'make' #213

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./configure --enable-optimized
2. make ENABLE_OPTIMIZED=1
3.

What is the expected output? What do you see instead?

llvm[1]: Compiling AsmWriter.cpp for Release build 
In file included from 
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:21:0,
                 from AsmWriter.cpp:18:
/root/llvm-svn/include/llvm/Pass.h:77:3: error: ‘intptr_t’ does not name a 
type
/root/llvm-svn/include/llvm/Pass.h:87:26: error: expected ‘)’ before 
‘pid’
In file included from 
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:21:0,
                 from AsmWriter.cpp:18:
/root/llvm-svn/include/llvm/Pass.h:178:40: error: expected ‘;’ before 
‘(’ token
In file included from 
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:21:0,
                 from AsmWriter.cpp:18:
/root/llvm-svn/include/llvm/Pass.h:242:32: error: expected ‘)’ before 
‘pid’
/root/llvm-svn/include/llvm/Pass.h:267:35: error: expected ‘)’ before 
‘pid’
In file included from 
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:21:0,
                 from AsmWriter.cpp:18:
/root/llvm-svn/include/llvm/Pass.h:283:34: error: expected ‘)’ before 
‘pid’
In file included from 
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:21:0,
                 from AsmWriter.cpp:18:
/root/llvm-svn/include/llvm/Pass.h:334:36: error: expected ‘)’ before 
‘pid’
In file included from /root/llvm-svn/include/llvm/Pass.h:419:0,
                 from /root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:21,
                 from AsmWriter.cpp:18:
/root/llvm-svn/include/llvm/PassSupport.h:40:3: error: ‘intptr_t’ does not 
name a type
/root/llvm-svn/include/llvm/PassSupport.h:50:47: error: ‘intptr_t’ has not 
been declared
/root/llvm-svn/include/llvm/PassSupport.h:69:3: error: ‘intptr_t’ does not 
name a type
/root/llvm-svn/include/llvm/PassSupport.h: In constructor 
‘llvm::PassInfo::PassInfo(const char*, const char*, int, llvm::Pass* (*)(), 
bool)’:
/root/llvm-svn/include/llvm/PassSupport.h:52:42: error: class 
‘llvm::PassInfo’ does not have any field named ‘PassID’
In file included from /root/llvm-svn/include/llvm/Pass.h:419:0,
                 from /root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:21,
                 from AsmWriter.cpp:18:
/root/llvm-svn/include/llvm/PassSupport.h: At global scope:
/root/llvm-svn/include/llvm/PassSupport.h:142:55: error: ‘intptr_t’ has not 
been declared
/root/llvm-svn/include/llvm/PassSupport.h:147:29: error: expected ‘)’ 
before ‘TI’
In file included from /root/llvm-svn/include/llvm/Pass.h:419:0,
                 from /root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:21,
                 from AsmWriter.cpp:18:
/root/llvm-svn/include/llvm/PassSupport.h:198:36: error: expected ‘)’ 
before ‘InterfaceID’
/root/llvm-svn/include/llvm/PassSupport.h: In constructor 
‘llvm::RegisterAnalysisGroup<Interface, 
Default>::RegisterAnalysisGroup(llvm::RegisterPassBase&)’:
/root/llvm-svn/include/llvm/PassSupport.h:207:67: error: ‘const class 
llvm::PassInfo’ has no member named ‘getTypeInfo’
In file included from /root/llvm-svn/include/llvm/Function.h:22:0,
                 from /root/llvm-svn/include/llvm/Module.h:17,
                 from /root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:22,
                 from AsmWriter.cpp:18:
/root/llvm-svn/include/llvm/BasicBlock.h: At global scope:
/root/llvm-svn/include/llvm/BasicBlock.h:96:47: warning: type qualifiers 
ignored on function return type
In file included from AsmWriter.cpp:18:0:
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h: In constructor 
‘llvm::PrintModulePass::PrintModulePass()’:
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:33:41: error: no 
matching function for call to ‘llvm::ModulePass::ModulePass(intptr_t)’
/root/llvm-svn/include/llvm/Pass.h:225:32: note: candidates are: 
llvm::ModulePass::ModulePass()
/root/llvm-svn/include/llvm/Pass.h:225:32: note:                 
llvm::ModulePass::ModulePass(const llvm::ModulePass&)
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h: In constructor 
‘llvm::PrintModulePass::PrintModulePass(llvm::OStream*, bool)’:
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:35:57: error: no 
matching function for call to ‘llvm::ModulePass::ModulePass(intptr_t)’
/root/llvm-svn/include/llvm/Pass.h:225:32: note: candidates are: 
llvm::ModulePass::ModulePass()
/root/llvm-svn/include/llvm/Pass.h:225:32: note:                 
llvm::ModulePass::ModulePass(const llvm::ModulePass&)
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h: In constructor 
‘llvm::PrintFunctionPass::PrintFunctionPass()’:
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:58:43: error: no 
matching function for call to ‘llvm::FunctionPass::FunctionPass(intptr_t)’
/root/llvm-svn/include/llvm/Pass.h:281:34: note: candidates are: 
llvm::FunctionPass::FunctionPass()
/root/llvm-svn/include/llvm/Pass.h:281:34: note:                 
llvm::FunctionPass::FunctionPass(const llvm::FunctionPass&)
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h: In constructor 
‘llvm::PrintFunctionPass::PrintFunctionPass(const std::string&, 
llvm::OStream*, bool)’:
/root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:61:70: error: no 
matching function for call to ‘llvm::FunctionPass::FunctionPass(intptr_t)’
/root/llvm-svn/include/llvm/Pass.h:281:34: note: candidates are: 
llvm::FunctionPass::FunctionPass()
/root/llvm-svn/include/llvm/Pass.h:281:34: note:                 
llvm::FunctionPass::FunctionPass(const llvm::FunctionPass&)
In file included from /root/llvm-svn/include/llvm/Pass.h:419:0,
                 from /root/llvm-svn/include/llvm/Assembly/PrintModulePass.h:21,
                 from AsmWriter.cpp:18:
/root/llvm-svn/include/llvm/PassSupport.h: In constructor 
‘llvm::RegisterPass<PassName>::RegisterPass(const char*, const char*, bool) 
[with PassName = llvm::PrintModulePass]’:
AsmWriter.cpp:141:37:   instantiated from here
/root/llvm-svn/include/llvm/PassSupport.h:169:88: error: expected 
primary-expression
/root/llvm-svn/include/llvm/PassSupport.h: In constructor 
‘llvm::RegisterPass<PassName>::RegisterPass(const char*, const char*, bool) 
[with PassName = llvm::PrintFunctionPass]’:
AsmWriter.cpp:144:37:   instantiated from here
/root/llvm-svn/include/llvm/PassSupport.h:169:88: error: expected 
primary-expression
make[1]: *** [/root/llvm-svn/lib/VMCore/Release/AsmWriter.o] Error 1
make[1]: Leaving directory `/root/llvm-svn/lib/VMCore'
make: *** [all] Error 1

What version of the product are you using? On what operating system?

>svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm-svn -r 42498
>Linux Abhishek.Fedora 2.6.35.12-88.fc14.x86_64 #1 SMP Thu Mar 31 21:21:57 UTC 
2011 x86_64 x86_64 x86_64 GNU/Linux
>g++ (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)

Please provide any additional information below.

Original issue reported on code.google.com by abhishek...@gmail.com on 23 Apr 2011 at 2:21

GoogleCodeExporter commented 8 years ago
I was able to get pass the above error by just installing the gcc 4.2 version.

right now i am struggling with the make of odctools.

Original comment by abhishek...@gmail.com on 1 May 2011 at 10:51

GoogleCodeExporter commented 8 years ago
if you want to install the toolchain with out banging your head to a wall, 
stick to a 32 bit OS and find the gcc, bison and flex of the version as 
mentioned.

the above issue is resolved.

Original comment by abhishek...@gmail.com on 16 May 2011 at 3:27