| 1 | |
|---|
| 2 | ARB will compile with several versions of gcc. |
|---|
| 3 | |
|---|
| 4 | The main Makefile in the ARB directory lists all supported versions |
|---|
| 5 | and complains if you try to use an untested gcc version. |
|---|
| 6 | See http://bugs.arb-home.de/wiki/GccVersionInfo for up-to-date |
|---|
| 7 | information about supported and refused gcc version. |
|---|
| 8 | |
|---|
| 9 | You may try to simply add the untested version number to the Makefile |
|---|
| 10 | and try compilation. Especially if the version lays somewhere inbetween |
|---|
| 11 | the listed versions your chances are good that it will work. |
|---|
| 12 | |
|---|
| 13 | If you encounter compilation problems with any of the versions listed |
|---|
| 14 | in the Makefile, please report to devel@arb-home.de |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | If your gcc version refuses to compile ARB, you need to install an |
|---|
| 18 | additional gcc. |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | Here a short howto (using gcc 4.5.2 as example): |
|---|
| 22 | |
|---|
| 23 | - download (e.g.) |
|---|
| 24 | |
|---|
| 25 | mkdir new-dir |
|---|
| 26 | cd new-dir |
|---|
| 27 | wget 'http://gcc.cybermirror.org/releases/gcc-4.5.2/gcc-core-4.5.2.tar.bz2' |
|---|
| 28 | wget 'http://gcc.cybermirror.org/releases/gcc-4.5.2/gcc-g++-4.5.2.tar.bz2' |
|---|
| 29 | |
|---|
| 30 | - unpack into directory 'src': |
|---|
| 31 | |
|---|
| 32 | mkdir src |
|---|
| 33 | cd src |
|---|
| 34 | tar -jxvf ../gcc-core-4.5.2.tar.bz2 |
|---|
| 35 | tar -jxvf ../gcc-g++-4.5.2.tar.bz2 |
|---|
| 36 | |
|---|
| 37 | - create directory 'objs' |
|---|
| 38 | |
|---|
| 39 | cd .. |
|---|
| 40 | mkdir objs |
|---|
| 41 | |
|---|
| 42 | - use bash: |
|---|
| 43 | |
|---|
| 44 | bash |
|---|
| 45 | |
|---|
| 46 | - configure gcc: |
|---|
| 47 | |
|---|
| 48 | cd objs |
|---|
| 49 | ../src/gcc-4.5.2/configure --prefix=/opt/gcc-4.5.2 --disable-nls |
|---|
| 50 | |
|---|
| 51 | - build gcc: |
|---|
| 52 | |
|---|
| 53 | make bootstrap |
|---|
| 54 | |
|---|
| 55 | - install gcc: |
|---|
| 56 | |
|---|
| 57 | su |
|---|
| 58 | make install |
|---|
| 59 | |
|---|
| 60 | - prefix |
|---|
| 61 | /opt/gcc-4.5.2/bin |
|---|
| 62 | to your PATH environment variable. |
|---|
| 63 | |
|---|
| 64 | - compile ARB |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | ------------------------------------------- |
|---|
| 68 | problems that may occur while compiling gcc |
|---|
| 69 | ------------------------------------------- |
|---|
| 70 | |
|---|
| 71 | - configure is complaining about wrong libmfc |
|---|
| 72 | |
|---|
| 73 | - download, compile and install recent version |
|---|
| 74 | (further assuming it was installed into /usr/local) |
|---|
| 75 | - before configuring gcc set |
|---|
| 76 | |
|---|
| 77 | LD_OPTIONS='-L/usr/local/lib -R/usr/local/lib' |
|---|
| 78 | export LD_OPTIONS |
|---|
| 79 | LDFLAGS='-L/usr/local/lib -R/usr/local/lib' |
|---|
| 80 | export LDFLAGS |
|---|
| 81 | |
|---|
| 82 | - run configure with |
|---|
| 83 | --with-mpfr=/usr/local |
|---|
| 84 | option |
|---|
| 85 | - continue with 'make bootstrap' like above |
|---|