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

[mpfr] x64-windows build failure #19353

Closed
jasjuang opened this issue Aug 4, 2021 · 1 comment · Fixed by #19361
Closed

[mpfr] x64-windows build failure #19353

jasjuang opened this issue Aug 4, 2021 · 1 comment · Fixed by #19361
Assignees
Labels
category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly

Comments

@jasjuang
Copy link
Contributor

jasjuang commented Aug 4, 2021

Host Environment

  • OS: Windows 10
  • Compiler: Visual Studio 2019

To Reproduce
Steps to reproduce the behavior:
vcpkg install mpfr

Failure logs

C:\dev\vcpkg>vcpkg install mpfr
Computing installation plan...
The following packages will be built and installed:
    mpfr[core]:x64-windows -> 4.1.0
Detecting compiler hash for triplet x64-windows...
Could not locate cached archive: C:\Users\jasju\AppData\Local\vcpkg\archives\f0\f0d516b8b3d8dcbae6abfb8113289a1423199153e1d1602a9221b67f9c638f63.zip
Starting package 1/1: mpfr:x64-windows
Building package mpfr[core]:x64-windows...
-- Using C:/dev/vcpkg/downloads/mpfr-4.1.0.tar.xz
-- Cleaning sources at C:/dev/vcpkg/buildtrees/mpfr/src/mpfr-4-8955d4bc66.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/dev/vcpkg/downloads/mpfr-4.1.0.tar.xz
-- Applying patch gmpd.patch
-- Applying patch dll.patch
-- Using source at C:/dev/vcpkg/buildtrees/mpfr/src/mpfr-4-8955d4bc66.clean
-- Getting CMake variables for x64-windows
-- Using msys root at C:/dev/vcpkg/downloads/tools/msys2/41652b92f1636a16
-- Using msys root at C:/dev/vcpkg/downloads/tools/msys2/aa5af7b2aa7e90e8
-- Generating configure for x64-windows
-- Finished generating configure for x64-windows
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Using msys root at C:/dev/vcpkg/downloads/tools/msys2/aaafe87dcead272e
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:155 (message):
    Command failed: C:/dev/vcpkg/downloads/tools/msys2/aaafe87dcead272e/usr/bin/make.exe -j 9 --trace -f Makefile all
    Working Directory: C:/dev/vcpkg/buildtrees/mpfr/x64-windows-dbg
    See logs for more information:
      C:\dev\vcpkg\buildtrees\mpfr\build-x64-windows-dbg-out.log
      C:\dev\vcpkg\buildtrees\mpfr\build-x64-windows-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_make.cmake:191 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_make.cmake:26 (vcpkg_build_make)
  ports/mpfr/portfile.cmake:23 (vcpkg_install_make)
  scripts/ports.cmake:141 (include)


Error: Building package mpfr:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: mpfr:x64-windows
  Vcpkg version: 2021-07-26-9425cf5f512f242c0bcbabac31f08832825aee81

Additionally, attach any relevant sections from the log files above.

build-x64-windows-dbg-err.log

/c/dev/vcpkg/buildtrees/mpfr/src/mpfr-4-8955d4bc66.clean/missing: /c/dev/vcpkg/downloads/tools/msys2/41652b92f1636a16/usr/bin/makeinfo: /usr/bin/perl: bad interpreter: No such file or directory
make[1]: *** [Makefile:379: .././../src/mpfr-4-8955d4bc66.clean/doc/mpfr.info] Error 126
make: *** [Makefile:499: all-recursive] Error 1

build-x64-windows-dbg-out.log

Makefile:499: target 'all-recursive' does not exist
fail=; \
if (target_option=k; case ${target_option-} in ?) ;; *) echo "am__make_running_with_option: internal error: invalid" "target option '${target_option-}' specified" >&2; exit 1;; esac; has_opt=no; sane_makeflags=$MAKEFLAGS; if { if test -z '0'; then false; elif test -n 'x86_64-pc-msys'; then true; elif test -n '4.3' && test -n '/c/dev/vcpkg/buildtrees/mpfr/x64-windows-dbg'; then true; else false; fi; }; then sane_makeflags=$MFLAGS; else case $MAKEFLAGS in *\\[\ \	]*) bs=\\; sane_makeflags=`printf '%s\n' "$MAKEFLAGS" | sed "s/$bs$bs[$bs $bs	]*//g"`;; esac; fi; skip_next=no; strip_trailopt () { flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`; }; for flg in $sane_makeflags; do test $skip_next = yes && { skip_next=no; continue; }; case $flg in *=*|--*) continue;; -*I) strip_trailopt 'I'; skip_next=yes;; -*I?*) strip_trailopt 'I';; -*O) strip_trailopt 'O'; skip_next=yes;; -*O?*) strip_trailopt 'O';; -*l) strip_trailopt 'l'; skip_next=yes;; -*l?*) strip_trailopt 'l';; -[dEDm]) skip_next=yes;; -[JT]) skip_next=yes;; esac; case $flg in *$target_option*) has_opt=yes; break;; esac; done; test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='doc src tests tune tools/bench' ;; \
  *) list='doc src tests tune tools/bench' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && /usr/bin/make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  /usr/bin/make  "$target-am" || exit 1; \
fi; test -z "$fail"
Making all in doc
make[1]: Entering directory '/c/dev/vcpkg/buildtrees/mpfr/x64-windows-dbg/doc'
Makefile:379: update target '.././../src/mpfr-4-8955d4bc66.clean/doc/mpfr.info' due to: .././../src/mpfr-4-8955d4bc66.clean/doc/texinfo.tex
restore=: && backupdir=".am$$" && \
am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd .././../src/mpfr-4-8955d4bc66.clean/doc && \
rm -rf $backupdir && mkdir $backupdir && \
if (/bin/sh /c/dev/vcpkg/buildtrees/mpfr/src/mpfr-4-8955d4bc66.clean/missing makeinfo --version) >/dev/null 2>&1; then \
  for f in .././../src/mpfr-4-8955d4bc66.clean/doc/mpfr.info .././../src/mpfr-4-8955d4bc66.clean/doc/mpfr.info-[0-9] .././../src/mpfr-4-8955d4bc66.clean/doc/mpfr.info-[0-9][0-9] .././../src/mpfr-4-8955d4bc66.clean/doc/mpfr.i[0-9] .././../src/mpfr-4-8955d4bc66.clean/doc/mpfr.i[0-9][0-9]; do \
    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
  done; \
else :; fi && \
cd "$am__cwd"; \
if /bin/sh /c/dev/vcpkg/buildtrees/mpfr/src/mpfr-4-8955d4bc66.clean/missing makeinfo  --enable-encoding -I .././../src/mpfr-4-8955d4bc66.clean/doc \
 -o .././../src/mpfr-4-8955d4bc66.clean/doc/mpfr.info .././../src/mpfr-4-8955d4bc66.clean/doc/mpfr.texi; \
then \
  rc=0; \
  CDPATH="${ZSH_VERSION+.}:" && cd .././../src/mpfr-4-8955d4bc66.clean/doc; \
else \
  rc=$?; \
  CDPATH="${ZSH_VERSION+.}:" && cd .././../src/mpfr-4-8955d4bc66.clean/doc && \
  $restore $backupdir/* `echo "./.././../src/mpfr-4-8955d4bc66.clean/doc/mpfr.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
make[1]: Leaving directory '/c/dev/vcpkg/buildtrees/mpfr/x64-windows-dbg/doc'
@JonLiu1993 JonLiu1993 self-assigned this Aug 4, 2021
@JonLiu1993 JonLiu1993 added the requires:repro The issue is not currently repro-able label Aug 4, 2021
@JonLiu1993 JonLiu1993 added category:port-bug The issue is with a library, which is something the port should already support and removed requires:repro The issue is not currently repro-able labels Aug 5, 2021
@JackBoosY
Copy link
Contributor

/usr/bin/perl: bad interpreter: No such file or directory
Ah, same reason with #19337. Will be fixed by #19325.

@JackBoosY JackBoosY added category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly and removed category:port-bug The issue is with a library, which is something the port should already support labels Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly
Projects
None yet
3 participants