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

[package] cpython/3.10.0: fails on Windows due to autoconf not in msys path #10028

Closed
jellespijker opened this issue Mar 30, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@jellespijker
Copy link
Contributor

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: cpython/3.10.0
  • Operating System+version: MSYS_NT-10.0-17763 windows-build-server 3.1.7-340.x86_64 2020-10-23 13:08 UTC x86_64 Msys
  • Compiler+version: Visual Studio 16
  • Conan version: conan 1.46.2
  • Python version: Python 3.10.2

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.cppstd=17
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
MAKE_PROGRAM=nmake.exe
[conf]
tools.cmake.cmaketoolchain:find_package_prefer_config=True

Steps to reproduce (Include if Applicable)

conan install cpython/3.10.0@_/_ --build=missing

Possible duplicate or at least related to #9048 and #9222

Logs (Include/Attach if Applicable)

Click to expand log
INFO  :settings_preprocessor.py[56]: Setting 'compiler.runtime' not declared, automatically adjusted to 'MD' [2022-03-30 14:38:52,659]
INFO  :settings_preprocessor.py[56]: Setting 'compiler.runtime' not declared, automatically adjusted to 'MD' [2022-03-30 14:38:52,721]
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
MAKE_PROGRAM=nmake.exe
[conf]
tools.cmake.cmaketoolchain:find_package_prefer_config=True

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:find_package_prefer_config=True

Installing package: cpython/3.10.0
Requirements
    cpython/3.10.0 from 'conan-center' - Cache
    zlib/1.2.11 from 'ultimaker' - Cache
Packages
    cpython/3.10.0:INVALID - Invalid
    zlib/1.2.11:3fb49604f9c2f729b85ba3115852006824e72cab - Cache

Installing (downloading, building) binaries...
ERROR: There are invalid packages (packages that cannot exist for this configuration):
cpython/3.10.0: Invalid ID: Static msvc build disabled (>=3.10) due to "AttributeError: module 'sys' has no attribute 'winver'"
PS C:\build\******\cura-build-environment\build> conan install .. -pr:b cura_build.jinja -pr:h cura_release.jinja  --build=missing
INFO  :settings_preprocessor.py[56]: Setting 'compiler.runtime' not declared, automatically adjusted to 'MD' [2022-03-30 14:39:30,852]
INFO  :settings_preprocessor.py[56]: Setting 'compiler.runtime' not declared, automatically adjusted to 'MD' [2022-03-30 14:39:30,930]
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
MAKE_PROGRAM=nmake.exe
[conf]
tools.cmake.cmaketoolchain:find_package_prefer_config=True

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:find_package_prefer_config=True

automake/1.16.4: WARN: Package binary is corrupted, removing: b26816b7436f13a2f40f740c9ba4ad10f22f8dc7
conanfile.txt: Installing package
Requirements
    bzip2/1.0.8 from 'conan-center' - Cache
    cpython/3.10.0 from 'conan-center' - Cache
    expat/2.4.1 from 'conan-center' - Cache
    libffi/3.2.1 from 'conan-center' - Cache
    mpdecimal/2.5.0 from 'conan-center' - Cache
    openssl/1.1.1l from 'conan-center' - Cache
    sqlite3/3.36.0 from 'conan-center' - Cache
    xz_utils/5.2.5 from 'ultimaker' - Cache
    zlib/1.2.11 from 'ultimaker' - Cache
Packages
    bzip2/1.0.8:d16a91eadaaf5829b928b12d2f836ff7680d3df5 - Cache
    cpython/3.10.0:06ed44b578b3c0c84baa056a697fbe3d48db0171 - Build
    expat/2.4.1:ce5788ba7e3bb7dc834e36b06df66c481f42c99a - Cache
    libffi/3.2.1:3fb49604f9c2f729b85ba3115852006824e72cab - Cache
    mpdecimal/2.5.0:df957507b082227a521cdcb6540699a5708428c7 - Build
    openssl/1.1.1l:3fb49604f9c2f729b85ba3115852006824e72cab - Cache
    sqlite3/3.36.0:050fb3a4d3559ab088bce91739e61889c28839d1 - Cache
    xz_utils/5.2.5:3fb49604f9c2f729b85ba3115852006824e72cab - Cache
    zlib/1.2.11:3fb49604f9c2f729b85ba3115852006824e72cab - Cache
Build requirements
    autoconf/2.71 from 'conan-center' - Cache
    automake/1.16.4 from 'conan-center' - Cache
    m4/1.4.19 from 'conan-center' - Cache
    msys2/cci.latest from 'conan-center' - Cache
Build requirements packages
    autoconf/2.71:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    automake/1.16.4:b26816b7436f13a2f40f740c9ba4ad10f22f8dc7 - Build
    m4/1.4.19:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache
    msys2/cci.latest:eee3fba89db6d777329de604625af8c30d46f080 - Cache

Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
bzip2/1.0.8: Appending PATH environment variable: C:\Users/*********\.conan\data\bzip2\1.0.8\_\_\package\d16a91eadaaf5829b928b12d2f836ff7680d3df5\bin
expat/2.4.1: Already installed!
libffi/3.2.1: Already installed!
m4/1.4.19: Already installed!
m4/1.4.19: Appending PATH environment variable: C:\Users/*********\.conan\data\m4\1.4.19\_\_\package\0a420ff5c47119e668867cdb51baff0eca1fdb68\bin
m4/1.4.19: Setting M4 environment variable: C:/users/*********/.conan/data/m4/1.4.19/_/_/package/0a420ff5c47119e668867cdb51baff0eca1fdb68/bin/m4.exe
msys2/cci.latest: Already installed!
msys2/cci.latest: Creating MSYS_ROOT env var : C:\.conan\03972a\1\bin\msys64
msys2/cci.latest: Creating MSYS_BIN env var : C:\.conan\03972a\1\bin\msys64\usr\bin
msys2/cci.latest: Appending PATH env var with : C:\.conan\03972a\1\bin\msys64\usr\bin
msys2/cci.latest: Creating MSYS_ROOT env var : C:\.conan\03972a\1\bin\msys64
msys2/cci.latest: Creating MSYS_BIN env var : C:\.conan\03972a\1\bin\msys64\usr\bin
msys2/cci.latest: Appending PATH env var with : C:\.conan\03972a\1\bin\msys64\usr\bin
openssl/1.1.1l: Already installed!
sqlite3/3.36.0: Already installed!
sqlite3/3.36.0: Appending PATH env var with : C:\Users/*********\.conan\data\sqlite3\3.36.0\_\_\package\050fb3a4d3559ab088bce91739e61889c28839d1\bin
xz_utils/5.2.5: Already installed!
zlib/1.2.11: Already installed!
autoconf/2.71: Already installed!
autoconf/2.71: Appending PATH env var with : C:\Users/*********\.conan\data\autoconf\2.71\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\bin
autoconf/2.71: Setting AC_MACRODIR to C:\Users/*********\.conan\data\autoconf\2.71\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\bin\share\autoconf
INFO  :runners.py     [87]: Calling command: "C:\Windows\system32\bash.exe" -c "uname" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmpt51o37aw\output" [2022-03-30 14:39:31,860]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:32,517]
INFO  :runners.py     [98]: Output: in file:Linux

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:32,517]
autoconf/2.71: Setting AUTOCONF to /mnt/c/users/*********/.conan/data/autoconf/2.71/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoconf
INFO  :runners.py     [87]: Calling command: "C:\Windows\system32\bash.exe" -c "uname" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmpeg5z8bbg\output" [2022-03-30 14:39:32,517]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:32,861]
INFO  :runners.py     [98]: Output: in file:Linux

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:32,861]
autoconf/2.71: Setting AUTORECONF to /mnt/c/users/*********/.conan/data/autoconf/2.71/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoreconf
INFO  :runners.py     [87]: Calling command: "C:\Windows\system32\bash.exe" -c "uname" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmpyzw75nea\output" [2022-03-30 14:39:32,861]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:33,174]
INFO  :runners.py     [98]: Output: in file:Linux

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:33,174]
autoconf/2.71: Setting AUTOHEADER to /mnt/c/users/*********/.conan/data/autoconf/2.71/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoheader
INFO  :runners.py     [87]: Calling command: "C:\Windows\system32\bash.exe" -c "uname" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmphyfavo1y\output" [2022-03-30 14:39:33,189]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:33,488]
INFO  :runners.py     [98]: Output: in file:Linux

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:33,488]
autoconf/2.71: Setting AUTOM4TE to /mnt/c/users/*********/.conan/data/autoconf/2.71/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autom4te
autoconf/2.71: Setting AUTOM4TE_PERLLIBDIR to C:\Users/*********\.conan\data\autoconf\2.71\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\bin\share\autoconf
automake/1.16.4: Applying build-requirement: msys2/cci.latest
automake/1.16.4: WARN: Build folder is dirty, removing it: C:\Users/*********\.conan\data\automake\1.16.4\_\_\build\b26816b7436f13a2f40f740c9ba4ad10f22f8dc7
automake/1.16.4: Copying sources to build folder
automake/1.16.4: Building your package in C:\Users/*********\.conan\data\automake\1.16.4\_\_\build\b26816b7436f13a2f40f740c9ba4ad10f22f8dc7
INFO  :installer.py   [132]: GENERATORS: Writing generators [2022-03-30 14:39:44,458]
automake/1.16.4: Generator txt created conanbuildinfo.txt
automake/1.16.4: Generator 'MSBuildDeps' calling 'generate()'
*** The 'msbuild' generator is EXPERIMENTAL ***
INFO  :installer.py   [136]: TOOLCHAIN: Writing toolchain [2022-03-30 14:39:44,505]
automake/1.16.4: Aggregating env generators
automake/1.16.4: Calling build()
INFO  :runners.py     [87]: Calling command: "C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe" -c "uname" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmpe3ptttik\output" [2022-03-30 14:39:44,640]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:44,812]
INFO  :runners.py     [98]: Output: in file:MSYS_NT-10.0-17763

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:44,812]
INFO  :runners.py     [87]: Calling command: "C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe" -c "uname -r" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmpa6aduopz\output" [2022-03-30 14:39:44,812]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:44,906]
INFO  :runners.py     [98]: Output: in file:3.3.3-341.x86_64

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:44,906]
INFO  :runners.py     [87]: Calling command: "C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe" -c "uname" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmpa8bmcorc\output" [2022-03-30 14:39:44,906]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:45,000]
INFO  :runners.py     [98]: Output: in file:MSYS_NT-10.0-17763

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:45,000]
INFO  :runners.py     [87]: Calling command: "C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe" -c "uname -r" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmpa33rfai0\output" [2022-03-30 14:39:45,000]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:45,078]
INFO  :runners.py     [98]: Output: in file:3.3.3-341.x86_64

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:45,078]
INFO  :runners.py     [87]: Calling command: "C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe" -c "uname" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmprwug8gxy\output" [2022-03-30 14:39:45,093]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:45,172]
INFO  :runners.py     [98]: Output: in file:MSYS_NT-10.0-17763

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:45,172]
INFO  :runners.py     [87]: Calling command: "C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe" -c "uname -r" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmpu_8sr_f1\output" [2022-03-30 14:39:45,172]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:45,265]
INFO  :runners.py     [98]: Output: in file:3.3.3-341.x86_64

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:45,265]
INFO  :runners.py     [87]: Calling command: "C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe" -c "uname" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmpw5pvoq8r\output" [2022-03-30 14:39:45,265]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:45,359]
INFO  :runners.py     [98]: Output: in file:MSYS_NT-10.0-17763

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:45,359]
INFO  :runners.py     [87]: Calling command: "C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe" -c "uname -r" > "C:\Users\ULTIMA~1\AppData\Local\Temp\tmpc6qp7gig\output" [2022-03-30 14:39:45,359]
INFO  :runners.py     [90]: Return code: 0 [2022-03-30 14:39:45,453]
INFO  :runners.py     [98]: Output: in file:3.3.3-341.x86_64

                            stdout: None
                            stderr:b'' [2022-03-30 14:39:45,453]
automake/1.16.4: run_in_windows_bash: C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe --login -c ^"cd \^"/c/users/*********/.conan/data/automake/1.16.4/_/_/build/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7\^" ^&^& PATH=\^"/c/.conan/03972a/1/bin/msys64/usr/bin:/c/.conan/03972a/1/bin:$PATH\^" ^&^& /c/users/*********/.conan/data/automake/1.16.4/_/_/build/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7/source_subfolder/configure --help ^"

----Running------
> C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe --login -c ^"cd \^"/c/users/*********/.conan/data/automake/1.16.4/_/_/build/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7\^" ^&^& PATH=\^"/c/.conan/03972a/1/bin/msys64/usr/bin:/c/.conan/03972a/1/bin:$PATH\^" ^&^& /c/users/*********/.conan/data/automake/1.16.4/_/_/build/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7/source_subfolder/configure --help ^"
-----------------
`configure' configures GNU Automake 1.16.4 to adapt to many kinds of systems.

Usage: /c/users/*********/.conan/data/automake/1.16.4/_/_/build/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7/source_subfolder/configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/automake]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-silent-rules   less verbose build output (undo: "make V=1")
  --disable-silent-rules  verbose build output (undo: "make V=0")

Some influential environment variables:
  AM_TEST_RUNNER_SHELL
              a sturdy POSIX shell for our testsuite
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  FC          Fortran compiler command
  FCFLAGS     Fortran compiler flags
  F77         Fortran 77 compiler command
  FFLAGS      Fortran 77 compiler flags
  GNU_CC      GNU C compiler
  GNU_CFLAGS  GNU C compiler flags
  GNU_CXX     GNU C++ compiler
  GNU_CXXFLAGS
              GNU C++ compiler flags
  GNU_FC      GNU Fortran compiler
  GNU_FCFLAGS GNU Fortran compiler flags
  GNU_F77     GNU Fortran 77 compiler
  GNU_FFLAGS  GNU Fortran 77 compiler flags
  GNU_GCJ     GNU Java compiler
  GNU_GCJFLAGS
              GNU Java compiler flags

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <bug-automake@gnu.org>.
GNU Automake home page: <https://www.gnu.org/software/automake/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
automake/1.16.4: Calling:
 > /c/users/*********/.conan/data/automake/1.16.4/_/_/build/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7/source_subfolder/configure --datarootdir=/c/users/*********/.conan/data/automake/1.16.4/_/_/package/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7/res --prefix=/c/users/*********/.conan/data/automake/1.16.4/_/_/package/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7 --target=x86_64-windows-msvc
automake/1.16.4: run_in_windows_bash: C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe --login -c ^"cd \^"/c/users/*********/.conan/data/automake/1.16.4/_/_/build/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7\^" ^&^& PATH=\^"/c/.conan/03972a/1/bin/msys64/usr/bin:/c/.conan/03972a/1/bin:$PATH\^" ^&^& /c/users/*********/.conan/data/automake/1.16.4/_/_/build/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7/source_subfolder/configure --datarootdir=/c/users/*********/.conan/data/automake/1.16.4/_/_/package/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7/res --prefix=/c/users/*********/.conan/data/automake/1.16.4/_/_/package/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7 --target=x86_64-windows-msvc ^"

----Running------
> C:\.conan\03972a\1\bin\msys64\usr\bin\bash.exe --login -c ^"cd \^"/c/users/*********/.conan/data/automake/1.16.4/_/_/build/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7\^" ^&^& PATH=\^"/c/.conan/03972a/1/bin/msys64/usr/bin:/c/.conan/03972a/1/bin:$PATH\^" ^&^& /c/users/*********/.conan/data/automake/1.16.4/_/_/build/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7/source_subfolder/configure --datarootdir=/c/users/*********/.conan/data/automake/1.16.4/_/_/package/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7/res --prefix=/c/users/*********/.conan/data/automake/1.16.4/_/_/package/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7 --target=x86_64-windows-msvc ^"
-----------------
configure: loading site script /etc/config.site
checking whether make supports nested variables... yes
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /c/.conan/03972a/1/bin/msys64/usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether ln -s works... no, using cp -pR
checking for perl... /c/.conan/03972a/1/bin/msys64/usr/bin/perl
checking for tex... no
checking for yacc... yacc
checking for lex... lex
checking whether autoconf is installed... no
configure: error: Autoconf 2.65 or better is required.
    Please make sure it is installed and in your PATH.
automake/1.16.4:
automake/1.16.4: ERROR: Package 'b26816b7436f13a2f40f740c9ba4ad10f22f8dc7' build failed
automake/1.16.4: WARN: Build folder C:\Users/*********\.conan\data\automake\1.16.4\_\_\build\b26816b7436f13a2f40f740c9ba4ad10f22f8dc7
ERROR: automake/1.16.4: Error in build() method, line 88
        autotools = self._configure_autotools()
while calling '_configure_autotools', line 72
        self._autotools.configure(args=conf_args, configure_dir=self._source_subfolder)
        ConanException: Error 1 while executing /c/users/*********/.conan/data/automake/1.16.4/_/_/build/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7/source_subfolder/configure --datarootdir=/c/users/*********/.conan/data/automake/1.16.4/_/_/package/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7/res --prefix=/c/users/*********/.conan/data/automake/1.16.4/_/_/package/b26816b7436f13a2f40f740c9ba4ad10f22f8dc7 --target=x86_64-windows-msvc

@jellespijker jellespijker added the bug Something isn't working label Mar 30, 2022
jellespijker pushed a commit to Ultimaker/cura-build-environment that referenced this issue Apr 1, 2022
CPython currently can't be build on our Windows build server.
conan-io/conan-center-index#10028

@rburema and I did a test if it would be possible to use a
system installed Python binaries. This seems to be possible.

Contributes to CURA-8640
jellespijker added a commit to Ultimaker/conan-ultimaker-index that referenced this issue Apr 6, 2022
conan-io/conan-center-index#10028

mpdecimals uses the automake package which relies on autoconf being on the
msys2 path. Removed the mpdecimal as requirement when the compiler is
Visual Studio.

Contributes to CURA-8640
jellespijker pushed a commit to jellespijker/conan-center-index that referenced this issue Jun 19, 2022
No need to compile mpdecimal with automake and msys2
on Windows. It will fail when compiling on Powershell
otherwise, since autoconf seems to wrongly interpret
environment variables (see also PR conan-io#11055).
Removing the build_requirement allows it to compile
for msvc and visual studio compiler.

Fixes conan-io#10028
@paulharris
Copy link
Contributor

Wow that is convenient, you don't even need automake in the first place?

Perhaps check my comment here:
#9048 (comment)

Perhaps if you conan install automake/etc@ and THEN build mpdecimal (the old one with automake), it'll work.
automake isn't building when using -build=missing
I'd be interested to know if it works for you too...

jellespijker added a commit to Ultimaker/conan-ultimaker-index that referenced this issue Aug 25, 2022
The wheels for PyQt6 from the pypi artifactory are linked against
the limited Python ABI. The CPython interpreter we compile as part
of Cura is not compiled with the Py_LIMITED_ABI flag. This results
on Windows that the PyQt6 module try to use the python3.dll in the
system, while our CPython deps is compiled as python310.dll.

To make sure that PyQt6 runs and uses our CPython library we need
to compile and link PyQt6 against our Conan dependencies. This means
that we also need to compile Qt6 and make sure that PyQt6 is compiled
without the Py_LIMITED_ABI definition. For this to work we need to
patch the pyproject.toml (using our Conan pyprojecttoolchain generator
https://github.com/Ultimaker/conan-ultimaker-index/blob/CURA-8831_pyqt6_recipe/recipes/pyprojecttoolchain/conanfile.py )
and patch the SIP definition files to replace all `use_limited_api=True`
arguments with `use_limited_api=True`. Furthermore, we need enable at
the very least the `qtdeclarative` module for Qml support.

Adding the PyQt6/6.3.1 as a Conan dependency to Cura and Uranium and
removing the PyQt6* requirements from the requirement.txt except:
PyQt6-sip will solve the following GH issue

Fixes Ultimaker/Cura#12773
Fixes Ultimaker/Cura#12745
Fixes Ultimaker/Cura#13047

Mind you we're still missing some PyQt6 modules atm so Cura will
start up and doesn't complain about missing dll's anymore but at
the time it doesn't render text yet. This is probably because
harfbuzz and glib are disabled.

These are currently disabled because of some issues with the
Conan recipe for automake and autoconf when using msys2.
See conan-io/conan-center-index#9048 and conan-io/conan-center-index#10028

A possible workaround for that is to modify the Qt6 dependency which
uses automake and autoconf, remove those as dependencies when compiling
on Windows and adding the option for:
`msys2:packages=base-devel,binutils,gcc,autoconf,automake`

Contributes to CURA-8831
@jellespijker
Copy link
Contributor Author

Closed by #12715

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants