Open thomas-harries-hasselbalch-maersk opened 1 year ago
Hi @thomas-harries-hasselbalch-maersk - thanks for reporting this issue.
Would you be able to extract the config.log
from the build folder and paste it here?
This line from Conan should point you in the right direction:
coin-utils/2.11.6: WARN: Build folder C:\Users\THA228\.conan2\p\t\coin-e8c8c17d90afc\b\build-release
@jcar87 thank you for reaching out:
you can find the log here:
Seems to be working now.
The error persist if a fortran compiler can be found (in my case when mingw is in Path
). However, if mingw is removed from path (and fortran compiler cannot be found) the build succeed. The error is the same on Github CI agents
I encountered the same issue today, since this probelm doesn't seam to get fixed, I share my workaround as a tipp.
Rename the fortran compiler for compiling the coin-utils. Never thought renaming the compiler would solve any issue, but here we are :D
Why didn't I remove the compiler from the path you ask? Because of working policies I can't modifly the path, but appenently I can rename the compiler. So yeah :)
Description
Package and Environment Details
Conan profile
[settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.version=193 os=Windows
Steps to reproduce
conan install --requires=coin-utils/2.11.6 -b missing
Logs
Click to expand log
``` C:\tmp>conan install --requires=coin-utils/2.11.6 -b missing ======== Input profiles ======== Profile host: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows Profile build: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows ======== Computing dependency graph ======== Graph root cli Requirements bzip2/1.0.8#23cc41191fd58460207c5db046033507 - Cache coin-utils/2.11.6#2937fc99817108d36c6bdd7e6049e5f4 - Cache zlib/1.2.13#13c96f538b52e1600c40b88994de240f - Cache Build requirements autoconf/2.71#f4e2bd681d49b4b80761aa587bde94d5 - Cache automake/1.16.5#891f585a736bce951cc0e7109aa5ffee - Cache m4/1.4.19#7689d2cae05587d0efb12261ddc4124d - Cache msys2/cci.latest#567331f1604f3c584f04feade960f06e - Cache ======== Computing necessary packages ======== coin-utils/2.11.6: Checking 3 compatible configurations: coin-utils/2.11.6: 'eb7c2d1fe3f3951411905bc8e2b260bfe8a9cc1f': compiler.cppstd=14 coin-utils/2.11.6: '6596692e6d7b163608c724a9735465116d1b38a8': compiler.cppstd=20 coin-utils/2.11.6: '5f4ac3ece093e10ad5f070d258cc69c8bd874fc7': compiler.cppstd=23 Requirements bzip2/1.0.8#23cc41191fd58460207c5db046033507:67bfcb7b4b78262b9d05495e479dcd92f747316b#6c3486e756ca1c9bc012acde46ba3b03 - Cache coin-utils/2.11.6#2937fc99817108d36c6bdd7e6049e5f4:04a3e73235ac5311a34077ebcde245bfed2acfae - Build zlib/1.2.13#13c96f538b52e1600c40b88994de240f:7bfde258ff4f62f75668d0896dbddedaa7480a0f#b0bceb78acbc0d3f9020f15c54f98a3e - Cache Build requirements autoconf/2.71#f4e2bd681d49b4b80761aa587bde94d5:da39a3ee5e6b4b0d3255bfef95601890afd80709#5c53a519d70fdb79d3cd4145e9f0355f - Skip automake/1.16.5#891f585a736bce951cc0e7109aa5ffee:ebec3dc6d7f6b907b3ada0c3d3cdc83613a2b715#07094da42a0b39fd4b34760c5f1f3e7d - Cache m4/1.4.19#7689d2cae05587d0efb12261ddc4124d:723257509aee8a72faf021920c2874abc738e029#7cfc2a45eeed64b49a5ac80482f427a5 - Skip msys2/cci.latest#567331f1604f3c584f04feade960f06e:956a88975bda9dfcc485e2861d71e74bd7e2b9a5#ce3addef73068ed1ad9ca9976b2d50c1 - Cache ======== Installing packages ======== bzip2/1.0.8: Already installed! WARN: The use of 'cpp_info.names' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'cpp_info.names' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'cpp_info.build_modules' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X msys2/cci.latest: Already installed! WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X zlib/1.2.13: Already installed! WARN: The use of 'cpp_info.names' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'cpp_info.names' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X m4/1.4.19: Already installed! m4/1.4.19: Appending PATH environment variable: C:\Users\THA228\.conan2\p\m4fd4297abfc654\p\bin WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X autoconf/2.71: Already installed! autoconf/2.71: Defining AC_MACRODIR environment variable: C:\Users\THA228\.conan2\p\autoc84ad36d1c05b9\p\res\autoconf autoconf/2.71: Defining autom4te_perllibdir environment variable: C:\Users\THA228\.conan2\p\autoc84ad36d1c05b9\p\res\autoconf autoconf/2.71: Defining AUTOCONF environment variable: C:\Users\THA228\.conan2\p\autoc84ad36d1c05b9\p\bin\autoconf autoconf/2.71: Defining AUTORECONF environment variable: C:\Users\THA228\.conan2\p\autoc84ad36d1c05b9\p\bin\autoreconf autoconf/2.71: Defining AUTOHEADER environment variable: C:\Users\THA228\.conan2\p\autoc84ad36d1c05b9\p\bin\autoheader autoconf/2.71: Defining AUTOM4TE environment variable: C:\Users\THA228\.conan2\p\autoc84ad36d1c05b9\p\bin\autom4te WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X automake/1.16.5: Already installed! WARN: The use of 'user_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'user_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X WARN: The use of 'env_info' is deprecated in Conan 2.0 and will be removed in Conan 2.X. Please, update your recipes unless you are maintaining compatibility with Conan 1.X -------- Building package coin-utils/2.11.6 from source (7 of 7) -------- coin-utils/2.11.6: Package coin-utils/2.11.6:04a3e73235ac5311a34077ebcde245bfed2acfae coin-utils/2.11.6: Copying sources to build folder coin-utils/2.11.6: Building your package in C:\Users\THA228\.conan2\p\t\coin-e8c8c17d90afc\b coin-utils/2.11.6: Calling generate() coin-utils/2.11.6: Generators folder: C:\Users\THA228\.conan2\p\t\coin-e8c8c17d90afc\b\build-release\conan coin-utils/2.11.6: Generating aggregated env files coin-utils/2.11.6: Generated aggregated env files: ['conanbuild.sh', 'conanbuild.bat'] coin-utils/2.11.6: Calling build() coin-utils/2.11.6: Calling: > "/c/users/tha228/.conan2/p/t/coin-e8c8c17d90afc/b/src/configure" --disable-shared --enable-static --prefix=/ --bindir=${prefix}/bin --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include --enable-msvc=dynamic coin-utils/2.11.6: RUN: "/c/users/tha228/.conan2/p/t/coin-e8c8c17d90afc/b/src/configure" --disable-shared --enable-static --prefix=/ --bindir=${prefix}/bin --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include --enable-msvc=dynamic conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - vcvars_ver=14.3 [vcvarsall.bat] Environment initialized for: 'x64' configure: loading site script /etc/config.site checking build system type... x86_64-w64-mingw32 checking whether we want to compile in debug mode... no checking for C compiler default output file name... conftest.exe checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... .exe checking for suffix of object files... obj checking whether we are using the GNU C compiler... no checking whether /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo accepts -g... yes checking for /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo option to accept ANSI C... none needed configure: C compiler options are: -MD -O2 -Ob2 -FS checking whether we are using the GNU C++ compiler... no checking whether /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo accepts -g... yes checking whether C++ compiler /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo works... yes configure: C++ compiler options are: /std:c++17 -MD -O2 -Ob2 -EHsc -FS configure: Trying to determine Fortran compiler name checking for gfortran... gfortran checking whether we are using the GNU Fortran 77 compiler... no checking whether gfortran accepts -g... no configure: Fortran compiler options are: -O checking for egrep... grep -E checking whether ln -s works... yes checking for a BSD-compatible install... /c/users/tha228/.conan2/p/msys27027d02bfdf83/p/bin/msys64/usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo... none checking dependency style of /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo... none checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... x86_64-w64-mingw32 checking for a sed that does not truncate output... /c/users/tha228/.conan2/p/msys27027d02bfdf83/p/bin/msys64/usr/bin/sed checking for non-GNU ld... link -nologo checking if the linker (link -nologo) is GNU ld... no checking for link -nologo option to reload object files... -r checking for BSD-compatible nm... dumpbin -symbols checking how to recognise dependent libraries... file_magic file format pei*-i386(.*architecture: i386)? checking how to run the C preprocessor... /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo -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 dlfcn.h usability... no checking dlfcn.h presence... no checking for dlfcn.h... no checking how to run the C++ preprocessor... /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo -E checking the maximum length of command line arguments... 8192 checking command to parse dumpbin -symbols output from /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo object... failed checking for objdir... .libs checking for ar... /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/ar-lib "lib -nologo" checking for ranlib... : checking for strip... : checking for /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo option to produce PIC... -DDLL_EXPORT checking if /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo PIC flag -DDLL_EXPORT works... yes checking if /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo static flag works... yes checking if /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo supports -c -o file.obj... yes checking whether the /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo linker (link -nologo) supports shared libraries... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking whether the /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo linker (link -nologo) supports shared libraries... no checking for /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo option to produce PIC... checking if /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo static flag works... yes checking if /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo supports -c -o file.obj... yes checking whether the /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo linker (link -nologo) supports shared libraries... no checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes checking for gfortran option to produce PIC... -DDLL_EXPORT checking if gfortran PIC flag -DDLL_EXPORT works... no checking if gfortran static flag works... yes checking if gfortran supports -c -o file.obj... yes checking whether the gfortran linker (link -nologo) supports shared libraries... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate configure: Build is "x86_64-w64-mingw32". checking for dos2unix... dos2unix configure: Applying patches to libtool for GNU compiler checking if library version is set... no checking whether source of project Glpk is available and should be compiled... no checking whether source of project Blas is available and should be compiled... no checking whether source of project Lapack is available and should be compiled... no checking whether source of project Sample is available and should be compiled... no checking whether source of project Netlib is available and should be compiled... no checking whether source of project CoinUtils is available and should be compiled... yes, source in CoinUtils configure: configuring doxygen documentation options checking for doxygen... yes checking for latex... no checking for dot... NO checking which command should be used to link input files... ln -s configure: creating ./config.status config.status: creating Makefile config.status: creating doxydoc/doxygen.conf config.status: executing depfiles commands configure: configuring in CoinUtils configure: running /bin/sh '/c/users/tha228/.conan2/p/t/coin-e8c8c17d90afc/b/src/CoinUtils/configure' --prefix=/ '--disable-shared' '--enable-static' '--prefix=/' '--bindir=/bin' '--sbindir=/bin' '--libdir=/lib' '--includedir=/include' '--oldincludedir=/include' '--enable-msvc=dynamic' 'CC=/c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo' 'CFLAGS= -MD -O2 -Ob2 -FS' 'CPPFLAGS= -DNDEBUG -I/c/users/tha228/.conan2/p/bzip2e8de49aa7e779/p/include -I/c/users/tha228/.conan2/p/zlib79a17989f9ec5/p/include' 'CXXFLAGS= /std:c++17 -MD -O2 -Ob2 -EHsc -FS' 'CXX=/c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo' 'LDFLAGS= -L/c/users/tha228/.conan2/p/bzip2e8de49aa7e779/p/lib -L/c/users/tha228/.conan2/p/zlib79a17989f9ec5/p/lib' --cache-file=/dev/null --srcdir=/c/users/tha228/.conan2/p/t/coin-e8c8c17d90afc/b/src/CoinUtils configure: loading site script /etc/config.site checking build system type... x86_64-w64-mingw32 checking for svnversion... no checking whether we want to compile in debug mode... no checking for C compiler default output file name... conftest.exe checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... .exe checking for suffix of object files... obj checking whether we are using the GNU C compiler... no checking whether /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo accepts -g... yes checking for /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo option to accept ANSI C... none needed configure: C compiler options are: -MD -O2 -Ob2 -FS -DCOINUTILS_BUILD checking whether we are using the GNU C++ compiler... no checking whether /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo accepts -g... yes checking whether C++ compiler /c/users/tha228/.conan2/p/autom93c932efc5000/p/res/automake-1.16/compile cl -nologo works... yes configure: C++ compiler options are: /std:c++17 -MD -O2 -Ob2 -EHsc -FS -DCOINUTILS_BUILD configure: Trying to determine Fortran compiler name checking for gfortran... gfortran checking whether we are using the GNU Fortran 77 compiler... no checking whether gfortran accepts -g... no configure: Fortran compiler options are: -O checking how to get verbose linking output from gfortran... configure: WARNING: compilation failed checking for Fortran libraries of gfortran... checking for dummy main to link with Fortran libraries... none checking for Fortran name-mangling scheme... configure: error: cannot compile a simple Fortran program See `config.log' for more details. configure: error: /bin/sh '/c/users/tha228/.conan2/p/t/coin-e8c8c17d90afc/b/src/CoinUtils/configure' failed for CoinUtils coin-utils/2.11.6: ERROR: Package '04a3e73235ac5311a34077ebcde245bfed2acfae' build failed coin-utils/2.11.6: WARN: Build folder C:\Users\THA228\.conan2\p\t\coin-e8c8c17d90afc\b\build-release ********************************************************* Recipe 'coin-utils/2.11.6' cannot build its binary It is possible that this recipe is not Conan 2.0 ready If the recipe comes from ConanCenter check: https://conan.io/cci-v2.html If it is your recipe, check if it is updated to 2.0 ********************************************************* ERROR: coin-utils/2.11.6: Error in build() method, line 150 autotools.configure() ConanException: Error 1 while executing ```