Omnimaga

Calculator Community => TI Calculators => Calculator C => Topic started by: Malcolm Forde on April 20, 2015, 07:28:44 pm

Title: Error when compiling the Ndless SDK
Post by: Malcolm Forde on April 20, 2015, 07:28:44 pm
I want to start doing development with Ndless on OSX. So, I started using this guide to get the SDK: http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction_on_Linux

However, I got stuck on step five (where you run make). I get this error:
Code: [Select]
make all in zehn_loader...
"" -g -Os -Wall -Wextra -march=armv5te -fPIE -std=c++11 -fno-rtti -fno-exceptions -Wl,-Tldscript -nostdlib -nostartfiles -I ../../include -D _LDBL_EQ_DBL loader.cpp -o zehn_loader.tns.elf
/bin/sh: : command not found

It looks like, to me, that those flags are getting run as a command, which shouldn't happen. I tracked down where the error came from, but couldn't fix it. The error, by the way, comes from (ndless_installation)/ndless-sdk/tools/zehn-loader.

How do I fix this error?
Title: Re: Error when compiling the Ndless SDK
Post by: Adriweb on April 20, 2015, 08:18:45 pm
It's missing/can't find the compiler(s), apparently ?

Do you have the dev-tools installed (from xcode) ?
Or even GCC (look at brew, it'll be easy to get it from there)
Title: Re: Error when compiling the Ndless SDK
Post by: Malcolm Forde on April 20, 2015, 09:19:29 pm
I have GCC installed.
Title: Re: Error when compiling the Ndless SDK
Post by: Adriweb on April 20, 2015, 09:52:03 pm
Did you complete all the steps succesfully in the build_soolchain.sh scripts?

I'll let Vogtinator reply now, since the script worked for me (well, the toolchain works as expected as long as the .sh completed everything, I mean)
Title: Re: Error when compiling the Ndless SDK
Post by: Malcolm Forde on April 20, 2015, 10:03:22 pm
I never actually thought about it being an error during build_toolchain.sh. And yes, build_toolchain.sh is not successful:
Code: [Select]
25 warnings generated.
11 warnings generated.
/bin/sh ../../gcc-4.9.2/gcc/../move-if-change tmp-automata.c insn-automata.c
echo timestamp > s-automata
130 warnings generated.
rm gcc.pod
make: *** [all-gcc] Error 2

I have no idea what that means, though.
Title: Re: Error when compiling the Ndless SDK
Post by: Vogtinator on April 21, 2015, 07:02:24 am
The first error you got (your first post) means that arm-none-eabi-g++ was not found.
If you go into ndless-sdk/toolchain/build and run make, it should give you a more detailed message about the error.
Please post the full output here in a spoiler tag.