pereraa / iphone-dev

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

Impossible toolchain compilation on Linux #201

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. using the 'make' command to compile the toolchain (get on the svn
repository)
2.
3.

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

I had lot of problems to the compilation. Always the same kind of problem :
abort is not declared on the scope, memcmp is not declared on the scope
etc... i solved this problems by adding good #include in the file where the
problem appear. Now, i have a new problem that i'm not abble to solve by
myself (i'm not a C++ developper) :

llvm[1]: Compiling AsmWriter.cpp for Debug build 
In file included from /home/nathan/llvm-svn/include/llvm/BasicBlock.h:19,
                 from /home/nathan/llvm-svn/include/llvm/Function.h:22,
                 from /home/nathan/llvm-svn/include/llvm/Module.h:17,
                 from
/home/nathan/llvm-svn/include/llvm/Assembly/PrintModulePass.h:22,
                 from AsmWriter.cpp:18:
/home/nathan/llvm-svn/include/llvm/ADT/ilist: In member function ‘void
llvm::iplist<NodeTy, Traits>::swap(llvm::iplist<NodeTy, Traits>&)’:
/home/nathan/llvm-svn/include/llvm/ADT/ilist:326: error: there are no
arguments to ‘abort’ that depend on a template parameter, so a declaration
of ‘abort’ must be available
/home/nathan/llvm-svn/include/llvm/ADT/ilist:326: error: (if you use
‘-fpermissive’, G++ will accept your code, but allowing the use of an
undeclared name is deprecated)
In file included from /home/nathan/llvm-svn/include/llvm/Function.h:22,
                 from /home/nathan/llvm-svn/include/llvm/Module.h:17,
                 from
/home/nathan/llvm-svn/include/llvm/Assembly/PrintModulePass.h:22,

Further, i got manny 'warnings' but i think is not a priority. 

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

I'm using a Debian GNU/Linux Lenny (5.0). Intel x86 proc. Kernel : 2.6.26-2-686

Please provide any additional information below.

i can (if you want to) give you all the errors i solved before it and all
the warnings.

Original issue reported on code.google.com by nathan.o...@gmail.com on 24 May 2010 at 4:19

GoogleCodeExporter commented 8 years ago
i precise i've got the lastest version of the toolchain by the svn

Original comment by nathan.o...@gmail.com on 24 May 2010 at 8:11

GoogleCodeExporter commented 8 years ago
The issue is probably that you are using a too recent G++/stl.
Try with
$ export CXX=g++-4.2
before configure/make
(or whatever other compiler you may have; check dpkg -l|grep g++)
It certainly does not work on g++-4.4, ok for me on 4.2, not tested on 4.3.

Original comment by eric.est...@gmail.com on 23 Sep 2010 at 5:44