assert broken on spu-elf

Andrew_Pinski@PlayStation.Sony.Com Andrew_Pinski@PlayStation.Sony.Com
Tue Feb 13 20:27:00 GMT 2007


With the following test program:
#include <assert.h>

int main(void)
{
  assert(0);
}

I get a linking error message:
/home/apinski/gcc-spu/lib/gcc/spu-elf/4.3.0/../../../../spu-elf/lib/libc.a(lib_a-assert.o): 
In function `__assert':
/home/apinski/src/newlib/objdir-spu/spu-elf/newlib/libc/stdlib/../../../../../src/newlib/libc/stdlib/assert.c:57: 
undefined reference to `fiprintf'
/home/apinski/src/newlib/objdir-spu/spu-elf/newlib/libc/stdlib/../../../../../src/newlib/libc/stdlib/assert.c:57: 
undefined reference to `fiprintf'
collect2: ld returned 1 exit status

I think this was caused by "the offloading of printf to PPU" patches.

Most of the GCC testresults fail because of this issue.  It might be a 
good thing next time to also run the GCC testsuite after a
change to newlib, you can just keep around an old build of GCC and then 
you can just compare the results.

Thanks,
Andrew Pinski



More information about the Newlib mailing list