Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: rayz 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
-
Have you tried obtaining the newest 'binutils' (2.15) and compiling that? I don't know whether you will then need to recompile gcc as well, but trying won't hurt.
-
You have to install a newer version of binutils as Cymric suggested and after that I'd recomend recompiling gcc too (yeah, I know it takes ages ;) ).
-
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
-
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