File: arbsrc_README_gcc.txt

package info (click to toggle)
arb 6.0.6-4
  • links: PTS, VCS
  • area: non-free
  • in suites: bullseye, buster
  • size: 66,032 kB
  • sloc: ansic: 394,907; cpp: 250,290; makefile: 19,639; sh: 15,879; perl: 10,473; fortran: 6,019; ruby: 683; xml: 503; python: 53; awk: 32
file content (92 lines) | stat: -rw-r--r-- 2,183 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92

ARB will compile with several versions of gcc.

Compilation is frequently tested with

            gcc version   used in ubuntu

            gcc 4.2.4      8.04 LTS hardy
            gcc 4.3.3      9.04     jaunty
            gcc 4.4.3     10.04     lucid

The main Makefile in the ARB directory lists all supported versions
(currently starting with gcc 3.2) and complains if you try to use
an untested gcc version.

You may try to simply add the untested version number to the Makefile
and try compilation. Especially if the version lays somewhere inbetween
the listed versions your chances are good that it will work.

If you encounter compilation problems with any of the versions listed
in the Makefile, please report to devel@arb-home.de


If your gcc version refuses to compile ARB, you need to install an
additional gcc. 


Here a short howto (using gcc 4.5.2 as example):

- download (e.g.)

      mkdir new-dir
      cd new-dir
      wget 'http://gcc.cybermirror.org/releases/gcc-4.5.2/gcc-core-4.5.2.tar.bz2'
      wget 'http://gcc.cybermirror.org/releases/gcc-4.5.2/gcc-g++-4.5.2.tar.bz2'

- unpack into directory 'src':

      mkdir src
      cd src
      tar -jxvf ../gcc-core-4.5.2.tar.bz2
      tar -jxvf ../gcc-g++-4.5.2.tar.bz2

- create directory 'objs'

      cd ..
      mkdir objs

- use bash:

      bash

- configure gcc:

      cd objs
      ../src/gcc-4.5.2/configure --prefix=/opt/gcc-4.5.2 --disable-nls

- build gcc:

      make bootstrap

- install gcc:

      su
      make install

- prefix
      /opt/gcc-4.5.2/bin
  to your PATH environment variable.

- compile ARB


-------------------------------------------
problems that may occur while compiling gcc
-------------------------------------------

 - configure is complaining about wrong libmfc

   - download, compile and install recent version
     (further assuming it was installed into /usr/local)
   - before configuring gcc set

     LD_OPTIONS='-L/usr/local/lib -R/usr/local/lib'
     export LD_OPTIONS
     LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
     export LDFLAGS

   - run configure with
         --with-mpfr=/usr/local
     option
   - continue with 'make bootstrap' like above