X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Wed, 6 Mar 2002 08:22:30 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: deckerben cc: djgpp AT delorie DOT com Subject: Re: BASH 2.05 a cannot find GCC.EXE In-Reply-To: <3c856c4d$0$12312$9b622d9e@news.freenet.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 6 Mar 2002, deckerben wrote: > I have really tried everything. This is what I know: > I can build applications that come with a djgpp makefile without problem > I cannot build any applications (so far) that require me to 'configure' > first. > With 'configure first' applications using 'Simtel bash', I always get a > million errors that look like this: > > d:/user/djgpp/bin/as.exe: bfd assertion fail > /dj204/gnu/binutl-2.112/bfd/coff-i386.c:529 > d:\user\djgpp\tmp\cc0mzF8o.s:8883: Error: cannot represent relocation type > BFD_RELOC_386_GOT32 > > With 'configure first' applications using 'rice bash', I always get a single > error that looks like this: > > D:\\USER\\DJGPP\\bin\\gcc.exe -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt > -I/dev/env/DJDIR/include/libxml2/libxml -I/dev/env/DJDIR/include/libxml2 -g > -O2 -c xslt.c -fPIC -DPIC -o .libs/xslt.lo > ../libtool: D:\USER\DJGPP\bin\gcc.exe: command not found Did you somehow rename one of the Bash versions you have? That is, is some of them called anything but bash.exe? Or perhaps you are running one of the versions with the DJGPP variable unset, or pointing to a directory where there's no DJGPP.ENV file, or an incomplete DJGPP tree? The reason I'm asking is that the above failure indicates you might have a severely misconfigured package, as far as libtool is considered. So please make sure that these points all check out: - your Bash executables are called bash.exe and sh.exe, and nothing else; - the DJGPP variable is set to point to a DJGPP.ENV file which came with djdev203.zip; - there's a `share' directory under the top-level DJGPP directory, and there's a config.site file in that `share' directory. - you have all the auxiliary packages (Fileutils, Textutils, Sh-utils, Grep, Gawk, Find, Diffutils, and Sed) required to run configure scripts, and the programs from these packages are accessible to Bash when you try to build your program (XSL or whatever). Also make sure these auxiliary packages are all DJGPP ports, not some other port. If any of these is not true, configuration scripts such as `configure' and `libtool' will misbehave. > You are right, by both instances is '-PIC' requested from GCC. What can I do > to illiminate this? Can I edit the makefile to get rid of it? No, you need to make sure the configuration process and libtool pick up the right defaults for DJGPP. Shared libraries and -PIC are certainly _not_ right. > What's a 'shared library', anyway (boy.... is he dumb :-( Something like a DLL. DJGPP doesn't support them, so it's obvious that the configuration process made some very wrong decisions.