Dead Hackers Society
Other BBSes »
 
 

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

CT60 and related things BBS
 
Re: GCC 3.3.6 available.
Posted by: Zorro Jan,16.2006-09:46 

Hi Adam !

Short? Well, I don't know :)

Here, a "step-by-step" guide to compile GCC( both C and C++ compilers) on your computer.

That would be well if someone has the time to make a RPM for the sparemint site.

1) You can't compile G++ with the old binutils available on the sparemint's website( I get a "compilation error - bad instruction" with libstd++) so, you will need to work with a newer version:

a) Get the source from http://www.gnu.org/software/binutils/

The latest is the 2.16.1.

b) Apply the Patrice's patch:
http://perso.wanadoo.fr/patrice.mandin/download/diff/binutils-2.16.1-mint-4.diff.gz

c) The 68k part of binutils 2.16.1 has a bug that prevents to compile some FPU instructions.

You must change some lines in the assembler code ( /src/gas/config/tc-m68k.c):

http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/config/tc-m68k.c.diff?r1=1.67&r2=1.68&cvsroot=src&f=h

d) "./configure" and "make && make install" will install the news binutils in your "local" directory.

2) Get the GCC 3.3.6 source.

3) Apply these Patrice's patchs:

http://perso.wanadoo.fr/patrice.mandin/download/diff/gcc-c-3.3.6.diff.gz
http://perso.wanadoo.fr/patrice.mandin/download/diff/gcc-cpp-3.3.6-mint-1.diff.gz

4) go in the libstdc++-v3 subdir and run "autoconf"

5) go in the root GCC directory and run:

./configure --target=m68k-atari-mint --host=m68k-atari-mint --enable-languages="c,c++" --with-gnu-as --with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld

6) run "make bootstrap" and go to sleep( or something else) because the compilation takes around 8 hours on my CT60@100.

7) That's all :)


Some important things to know about the patched binutils:

- Don't use it for a program compilation because the stack and strip utilities don't work correctly.

- you don't need the newer binutils to compile common apps. Only the libstd++ compilation needs it.










[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
GCC 3.3.6 available. Zorro Jan,15.2006-00:13
  Re: GCC 3.3.6 available. Zorro Jan,15.2006-00:18
    Re: GCC 3.3.6 available. Saulot Jan,15.2006-16:36
      Re: GCC 3.3.6 available. Zorro Jan,16.2006-09:54
        Re: GCC 3.3.6 available. piku Feb,20.2006-16:02
    Re: GCC 3.3.6 available. Peter Jan,15.2006-20:48
  Re: GCC 3.3.6 available. Adam Klobukowski Jan,16.2006-08:47
    Re: GCC 3.3.6 available. Zorro Jan,16.2006-09:46
      Re: GCC 3.3.6 available. Adam Klobukowski Jan,16.2006-19:10
        Re: GCC 3.3.6 available. Zorro Jan,16.2006-20:00
          Re: GCC 3.3.6 available. mikro Jan,17.2006-12:15
            Re: GCC 3.3.6 available. Zorro Jan,17.2006-13:10
              Re: GCC 3.3.6 available. mikro Jan,18.2006-10:12
                Re: GCC 3.3.6 available. Patrice Mandin Jan,19.2006-22:33
                  Re: GCC 3.3.6 available. piku Jan,20.2006-07:22


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson