Date: Tue, 23 Jul 1996 21:29:19 -0700 From: John Polstra <jdp@polstra.com> To: brad@american.com Cc: freebsd-current@freebsd.org Subject: Re: gcc 2.7.2 + binutils 2.7 on stable? Message-ID: <199607240429.VAA00920@austin.polstra.com> In-Reply-To: <199607231912.PAA10790@muir-woods.american.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> I've been trying to build gcc-2.7.2 and binutils 2.7 on a "stable" > system (i.e. sup'd from the stable release). I give up. I can't > get bfd and ld to do the right thing. Give it up, unless you have a lot of time, a lot of patience, and some experience writing language tools. The linker in GNU binutils doesn't come close to supporting FreeBSD. For starters, there's absolutely no support for our shared libraries. You can use gcc-2.7.2 with the native FreeBSD assembler and linker, provided that you modify gcc slightly so that it doesn't try to use weak symbols. (Our assembler doesn't support weak symbols.) To do that, find the #define of "ASM_WEAKEN_LABEL" in "config/i386/freebsd.h", and delete it. There have been some reports of problems with C++ after doing that, but the reports were rather vague, and I am not sure what, if anything, was actually the problem. As another option: Reportedly, it's not that hard to get just the assembler from binutils working for FreeBSD. Our linker seems to support weak symbols, so if you can get the binutils assembler working, then you should be able to use it with the stock gcc-2.7.2 and the native linker. Finally, you may wish to wait a couple of weeks. Peter Wemm is poised to bring the latest version of gcc into our source tree. He has been holding off, because rumor has it that gcc-2.7.3 is just around the corner. -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607240429.VAA00920>