Author Topic: Error when compiling the Ndless SDK  (Read 6255 times)

0 Members and 1 Guest are viewing this topic.

Offline Malcolm Forde

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
    • View Profile
Error when compiling the Ndless SDK
« 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?

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Error when compiling the Ndless SDK
« Reply #1 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)
« Last Edit: April 20, 2015, 09:51:41 pm by Adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Malcolm Forde

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
    • View Profile
Re: Error when compiling the Ndless SDK
« Reply #2 on: April 20, 2015, 09:19:29 pm »
I have GCC installed.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Error when compiling the Ndless SDK
« Reply #3 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)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Malcolm Forde

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
    • View Profile
Re: Error when compiling the Ndless SDK
« Reply #4 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.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Error when compiling the Ndless SDK
« Reply #5 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.