cwalls251 / iphone-dev

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

Type.cpp not compiling (LLVM source) for PowerPC OS X 10.4.10 #57

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. get a powerpc 10.4.10 quad core (install xcode)
2. run make for llvm
3. Get error

What is the expected output? What do you see instead?
a complete compile

Type.cpp: In member function `void llvm::TypeMap<ValType, 
TypeClass>::RefineAbstractType
(TypeClass*, const llvm::DerivedType*, const llvm::Type*)':
Type.cpp:872: error: no match for 'operator!=' in '(llvm::Type)(OldType) != 
NewType'
/Users/myusername/llvm-svn/include/llvm/ADT/APInt.h:1173: note: candidates are: 
bool 
llvm::operator!=(uint64_t, const llvm::APInt&)
Type.cpp: At global scope:
Type.cpp:1542: fatal error: opening dependency file 
/Users/myusername/llvm-svn/lib/VMCore/
Release/Type.LACXXd: Permission denied
compilation terminated.
make[1]: *** [/Users/myusername/llvm-svn/lib/VMCore/Release/Type.o] Error 1
make: *** [all] Error 1

What version of the product are you using? On what operating system?
llvm checkout revision: 42241
OS X 10.4.10

Please provide any additional information below.
**NOTE** ISSUE FIXED;

Open Type.cpp in a text editor and goto line 872.

type cast both OldType and NewType to Long Int:
//*********************************************
assert((long int)OldType != (long int)NewType);
//*********************************************

This should take care of it; Or use the attached

**Attached: Modified type.cpp** (Only use if compiling first fails)

Original issue reported on code.google.com by webprgm...@gmail.com on 22 Sep 2007 at 11:47

GoogleCodeExporter commented 8 years ago
Attached:

Original comment by webprgm...@gmail.com on 22 Sep 2007 at 11:48

Attachments:

GoogleCodeExporter commented 8 years ago
This is an LLVM problem, not an iphone-dev problem. You might want to submit 
the patch to LLVM though.

Original comment by nightwat...@gmail.com on 23 Sep 2007 at 9:04