View Single Post
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#1
Here is native gcc-4.8.1 (released at 31.05.2013) for Fremantle. Download bz2-package here: https://drive.google.com/folderview?...1FISzZXc2M1RWc ( md5sum=e0643b49f4655e1a5bc15a4134a2bae2 ) and unpack it to the /opt . You can use it on device or on Scratchbox. Scratchbox is not preferred because cross compiler is so much faster than native arm to arm. And of course running compiler on N900 is not preferred either (low memory, low CPU, lack of full size keyboard/screen, mostly battery powered...)

Install:
libmpc2
libmpfr1ldbl
libgmp3c2
binutils2.22
(make-3.81)

Usage:
Code:
PATH=/usr/binutils2.22/bin/:$PATH:/opt/gcc-4.8/bin/
gcc or g++ ...

After first non-trivial test (with default configs) it produced bigger binary file than gcc-4.7.
-------
Compiling gcc-4.8.1on scratchbox (which have already gcc-4.7):

Code:
fakeroot apt-get install libmpc-dev libmpfr-dev libgmp3-dev

wget ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-4.8.1/gcc-4.8.1.tar.bz2
tar xvf gcc-4.8.1.tar.bz2
mkdir build
cd build
../gcc-4.8.1/configure prefix=/opt/gcc-4.8 
make
make install

Last edited by AapoRantalainen; 2016-07-03 at 12:21. Reason: download link updated
 

The Following 16 Users Say Thank You to AapoRantalainen For This Useful Post: