This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc (as.exe) install error


Michael,

How is the (merely) potential conflict between the output of Danny's compilation ("test.exe") going to lead "gcc" to produce an "Invalid argument" error? Especially when the assembler runs (or would run) before "test.exe" gets written? Also note that "test" is a shell built-in both in BASH and Ash.

I think this is actually the classic incomplete installation problem. Specifically the "binutils" package was probably not installed on Danny's system.

Randall Schulz
Mountain View, CA USA


At 15:48 2002-11-06, you wrote:
On Wed, 6 Nov 2002 17:14:25 -0600 Danny Sauer <cygwin_list@dannysauer.com> wrote:

> I recently installed cygwin 1.3.14-1 (according to cygcheck). gcc is
> unable to compile c source code (gcc claims to be version 3.2).
>
> Example code from "test.c":
>
> ---
> #include <stdio.h>
> int main(){
> printf("hello\n");
> }
> ---
>
> Not complicated code by any stretch of the imagination. It compiles fine
> with gcc on the linux box next door, not suprisingly.
>
> I've tried doing a complete install of the entire cygwin env., and
> uninstalling followed by reinstalling the development group (and the
> binutils package individually). I still get this error when I try to
> compile:
>
> ---
> $ gcc -o test.exe test.c
> gcc: installation problem, cannot exec
> '/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/as.exe': Invalid argument
> ---
>
> If I copy and paste the path to as.exe, it runs just fine. The file
> exists. I've tried it without the "-o test.exe" part - same result. I
> tried moving the file from a network mounted drive to a local path - same
> result. My searches turned up nothing, but then, I may have been looking
> in the wrong place. If someone could either point me to that place or
> just solve the problem, I'd be somewhat appreciative. :)

man test

--
Mac

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]