Wednesday, March 02, 2005

Error while building OO1.14: 16 bit MS-DOS Subsystem -- The NTVDM CPU has encountered an illegal instruction

The error is because of the symlinks in cygwin. So, before building OO one should remove the symlinks between [(awk & gawk), (gzip & gunzip)].
This error is causing problem in 'boost' module. A pop window is appearing with the error message(Error: 16 bit MS-DOS Subsystem -- The NTVDM CPU has encountered an illegal instruction)with 'ignore/cancel' button. When one ignores the error message, a message 'File to patch:' is coming and further build is crashing.
This particular error is because of 'gunzip->gzip' symlink, to nullify this link remove 'gunzip.exe' and copy 'gzip.exe' as 'gunzip.exe' in 'cygwin/bin' directory.

3 comments:

Anonymous said...

I also experienced the same problem. And your trick helped me to resolve this. Thanks a lot :)

Pankaj.

Unknown said...

Thanks a ton for this trick. this trick really make my life much easier

Thanks once again
Shiva

Blaubeeren mit Schuß said...

rm $(which gunzip)
cp $(which gzip) /bin/gunzip.exe

Well exactly that helped me! Thank you for sharing this!