Just now, I downloaded YunGcc.tgz from a site:
Sniff: Building GCC for the Yun (in 12 not-easy steps)
http://www.sniff.org.uk/2014/05/building-gcc-for-yun-in-12-not-easy.html
I dropped on the SDcard, and it seems to run.
root@domino:/mnt/sda1/Code# PATH=$PATH:/mnt/sda1/gcc/bin/
root@domino:/mnt/sda1/Code# ../gcc/bin/c++ test.g++
ld: applet not found
collect2: ld returned 1 exit status
.
But no gcc.
Its missing files gcc and g++ and ld .
(Because they are just links):
root@domino:/mnt/sda1/Code# ls -l ../gcc/bin/
-rwxrwxrwx 1 root root 4076623 May 16 2014 addr2line
-rwxrwxrwx 1 root root 4212791 May 16 2014 ar
-rwxrwxrwx 1 root root 5970377 May 16 2014 as
-rwxrwxrwx 1 root root 860045 May 16 2014 c++
-rwxrwxrwx 1 root root 4030272 May 16 2014 c++filt
-rwxrwxrwx 1 root root 854402 May 16 2014 cpp
-rwxrwxrwx 1 root root 202802 May 16 2014 elfedit
-rwxrwxrwx 1 root root 0 May 16 2014 g++
-rwxrwxrwx 1 root root 0 May 16 2014 gcc
-rwxrwxrwx 1 root root 190086 May 16 2014 gcov
-rwxrwxrwx 1 root root 4561528 May 16 2014 gprof
-rwxrwxrwx 1 root root 0 May 16 2014 ld
-rwxrwxrwx 1 root root 6244088 May 16 2014 ld.bfd
-rwxrwxrwx 1 root root 0 May 16 2014 mips-openwrt-linux-uclibc-c++
-rwxrwxrwx 1 root root 0 May 16 2014 mips-openwrt-linux-uclibc-g++
-rwxrwxrwx 1 root root 0 May 16 2014 mips-openwrt-linux-uclibc-gcc
-rwxrwxrwx 1 root root 853203 May 16 2014 mips-openwrt-linux-uclibc-gcc-4.6.4
-rwxrwxrwx 1 root root 4100925 May 16 2014 nm
-rwxrwxrwx 1 root root 4723634 May 16 2014 objcopy
-rwxrwxrwx 1 root root 5364989 May 16 2014 objdump
-rwxrwxrwx 1 root root 4212806 May 16 2014 ranlib
-rwxrwxrwx 1 root root 1073138 May 16 2014 readelf
-rwxrwxrwx 1 root root 4094673 May 16 2014 size
-rwxrwxrwx 1 root root 4063411 May 16 2014 strings
-rwxrwxrwx 1 root root 4723645 May 16 2014 strip
Okay, they are Links, but do not appear on FAT32.
So, I just copied the files :
root@domino:/mnt/sda1/gcc/bin# cp ld.bfd ld
root@domino:/mnt/sda1/gcc/bin# cp c++ g++
root@domino:/mnt/sda1/gcc/bin# cp mips-openwrt-linux-uclibc-gcc-4.6.4 gcc
root@domino:/mnt/sda1/gcc/bin# cp mips-openwrt-linux-uclibc-gcc-4.6.4 mips-openwrt-linux-uclibc-gcc
root@domino:/mnt/sda1/gcc/bin# cp c++ mips-openwrt-linux-uclibc-c++
root@domino:/mnt/sda1/gcc/bin# cp c++ mips-openwrt-linux-uclibc-g++
And now try to Compile:
root@domino:/mnt/sda1/gcc/bin# cd ../../Code/
root@domino:/mnt/sda1/Code# ls
initGcc test.c test.c++ test.g++
root@domino:/mnt/sda1/Code# ../gcc/bin/gcc test.c
/mnt/sda1/gcc/bin/ld:/mnt/sda1/gcc/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.4/crtbegin.o: file format not recognized; treating as linker script
/mnt/sda1/gcc/bin/ld:/mnt/sda1/gcc/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.4/crtbegin.o:1: syntax error
collect2: ld returned 1 exit status
.
I need to partiton and Format the SD Card in Linux.
I dont have a Linux available to me at the moment - just Cygwin.
Any suggestions ?