source: tags/ms_r18q1/arbsrc_README_gcc.txt

Last change on this file was 16649, checked in by westram, 4 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1
2ARB will compile with several versions of gcc.
3
4The main Makefile in the ARB directory lists all supported versions
5and complains if you try to use an untested gcc version.
6See http://bugs.arb-home.de/wiki/GccVersionInfo for up-to-date
7information about supported and refused gcc version.
8
9You may try to simply add the untested version number to the Makefile
10and try compilation. Especially if the version lays somewhere inbetween
11the listed versions your chances are good that it will work.
12
13If you encounter compilation problems with any of the versions listed
14in the Makefile, please report to devel@arb-home.de
15
16
17If your gcc version refuses to compile ARB, you need to install an
18additional gcc.
19
20
21Here 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-------------------------------------------
68problems 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
Note: See TracBrowser for help on using the repository browser.