Welcome, Guest. Please login or register.

Author Topic: Installing gcc 3.x  (Read 1029 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline rayzTopic starter

  • Newbie
  • *
  • Join Date: Oct 2003
  • Posts: 6
    • Show all replies
Installing gcc 3.x
« on: July 08, 2004, 08:00:52 AM »
I need to install a new version of g++ than the 2.95 I've been using.  So I have been trying to get first 3.3.3 and now 3.4.0 working, without success. Well, "g++ --version" runs, and gives me the right version number. But when
I try to compile something, I get assembler errors, like

/t/cclN4vDr.s:940: Error: Unknown pseudo-op:  `.uleb128'

(dozens--maybe hundreds--of them).  Do I need a new assembler? I can't seem to find one on the download site.  Mine is

gas --version
GNU assembler 2.8.1
Copyright 1997 Free Software Foundation, Inc.

Any help or suggestions greatly appreciated.

--Ray

 

Offline rayzTopic starter

  • Newbie
  • *
  • Join Date: Oct 2003
  • Posts: 6
    • Show all replies
Re: Installing gcc 3.x
« Reply #1 on: July 08, 2004, 03:26:18 PM »
Thanks--I found a binary binutils and installed it, and it fixed the assembler errors. It installed a new 'as' (and 'ld', too). I did not need to reinstall gcc3.

But now the linker complains of not being able to find crt0.o. Do you know what tarball has that?  I tried a new glib, but I guess that wasn't it.

--Ray
 

Offline rayzTopic starter

  • Newbie
  • *
  • Join Date: Oct 2003
  • Posts: 6
    • Show all replies
Re: Installing gcc 3.x
« Reply #2 on: July 09, 2004, 01:53:34 AM »
Thanks for your help. I can now answer my own question!

The Geek Gadget port at ftp.geekgadgets.org has developed considerably since I last looked a couple of years ago. In general, the stuff in the alpha directory works very well; much better than the old Geek Gadgets CD (which seems to be what's in the bin directory on geekgadets.org). Only thing is that instructions are pretty sketchy.

I now have gcc (and ++) working in three versions: 2.95.3, 3.3.3, and 3.4.0.  These required the obvious archives from alpha/gcc, and also the binutils from alpha/cross (why the name? These all seem to work natively just fine.) But the gg:bin/ld from alpha/cross is broken. Keep gg:bin/ld from the binutils in the bin download directory and update everything else (especially 'as').

To get three compilers running interchangably, I renamed the newer gcc, g++, etc. before installing them in gg:bin (e.g. g++3.3, g++3.4).

I am also impressed with the new port of pdksh. I think I may finally be able to switch from my old Sksh (anyone remember that oldy-but-goody?).

Hope this helps someone else out there.

--Ray