Go Back   maemo.org - Talk > OS / Platform > Development
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2013-06-23, 18:06
AapoRantalainen AapoRantalainen is offline
 
Join Date: Mar 2009
Posts: 833
Thanks!: 1,209
Thanked 3,371 Times in 671 Posts
Default gcc-4.8.1 for Fremantle (arm to arm)

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
Reply With Quote
The Following 16 Users Say Thank You to AapoRantalainen For This Useful Post:
  #2  
Old 2013-06-23, 18:40
freemangordon freemangordon is offline
 
Join Date: Mar 2010
Location: Sofia,Bulgaria
Posts: 3,074
Thanks!: 2,415
Thanked 12,959 Times in 2,522 Posts
Default Re: gcc-4.8.1 for Fremantle (arm to arm)

@aapo - any chance to build a cross-compiler .deb for SB?
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

Reply With Quote
The Following 2 Users Say Thank You to freemangordon For This Useful Post:
  #3  
Old 2013-06-23, 20:11
Android_808 Android_808 is offline
 
Join Date: Dec 2010
Posts: 1,203
Thanks!: 640
Thanked 3,027 Times in 901 Posts
Default Re: gcc-4.8.1 for Fremantle (arm to arm)

might wanna see what the linaro guys are doing first.
Reply With Quote
The Following 4 Users Say Thank You to Android_808 For This Useful Post:
Reply

Tags
fremantle, nokia n900


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:51.