[19. June 2013] Soundcloud® available now | [7. June 2013] Youporn available now | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 RC1 [13 June 2013] | A-200/A-210 RC1 [13 June 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
[100/200/300/400] GCC, the GNU Compiler Collection
09-08-2010, 12:53 PM (This post was last modified: 03-13-2013 11:57 AM by vaidyasr.)
Post: #1
GCC, the GNU Compiler Collection
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, and Ada, as well as libraries for these languages (libstdc++, libgcj,...). GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, free in the sense that it respects the user's freedom.

Installation:
For 100 Series : O-PKG.
For 200/300 Series : O-PKG.
For 400 Series : O-PKG.

Included compilers: gcc, g++

Installed under /share/Apps/local

Instructions:
To compile any program in 200 series, set the following variable.
Code:
# export CC="gcc -EL -fPIC -march=74kc"
# export CXX="g++ -EL -fPIC -march=74kc"
# export CFLAGS="-I/usr/local/include -EL -fPIC -march=74kc"
# export CXXFLAGS="-I/usr/local/include -EL -fPIC -march=74kc"
# export LDFLAGS="-L/usr/local/lib -L/opt/syb/sigma/lib -L/opt/syb/app/lib -EL -fPIC -march=74kc"

For 100 series, the compiler is here. You can test it and report the issues.
Compiler: http://a110progs.googlecode.com/files/a110_gcc.tar.gz

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 2 users say Thank You to vaidyasr for this post
09-08-2010, 12:57 PM
Post: #2
RE: [Apps] GCC, the GNU Compiler Collection A/C200
well done Vaidyasr,

A1?0 port coming ?

So this means the floodgates will open on other packages that have non-existent or problematic cross-compile scripts.

avimerge(transcode) please anyone Smile

Oversight: Jukebox | FeedTime: Automatic nzbs
Find all posts by this user
Add Thank You Quote this message in a reply
09-08-2010, 12:58 PM
Post: #3
RE: [Apps] GCC, the GNU Compiler Collection A/C200
(09-08-2010 12:57 PM)lordy Wrote:  avimerge(transcode) please anyone Smile

avimerge already available in c200. You want them in A1XX?

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
09-08-2010, 10:05 PM
Post: #4
RE: [Apps] GCC, the GNU Compiler Collection A/C200
Looking forward to try this out!
I hope the compiling process doesn't take too long. Wink

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
09-08-2010, 10:20 PM
Post: #5
RE: [Apps] GCC, the GNU Compiler Collection A/C200
(09-08-2010 10:05 PM)dc11ab Wrote:  Looking forward to try this out!
I hope the compiling process doesn't take too long. Wink

I look forward to it also but don't expect short compile times.

I can only guess how long it would take to re-compile GCC on the actual C/A-200. It would not be nice. Still, many small apps will compile in a fairly short time. Maybe an hour or maybe over night? It is a great step. I need to compile my "joe" editor. Haven't seen it done so far.

C-200, A-110 both playing from a DIY Linux Raid 5 server.

Remuxes, Captures and Transcodes done on a desktop running;
Win7, Intel i7 hexacore processor with 24 GB ram, WD VR OS drive and a WD Black 2 TB data drive.
Find all posts by this user
Add Thank You Quote this message in a reply
09-08-2010, 11:14 PM
Post: #6
RE: [Apps] GCC, the GNU Compiler Collection A/C200
I've done some native compiling on my NAS (mips 500 MHz, 128 MB RAM) and I think llink took more than one hour, perhaps nearly two to complete - still that's a fairly light package. Smaller utilities only takes about 20 minutes or so, depending upon passes etc.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
09-09-2010, 07:07 AM (This post was last modified: 09-09-2010 07:53 AM by vaidyasr.)
Post: #7
RE: [Apps] GCC, the GNU Compiler Collection A/C200
The compiler package is ready. If someone is ready to test before releasing via CSI, the package is available via http://c200utils.googlecode.com/files/local.zip

Create a directory /share/Apps/local and extract the zip/tar contents under the above directory. If required, set the LD_LIBRARY_PATH for compiling. The package doesn't included a make binary. So, you can try a small C program which don't require make.
Tested in my C200. It seems I need to include the header files for compiling. Repackging again.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
09-09-2010, 12:34 PM (This post was last modified: 09-09-2010 01:14 PM by nuke12.)
Post: #8
RE: [Apps] GCC, the GNU Compiler Collection A/C200
Compiling make would be a good test.

GNU Make can be found here;
http://ftp.gnu.org/gnu/make/

I think it is as simple as;

./configure
and because there is no "make" yet, you have to;
./sh build.sh

Oh, and cross your fingers.
WinRar is giving me errors on your file.

When it first opens it, I get;
Unexpected end of archive

And when I try to open the ".tar" within, I get;
The archive is either in unknown format or damaged

Oops....must have been the download. I tried it a second and third time and it was ok.

C-200, A-110 both playing from a DIY Linux Raid 5 server.

Remuxes, Captures and Transcodes done on a desktop running;
Win7, Intel i7 hexacore processor with 24 GB ram, WD VR OS drive and a WD Black 2 TB data drive.
Find all posts by this user
Add Thank You Quote this message in a reply
09-10-2010, 12:16 PM
Post: #9
RE: [Apps] GCC, the GNU Compiler Collection A/C200
Ok, when compiling the make, I get the below error. I need to look into the ld binary.
Code:
configure:3166: $? = 1
configure:3186: checking whether the C compiler works
configure:3208: gcc    conftest.c  >&5
/share/Apps/local/bin/ld: this linker was not configured to use sysroots
collect2: ld returned 1 exit status

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
09-10-2010, 01:19 PM
Post: #10
RE: [Apps] GCC, the GNU Compiler Collection A/C200
Oops, I tried yesterday morning and then got side tracked. I ment to comment then. Anyway, I'm getting the same error when I try to ./configure make.

C-200, A-110 both playing from a DIY Linux Raid 5 server.

Remuxes, Captures and Transcodes done on a desktop running;
Win7, Intel i7 hexacore processor with 24 GB ram, WD VR OS drive and a WD Black 2 TB data drive.
Find all posts by this user
Add Thank You Quote this message in a reply
09-10-2010, 02:38 PM
Post: #11
RE: [Apps] GCC, the GNU Compiler Collection A/C200
Oh, another comment here for anyone else playing with this. You can use WinZip or WinRar to extract the .tar file from the .zip but don't use WinRar to take apart the .tar. It will generate linkage errors. Use tar on the PCH to extract eg. "tar -xvf local.tar".

C-200, A-110 both playing from a DIY Linux Raid 5 server.

Remuxes, Captures and Transcodes done on a desktop running;
Win7, Intel i7 hexacore processor with 24 GB ram, WD VR OS drive and a WD Black 2 TB data drive.
Find all posts by this user
Add Thank You Quote this message in a reply
09-11-2010, 09:51 PM
Post: #12
RE: [Apps] GCC, the GNU Compiler Collection A/C200
vaidyasr;

Did you find the issue with ld?

C-200, A-110 both playing from a DIY Linux Raid 5 server.

Remuxes, Captures and Transcodes done on a desktop running;
Win7, Intel i7 hexacore processor with 24 GB ram, WD VR OS drive and a WD Black 2 TB data drive.
Find all posts by this user
Add Thank You Quote this message in a reply
09-12-2010, 04:16 AM (This post was last modified: 09-12-2010 04:16 AM by vaidyasr.)
Post: #13
RE: [Apps] GCC, the GNU Compiler Collection A/C200
(09-11-2010 09:51 PM)nuke12 Wrote:  vaidyasr;

Did you find the issue with ld?

No, I'll do it tomorrow.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
09-16-2010, 09:59 AM (This post was last modified: 09-16-2010 10:03 AM by vaidyasr.)
Post: #14
RE: [Apps] GCC, the GNU Compiler Collection A/C200
The compiler in C200 is working PERFECT. I was able to compile a simple program a2cnfo.c in C200 within 10 seconds.
Compiling...
Code:
nobody@PCH-C200:>export PATH=$PATH:/share/Apps/local/bin;export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/syb/sigma/lib/:/share/Apps/local/usr/lib;bin/gcc -v --sysroot=/share/Apps/local -EL -march=74kc -fPIC -c a2cnfo.c -L/share/Apps/local/lib/gcc/mips-linux-gnu/4.3.3/soft-float/el -msoft-float
Using built-in specs.
COLLECT_GCC=bin/gcc
COLLECT_LTO_WRAPPER=/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../libexec/gcc/mips-linux-gnu/4.5.1/lto-wrapper
Target: mips-linux-gnu
Configured with: ./configure --prefix=/usr/local/mips-4.3/mips-linux-gnu --host=mips-linux-gnu --prefix=/share/Apps/local --with-mpc=/share/Apps/local/usr --with-mpfr=/share/Apps/local/usr --with-gmp=/share/Apps/local/usr --with-libelf=/share/Apps/local/usr --target=mips-linux-gnu --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-float=hard --enable-mips-nonpic --enable-extra-sgxxlite-multilibs --with-gnu-as --with-gnu-ld --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --disable-nls --disable-libgomp --enable-poison-system-directories --with-sysroot=/share/Apps/local --with-build-sysroot=/usr/local/mips-4.3/mips-linux-gnu/libc --with-build-time-tools=/usr/local/mips-4.3/bin --build=sparc-sun-solaris2.10 --enable-languages=c,c++ --with-local-prefix=/share/Apps/local
Thread model: posix
gcc version 4.5.1 (GCC)
COLLECT_GCC_OPTIONS='-v' '-EL' '-march=74kc' '-fPIC' '-c' '-L/share/Apps/local/lib/gcc/mips-linux-gnu/4.3.3/soft-float/el' '-msoft-float' '-mllsc' '-mno-synci' '-mdsp'
/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../libexec/gcc/mips-linux-gnu/4.5.1/cc1 -quiet -v -iprefix /opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/mips-linux-gnu/4.5.1/ -isysroot /share/Apps/local a2cnfo.c -mel -quiet -dumpbase a2cnfo.c -march=74kc -msoft-float -mllsc -mno-synci -mdsp -auxbase a2cnfo -version -fPIC -o /tmp/ccB4mZXj.s
GNU C (GCC) version 4.5.1 (mips-linux-gnu)
    compiled by GNU C version 4.3.3, GMP version 5.0.1, MPFR version 3.0.0, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=42 --param ggc-min-heapsize=23912
ignoring nonexistent directory "/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/mips-linux-gnu/4.5.1/../../../../mips-linux-gnu/include"
ignoring nonexistent directory "/share/Apps/local/share/Apps/local/include"
ignoring duplicate directory "/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/../../lib/gcc/mips-linux-gnu/4.5.1/include"
ignoring duplicate directory "/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/../../lib/gcc/mips-linux-gnu/4.5.1/include-fixed"
ignoring nonexistent directory "/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/../../lib/gcc/mips-linux-gnu/4.5.1/../../../../mips-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/mips-linux-gnu/4.5.1/include
/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/mips-linux-gnu/4.5.1/include-fixed
/share/Apps/local/usr/include
End of search list.
GNU C (GCC) version 4.5.1 (mips-linux-gnu)
    compiled by GNU C version 4.3.3, GMP version 5.0.1, MPFR version 3.0.0, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=42 --param ggc-min-heapsize=23912
Compiler executable checksum: 64dc12077e5aef54a42b00b2680643b5
COLLECT_GCC_OPTIONS='-v' '-EL' '-march=74kc' '-fPIC' '-c' '-L/share/Apps/local/lib/gcc/mips-linux-gnu/4.3.3/soft-float/el' '-msoft-float' '-mllsc' '-mno-synci' '-mdsp'
as -v -EL -mdsp -no-mdebug -mabi=32 -march=74kc -v -KPIC -o a2cnfo.o /tmp/ccB4mZXj.s
GNU assembler version 2.20.1 (mips-linux-gnu) using BFD version (GNU Binutils) 2.20.1.20100303
COMPILER_PATH=/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../libexec/gcc/mips-linux-gnu/4.5.1/:/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../libexec/gcc/
LIBRARY_PATH=/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/mips-linux-gnu/4.5.1/:/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/:/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/mips-linux-gnu/4.5.1/../../../:/share/Apps/local/lib/:/share/Apps/local/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-EL' '-march=74kc' '-fPIC' '-c' '-L/share/Apps/local/lib/gcc/mips-linux-gnu/4.3.3/soft-float/el' '-msoft-float' '-mllsc' '-mno-synci' '-mdsp'

Linking...
Code:
nobody@PCH-C200:>export PATH=$PATH:/share/Apps/local/bin;export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/syb/sigma/lib/:/share/Apps/local/usr/lib;bin/gcc -v --sysroot=/share/Apps/local -EL -march=74kc -fPIC -o a2cnfo a2cnfo.o -L/share/Apps/local/lib/gcc/mips-linux-gnu/4.3.3/soft-float/el -msoft-float
Using built-in specs.
COLLECT_GCC=bin/gcc
COLLECT_LTO_WRAPPER=/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../libexec/gcc/mips-linux-gnu/4.5.1/lto-wrapper
Target: mips-linux-gnu
Configured with: ./configure --prefix=/usr/local/mips-4.3/mips-linux-gnu --host=mips-linux-gnu --prefix=/share/Apps/local --with-mpc=/share/Apps/local/usr --with-mpfr=/share/Apps/local/usr --with-gmp=/share/Apps/local/usr --with-libelf=/share/Apps/local/usr --target=mips-linux-gnu --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-float=hard --enable-mips-nonpic --enable-extra-sgxxlite-multilibs --with-gnu-as --with-gnu-ld --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --disable-nls --disable-libgomp --enable-poison-system-directories --with-sysroot=/share/Apps/local --with-build-sysroot=/usr/local/mips-4.3/mips-linux-gnu/libc --with-build-time-tools=/usr/local/mips-4.3/bin --build=sparc-sun-solaris2.10 --enable-languages=c,c++ --with-local-prefix=/share/Apps/local
Thread model: posix
gcc version 4.5.1 (GCC)
COMPILER_PATH=/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../libexec/gcc/mips-linux-gnu/4.5.1/:/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../libexec/gcc/
LIBRARY_PATH=/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/mips-linux-gnu/4.5.1/:/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/:/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/mips-linux-gnu/4.5.1/../../../:/share/Apps/local/lib/:/share/Apps/local/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-EL' '-march=74kc' '-fPIC' '-o' 'a2cnfo' '-L/share/Apps/local/lib/gcc/mips-linux-gnu/4.3.3/soft-float/el' '-msoft-float' '-mllsc' '-mno-synci' '-mdsp'
/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../libexec/gcc/mips-linux-gnu/4.5.1/collect2 --sysroot=/share/Apps/local --eh-frame-hdr -EL -dynamic-linker /lib/ld.so.1 -o a2cnfo /share/Apps/local/usr/lib/crt1.o /share/Apps/local/usr/lib/crti.o /share/Apps/local/usr/lib/crtbegin.o -L/share/Apps/local/lib/gcc/mips-linux-gnu/4.3.3/soft-float/el -L/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/mips-linux-gnu/4.5.1 -L/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc -L/opt/sybhttpd/localhost.drives/SATA_DISK/Apps/local/bin/../lib/gcc/mips-linux-gnu/4.5.1/../../.. -L/share/Apps/local/lib -L/share/Apps/local/usr/lib a2cnfo.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /share/Apps/local/usr/lib/crtend.o /share/Apps/local/usr/lib/crtn.o

Execution
Code:
nobody@PCH-C200:>./a2cnfo
Usage: HEXDUMP file_name

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
09-16-2010, 11:34 AM
Post: #15
RE: [Apps] GCC, the GNU Compiler Collection A/C200
So will make compile now?

C-200, A-110 both playing from a DIY Linux Raid 5 server.

Remuxes, Captures and Transcodes done on a desktop running;
Win7, Intel i7 hexacore processor with 24 GB ram, WD VR OS drive and a WD Black 2 TB data drive.
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [400] Cross compiled aria2c for A-400 with mips-linux-gnu-gcc henryleelee0326 3 417 05-21-2013 08:16 AM
Last Post: vaidyasr
  [200] gcc cant find libcrypt.so KidE79 0 817 09-20-2011 07:05 AM
Last Post: KidE79
  [200] create users to access my media collection hadyhosny 0 1,033 03-22-2010 09:19 PM
Last Post: hadyhosny

Forum Jump: