delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/10/23:43:59

Sender: nate AT cartsys DOT com
Message-ID: <357F42B7.AEA420BB@cartsys.com>
Date: Wed, 10 Jun 1998 19:36:39 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: ISS'98 AT delorie DOT com
CC: djgpp AT delorie DOT com
Subject: Re: Assembler problems upgrading from gcc272b to gcc281b
References: <6lj2iu$450 AT lilith DOT uab DOT es>

ISS'98 AT delorie DOT com wrote:
> 
> hi...
> 
> I've just "installed" gcc 2.8.1 (gcc281b.zip only) but I have some problems,
> as I've installed it over a previous 100% working 2.7.2 version (even the
> readme DIDN'T recommended that... I know that I deserve that someone spits on
> my face :) The thing is that now gcc seems to work 100%, but when in the
> assembling phase, "AS" complains with this weird message:
> 
>       "unknown pseudo opcode: .p2align"
> 
> (or something simmilar) And I don't know what to do... When I installed 2.8.1
> version, I read carefully the readme file, and I changed my djgpp.env file
> as it said: erasing the [gcc] and [cpp] sections.

Actually, that's a documentation error.  Removing those sections can
lead to problems down the road. Consider going back to the distributed
DJGPP.ENV.

> I also erased the old libgcc.a file, as well as my old specs file. I didn't
> removed the djgpp.djl file, as I didn't have it. I removed the djgpp.lnk file
> I think... I also removed cc1.exe, cpp.exe and cc1plus.exe
> 
> Then I unzipped (with -d) in the root of DJGPP the gcc281b.zip archive and
> in theory everything should work from now...
> 
> But it doesn't work, as I want to compile simple .c sources, and the
> strange error still appears...
> 
> I know that this method isn't recommended, but should I delete more "old"
> gcc 272 files ? which of them ?
> 
> I pray for not having to reinstall the whole gcc again...
> 
> Anyway, I think I should solve the problem through another way, which is this
> one: I should upgrade also, not only gcc bins, but some other bins, like
> bnu***, no ? (where AS is included, no? )
> (I currently have BNU 2.5.2)... Maybe this "old" AS doesn't understand this
> "new" .p2align directive... I'll also try to get bnu27b (at least I saw that
> this is the last version... maybe a newer version has also been released)

That's your problem, right there. Upgrade your binutils; the latest
version is 2.8.1, and before long probably 2.9.1.

> I also found that when I tried to link (with gcc 2.8.1) old .o files,
> generated with the old 2.7.2 gcc, another error appears, which is
> "I can't find coff-go32-exe" or something simmilar...

You probably shouldn't mix the object files.  If you really need to, do
the link with `-v' and post its entire output.

HTH
-- 

Nate Eldredge
nate AT cartsys DOT com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019