[LLVMdev] x86 cross compiler for ppc fails to build

Maarten Faddegon m.faddegon at student.tudelft.nl
Tue May 17 09:47:15 PDT 2011


Hi All,

I try to build a cross-compiler that compiles for powerpc but runs on my 
pentium.

As a base I used the arm cross-compiler script but changed:
CROSS_HOST="x86_64-unknown-linux-gnu"
CROSS_TARGET="powerpc-linux"
CROSS_MARCH="750"

LLVM is building ok, but the second step: building llvm-gcc fails with a 
rather strange error which I appended to the end of this e-mail.
Am I doing something wrong or is this a bug?

Thanks,
  Maarten Faddegon

--- the error: ---

/llvm-gcc-4.2-2.9.source/gcc/../include 
-I/local/maartenf/opt/src/all_llvm_2_9/buildroot_ppc/src/llvm-gcc-4.2-2.9.source/gcc/../libcpp/include  
-I/local/maartenf/opt/src/all_llvm_2_9/buildroot_ppc/src/llvm-gcc-4.2-2.9.source/gcc/../libdecnumber 
-I../libdecnumber 
-I/local/maartenf/opt/bin/llvm29/powerpc-linux/llvm/include  -g0 
-finhibit-size-directive -fno-inline-functions -fno-exceptions 
-fno-zero-initialized-in-bss -fno-toplevel-reorder -Dinhibit_libc 
-msdata=none \
          -c 
/local/maartenf/opt/src/all_llvm_2_9/buildroot_ppc/src/llvm-gcc-4.2-2.9.source/gcc/crtstuff.c 
-DCRT_BEGIN \
          -o crtbegin.o
/tmp/ccNdqsm6.s: Assembler messages:
/tmp/ccNdqsm6.s:11: Error: syntax error; found `(' but expected `,'
/tmp/ccNdqsm6.s:11: Error: junk at end of line: `(completed.2521.b)'
/tmp/ccNdqsm6.s:12: Error: junk at end of line: `(30)'
/tmp/ccNdqsm6.s:15: Error: syntax error; found `(' but expected `,'
/tmp/ccNdqsm6.s:15: Error: junk at end of line: `(p.2519)'
/tmp/ccNdqsm6.s:16: Error: junk at end of line: `(29)'
/tmp/ccNdqsm6.s:22: Error: junk at end of line: `(29)'
/tmp/ccNdqsm6.s:25: Error: junk at end of line: `(29)'
/tmp/ccNdqsm6.s:30: Error: syntax error; found `(' but expected `,'
/tmp/ccNdqsm6.s:30: Error: junk at end of line: `(__deregister_frame_info)'
/tmp/ccNdqsm6.s:31: Error: junk at end of line: `(3)'
/tmp/ccNdqsm6.s:34: Error: syntax error; found `(' but expected `,'
/tmp/ccNdqsm6.s:34: Error: junk at end of line: `(__EH_FRAME_BEGIN__)'
/tmp/ccNdqsm6.s:35: Error: junk at end of line: `(3)'
/tmp/ccNdqsm6.s:39: Error: junk at end of line: `(30)'
/tmp/ccNdqsm6.s:76: Error: syntax error; found `(' but expected `,'
/tmp/ccNdqsm6.s:76: Error: junk at end of line: `(__register_frame_info)'
/tmp/ccNdqsm6.s:77: Error: junk at end of line: `(3)'
/tmp/ccNdqsm6.s:80: Error: syntax error; found `(' but expected `,'
/tmp/ccNdqsm6.s:80: Error: junk at end of line: `(__EH_FRAME_BEGIN__)'
/tmp/ccNdqsm6.s:81: Error: syntax error; found `(' but expected `,'
/tmp/ccNdqsm6.s:81: Error: junk at end of line: `(object.2537)'
/tmp/ccNdqsm6.s:82: Error: junk at end of line: `(3)'
/tmp/ccNdqsm6.s:83: Error: junk at end of line: `(4)'
/tmp/ccNdqsm6.s:86: Error: syntax error; found `(' but expected `,'
/tmp/ccNdqsm6.s:86: Error: junk at end of line: `(__JCR_LIST__)'
/tmp/ccNdqsm6.s:87: Error: junk at end of line: `(3)'
/tmp/ccNdqsm6.s:90: Error: syntax error; found `(' but expected `,'
/tmp/ccNdqsm6.s:90: Error: junk at end of line: `(_Jv_RegisterClasses)'
/tmp/ccNdqsm6.s:91: Error: junk at end of line: `(4)'
/tmp/ccNdqsm6.s:96: Error: junk at end of line: `(3)'
make[2]: *** [crtbegin.o] Error 1




More information about the llvm-dev mailing list