Ultimaker / cura-build-environment

CMake project to build dependencies for Cura
GNU Affero General Public License v3.0
24 stars 55 forks source link

ProtoBuf native compilation error "sorry, unimplemented: 64-bit mode not compiled in" #91

Closed revantjhalani closed 3 years ago

revantjhalani commented 3 years ago

`[ 40%] No update step for 'Protobuf-MinGW' [ 41%] No patch step for 'Protobuf-MinGW' [ 41%] Performing configure step for 'Protobuf-MinGW' -- The C compiler identification is GNU 9.2.0 -- The CXX compiler identification is GNU 9.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: C:/MinGW/bin/gcc.exe -- Check for working C compiler: C:/MinGW/bin/gcc.exe - broken CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message): The C compiler

"C:/MinGW/bin/gcc.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/Users/howler/cura/cura-build-environment/build/Protobuf-MinGW-prefix/src/Protobuf-MinGW-build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_3a377/fast && C:/MinGW/bin/mingw32-make.exe  -f CMakeFiles\cmTC_3a377.dir\build.make CMakeFiles/cmTC_3a377.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/howler/cura/cura-build-environment/build/Protobuf-MinGW-prefix/src/Protobuf-MinGW-build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3a377.dir/testCCompiler.c.obj
C:\MinGW\bin\gcc.exe   -m64  -o CMakeFiles\cmTC_3a377.dir\testCCompiler.c.obj -c C:\Users\howler\cura\cura-build-environment\build\Protobuf-MinGW-prefix\src\Protobuf-MinGW-build\CMakeFiles\CMakeTmp\testCCompiler.c
cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
CMakeFiles\cmTC_3a377.dir\build.make:83: recipe for target 'CMakeFiles/cmTC_3a377.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_3a377.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/howler/cura/cura-build-environment/build/Protobuf-MinGW-prefix/src/Protobuf-MinGW-build/CMakeFiles/CMakeTmp'
Makefile:139: recipe for target 'cmTC_3a377/fast' failed
mingw32-make.exe: *** [cmTC_3a377/fast] Error 2

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

-- Configuring incomplete, errors occurred! See also "C:/Users/howler/cura/cura-build-environment/build/Protobuf-MinGW-prefix/src/Protobuf-MinGW-build/CMakeFiles/CMakeOutput.log". See also "C:/Users/howler/cura/cura-build-environment/build/Protobuf-MinGW-prefix/src/Protobuf-MinGW-build/CMakeFiles/CMakeError.log". NMAKE : fatal error U1077: 'echo' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2' Stop.`

nallath commented 3 years ago

There are quite a few stack overflow issues about this. Since this isn't a Cura specific issue, I'm going to close this issue.