I keep getting the following error message when trying to execute a simple Hello World program.
gcc: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory
compilation terminated.
I have tried uninstalling and reinstalling MSYS2 twice. I think it may have something to do with the paths I have set. I have the following paths set:
C:\msys64\usr\bin
C:\msys64\mingw64\bin
A similar error is returned when I try and run a Hello world program using C++:
g++: fatal error: cannot execute 'cc1plus': CreateProcess: No such file or directory
compilation terminated.
It is an issue with cc1.exe being flagged by several antivirus programs, including Windows Defender. MSYS2 developers have since updated the package and many users also reported the issue to Microsoft.
Please update the packages with:
pacman -Syu
Not sure if the issue is resolved for all antivirus programs, but I can confirm it is for Symantec.
Here is the issue on github for reference: https://github.com/msys2/MINGW-packages/issues/10295.
Uninstalled and Reinstalled. Skipped the update files steps recommended on: https://www.msys2.org/. This fixed the issue
Related
I'm having trouble installing wxWidgets in msys2, I used pacman to install the library
pacman -S mingw-w64-clang-x86_64-wxwidgets3.0-msw
But when I try to execute a test file it gives me this error
fatal error: wx/wx.h: No such file or directory
Reading online I see that are in another methods of installing the library you have to compile it, but I can't find any information in regards to installing it with pacman.
I also tried to compile it myself with Cmake following the instructions in the wxwidgets page but I failed and I want to see what should I do now.
What I need to do to get this to work?
Well, it's more like a two-part question. I was following step by step this youtube tutorial about setting up visual studio code and trying different compilers(I went to winlibs and downloaded Win64: Zip archive version) and everything was great until 35:30 where the terminal output was fatal error: cannot execute 'cc1plus': CreateProcess: No such file or directory compilation terminated. I uninstalled and repeated the process several times but the problem remained. I followed some other tutorials about fixing the problem but it didn't work and soon after something else came up. I uninstalled and installed again the compilers and when I tried to find them in the command prompt clang++ --version worked and gcc --version but when I tried the g++ --version this appeared on the screen.Screenshot Saying this can't run on your pc or whatever. I really need some help did I do something wrong? How do I fix both these issues (terminal error and this app cant run on your PC) I ran a virus scan,SFC scan, I run command prompt as administrator, and this does work but at the beginning I didn't have to do that and if I don't choose that option still says that and it's really frustrating. I would really appreciate some help. Thanks in advance!
I was trying to compile my code using gcc 10.2.8 and I got this error:
scons: *** [S.os] Error 1
In file included from /usr/local/Cellar/gcc/10.2.0_2/include/c++/10.2.0/cstdio:42,
from Public_Library/C.h:10,
from Public_Library/D.h:11,
from Public_Library/RS.h:10,
from Projects/S/main.cpp:1:
/usr/local/Cellar/gcc/10.2.0_2/lib/gcc/10/gcc/x86_64-apple-darwin18/10.2.0/include-fixed/stdio.h:219:10: fatal error: _ctermid.h: No such file or directory
I found a few questions like this but the problem is I don't have Xcode on my mac and I have already updated my CommandLine tools several times and it did not work.
I'm using OSX 10.14.6 by the way.
I'm just gonna add this in case it might help others. I updated my OSX to big sure and installed Xcode but that did not help. What solved the problem for me was getting an unshallow version of brew with this command:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
and then updating and upgrading my brew.
brew update
brew upgrade
I am trying to build a chaincode using go build.
Environment:
installed go 1.8.3 windows/amd
Windows 10
When I run go build I get the following error:
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
..\..\github.com\hyperledger\fabric\vendor\github.com\miekg\pkcs11\pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory
compilation terminated.
I checked and my GCC installation does not contain the ltdl.h file in the include folder.
I found a SO post with a solution for Linux, but not one for Windows.
Can someone help?
On windows you can build without PKCS
go build --tags nopkcs11
Try running the following command
sudo apt install libtool libltdl-dev
Make sure go get -u github.com/hyperledger/fabric/core/chaincode/shim throws no error then go build it.
I use g++ (GCC) 4.7.2. on Windows 7, 64-bit version.
downloaded from http://nuwen.net/mingw.html
I tried to use the "-fopenmp" flag and got the error:
g++: error: libgomp.spec: No such file or directory
I can't find the file anywhere on my system. Do I need to re-install something? Can I just throw a file somewhere?
You could try installing TDM-GCC, which looks as though it includes OpenMP.
There's also Sezero's personal build.
I had a similar problem. I got it working installing one of the version at the following discussion.
Which version of MinGW should I use
I don't have access to my windows machine now so I don't know which version I used but I can check on Monday if you don't have it working by then.
It might have been this one.
http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/