|
View:
New views
13 Messages
—
Rating Filter:
Alert me
|
|
|
cc1 not foundI'm sure this problem has come up before, but I can't remember the
solution, and have been unable to find it. I have just installed MinGW, MSYS and msysDTK on Windows Vista (32 bit Business) using the latest executable installers from http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82721 When installing MinGW, I chose the current core, C++ and MinGW Make packages. Now, trying to compile a simple test program, I get an error saying that cc1 doesn't exist. From MSYS: $ cat /mingw/installed.ini [settings] mirror= installtype=current [components] runtime=mingw-runtime-3.12.tar.gz w32api=w32api-3.9.tar.gz binutils=binutils-2.16.91-20060119-1.tar.gz core=gcc-core-3.4.2-20040916-1.tar.gz gpp=gcc-g++-3.4.2-20040916-1.tar.gz g77= ada= java= objc= make=mingw32-make-3.81-2.tar.gz $ cat test.c #include <stdio.h> int main(int argc, char*[] argv) { printf("Hello world!\n"); return 0; } $ gcc --version gcc.exe (GCC) 3.4.2 (mingw-special) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gcc test.c gcc.exe: installation problem, cannot exec `cc1': No such file or directory I'm pretty sure this has been discussed on this list at least once recently, but can't find it in the archives :( Thanks, Mark. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: cc1 not foundHi Mark,
I got the same thing when I installed it on Vista. So what I did to fix it was put /mingw/libexec/gcc/mingw32/3.4.5 in my PATH variable in /etc/profile file. Best regards, Mark ----- Original Message ----- From: "Mark Bourne" <mcb103@...> To: "MinGW Users List" <mingw-users@...> Sent: Thursday, March 29, 2007 4:31 PM Subject: [Mingw-users] cc1 not found > I'm sure this problem has come up before, but I can't remember the > solution, and have been unable to find it. > > I have just installed MinGW, MSYS and msysDTK on Windows Vista (32 bit > Business) using the latest executable installers from > http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82721 > > When installing MinGW, I chose the current core, C++ and MinGW Make > packages. Now, trying to compile a simple test program, I get an error > saying that cc1 doesn't exist. From MSYS: > > $ cat /mingw/installed.ini > [settings] > mirror= > installtype=current > > [components] > runtime=mingw-runtime-3.12.tar.gz > w32api=w32api-3.9.tar.gz > binutils=binutils-2.16.91-20060119-1.tar.gz > core=gcc-core-3.4.2-20040916-1.tar.gz > gpp=gcc-g++-3.4.2-20040916-1.tar.gz > g77= > ada= > java= > objc= > make=mingw32-make-3.81-2.tar.gz > > $ cat test.c > #include <stdio.h> > int main(int argc, char*[] argv) > { > printf("Hello world!\n"); > return 0; > } > > $ gcc --version > gcc.exe (GCC) 3.4.2 (mingw-special) > Copyright (C) 2004 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > > $ gcc test.c > gcc.exe: installation problem, cannot exec `cc1': No such file or > directory > > > I'm pretty sure this has been discussed on this list at least once > recently, but can't find it in the archives :( > > Thanks, > Mark. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > MinGW-users mailing list > MinGW-users@... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: cc1 not foundOn 2007-3-29 20:31 UTC, Mark Bourne wrote:
> > $ gcc test.c > gcc.exe: installation problem, cannot exec `cc1': No such file or directory > > I'm pretty sure this has been discussed on this list at least once > recently, but can't find it in the archives :( The mailing-list archives at sourceforge are not ideal. Try going here: http://www.nabble.com/MinGW-f1890.html and typing something like "cannot exec" in the search box. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: cc1 not foundMark Mohr wrote:
>Hi Mark, > >I got the same thing when I installed it on Vista. > >So what I did to fix it was put /mingw/libexec/gcc/mingw32/3.4.5 in my PATH >variable in /etc/profile file. > > Thanks. That fixed it (barring in error in the parameters to main!) I don't remember doing that last time I installed MinGW, but that was over a year ago, so maybe I did... Mark. >Best regards, > >Mark > >----- Original Message ----- >From: "Mark Bourne" <mcb103@...> >To: "MinGW Users List" <mingw-users@...> >Sent: Thursday, March 29, 2007 4:31 PM >Subject: [Mingw-users] cc1 not found > > > > >>I'm sure this problem has come up before, but I can't remember the >>solution, and have been unable to find it. >> >>I have just installed MinGW, MSYS and msysDTK on Windows Vista (32 bit >>Business) using the latest executable installers from >>http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82721 >> >>When installing MinGW, I chose the current core, C++ and MinGW Make >>packages. Now, trying to compile a simple test program, I get an error >>saying that cc1 doesn't exist. From MSYS: >> >>$ cat /mingw/installed.ini >>[settings] >>mirror= >>installtype=current >> >>[components] >>runtime=mingw-runtime-3.12.tar.gz >>w32api=w32api-3.9.tar.gz >>binutils=binutils-2.16.91-20060119-1.tar.gz >>core=gcc-core-3.4.2-20040916-1.tar.gz >>gpp=gcc-g++-3.4.2-20040916-1.tar.gz >>g77= >>ada= >>java= >>objc= >>make=mingw32-make-3.81-2.tar.gz >> >>$ cat test.c >>#include <stdio.h> >>int main(int argc, char*[] argv) >>{ >> printf("Hello world!\n"); >> return 0; >>} >> >>$ gcc --version >>gcc.exe (GCC) 3.4.2 (mingw-special) >>Copyright (C) 2004 Free Software Foundation, Inc. >>This is free software; see the source for copying conditions. There is NO >>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >>PURPOSE. >> >>$ gcc test.c >>gcc.exe: installation problem, cannot exec `cc1': No such file or >>directory >> >> >>I'm pretty sure this has been discussed on this list at least once >>recently, but can't find it in the archives :( >> >>Thanks, >>Mark. >> >>------------------------------------------------------------------------- >>Take Surveys. Earn Cash. Influence the Future of IT >>Join SourceForge.net's Techsay panel and you'll get the chance to share >>your >>opinions on IT & business topics through brief surveys-and earn cash >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>_______________________________________________ >>MinGW-users mailing list >>MinGW-users@... >> >>You may change your MinGW Account Options or unsubscribe at: >>https://lists.sourceforge.net/lists/listinfo/mingw-users >> >> >> > > > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share your >opinions on IT & business topics through brief surveys-and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >MinGW-users mailing list >MinGW-users@... > >You may change your MinGW Account Options or unsubscribe at: >https://lists.sourceforge.net/lists/listinfo/mingw-users > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: cc1 not foundMark Bourne wrote, quoting Mark Mohr:
>> I got the same thing when I installed it on Vista. >> >> So what I did to fix it was put /mingw/libexec/gcc/mingw32/3.4.5 >> in my PATH variable in /etc/profile file. > > Thanks. That fixed it (barring in error in the parameters to main!) > I don't remember doing that last time I installed MinGW, but that was > over a year ago, so maybe I did... You should not need to do this, if everything is correctly installed. If you are sure everything *is* properly installed, then maybe this is yet another Vista issue; (how do they get away with breaking backward compatibility with every new release)? Vista is just too new, for us to certify it as a supported platform. (I use GNU/Linux from choice, and Win2K from necessity; I fervently hope that I *never* have to move to *any* newer M$ release). Please raise a bug report for this, on the project bug tracker, so we don't forget about it; it is unlikely to be fixed until Vista becomes more prevalent among our developer community. Regards, Keith. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: cc1 not foundKeith MARSHALL > Mark Bourne wrote, quoting Mark Mohr: > >> I got the same thing when I installed it on Vista. > >> > >> So what I did to fix it was put /mingw/libexec/gcc/mingw32/3.4.5 > >> in my PATH variable in /etc/profile file. > > > > Thanks. That fixed it (barring in error in the parameters to main!) > > I don't remember doing that last time I installed MinGW, > but that was > > over a year ago, so maybe I did... > > You should not need to do this, if everything is correctly installed. > > If you are sure everything *is* properly installed, then maybe this is > yet another Vista issue; (how do they get away with breaking backward > compatibility with every new release)? Indeed, search the list archives for discussion of _access() and X_OK. Dany ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: cc1 not found----- Original Message ----- From: "Mark Bourne" <mcb103@...> . . > > Thanks. That fixed it (barring in error in the parameters to main!) I > don't remember doing that last time I installed MinGW, but that was over > a year ago, so maybe I did... > Interesting that fixed the problem. For me (on Vista 64), whilst adding the location of cc1.exe to the path "fixed" the immediate problem of being able to find cc1.exe, it still didn't allow me to build anything because of problems in finding the headers. See the recent thread "environment hosed during upgrade". Within that thread there's a patched gcc.exe and collect2.exe (for 3.4.5 only) posted by Danny. I'm running in the cmd.exe shell, whereas I take it your running in the msys shell ? Perhaps that could account for some differences. (The msys shell won't run at all for me on Vista 64.) Cheers, Rob ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: cc1 not foundKeith MARSHALL wrote:
>Mark Bourne wrote, quoting Mark Mohr: > > >>>I got the same thing when I installed it on Vista. >>> >>>So what I did to fix it was put /mingw/libexec/gcc/mingw32/3.4.5 >>>in my PATH variable in /etc/profile file. >>> >>> >>Thanks. That fixed it (barring in error in the parameters to main!) >>I don't remember doing that last time I installed MinGW, but that was >>over a year ago, so maybe I did... >> >> > >You should not need to do this, if everything is correctly installed. > >If you are sure everything *is* properly installed, then maybe this is >yet another Vista issue; (how do they get away with breaking backward >compatibility with every new release)? > >Vista is just too new, for us to certify it as a supported platform. >(I use GNU/Linux from choice, and Win2K from necessity; I fervently >hope that I *never* have to move to *any* newer M$ release). > I appreciate it may be a while before Vista is properly supported, and I'd also have preferred to stick with Win2k for a bit longer. Problem is my existing machine is dying and the only options now are XP and Vista. Since I have always disliked XP, I installed Vista on my old machine to see if I like it any better than XP, and check that the software I use actually works on it. As it is, I actually haven't found Vista too bad, though given the choice I'd wait a few more months for compatibility problems to be sorted. >Please >raise a bug report for this, on the project bug tracker, so we don't >forget about it; it is unlikely to be fixed until Vista becomes more >prevalent among our developer community. > > It seems that Danny has already patched gcc and collect2 for this problem (Rob pointed me at a recent thread titled "environment hosed during upgrade"). Do you still want a bug report raised as a reminder to check these (and possibly other tools for the same problem)? Mark. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
|
|
|
Re: cc1 not foundHello!
> Chris issued new runtime and w32api packages early last week; AFAIK > those captured Danny's patch set to fix this problem. I'd kind of > assumed you were referring to a remaining bug *after* you'd installed > those; if that is the case, then yes, a follow-up bug report would be > in order; if not, then it isn't necessary. I assumed that one needs to rebuild the compiler itself to get things fixed. There was a new gcc posted to the mailing list, but other compiler (especially g++) still have the problem. Thus I recently asked you to rebuild the g++ compiler but did not get an answer :-/ Thus I did not installed the new above packages. Are you sure, that installing the new runtime and w32api packages would also fix the compiler? -- Gruß... Tim. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: cc1 not foundKeith MARSHALL wrote:
>> It seems that Danny has already patched the tools for this problem >> (Rob pointed me at a recent thread titled "environment hosed during >> upgrade"). Do you still want a bug report raised as a reminder to >> check this and other tools for the same problem? >> > > Chris issued new runtime and w32api packages early last week; Keith, these packages are only part of the solution - the toolchain needs rebuilt with these packages installed for a complete fix. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: cc1 not foundOn Monday 02 April 2007 11:44, rael@... wrote:
> > Chris issued new runtime and w32api packages early last week; AFAIK > > those captured Danny's patch set to fix this problem. I'd kind of > > assumed you were referring to a remaining bug *after* you'd > > installed those; if that is the case, then yes, a follow-up bug > > report would be in order; if not, then it isn't necessary. > > I assumed that one needs to rebuild the compiler itself to get things > fixed. There was a new gcc posted to the mailing list, but other > compiler (especially g++) still have the problem. It seems that may be the case, yes. > Thus I recently > asked you to rebuild the g++ compiler... Sure, I'll do that, and you can all ditch the Win32 crap, and move to a real OS, for I'll be building a GNU/Linux hosted MinGW cross :-) But seriously... > but did not get an answer :-/ IIRC, you asked if my cross-compiler build scripts could be used for a native build, and I still owe you an answer. Sorry, your question was buried in a closed thread, and it slipped my mind. All my development work for the project is accomplished on a GNU/Linux host, and my scripts are designed for building a cross-hosted MinGW compiler suite, running on that host, and targetting Win32. I've never built a MinGW compiler on a native host, so I don't know what issues you would face, if you tried that. One that does spring to mind is that I install to $HOME/mingw, and set both the --prefix and the --with-sysroot options to that path. Although a standard MinGW install doesn't use either /usr or /usr/local, the GCC build needs to find both $SYSROOT/usr and $SYSROOT/usr/local, or the build fails. Building without a $SYSROOT isn't an option for a cross build--the compiler does build, but it doesn't work properly; I resolved, or rather I worked around, the issue by creating two symlinks in $HOME/mingw ( cd $HOME/mingw && { ln -s . usr; ln -s . local; } ) which makes those two required directories appear to exist, and to contain the required installed components, as they are installed into $HOME/mingw. You can't use this trick, on native Win32, because it doesn't support symlinks. If I were building natively, I should use Danny's script, which IIRC, he posts on the download site, alongside his released builds. > Thus I did not installed the new above packages. Installing them surely wouldn't hurt, and would take you part of the way to fixing the problem; it would also provide the infrastructure to allow you to try to rebuild the toolchain yourself, in the absence of a build provided by others. > Are you sure, that > installing the new runtime and w32api packages would also fix the > compiler? No, apparently it is not, since... Dave Murphy wrote: > Keith, these packages are only part of the solution - the toolchain > needs [to be] rebuilt with these packages installed for a complete > fix. Regards, Keith. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: cc1 not foundI just got the same error and was looking for the solution. Could somebody plz tell me where is the etc/profile file exist ? i entered the path in the environmental variable but it didn't fix the problem. thanks in advance |
| Free embeddable forum powered by Nabble | Forum Help |