[LLVMdev] Building LLVM-GCC on Linux/PowerPC failed

Kalle Raiskila kalle.raiskila at nokia.com
Fri Jan 7 02:11:55 PST 2011


dalej skrev:
> On Jan 5, 2011, at 1:47 PM, Erik de Castro Lopo wrote:
> 
>> Kalle Raiskila wrote:
>>
>>> And I probably should file a bug. Is ppc32 still maintained?
>> I have no concrete knowledge of this, but llvm compiles
>> and passes all tests on ppc32, so it seems to be maintained.
>> About once a week I grab the latest SVN head and check this.
> 
> It is run by one of the automatic testers, and introduced bugs that break the tester get fixed.    Nobody is doing new work on it.

Strange. Perhaps it is my setup then - I don't work with the PPC parts anyways.

The system assembler is

	as --version
	GNU assembler (GNU Binutils for Ubuntu) 2.18.93.20081009
	...
	This assembler was configured for a target of `powerpc-linux-gnu'.

perhaps it is too old? It chokes on the assembly lines:
	lis 3, ha16(.L.str)
	la 3, lo16(.L.str)(3)



That assembly is generated out of a trivial hello world:

@.str = private constant [14 x i8] c"Hello, world\0A\00"
define i32 @main() nounwind {
entry:
   %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([14 x i8]* 
@.str, i32 0, i32 0))
   ret i32 42
}
declare i32 @printf(i8*, ...)

That .ll file works on SPU at least - probably also on x86 ;)

kalle



More information about the llvm-dev mailing list