Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on Windows with MinGW #30

Open
eternalego opened this issue May 3, 2022 · 2 comments
Open

Build failure on Windows with MinGW #30

eternalego opened this issue May 3, 2022 · 2 comments

Comments

@eternalego
Copy link

GCC version 11.3.0 installed with MinGW

running conan as following:
conan install .. --build=missing -o:h boost:without_fiber=True -o:h boost:without_python=True -o:h boost:without_graph=True -o:h boost:without_math=True

It loads boost, etc, while fails while building bzip2 1.0.8

mingw32-make.exe[1]: Entering directory   
'C:/Users/asus/.conan/data/bzip2/1.0.8/_/_/build/afe2ddf847ed9b40cba062f2102b7d2359792b34/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_76583.dir/testCCompiler.c.obj  
C:\msys64_2022\mingw64\bin\gcc.exe    -o CMakeFiles\cmTC_76583.dir\testCCompiler.c.obj   -c   
C:\Users\asus\.conan\data\bzip2\1.0.8\_\_\build\afe2ddf847ed9b40cba062f2102b7d2359792b34\CMakeFiles\CMakeTmp\testCCompiler.c  
CMakeFiles\cmTC_76583.dir\build.make:84: recipe for target 'CMakeFiles/cmTC_76583.dir/testCCompiler.c.obj' failed  
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_76583.dir/testCCompiler.c.obj] Error   
mingw32-make.exe[1]: Leaving directory  
'C:/Users/asus/.conan/data/bzip2/1.0.8/_/_/build/afe2ddf847ed9b40cba062f2102b7d2359792b34/CMakeFiles/CMakeTmp' 
Makefile:140: recipe for target 'cmTC_76583/fast' failed  
mingw32-make.exe: *** [cmTC_76583/fast] Error 2  

Detailed cmake log attached:
CMakeError.log
also conan build log:
build1.log

Conan default profile contains the following:

toolchain=C:\msys64_2022\mingw64\bin
target_host=x86_64-w64-mingw32
cc_compiler=gcc
cxx_compiler=g++

[env]
CONAN_CMAKE_FIND_ROOT_PATH=$toolchain
CC=$toolchain/gcc
CXX=$toolchain/g++
CHOST=$target_host
AR=$target_host-ar
AS=$target_host-as
RANLIB=$target_host-ranlib -
STRIP=$target_host-strip
RC=$target_host-windres

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=11
build_type=Debug
compiler.libcxx=libstdc++11
[options]
[build_requires]

Could it be another unused dependency?

@mschneider
Copy link
Owner

mschneider commented May 3, 2022 via email

@eternalego
Copy link
Author

That's interesting, tried to set 11.3 and conan printed me a warning that 11.3 is invalid. Only 11 / 11.1 / 11.2 are possible. Ok, will try to do something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants