From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11743 invoked by alias); 28 Dec 2004 10:40:46 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11677 invoked from network); 28 Dec 2004 10:40:38 -0000 Received: from unknown (HELO koeln.convey.de) (62.138.63.18) by sourceware.org with SMTP; 28 Dec 2004 10:40:38 -0000 Received: from familiehaase.de (194.95.224.180:10720) by koeln.convey.de with [XMail 1.20 ESMTP Server] id for from ; Tue, 28 Dec 2004 11:40:37 +0100 Received: from [192.168.1.1] (192.168.1.1:2396) by familiehaase.de with [XMail 1.20 ESMTP Server] id for from ; Tue, 28 Dec 2004 11:40:35 +0100 Message-ID: <41D13823.8060706@familiehaase.de> Date: Tue, 28 Dec 2004 10:40:00 -0000 From: "Gerrit P. Haase" Organization: Esse keine toten Tiere User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.3) Gecko/20040910 MIME-Version: 1.0 To: Rainer Dunker CC: cygwin@cygwin.com Subject: Re: gcc installation problem and solution References: <1847507151@web.de> In-Reply-To: <1847507151@web.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2004-12/txt/msg00902.txt.bz2 Rainer Dunker wrote: > Having installed gcc (package version 3.3.3-3, cygwin.dll 1.5.10-3, WinNT 4), I had the following problem: > > # gcc helloworld.c -o helloworld > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: installation problem, cannot exec `/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld': Invalid argument > collect2: ld returned 255 exit status > > Moreover, a popup window appeared after the gcc call, saying that NTVDM complains about an invalid instruction. > > This turned out to be a problem of the gcc installation. The directory /usr/i686-pc-cygwin/bin contained these entries: > > -rwxr-xr-x 1 myname mkgroup_ 26 Dec 27 15:11 ar.exe* > -rwxr-xr-x 1 myname mkgroup_ 26 Dec 27 15:11 as.exe* > -rwxr-xr-x 1 myname mkgroup_ 26 Dec 27 15:11 ld.exe* > -rwxr-xr-x 1 myname mkgroup_ 26 Dec 27 15:11 nm.exe* > -rwxr-xr-x 1 myname mkgroup_ 30 Dec 27 15:11 ranlib.exe* > -rwxr-xr-x 1 myname mkgroup_ 29 Dec 27 15:11 strip.exe* > > These are supposed to be symbolic links to the executables in the /usr/bin directory, but - for whatever reason - the setup program did not install them in a way that they were used as symlinks afterwards (for example, ar.exe is a text file with contents "!/usr/bin/ar.exe"). So I removed them and created symlinks to the proper executables manually; after that, the problem was gone. > > I'm posting this here because I've not yet found any hint directly pointing from the mentioned error messages to this specific problem cause. This is the correct content of valid Cygwin Symlinks and for me NT Explorer shows them as type "S" for symlink too. The symlinks should work fine from within any Cygwin based shell (bash, zsh, ...). What is a known issue is that these symlinks don't work form a Windows only CMD shell on W2K. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/