Maarten Faddegon
2011-May-18 14:04 UTC
[LLVMdev] x86 cross compiler for ppc fails to build
I try to build a cross powerpc compiler, but llvm-gcc fails. Eric Christopher wrote:> Looks like you don't have an assembler for your target installed that > llvm-gcc can find.I have binutils installed for powerpc and verified they are working with a simple hello world program. $ powerpc-750-linux-gnu-as --version GNU assembler 2.16.1 However, the xgcc build during the seems to generate instructions that are not understood by the assembler. I forced xgcc to output assembly and tried to use the assembler on the result manually. There are instructions like this one "lis 30, ha16(completed.5554.b)" which are not understood apparently? Should this instruction be understood by the assembler? Thanks, Maarten -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: crtstuff.s URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110518/7b4ce619/attachment.ksh>
Maarten Faddegon
2011-May-19 12:40 UTC
[LLVMdev] x86 cross compiler for ppc fails to build
> I try to build a cross powerpc compiler, but llvm-gcc fails on > crtstuff.c / crtbegin.oIn the archives I found a thread where more or less the same problem is discussed: http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-January/037327.html Can I conclude from this that indeed llvm-gcc for powerpc-linux is broken? Is anyone maintaining llvm-gcc for powerpc-linux or is it abandoned? Maarten Faddegon
Anton Korobeynikov
2011-May-19 13:23 UTC
[LLVMdev] x86 cross compiler for ppc fails to build
Hello Maarten> Can I conclude from this that indeed llvm-gcc for powerpc-linux is broken? > Is anyone maintaining llvm-gcc for powerpc-linux or is it abandoned?Noone is doing anything in ppc/linux land. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Hi, Maarten> Can I conclude from this that indeed llvm-gcc for powerpc-linux is broken? > Is anyone maintaining llvm-gcc for powerpc-linux or is it abandoned?IIRC, llvm-gcc can be built successfully on a Linux/PowerPC machine. Here was my configuration, $ ../llvm-gcc-4.2-2.8.source/configure --prefix=/path/to/install --program-prefix=llvm- --enable-llvm=/path/to/install --enable-languages=c,c++ --disable-bootstrap --disable-libmudflap --disable-multilib --disable-libgomp $ make install HTH. :-) Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667
On ons, 2011-05-18 at 16:04 +0200, ext Maarten Faddegon wrote:> I try to build a cross powerpc compiler, but llvm-gcc fails.> There are instructions like this one "lis 30, ha16(completed.5554.b)" > which are not understood apparently?If I recall correctly, this was a bug when generating 32bit ppc assembly on linux. 64bit assembly might work better on linux. kalle -- "Modern computing machines are very complex objects" -von Neumann introducing the NORC, 1954