#86 gcc.exe -v: no input files

closed
nobody
None
5
2006-10-21
2006-10-20
Gary Williams
No

After installing msys-1.0.10 to the default directory
(c:\msys\1.0), mingw-runtime-3.9.tar, binutils-
2.16.91-20060119-1.tar gcc-core-3.4.5-20060117.tar,
and gcc-g++-3.4.5-200600117.tar to the same
directory, I get the above error trying to run gcc.
Even if I do provide a source file, it says the same
thing.

At one point, this seemed to work if I was in
the /bin directory, but no other directory. I have
since uninstalled and reinstalled, and now it never
works, even in the /bin directory.

Gary@GARY-HOME /bin
$ gcc -v
gcc.exe: no input files

Gary@GARY-HOME /bin
$ g++ -v
g++.exe: no input files

Gary@GARY-HOME /bin
$ c++ -v
c++.exe: no input files

Gary@GARY-HOME /bin
$ ld -v
C:\msys\1.0\bin\ld.exe: no input files

Gary@GARY-HOME /bin
$ uname -a
MINGW32_NT-5.1 GARY-HOME 1.0.10(0.46/3/2) 2004-03-15
07:17 i686 unknown

Gary@GARY-HOME /bin
$

Gary@GARY-HOME /bin
$ ls /bin
addr2line.exe dlltool.exe info.exe
mv.exe start
ar.exe dllwrap.exe infokey.exe
nm.exe strings.exe
as.exe echo install-info.exe
objcopy.exe strip.exe
awk egrep install.exe
objdump.exe tail.exe
basename.exe env.exe ld.exe
od.exe tar.exe
bunzip2 ex less.exe
patch.exe tee.exe
bzip2.exe expr.exe libW11.dll
printf texi2dvi
c++.exe false.exe ln.exe
ps.exe texindex.exe
c++filt.exe fgrep lnkcnv
pwd touch.exe
cat.exe find.exe ls.exe
ranlib.exe tr.exe
chmod.exe fold.exe m4.exe
readelf.exe true.exe
cls ftp make.exe
rm.exe uname.exe
clsb g++.exe makeinfo.exe
rmdir.exe uniq.exe
cmd gawk.exe md5sum.exe
rvi vi
cmp.exe gcc.exe mingw32-c++.exe
rview view
comm.exe gccbug mingw32-g++.exe
rvim vim.exe
cp.exe gcov.exe mingw32-gcc-3.4.5
rxvt.exe wc.exe
cpp.exe gprof.exe mingw32-gcc.exe
sed.exe which
cut.exe grep.exe mingwm10.dll
sh.exe windres.exe
date.exe gunzip mkdir.exe
size.exe xargs.exe
diff.exe gzip.exe mount.exe
sleep.exe

Please help!! I'm sure this is some stupid
installation issue

Discussion

  • Danny Smith
    Danny Smith
    2006-10-20

    • labels: 103944 -->
    • assigned_to: dannysmith --> nobody
     
  • Danny Smith
    Danny Smith
    2006-10-20

    Logged In: YES
    user_id=11494

    I don't have msys installed so I can't reproduce. I think
    you have an installation probelm. This is what the
    instructions at
    http://mingw.org/download.shtm
    say:

    "If you plan to use MSYS then you could install MSYS first
    and install MinGW into the <msys_prefix>/mingw directory.
    Or install MinGW in a separate directory tree and use the
    MSYS /etc/fstab file to point the MSYS /mingw directory to
    it."

     
  • Earnie Boyd
    Earnie Boyd
    2006-10-20

    • status: open --> closed
     
  • Gary Williams
    Gary Williams
    2006-10-20

    Logged In: YES
    user_id=486626

    Thank you both for your comments. Coming at this from
    outside the project, because I need to use some software
    that says it can be compiled using MinGW/MSYS, I of course
    start at the home page, which tells me what MinGW/MSYS
    is. Then I go to the download page, which tells me more
    about what it is, then has the files to download. Okay,
    so I download.

    Unfortunately, the information that tells to install MinGW
    in a subdirectory under MSYS was buried under the file
    list. The excellent information that Earnie pointed out
    is available, if you know to look there. Perhaps some
    changes to either the download page, or reorganization of
    the download page to tell the installation order *before*
    seeing the list of files will prevent stupid questions
    like this in the future.

    By the way, when I ran into this problem, I checked out
    the FAQs and did look around for ananswer before I even
    attempted to contact this group.

     
  • Earnie Boyd
    Earnie Boyd
    2006-10-20

    Logged In: YES
    user_id=15438

    It is also clearly stated in /doc/msys/README.rtf and I do
    mean clearly. The MSYS installer gives you the opportunity
    to read it after the installation is completed.

    That said, we know that work on www.mingw.org is needed.
    Wish to volunteer?

     
  • Gary Williams
    Gary Williams
    2006-10-21

    Logged In: YES
    user_id=486626

    I know I'm probably being a pain, but I just completely
    uninstalled the entire msys directory (and everything
    about msys and mingw), then reinstalled msys (to default
    directory of c:\msys\1.0) and untarred gcc-core-3.4.5-
    20060117.tar into the root of the msys directory
    (c:\msys\1.0) then ran gcc -v from within the X window
    shell of MSYS and I ran into the same problem. In other
    words, I installed the minimum possible set of files and
    it still did not work.

    Incidentally, if I run gcc from the Windows XP command
    prompt, it works properly and reports the version
    information. So it seems like it must be something about
    msys and the Bourne shell that is launched from within
    it. So what is going on with msys? Any clues? Other
    programs (i.e. uname seem to interpret the command line
    arguments properly.

    Another point: from the Windopws XP command prompt, I
    set PATH=c:\msys\1.0\bin;%PATH%
    gcc -v
    and all is well. After that, I
    sh
    gcc -v
    and I get the same error. So it seems like it must be
    something about sh. Am I still missing something in TFM?

     
  • Gary Williams
    Gary Williams
    2006-10-21

    • status: closed --> open
     
  • Gary Williams
    Gary Williams
    2006-10-21

    Logged In: YES
    user_id=486626

    The part the was not clear, is that GCC *MUST* be
    installed under the /mngw directory, *NOT* the /
    directory. Once I did this, it seems to be functioning
    for me. Thank you for your help, and perhaps a notation
    could be made somewhere about what to install in /mingw,
    and what to install in /.

     
  • Gary Williams
    Gary Williams
    2006-10-21

    • status: open --> closed