This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]