X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Robert Riebisch Newsgroups: comp.os.msdos.djgpp Subject: GCC 4.3.2 doesn't find cc1.exe Date: Sun, 05 Oct 2008 19:39:02 +0200 Organization: none Lines: 70 Message-ID: <6kscdnF9ffloU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net OMhmsjHvEfkIt9ATlpQNCAYGq+yd2KT8y04gvqFYPfUt6eaK2n Cancel-Lock: sha1:p60Y+Xi+x3J/iF5t6bthk688i8k= X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi! To allow multiple GCC versions in one DJGPP installation, I usually tweak GCC's installation a little. So far this worked fine for GCC 2.95.3, 3.3.2, 3.4.4, 4.1.2, and 4.2.3. Unfortunately this is no longer true for GCC 4.3.2. Here's an excerpt from my "installation script": ... :: GNU GCC 3.4.4 unzip.exe -j -d %1\bin\gcc-3.4-4 %2\beta\v2gnu\gcc344b.zip bin/* unzip.exe -d %1 %2\beta\v2gnu\gcc344b.zip lib/* libexec/* :: GNU GCC 4.1.2 unzip.exe -j -d %1\bin\gcc-4.1-2 %2\beta\v2gnu\gcc412b.zip bin/* unzip.exe -d %1 %2\beta\v2gnu\gcc412b.zip lib/* libexec/* :: GNU GCC 4.2.3 unzip.exe -j -d %1\bin\gcc-4.2-3 %2\beta\v2gnu\gcc423b.zip bin/* unzip.exe -d %1 %2\beta\v2gnu\gcc423b.zip lib/* libexec/* :: GNU GCC 4.3.2 unzip.exe -j -d %1\bin\gcc-4.3-2 %2\beta\v2gnu\gcc432b.zip bin/* unzip.exe -d %1 %2\beta\v2gnu\gcc432b.zip -x bin/* ... Then I use a batch file to set PATH to "c:\djgpp\bin\gcc-N.N-N;c:\djgpp\bin;%PATH%". Running "gcc example.c" for GCC 4.3.2 gives me "gcc.exe: Internal error: (null) (program cc1)". Here's a beautified output of "gcc --print-search-dirs" for GCC 4.2.3 and 4.3.2: *** install: /dev/env/DJDIR/lib/gcc/djgpp/4.23/ programs: = c:/djgpp/bin/gcc-4.2-3/../libexec/gcc/djgpp/4.23/ c:/djgpp/bin/gcc-4.2-3/../libexec/gcc/ c:/djgpp/libexec/gcc/djgpp/4.23/ c:/djgpp/libexec/gcc/djgpp/4.23/ c:/djgpp/libexec/gcc/djgpp/ c:/djgpp/lib/gcc/djgpp/4.23/ c:/djgpp/lib/gcc/djgpp/ c:/djgpp/bin/gcc-4.2-3/../lib/gcc/djgpp/4.23/../../../../djgpp/bin/djgpp/4.23/ c:/djgpp/bin/gcc-4.2-3/../lib/gcc/djgpp/4.23/../../../../djgpp/bin/ c:/djgpp/djgpp/bin/djgpp/4.23/ c:/djgpp/djgpp/bin/ c:/djgpp/bin/djgpp/4.23/ c:/djgpp/bin/ *** and: *** install: c:/djgpp/bin/gcc-4.3-2/../lib/gcc/djgpp/4.32/ programs: = c:/djgpp/bin/gcc-4.3-2/../libexec/gcc/djgpp/4.32/ c:/djgpp/bin/gcc-4.3-2/../libexec/gcc/ c:/djgpp/bin/gcc-4.3-2/../lib/gcc/djgpp/4.32/../../../../djgpp/bin/djgpp/4.32/ c:/djgpp/bin/gcc-4.3-2/../lib/gcc/djgpp/4.32/../../../../djgpp/bin/ c:/djgpp/bin/djgpp/4.32/ c:/djgpp/bin/ *** Notice the missing "c:/djgpp/libexec/" lines. Moving GCC binaries from "bin/gcc-4.3-2/" to "bin/" solves the problem, of course, but that's not, what I really want. ;-) I understand, that my setup might be weird, but it's very convenient for multiple GCCs. -- Robert Riebisch Bitte NUR in der Newsgroup antworten! Please reply to the Newsgroup ONLY!