0 Members and 2 Guests are viewing this topic.
nspire-ld obj/*.o -L./nrgbsdk/lib -lRGB -lgcc -nostdlib -lc -lm -o nrgbwabbit/usr/local/arm/lib/gcc/arm-none-eabi/4.6.3/../../../../arm-none-eabi/lib/libc.a(lib_a-svfscanf.o): In function `__ssvfscanf_r':/home/albert/ndless/modern_toolchain/build/arm-none-eabi/newlib/libc/stdio/../../../../../newlib-1.20.0/newlib/libc/stdio/vfscanf.c:1584: undefined reference to `__aeabi_d2f'/usr/local/arm/lib/gcc/arm-none-eabi/4.6.3/../../../../arm-none-eabi/lib/libc.a(lib_a-syscalls.o): In function `_sbrk':/home/albert/ndless/modern_toolchain/build/arm-none-eabi/newlib/libc/sys/arm/../../../../../../newlib-1.20.0/newlib/libc/sys/arm/syscalls.c:499: undefined reference to `end'/usr/local/arm/lib/gcc/arm-none-eabi/4.6.3/../../../../arm-none-eabi/lib/libc.a(lib_a-strtod.o): In function `strtof':/home/albert/ndless/modern_toolchain/build/arm-none-eabi/newlib/libc/stdlib/../../../../../newlib-1.20.0/newlib/libc/stdlib/strtod.c:1194: undefined reference to `__aeabi_d2f'collect2: ld returned 1 exit status
ELF is very complicated. tangrs had made an ELF loader, but ELF files could be overly big in some simple cases.
And Nucleus is indeed a multi-threaded RTOS.
1) Try to remove the -nostdlib switch and any #include directive for the standard headers. Conflicts between newlib and os.h are an Ndless design flaw, sorry about that.
3) This may only be a matter of exporting the pthreads definition from the OS (for example phtread_create() an pthread_join() have already be found: https://www.unsads.com/scm/svn/nsptools/symbols/trunk/OS_cascx-3.1.0.idc [guest/guest]).But the OS clock cursor will once again annoy us since interrupts must be able for these functions to work.
And for the OS clock cursor, are you referring to the startup screen? Is there no way to disable that?
- open Ndless-SDK/ndless/system/osstub.c and comment out void _exit(void) { exit(-1); } and rebuild Ndless
It builds successfully, but it doesn't load at all (and crashes)! Not sure what is happening now...
I guess I'll have to find a way to hook up GDB to the nspire_emu.
Although it's just a matter of setting a simple OS switch. Ndless really requires developers to help me handle all these requests, I can't do it alone anymore.
Quote from: alberthrocks on September 18, 2012, 07:23:08 pm - open Ndless-SDK/ndless/system/osstub.c and comment out void _exit(void) { exit(-1); } and rebuild NdlessWhat is this one for?
Using newlib functions is not recommended as long as tangr's bFLT loader hasn't been merged into Ndless, since some of these functions require relocation, and you can't guess which ones.
Quote from: alberthrocks on September 18, 2012, 07:23:08 pm I guess I'll have to find a way to hook up GDB to the nspire_emu.This one is also at the top of the TODO list.Lionel Debroux has already merge my GDB stub into the latest (but not released publicly?) update of nspire_emu. I'll do some non-regression tests on Ndless and update the SDK with it as soon as possible.
Once again sorry for the delay. Fill free to contribute a way or another to all these tasks, I can give update rights to the repository to anyone I trust willing to contribute if needed.