justinmeza / lci

A LOLCODE interpreter written in C.
http://lolcode.org
GNU General Public License v3.0
784 stars 105 forks source link

Error installing: There was a CMake error #44

Open wessltov opened 7 years ago

wessltov commented 7 years ago

I followed all the instructions to the letter, but no luck.

CMake version installed: 3.10.0-rc2 OS: Windows 7 Python version: 3.6.3

initbar commented 7 years ago

Was this from the latest pull? May I ask how I can reproduce this issue?

Edit: I think this is related to #36

wessltov commented 7 years ago

I attempted installation right after downloading the then latest release. The steps to reproducing the issue are the exact instructions listed in the official instructions: https://github.com/justinmeza/lci/blob/master/README.md

  1. Installed MinGW and CMake.
  2. Changed environment variable "PATH" from "C:\Users\MyUsername\AppData\Local\Programs\Python\Python36\Scripts\;C:\Users\MyUsername\AppData\Local\Programs\Python\Python36\" to "C:\Users\MyUsername\AppData\Local\Programs\Python\Python36\Scripts\;C:\Users\MyUsername\AppData\Local\Programs\Python\Python36\;C:\MinGW\bin;C:\Python32".
  3. Opened an elevated command-prompt, navigated to the right folder, and ran command: install.py --prefix="C:\Users\MyUsername\Documents\lc".
wooster0 commented 6 years ago

I get the same error :/

fabasoad commented 3 years ago

I have the same error. I followed the instructions but have an error. Here is what I did:

Output

PS C:\Users\Yevhen\Documents\Sources\temp> git clone https://github.com/justinmeza/lci.git
Cloning into 'lci'...
remote: Enumerating objects: 4111, done.
remote: Total 4111 (delta 0), reused 0 (delta 0), pack-reused 4111 eceiving objects:  98% (4034/4111), 196.01 KiB | 372.Receiving objects:  99% (4070/4111), 196.01 KiB | 372.00 KiB/s
Receiving objects: 100% (4111/4111), 1.12 MiB | 1.11 MiB/s, done.
Resolving deltas: 100% (776/776), done.
PS C:\Users\Yevhen\Documents\Sources\temp> cd .\lci\
PS C:\Users\Yevhen\Documents\Sources\temp\lci> python.exe .\install.py
Running cmake with command:
"cmake -G "MinGW Makefiles" ."
and writing results to configure.out.

Error installing: There was a CMake error
PS C:\Users\Yevhen\Documents\Sources\temp\lci> cat .\configure.out
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/ProgramData/chocolatey/bin/gcc.exe
-- Check for working C compiler: C:/ProgramData/chocolatey/bin/gcc.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

    "C:/ProgramData/chocolatey/bin/gcc.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/Users/Yevhen/Documents/Sources/temp/lci/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/ProgramData/chocolatey/bin/mingw32-make.exe cmTC_bf8d1/fast && C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/mingw32-make  -f CMakeFiles\cmTC_bf8d1.dir\build.make CMakeFiles/cmTC_bf8d1.dir/build
    mingw32-make[1]: Entering directory 'C:/Users/Yevhen/Documents/Sources/temp/lci/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_bf8d1.dir/testCCompiler.c.obj
    C:\ProgramData\chocolatey\bin\gcc.exe    -o CMakeFiles\cmTC_bf8d1.dir\testCCompiler.c.obj -c C:\Users\Yevhen\Documents\Sources\temp\lci\CMakeFiles\CMakeTmp\testCCompiler.c
    mingw32-make[1]: *** [CMakeFiles\cmTC_bf8d1.dir\build.make:84: CMakeFiles/cmTC_bf8d1.dir/testCCompiler.c.obj] Error 1
    mingw32-make[1]: Leaving directory 'C:/Users/Yevhen/Documents/Sources/temp/lci/CMakeFiles/CMakeTmp'
    mingw32-make: *** [Makefile:139: cmTC_bf8d1/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)

-- Configuring incomplete, errors occurred!
See also "C:/Users/Yevhen/Documents/Sources/temp/lci/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Yevhen/Documents/Sources/temp/lci/CMakeFiles/CMakeError.log".

Environment

PS C:\Users\Yevhen\Documents\Sources\temp\lci> mingw32-make.exe --version
GNU Make 4.2.1
Built for x86_64-w64-mingw32
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
PS C:\Users\Yevhen\Documents\Sources\temp\lci> cmake.exe --version
cmake version 3.19.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).