From: premelfa AT vega DOT utc DOT fr (Fabrice Premel) Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem compiling gcc Date: 12 Dec 1996 10:50:57 GMT Organization: Universite de Technologie de Compiegne - France Lines: 69 Message-ID: <58oo2h$1cq@utcnews.utc.fr> References: <58k7gk$qiq AT utcnews DOT utc DOT fr> <32AE25E2 DOT 6170 AT cs DOT com> NNTP-Posting-Host: vega.utc.fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <32AE25E2 DOT 6170 AT cs DOT com> you wrote: : Fabrice Premel wrote: : > : > Hi, : > I tried to compile gcc (with djgpp, gnu make, gnu sed...), and got a message : > saying : ld.exe error overflow line number 0x1xxxx of 0xffff : > (can't remember what were xxxx). : > What's wrong ? : > I used unmodified sources, makefile ... : The stock gcc sources cannot be compiled correctly in MS-DOS without a : number of changes to the code, all of which have already been made by : the DJGPP development team. gcc makes a number of assumptions about the : way the file system operates that are valid under Unix but not under : DOS. : If you really, really, want to rebuild gcc from scratch, just download : the DOS-ready source from : ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/ and build it from : there! Of course, what you'll get is the same thing that you already : have... DJGPP. :) Yes, I downloaded theese files, (well, there were on x2ftp, but in the same directory, so I assume they are the same), and not a classic gcc. : Please give us more information on what exactly it is that you are : trying to compile gcc for. Here are some things I can think of, with : caveats: : - You are trying to build gcc to cross-compile to another platform. : You need to obtain the file 'v2/djcrx201.zip' and carefully read the : information contained therein. Information on cross-compilation can : also be found in the DJGPP FAQ (v2/faq202b.zip). : - You are trying to build a version of gcc that will work with a Unix : shell ported to DOS. I can't help you with this one, but most likely : you will want to bootstrap gcc from whatever compiler that shell itself : provides you. DJGPP-compiled programs will NOT run in Linux, for : example; they are designed for DOS or DOS emulation only. Again, refer : to the cross-compilation information above. : - You want to build a 16-bit version of gcc to run on an older : computer. Sorry, but you're out of luck here. Not only will gcc not : work in 16-bits without MAJOR modifications, but DJGPP produces only : 32-bit executables. : - You're just being anal and want the original gcc, not the modified : DJGPP gcc. One word: why? : If nothing I have written here seems applicable, please post again. I catched a pentium patch for gcc, I think it was originally written for Linux use, but I want to try it. So I downloaded it, tried, and it doesn't work. I, then , tried to compile the non patched source, and it neither compile. So I still don't know if pentium patch work. And I would really like to get it work, since it seems to greatly enhace speed ... Maybe I got corrupted sources, but I really don't think so, since it unzip very well. And it seems not to be a compilation error, but a linker error (?!?!?). : Good luck! I'll try without -D option too, (cf next post) (I used standard makefile, don't know if it has -D option enable by default) Here is the exact message : ld.exe : cc1 : .text : line number overflow : 0x1064a > 0xffff cc1 : final close failed : File truncated F.