From: "Rainer Dunker" <rainer.dunker@web.de>
To: cygwin@cygwin.com
Subject: gcc installation problem and solution
Date: Tue, 28 Dec 2004 07:40:00 -0000 [thread overview]
Message-ID: <1847507151@web.de> (raw)
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 "!<symlink>/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.
Best regards,
Rainer
__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201
--
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/
next reply other threads:[~2004-12-28 7:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-28 7:40 Rainer Dunker [this message]
2004-12-28 10:40 ` Gerrit P. Haase
2004-12-28 19:13 ` Igor Pechtchanski
2004-12-28 11:23 Rainer Dunker
2004-12-28 13:07 ` Christopher Faylor
2004-12-28 17:56 ` Gerrit P. Haase
2004-12-28 18:09 ` Christopher Faylor
2004-12-28 19:08 ` Gerrit P. Haase
2004-12-28 19:11 ` Christopher Faylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1847507151@web.de \
--to=rainer.dunker@web.de \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).