Hello
I've been trying to install gcc 4.8.2 on my raspberry, because i need it to compile something else (http://rathena.org/board/topic/78187-ra ... =raspberry)
I have tried many different ways, but i haven't succeeded so far... What i did so far:
-Make a clone from github and run the "make" command. This worked for a while, but then it began to give missing file errors. I tried fixing some of them, but then i noticed i began to change(duplicate) certain files that i don't think should be moved from position.
-I tried crosscompiling with eclipse, but this also gave me missing file errors.
Is there any guide that will work, or can anyone give me good instructions on how to get a working gcc 4.8 on my raspberry?
I don't care if i have to compile on my raspberry since it is on 24/7.
I found many guides on how to get gcc working on ubuntu, but that did not work. Also corsscompiling worked for a simple hello world program (but i did not run it on my raspberry, but at least it didn't give me errors), but for gcc 4.8 it didn't work.
Thanks in advance
Joren C.
Compiling and installing gcc 4.8.x
- Raspberry Pi Model B since 2013.
- Raspberry Pi Zero since October 2016
- Raspberry Pi 3 since: December 2016
- Raspberry Pi Zero since October 2016
- Raspberry Pi 3 since: December 2016
- DougieLawson
- Posts: 42213
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: Compiling and installing gcc 4.8.x
Update /etc/apt/sources.list to have jessie wherever you've currently got wheezy
sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
reboot
And the stock gcc that gets installed is:
ii gcc 4:4.8.2-1 armhf GNU C compiler
sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
reboot
And the stock gcc that gets installed is:
ii gcc 4:4.8.2-1 armhf GNU C compiler
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: Compiling and installing gcc 4.8.x
I never tought of actually upgrading my pi... that seems like the easiest way of doing this. I'm testing this right now, getting the packages 
Thanks!

Thanks!
- Raspberry Pi Model B since 2013.
- Raspberry Pi Zero since October 2016
- Raspberry Pi 3 since: December 2016
- Raspberry Pi Zero since October 2016
- Raspberry Pi 3 since: December 2016
Re: Compiling and installing gcc 4.8.x
It worked! now onto the next step, thank you!
- Raspberry Pi Model B since 2013.
- Raspberry Pi Zero since October 2016
- Raspberry Pi 3 since: December 2016
- Raspberry Pi Zero since October 2016
- Raspberry Pi 3 since: December 2016
-
- Posts: 34
- Joined: Tue Nov 26, 2013 7:25 pm
Re: Compiling and installing gcc 4.8.x
This does not work for me. I followed the steps but my gcc version stayed the same:
gcc version 4.6.3 (Debian 4.6.3-14+rpi1)
gcc version 4.6.3 (Debian 4.6.3-14+rpi1)
Re: Compiling and installing gcc 4.8.x
I found that I still had the old compiler after following these steps as well. However, then doing "sudo apt-get install build-essential" got me the latest version of the compiler, which is now 4.9.2 at the time of writing.
Re: Compiling and installing gcc 4.8.x
You have resurrected an old thread ...
The pre-installed version is 6.3
So your 4.9.2 is very old
The current version of the compiler is 7.3 which I use on all my Pi's.
The pre-installed version is 6.3
So your 4.9.2 is very old
Re: Compiling and installing gcc 4.8.x
It wasn't (old) when this thread was started (and thus relevant):
Sun Jan 05, 2014 8:36 pm
"L'enfer, c'est les autres"
G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:
Epmu Sn!
J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!
G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:
Epmu Sn!
J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!