question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CompilerIdC/a.exe cannot be read

See original GitHub issue

Hello,

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:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Mar 22, 2017

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.

0reactions
ghostcommented, Mar 22, 2017

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found