Following command does the work
$ cat /proc/cpuinfo | grep -i odroid | awk {'print $3'}
$ cat /proc/cpuinfo | grep -i odroid | awk {'print $3'}
$ which gcc
$ ls -ld /usr/bin/gcc
$ sudo rm /usr/bin/gcc
$ sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
$ ls -ld /usr/bin/gcc
sudo apt-get install gcc-multilib
error: no acceptable m4 could be found in $PATH.Type which java to get the current location of the link, remove the link with rm then recreate the link pointing to the new version.
$ which java/usr/bin/java
$ ls -ld /usr/bin/java
$ rm /usr/bin/java
$ ln -s /usr/bin/j2re1.4.2_17/bin/java /usr/bin/java
$ ls -ld /usr/bin/java