This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: Serious error compiling setup
Brian Keener wrote:
> Max Bowsher wrote:
>> gcc-mingw package?
>
> Yes but i have reinstalled it and gcc several times and still no
> better
>
>>> In addition to the above I also receive while compiling setup a
>>> dialog box titled 16bit MS-DOS SubSystem with the message:
>>> g++
>>> The NTVDM CPU has encountered an illegal instruction.
>>> CS:067f IP:017d OP:ff ff 75 13 8b CHoose 'Close' to terminate the
>>> application.
>>
>> DJGPP?
>
> ???????
A DOS port of gcc. Best guess is what Chris has already said: Your g++ is
corrupt. But you said you had reinstalled. Weird. Is there possibly another
g++ (not Cygwin) in the PATH first?
> When I try to configure setup (not build, just configure) I get this
> on the screen still even after the above:
>
> checking for i686-pc-mingw32-g++... g++ -mno-cygwin
> checking for C++ compiler default output... configure: error: C++
> compiler canno
> t create executables
> check `config.log' for details.
>
> In checking the config.log now it would appear the pertinent part is:
>
> configure:2044: checking for C++ compiler default output
> configure:2047: g++ -mno-cygwin conftest.cc >&5
> g++: installation problem, cannot exec
> `/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../
> ./../../i686-pc-mingw32/bin/ld.exe': Invalid argument
> configure:2050: $? = 1
> configure: failed program was:
> #line 2027 "configure"
> #include "confdefs.h"
>
> int
> main ()
> {
>
> ;
> return 0;
> }
> configure:2077: error: C++ compiler cannot create executables
>
> Yes i686-pc-mingw32 exists and contains 3 directories which are
> linked to other directories. The bin directory is linked to
> ../i686-pc-cygwin/bin and in this directory there is an ld.exe and
> all users have execute privilige.
>
>
> When I try to configure the build for cygwin (not even build it) I
> get this on the screen:
>
> + /usr/develop/src/configure --enable-debugging --host=i686-pc-cygwin
> --build=i6
> 86-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr
> --exec-prefix=
> /usr --sysconfdir=/etc --libdir=/usr/lib
> --includedir=/nonexistent/include loading cache ./config.cache
> checking host system type... i686-pc-cygwin
> checking target system type... i686-pc-cygwin
> checking build system type... i686-pc-cygwin
>
> and the process hangs. If I check the Process stack from another
> window running rxvt and a bash shell I get this:
>
> $ ps -ef
> UID PID PPID TTY STIME COMMAND
> briank 1328 1 1 11:06:30 /usr/bin/bash
> BrianK 584 1 0 11:06:22 /usr/bin/rxvt
> briank 1692 584 2 11:06:35 /usr/bin/bash
> briank 1780 1328 1 11:06:44 /usr/bin/sh
> briank 1800 1780 1 11:06:45 /usr/bin/sh
> briank 1828 1800 1 11:06:56 /usr/bin/gcc
> briank 1900 1828 1 11:06:57 /usr/i686-pc-cygwin/bin/as
> briank 1412 1692 2 11:14:01 /usr/bin/ps
> ~
> $
>
> The above I have to kill manually and if I check the config.log I
> simply see the following:
>
> $ less config.log
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> configure:578: checking host system type
> configure:599: checking target system type
> configure:617: checking build system type
> config.log (END)
>
> Thanks for any assistance
It sounds as if your system is very very messed up. I suggest totally
removing and reinstalling Cygwin.
Max.