This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
assert broken on spu-elf
- From: Andrew_Pinski at PlayStation dot Sony dot Com
- To: newlib at sourceware dot org
- Cc: Kazunori Asayama <asayama at sm dot sony dot co dot jp>
- Date: Tue, 13 Feb 2007 12:08:34 -0800
- Subject: assert broken on spu-elf
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