tomxiong / iphonedevonlinux

Automatically exported from code.google.com/p/iphonedevonlinux
0 stars 0 forks source link

Building cctools & iphone-gcc fails #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to build the toolchain.
2.
3.

What is the expected output? What do you see instead?
Expected: the toolchain should build successfully.
Instead: getting errors about 'building odcctools & iphone-gcc failed'.

What version of the product are you using? On what operating system?
The latest version of the svn copy; Ubuntu Maverick Meerkat 10.10

Please provide any additional information below.
This problem can be resolved adding
#import <cstdio>
#import <climits>
#import <cstdlib>

in all of ld64's and llvm-gcc's and a lot of other C++ headers (files with 
*.hpp extension). Then the build succeeds.
Warning: I only tried this like this. I had a prebuilt toolchain with old cc1, 
cc1plus, cc1obj, cc1objplus and not supported ld64. Thus I couldn't compile 
against 2.2.1+ frameworks. Thus I just built the cctools (as, ar, ld, ld64, 
otool...) and because getting Obj-C syntax errors when trying to make install 
hewwlo world, i rebuilt a new version of cc1(obj(plus)). This worked.

Original issue reported on code.google.com by arpad.go...@gmail.com on 28 Nov 2010 at 10:30

GoogleCodeExporter commented 8 years ago
"Thus I just built the cctools (as, ar, ld, ld64, otool...) and because getting 
Obj-C syntax errors when trying to make install hewwlo world, i rebuilt a new 
version of cc1(obj(plus)). This worked."

Would you please describe how you build ld64. It's impossible to build. I am 
working on it for a long time and seems no body has the issues I have.
I first was missing prune_trie.h and then /libunwind/... 
adding the files manually I am now facing wiered issues as 

/Volumes/Data/C-Model-Binaries/libunwind-30/src/AddressSpace.hpp:259:0 
/Volumes/Data/C-Model-Binaries/libunwind-30/src/AddressSpace.hpp:259: error: 
'dyld_unwind_sections' was not declared in this scope

can you please help me figure out the issue?

Thanks
Lili

Original comment by lilipo...@gmail.com on 28 Oct 2011 at 8:03