conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
965 stars 1.77k forks source link

[package] icu/68.2: Configuration failed on windows #5681

Open rea-yseop opened 3 years ago

rea-yseop commented 3 years ago

Package and Environment Details (include every applicable attribute)

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
icu:data_packaging=static
icu:shared=False
[build_requires]
*: icu/68.2

Steps to reproduce (Include if Applicable)

Logs (Include/Attach if Applicable)

Click to expand log ``` Exporting package recipe icu/68.2 exports: File 'conandata.yml' found. Exporting it... icu/68.2 exports: Copied 1 '.yml' file: conandata.yml icu/68.2 exports_sources: Copied 1 '.patch' file: 0001-67.1-fix-mingw.patch icu/68.2: A new conanfile.py version was exported icu/68.2: Folder: C:\Users\yseop\.conan\data\icu\68.2\yseop\stable\export icu/68.2: Exported revision: 56eaba2caba690068b93d9280ff6dc71 Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MD compiler.version=16 os=Windows os_build=Windows [options] icu:data_packaging=static icu:shared=False [build_requires] *: icu/68.2 [env] icu/68.2: Forced build from source Installing package: icu/68.2 Requirements icu/68.2 from local cache - Cache Packages icu/68.2:b3f002636e4831cfa4b03b510f613dbe55774af2 - Build Build requirements msys2/cci.latest from 'conan-center' - Cache Build requirements packages msys2/cci.latest:eee3fba89db6d777329de604625af8c30d46f080 - Cache Installing (downloading, building) binaries... msys2/cci.latest: Already installed! msys2/cci.latest: Creating MSYS_ROOT env var : C:\.conan\8f8772\1\bin\msys64 msys2/cci.latest: Creating MSYS_BIN env var : C:\.conan\8f8772\1\bin\msys64\usr\bin msys2/cci.latest: Appending PATH env var with : C:\.conan\8f8772\1\bin\msys64\usr\bin icu/68.2: Applying build-requirement: msys2/cci.latest icu/68.2: Configuring sources in C:\Users\yseop\.conan\data\icu\68.2\yseop\stable\source Downloading icu4c-69_1-src.tgz completed [24233.30k] icu/68.2: Copying sources to build folder icu/68.2: Building your package in C:\Users\yseop\.conan\data\icu\68.2\yseop\stable\build\b3f002636e4831cfa4b03b510f613dbe55774af2 icu/68.2: Generator txt created conanbuildinfo.txt icu/68.2: Calling build() Conan:vcvars already set icu/68.2: run_in_windows_bash: C:\.conan\8f8772\1\bin\msys64\usr\bin\bash.exe --login -c ^"cd \^"/c/users/yseop/.conan/data/icu/68.2/yseop/stable/build/b3f002636e4831cfa4b03b510f613dbe55774af2/source_subfolder/build\^" ^&^& PATH=\^"/c/.conan/8f8772/1/bin/msys64/usr/bin:$PATH\^" ^&^& ../source/runConfigureICU Cygwin/MSVC --prefix=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2 --with-library-bits=64 --disable-samples --disable-layout --disable-layoutex --disable-extras --with-data-packaging=static --datarootdir=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2/lib --sbindir=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2/bin --libdir=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2/lib --enable-static --disable-shared --disable-tests ^" export CPP= CC=cl CXX=cl CPPFLAGS=-DNDEBUG -DU_STATIC_IMPLEMENTATION CFLAGS=-Gy -MD -O2 -Ob2 -MD CXXFLAGS=-Gy -MD -O2 -Ob2 -MD LDFLAGS= MAKE= Running ./configure --prefix=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2 --with-library-bits=64 --disable-samples --disable-layout --disable-layoutex --disable-extras --with-data-packaging=static --datarootdir=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2/lib --sbindir=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2/bin --libdir=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2/lib --enable-static --disable-shared --disable-tests for Windows with Cygwin using Microsoft Visual C++ compiler configure: loading site script /etc/config.site checking for ICU version numbers... release 68.2, library 68.2, unicode version 13.0 checking build system type... x86_64-w64-mingw32 checking host system type... x86_64-w64-mingw32 checking whether to build debug libraries... no checking whether to build release libraries... yes checking whether the C compiler works... yes checking for C compiler default output file name... conftest.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... obj checking whether we are using the GNU C compiler... no checking whether cl accepts -g... yes checking for cl option to accept ISO C89... none needed checking whether we are using the GNU C++ compiler... no checking whether cl accepts -g... yes checking for pkg-config... no checking for ICULEHB... no checking how to run the C preprocessor... cl -E checking for a BSD-compatible install... /usr/bin/install -c checking for python3... python3 checking for gmake... no checking for gnumake... no checking for doxygen... no checking checking for executable suffix... .exe checking whether strict compiling is on... yes checking for grep that handles long lines and -e... /c/.conan/8f8772/1/bin/msys64/usr/bin/grep checking for egrep... /c/.conan/8f8772/1/bin/msys64/usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... no checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... no checking size of void *... 4 checking whether runnable 64 bit binaries are built by default... no checking how to build 64-bit executables... no configure: error: Requested 64 bit binaries but could not compile and execute them. See readme.html for help with cross compilation., and set compiler options manually. ../source/runConfigureICU: ./configure failed icu/68.2: icu/68.2: ERROR: Package 'b3f002636e4831cfa4b03b510f613dbe55774af2' build failed icu/68.2: WARN: Build folder C:\Users\yseop\.conan\data\icu\68.2\yseop\stable\build\b3f002636e4831cfa4b03b510f613dbe55774af2 ERROR: icu/68.2: Error in build() method, line 97 self.run(self._build_config_cmd, win_bash=tools.os_info.is_windows) ConanException: Error 1 while executing ../source/runConfigureICU Cygwin/MSVC --prefix=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2 --with-library-bits=64 --disable-samples --disable-layout --disable-layoutex --disable-extras --with-data-packaging=static --datarootdir=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2/lib --sbindir=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2/bin --libdir=C:/Users/yseop/.conan/data/icu/68.2/yseop/stable/package/b3f002636e4831cfa4b03b510f613dbe55774af2/lib --enable-static --disable-shared --disable-tests ```

I had an issue with msys2 with the current recipe of icu so i changed it to latest as suggested https://github.com/conan-io/conan-center-index/issues/5673

akielbas commented 2 years ago

@rea-yseop were you ever able to resolve this somehow?

kielby commented 2 years ago

In my case I was able to move beyond the 64-bit check by making sure that build was running from a x64 VS prompt like x64 Native Tools Command Prompt for VS 2019.