Author Topic: Setting Up Ndless C Compiler  (Read 16013 times)

0 Members and 1 Guest are viewing this topic.

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #15 on: August 16, 2011, 03:24:58 pm »
Sorry for the double post, but I found something REALLY weird. I type in "nspire-gcc" into the console, and it gives me "/home/anonymous/ndless2/sdk/bin/nspire-gcc: 26: : Permission denied." It knows where nspire-gcc is!!!
26 could mean line 26, the last line of the nspire-gcc script, where it calls gcc. Maybe it's the permissions on gcc that are wrong?

Try running
which arm-elf-gcc arm-none-eabi-gcc arm-linux-gnueabi-gcc
to find the ARM gcc, and check that that's executable.
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #16 on: August 16, 2011, 03:29:20 pm »
That may me the case. Can you try using arm-none-eabi-gcc? Or, you could change the nspire-gcc script to use the version you have.
« Last Edit: August 16, 2011, 03:29:57 pm by t0xic_kitt3n »

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #17 on: August 16, 2011, 03:31:42 pm »
Yes, the last line of the script is definitely the problem. Nspire-gcc should be able to run without elevated privileges, right?
Too many posts at once! Yes, I will try installing gcc as arm-none-eabi.
« Last Edit: August 16, 2011, 03:34:39 pm by sammyMaX »

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #18 on: August 16, 2011, 05:50:36 pm »
Uhmm... how do you configure gcc to be arm-none-eabi? I downloaded the source and I have no idea what to do. In the meantime, I will be installing MSYS and YAGARTO.

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #19 on: August 16, 2011, 07:28:23 pm »
Odd, the nspire-gcc i have is configured to work with both versions of gcc.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #20 on: August 17, 2011, 04:23:25 pm »
I still can't get it to work, even after changing permissions. :( I guess installing MSYS and YAGARTO are my only options...

Could just show us what a ls -l outputs in Ndless's bin/ directory to be sure?
Ndless.me with the finest TI-Nspire programs

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #21 on: August 17, 2011, 05:23:22 pm »
The console outputs:
total 4
drwxrwxrwx 6 philip philip 4096 2011-08-15 20:16 sdk

EDIT: Finished installing toolchain in Windows.
« Last Edit: August 17, 2011, 09:20:38 pm by sammyMaX »

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #22 on: August 18, 2011, 08:54:13 am »
Could you please do the same in the bin/ directory containing the nspire-* scripts?
Ndless.me with the finest TI-Nspire programs

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #23 on: August 18, 2011, 01:42:19 pm »
The terminal outputs:
total 36
-rwxrwxrwx 1 philip philip 20715 2011-06-11 09:55 MakeLoader.exe
-rwxrwxrwx 1 philip philip   872 2011-06-11 09:55 nspire-as
-rwxrwxrwx 1 philip philip  1029 2011-08-16 15:32 nspire-gcc
-rwxrwxrwx 1 philip philip  1935 2011-06-11 09:55 nspire-ld

I noticed the "d" in the front when I did this for the ndless2 folder disappeared. What does the "d" represent?
« Last Edit: August 18, 2011, 01:43:13 pm by sammyMaX »

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Setting Up Ndless C Compiler
« Reply #24 on: August 18, 2011, 02:50:04 pm »
d = directory, l = symlink.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #25 on: August 19, 2011, 04:29:22 am »
And if you just run "./nspire-gcc" from this folder, what happens?
Ndless.me with the finest TI-Nspire programs

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #26 on: August 19, 2011, 09:28:27 pm »
Hmmm... I still get permission denied... as sudo.
Edit: and as a standard user.
« Last Edit: August 19, 2011, 09:28:45 pm by sammyMaX »

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #27 on: August 20, 2011, 01:35:09 am »
Ok.
And now what does this returns from the same folder: sh -x ./nspire-gcc ?

Sorry for all these tests, but I can't see any other way.
« Last Edit: August 20, 2011, 01:35:19 am by ExtendeD »
Ndless.me with the finest TI-Nspire programs

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #28 on: August 20, 2011, 04:17:23 pm »
I don't mind these tests at all! As long as you're trying to help, it's fine.
The console outputs:
+ uname -s
+ tr [A-Z] [a-z]
+ UNAME=linux
+ dirname ./nspire-gcc
+ DIRNAME=.
+ which readlink
+ readlink ./nspire-gcc
+ [ linux = cygwin ]
+ GCC=
+  -mcpu=arm7tdmi -I ./../include -fpic -fno-builtin
./nspire-gcc: 1: : Permission denied

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Setting Up Ndless C Compiler
« Reply #29 on: August 20, 2011, 04:23:06 pm »
Hmmm... I still get permission denied... as sudo.
Edit: and as a standard user.

Are you running this from a device with a FAT filesystem? Linux will tend to return permission denied when the filesystem doesn't properly support permissions.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ