CompilerIdC/a.exe cannot be read
See original GitHub issueHello,
I still can’t get my conan-glew package to build with MinGW. I have created a develop branch, in which I corrected the errors I had last time I wrote. But now when I execute:
conan test_package -s compiler=gcc -s compiler.version=5.3 -s compiler.libcxx=libstdc++
(in a command prompt, after I set the path to include Mingw/bin - cmake doesn’t like msys any more)
I get the following error:
CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/CMakeDetermineCompilerId.cmake:454 (file):
file STRINGS file
".conan/data/glew/2.0.0/coding3d/testing/build/9bb1c4692166f03b15e012ad1483a0bae91c22ed/glew-2.0.0/_build/CMakeFiles/3.8.0-rc1/CompilerIdC/a.exe"
cannot be read.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.8/Modules/CMakeDetermineCompilerId.cmake:36 (CMAKE_DETERMINE_COMPILER_ID_CHECK)
C:/Program Files/CMake/share/cmake-3.8/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:5 (project)
I would appreciate any idea about how I could resolve this 😸
Thanks,
Dimitri
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Persistent 0xc0000142 and memory could not be read error
Fixes I have tried include sfc scan, dsim scan, reinstall of windows, clean boot, registry edit, registry relisting, memtesta for bad memory, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, I copy-pasted the build function from your message, with just a couple of modifications to match my imports. (I did read the documentation first though, I promise 😄 )
I always make sure I am running the latest version of conan. The Visual Studio build worked on my machine too, after I added that little echo hack I mention in my previous message. Before, I was getting an error that the “&& devenv …” command could not be executed (because it was starting with && I suppose). Now it works locally but not on appveyor, but that’s another issue and I haven’t looked into it yet.
As far as mingw is concerned, you’re right. I should try a build without conan first.
Oh I see… I made a little mistake about which command comes from what. But I understand it now. So it makes sense, but it would indeed still help, if it returned an echo or something…