Compilation error in 64 Bit PowerPC machine with Yellowdog Linux 6.1

Hi,

i am trying to compile llvm in a 64 Bit PowerPC machine with Yellowdog Linux 6.1 operating system. I could compile llvm but when I was trying to compile the llvm-gcc4.2 front end the compilation aborted with following error message:

…/…/gcc/config/rs6000/rs6000.c: In function ‘rs6000_override_options’:
…/…/gcc/config/rs6000/rs6000.c:1510: error: ‘MASK_MACHO_DYNAMIC_NO_PIC’ undeclared (first use in this function)
…/…/gcc/config/rs6000/rs6000.c:1510: error: (Each undeclared identifier is reported only once
…/…/gcc/config/rs6000/rs6000.c:1510: error: for each function it appears in.)
…/…/gcc/config/rs6000/rs6000.c: In function ‘rs6000_emit_prologue’:
…/…/gcc/config/rs6000/rs6000.c:16744: warning: implicit declaration of function ‘VECTOR_SAVE_INLINE’
…/…/gcc/config/rs6000/rs6000.c:16745: error: ‘lr_already_set_up_for_pic’ undeclared (first use in this function)
…/…/gcc/config/rs6000/rs6000.c: In function ‘rs6000_output_mi_thunk’:
…/…/gcc/config/rs6000/rs6000.c:18193: warning: implicit declaration of function ‘add_compiler_branch_island’
…/…/gcc/config/rs6000/rs6000.c:18193: warning: assignment makes pointer from integer without a cast
…/…/gcc/config/rs6000/rs6000.c:19886:8: warning: extra tokens at end of #endif directive
In file included from …/…/gcc/config/rs6000/rs6000.c:22183:
./gt-rs6000.h: At top level:
./gt-rs6000.h:138: error: ‘branch_island_list’ undeclared here (not in a function)
make[2]: *** [rs6000.o] Error 1
make[2]: Leaving directory /home/bolat/llvm-gcc4.2-2.2.source/obj/gcc'<br>make[1]: *** [all-gcc] Error 2<br>make[1]: Leaving directory /home/bolat/llvm-gcc4.2-2.2.source/obj’
make: *** [all] Error 2

Has anyone met similar problem and solved it? I appreciate your help.

Thanks,
Murat

|

Hi,

i am trying to compile llvm in a 64 Bit PowerPC machine with Yellowdog Linux 6.1 operating system. I could compile llvm but when I was trying to compile the llvm-gcc4.2 front end the compilation aborted with following error message:

That looks like you have old sources, I fixed this crash a while back. See PR 3099.

But note that PPC on Linux is not done, there are probably lots of ABI incompatibilities and I don’t think anybody has gotten it to completely build and work. Current state is in that PR.

Hello,

make[2]: Leaving directory
`/home/bolat/llvm-gcc4.2-2.2.source/obj/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/bolat/llvm-gcc4.2-2.2.source/obj'
make: *** [all] Error

Huh? 2.2 is awesome old. Consider using the sources from svn HEAD.