Xref: utzoo gnu.utils.bug:1401 comp.unix.sysv386:699 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!julius.cs.uiuc.edu!apple!motcsd!motcsd.csd.mot.com!mark From: mark@motcsd.csd.mot.com (Mark Jeghers) Newsgroups: gnu.utils.bug,comp.unix.sysv386 Subject: Problems using GAS on Interactive 386/ix 2.2 (with patches) Message-ID: <1545@motcsd.csd.mot.com> Date: 24 Sep 90 21:04:11 GMT Sender: usenet@motcsd.csd.mot.com Followup-To: gnu.utils.bug Distribution: usa Organization: Motorola CSD, Cupertino CA Lines: 25 I may just need to be educated in how to properly use the GNU products, or I may have a problem in the software. I got all the latest versions of gas, gcc, g++, libg++, gdb, etc. My understanding at this point is that I probably need to build gas first (please correct me if this is not true) so that gcc can use it instead of the standard assembler. I assume that even if this is not required, it might be preferable. THEREFORE, I have started my gnu-building efforts with gas. I have applied the ISC patches recently posted in comp.unix.sysv386, and it all pretty much compiled. Next, I compiled a C program up to assembly language and tried assembling it with gas. Here is the problem: gas makes an object file alright, but the standard linker does not accept it, saying that the magic number is wrong. The 'file' command says it's a PDP/11 (or earlier!) object file! I suppose this strange effect has to do with the patches (since they appear to implement COFF format), but I am not totally clear on what I should do next. Do I need to use a different linker? Or is gas broken? Are there other pieces (in gcc, for example) that need to be built before I can use gas? Is there any reasonable documentation such as "Bert and Ernie build GNU tools for the first time"? Thanks for all responses in advance.