CLion Cannot run program "make" The system cannot find the file specified - makefile
When opening a makefile project in CLion I get the error message:
Cannot run program "make" (in directory "D:\Werkstudent\XWF\XT_Einzelauswertung"): CreateProcess error=2, The system cannot find the file specified: CreateProcess error=2, The system cannot find the file specified
Make execution failed with exit code = 127
I'm using mingw64, installed with msys2 on Windows.
mingw-w64-x86_64-toolchain is installed.
In Build, Execution, Deployment -> Toolchains I have added MinGW with Environment C:\msys64\mingw64. Make, C Compiler and C++ Compiler are all correctly detected.
In Build, Execution, Deployment -> Build Tools -> Make I have set the path to make executable as C:\msys64\mingw64\bin\mingw32-make.exe.
Relevant debug log of CLion:
2020-11-23 10:01:57,997 [ 244797] INFO - System.util.ExternalSystemUtil - External project [D:/Werkstudent/XWF/XT_Einzelauswertung] resolution task started
2020-11-23 10:01:57,997 [ 244797] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile analysis started at: 10:01:57 id: analysis:aa0e0ae1-8957-4100-b93e-e389cbdb8646
2020-11-23 10:01:59,285 [ 246085] INFO - om.jetbrains.cidr.cpp.makefile - MakefileResolverState: Starting make: make clean
2020-11-23 10:01:59,293 [ 246093] DEBUG - om.jetbrains.cidr.cpp.makefile - Channel closed coroutine name = StandaloneCoroutine{Completed}#60fcd138
2020-11-23 10:01:59,295 [ 246095] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile constructor message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.ConstructorAnalysisError(Make execution failed with exit code = 127)
2020-11-23 10:01:59,305 [ 246105] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile analyzer message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.MakeExecutionError(Make execution failed with exit code = 127)
2020-11-23 10:01:59,315 [ 246115] INFO - om.jetbrains.cidr.cpp.makefile - MakefileResolverState: Starting make: make --just-print --print-directory --keep-going all
2020-11-23 10:01:59,330 [ 246130] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile constructor message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.CriticalConstructorAnalysisError(Cannot run program "make" (in directory "D:\Werkstudent\XWF\XT_Einzelauswertung"): CreateProcess error=2, The system cannot find the file specified)
2020-11-23 10:01:59,331 [ 246131] DEBUG - om.jetbrains.cidr.cpp.makefile - Channel closed coroutine name = StandaloneCoroutine{Completed}#742f7782
2020-11-23 10:01:59,330 [ 246130] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile analyzer message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.CriticalAnalysisFailure(Cannot run program "make" (in directory "D:\Werkstudent\XWF\XT_Einzelauswertung"): CreateProcess error=2, The system cannot find the file specified)
2020-11-23 10:01:59,331 [ 246131] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile analyzer message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.MakeExecutionError(Make execution failed with exit code = 127)
2020-11-23 10:01:59,331 [ 246131] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile constructor message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.ConstructorAnalysisError(Make execution failed with exit code = 127)
2020-11-23 10:01:59,361 [ 246161] INFO - om.jetbrains.cidr.cpp.makefile - make exited with code 127
2020-11-23 10:01:59,361 [ 246161] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile constructor message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.ConstructorAnalysisError(Make execution failed with exit code = 127)
2020-11-23 10:01:59,361 [ 246161] DEBUG - om.jetbrains.cidr.cpp.makefile - Channel closed coroutine name = StandaloneCoroutine{Completed}#63439922
2020-11-23 10:01:59,371 [ 246171] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile analyzer message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.MakeExecutionError(Make execution failed with exit code = 127)
2020-11-23 10:01:59,371 [ 246171] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile constructor message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.ConstructorAnalysisError(Cannot run program "make" (in directory "D:\Werkstudent\XWF\XT_Einzelauswertung"): CreateProcess error=2, The system cannot find the file specified)
2020-11-23 10:01:59,381 [ 246181] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile analyzer message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.TargetsAnalyzerError(Cannot run program "make" (in directory "D:\Werkstudent\XWF\XT_Einzelauswertung"): CreateProcess error=2, The system cannot find the file specified)
2020-11-23 10:01:59,382 [ 246182] DEBUG - om.jetbrains.cidr.cpp.makefile - Channel closed coroutine name = StandaloneCoroutine{Completed}#a7d27cb
2020-11-23 10:01:59,382 [ 246182] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile constructor message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.ConstructorAnalysisStatus(Makefile analysis finished. Success = false)
2020-11-23 10:01:59,383 [ 246183] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile constructor message: com.jetbrains.cidr.cpp.makefile.project.resolver.messages.CriticalConstructorAnalysisError(No compilation commands found)
2020-11-23 10:01:59,386 [ 246186] DEBUG - om.jetbrains.cidr.cpp.makefile - Channel closed coroutine name = StandaloneCoroutine{Completed}#258f8a01
2020-11-23 10:01:59,386 [ 246186] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile constructor message: ModuleStructureMessage(moduleStructure=ModuleData: XT_Einzelauswertung)
2020-11-23 10:01:59,387 [ 246187] DEBUG - om.jetbrains.cidr.cpp.makefile - Makefile analysis finished at: 10:01:59 id: analysis:aa0e0ae1-8957-4100-b93e-e389cbdb8646
result: failure
2020-11-23 10:01:59,387 [ 246187] DEBUG - om.jetbrains.cidr.cpp.makefile - Channel closed coroutine name = StandaloneCoroutine{Completed}#66027050
2020-11-23 10:01:59,416 [ 246216] INFO - System.util.ExternalSystemUtil - External project [D:/Werkstudent/XWF/XT_Einzelauswertung] resolution task executed in 1419 ms.
2020-11-23 10:01:59,778 [ 246578] INFO - ge.ExternalProjectsDataStorage - Save external projects data in 20 ms
What am I doing wrong, why can't CLion find the make executable?
Ok found the solution.
#uta was in the comment kinda right. CLion could find the make executable, but make dependes on a bunch of other coreutils which it couldn't find.
So I had to add C:\msys64\mingw64\bin and C:\msys64\usr\bin to my windows PATH.
How did I figure it out?
Executing mingw32-make in the mingw terminal worked fine.
So I executed mingw32-make clean in the terminal inside CLion, which gave me errors described. So the error messages wheren't from CLion, but from the make command itself.
After that I tried adding the both paths to PATH only inside CLion but I couldn't find an option for it. So ultimately I had to add it in the system environment variables. Don't know yet if this is messing sth other up because of clashes in the executable names.
Oh and now I'm getting errors in the "Configuring project" step probably because of parsing errors..
Related
How to build debug mode with GCP's appengine(golang:1.15)
I tried to build debug mode with GCP's appengine. But, I can't build with debug mode. Below command is success!(normal build) dev_appserver.py --port=8083 dir/app.yaml But, below command is failed.(add --go_debugging=yes [options]) dev_appserver.py --port=8083 --go_debugging=yes dir/app.yaml I use Go1.15 runtime. I want to use debug... My IDE is GoLand. Below is my error. INFO 2023-02-13 05:32:17,620 devappserver2.py:316] Skipping SDK update check. INFO 2023-02-13 05:32:17,882 <string>:383] Starting API server at: http://localhost:57209 INFO 2023-02-13 05:32:17,884 instance_factory.py:185] Building with dependencies from go.mod. INFO 2023-02-13 05:32:17,998 dispatcher.py:281] Starting module "default" running at: http://localhost:8080 INFO 2023-02-13 05:32:18,001 admin_server.py:150] Starting admin server at: http://localhost:8000 ERROR 2023-02-13 05:32:19,104 instance_factory.py:250] Failed to build Go application: (Executed command: go build -gcflags "all=-N -l" -o /var/folders/74/8b3cryt139z32p36jnwgm_3h0000gp/T/tmpQH97W4appengine-go-bin/_ah_exe .) invalid value "\"all=-N -l\"" for flag -gcflags: parameter may not start with quote character " usage: go build [-o output] [build flags] [packages] Run 'go help build' for details. WARNING 2023-02-13 05:32:19,107 instance.py:297] Could not get PID of instance ERROR 2023-02-13 05:32:19,107 instance.py:300] '_GoBuildFailureRuntimeProxy' object has no attribute '_process' Please some advice for me. I want to debug with appengine and Go1.15.
An unexpected error has occurred. Conda has prepared the above report
This happened during installing containerized tr2 using tykky and the following error occured. Has anyone had similar experiences. It starts and finishes the installation then gives the following error. Please help me out. [ INFO ] Constructing configuration [ INFO ] Using /local_scratch/makhan20/cw-07A73M as temporary directory [ INFO ] Fetching container docker://redhat/ubi8:8.6 [ INFO ] Running installation script [ INFO ] Using miniconda version Miniconda3-latest-Linux-x86_64 [ INFO ] Installing miniconda ========================= urllib3 pkgs/main/noarch::urllib3-1.26.8-pyhd3eb1b0_0 wheel pkgs/main/noarch::wheel-0.37.1-pyhd3eb1b0_0 xz pkgs/main/linux-64::xz-5.2.5-h7b6447c_0 yaml pkgs/main/linux-64::yaml-0.2.5-h7b6447c_0 zlib pkgs/main/linux-64::zlib-1.2.12-h7f8727e_1 Preparing transaction: ...working... done Executing transaction: ...working... done installation finished. ========================= [ INFO ] Creating env, full log in /local_scratch/makhan20/cw-07A73M/build.log ========================= /users/makhan20/.conda/envs platform : linux-64 user-agent : conda/4.12.0 requests/2.27.1 CPython/3.9.12 Linux/4.18.0-372.32.1.el8_6.x86_64 rhel/8.6 glibc/2.28 UID:GID : 10014995:10014995 netrc file : None offline mode : False An unexpected error has occurred. Conda has prepared the above report. ========================= [ ERROR ] Installation failed [ ERROR ] Set CW_DEBUG_KEEP_FILES env variable to keep build files Terminated I tried making some chenges in the env.yaml file but nothing is working.
Getting error while bootstrapping opensearch dashboard
I am setting up opensearch dashboard in my windows PC and following below guide - https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/DEVELOPER_GUIDE.md While bootstrapping, I am getting below error - PS D:\opensearch\OpenSearch-Dashboards> yarn osd bootstrap yarn run v1.22.18 $ node scripts/osd bootstrap info [opensearch-dashboards] running yarn $ node ./preinstall_check [1/5] Validating package.json... [2/5] Resolving packages... warning Resolution field "typescript#4.0.2" is incompatible with requested version "typescript#~4.5.2" success Already up-to-date. succ yarn.lock analysis completed without any issues succ 10 bootstrap builds are cached info [#osd/i18n] running [osd:bootstrap] script info [#osd/monaco] running [osd:bootstrap] script info [#osd/opensearch-archiver] running [osd:bootstrap] script info [#osd/opensearch] running [osd:bootstrap] script ERROR [bootstrap] failed: ERROR Error: Command failed with exit code 1: C:\Users\st\AppData\Roaming\nvm\v14.18.2\node_modules\yarn\bin\yarn.js run osd:bootstrap 'rm' is not recognized as an internal or external command, operable program or batch file. error Command failed with exit code 1. $ rm -rf target && tsc info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. at makeError (D:\opensearch\OpenSearch-Dashboards\packages\osd-pm\dist\index.js:25150:11) at handlePromise (D:\opensearch\OpenSearch-Dashboards\packages\osd-pm\dist\index.js:24085:26) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async D:\opensearch\OpenSearch-Dashboards\packages\osd-pm\dist\index.js:9051:9 at async scheduleItem (D:\opensearch\OpenSearch-Dashboards\packages\osd-pm\dist\index.js:10938:9) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. what I see here is, rm command is not recognized in windows and which is correct. So how to fix this ?
How to remove main[DEBUG] lines from console while running maven clean install
While running Maven clean install command, I get a whole lot of these set of lines on the console, which is consuming too much space. I have tried using the maven command to remove debug statements, but they are still there. [main] DEBUG 117 [main] DEBUG 219 [main] DEBUG 313 [main] DEBUG 415 [main] DEBUG 539 [main] DEBUG 629 [main] DEBUG
Run maven with the -q or --quiet parameter, will show only errors.
This maven command will enough for you mvn validate clean install | egrep -v "(^\[INFO\]|^\[DEBUG\])" From this resource: http://books.sonatype.com/mvnref-book/reference/running-sect-options.html#running-sect-verbose-option -e for error -X for debug -q for only error
compass:dist & execFile("compass.bat", ...) - Warning: spawn EPERM
First of all, I am pretty new to (modern) web development and I tried to import an existing project into my WebStorm and run a Grunt task. It stops at "compass:dist" with: $ node.exe C:\Users\lgr\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt --gruntfile C:\Users\lgr\workspace\js\rit-workshop\ui\Gruntfile.js buildall Initializing Command-line options: --gruntfile=C:\Users\lgr\workspace\js\rit-workshop\ui\Gruntfile.js, --verbose Reading "Gruntfile.js" Gruntfile...OK Registering Gruntfile tasks. Registering "grunt-bump" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-bump\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-bump\package.json...OK Loading "bump.js" tasks...OK + bump, bump-commit, bump-only Registering "grunt-html2js" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-html2js\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-html2js\package.json...OK Loading "html2js.js" tasks...OK + html2js Registering "grunt-contrib-clean" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-clean\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-clean\package.json...OK Loading "clean.js" tasks...OK + clean Registering "grunt-contrib-copy" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-copy\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-copy\package.json...OK Loading "copy.js" tasks...OK + copy Registering "grunt-contrib-concat" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-concat\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-concat\package.json...OK Loading "concat.js" tasks...OK + concat Registering "grunt-contrib-cssmin" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-cssmin\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-cssmin\package.json...OK Loading "cssmin.js" tasks...OK + cssmin Registering "grunt-contrib-watch" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-watch\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-watch\package.json...OK Loading "watch.js" tasks...OK + watch Registering "grunt-contrib-jshint" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-jshint\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-jshint\package.json...OK Loading "jshint.js" tasks...OK + jshint Registering "grunt-contrib-uglify" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-uglify\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-uglify\package.json...OK Loading "uglify.js" tasks...OK + uglify Registering "grunt-karma" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-karma\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-karma\package.json...OK Loading "grunt-karma.js" tasks...OK + karma Registering "grunt-conventional-changelog" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-conventional-changelog\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-conventional-changelog\package.json...OK Loading "changelog.js" tasks...OK + changelog Registering "grunt-ngdocs" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-ngdocs\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-ngdocs\package.json...OK Loading "grunt-ngdocs.js" tasks...OK + ngdocs Registering "grunt-contrib-compass" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-compass\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-compass\package.json...OK Loading "compass.js" tasks...OK + compass Registering "grunt-contrib-requirejs" local Npm module tasks. Reading C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-requirejs\package.json...OK Parsing C:\Users\lgr\workspace\js\rit-workshop\ui\node_modules\grunt-contrib-requirejs\package.json...OK Loading "requirejs.js" tasks...OK + requirejs Reading package.json...OK Parsing package.json...OK Initializing config...OK Loading "Gruntfile.js" tasks...OK - watch + BuildCommit, after-test, archive, archiveNONmin, buildall, buildjs, buildjsCommit, buildjsNONmin, buildjsNONminCommit, css, cssmy, default, delta, incrementBuild, shell, templates, test, watch Running tasks: buildall Running "buildall" task Running "clean:buildall" (clean) task Verifying property clean.buildall exists in config...OK Files: [no src] Options: force=false, no-write=false >> 0 paths cleaned. Running "css" task Running "compass" task Running "compass:dist" (compass) task Verifying property compass.dist exists in config...OK File: [no files] Options: config="config.rb" Warning: spawn EPERM Use --force to continue. Aborted due to warnings. I tried googling a bit, but all I seem to get is that this is a permission error, but I don't know where to start to fix it. I tried cleaning the project, reinstalling Ruby for Windows, reinstalling compass inside of ruby. Nothing worked. Update: I tried debugging the build and in file bin-version\index.js the line execFile(bin, ['--version'], function (err, stdout, stderr) { seems to throw the error as the debugger wouldn't go beyond this point. The bin is compass.bat and it looks like the build has some permission error? When I open my cmd and type "compass --version" it just works fine. I have the ruby/bin in my classpath aswell where the compass.bat is placed. Running "compass:dist" (compass) task Verifying property compass.dist exists in config...OK File: [no files] Options: config="config.rb" Warning: spawn EPERM Use --force to continue. Does anyone know about what could cause this error?
I solved this, but I can't tell exactly what caused it. What I can say is that it has nothing to do with compass itself, wrong permissions or Windows - it has to do with a wrong project setup. So, if you get this error, check your setup and if every dependency is available.