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

[libffi] Build error on x64-windows #39289

Open
patthoyts opened this issue Jun 14, 2024 · 1 comment
Open

[libffi] Build error on x64-windows #39289

patthoyts opened this issue Jun 14, 2024 · 1 comment
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@patthoyts
Copy link

Package: libffi:[email protected]

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.39.33523.0
  • vcpkg-tool version: 2024-06-10-02590c430e4ed9215d27870138c2e579cc338772
    vcpkg-scripts version: 02745e0 2024-06-13 (5 hours ago)

To Reproduce

vcpkg install libffi:x64-windows

Failure logs

-- Using cached libffi-3.4.6.tar.gz.
-- Cleaning sources at E:/Code/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source E:/Code/vcpkg/downloads/libffi-3.4.6.tar.gz
-- Applying patch dll-bindir.diff
-- Using source at E:/Code/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Getting CMake variables for x64-windows
-- Using cached msys2-autoconf-wrapper-20221207-1-any.pkg.tar.zst.
-- Using cached msys2-automake-wrapper-20221207-2-any.pkg.tar.zst.
-- Using cached msys2-binutils-2.42-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libtool-2.4.7-3-x86_64.pkg.tar.zst.
-- Using cached msys2-make-4.4.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-2.1.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-which-2.21-4-x86_64.pkg.tar.zst.
-- Using cached msys2-bash-5.2.026-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.45-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst.
-- Using cached msys2-gzip-1.13-1-x86_64.pkg.tar.zst.
-- Using cached msys2-diffutils-3.10-1-x86_64.pkg.tar.zst.
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst.
-- Using cached msys2-autoconf2.71-2.71-3-any.pkg.tar.zst.
-- Using cached msys2-automake1.16-1.16.5-1-any.pkg.tar.zst.
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libintl-0.22.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-zlib-1.3.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-tar-1.35-2-x86_64.pkg.tar.zst.
-- Using cached msys2-findutils-4.10.0-2-x86_64.pkg.tar.zst.
-- Using cached msys2-gmp-6.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gcc-libs-13.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst.
-- Using cached msys2-liblzma-5.6.2-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libzstd-1.5.6-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libreadline-8.2.010-1-x86_64.pkg.tar.zst.
-- Using cached msys2-mpfr-4.2.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libpcre-8.45-4-x86_64.pkg.tar.zst.
-- Using cached msys2-m4-1.4.19-2-x86_64.pkg.tar.zst.
-- Using cached msys2-perl-5.38.2-2-x86_64.pkg.tar.zst.
-- Using cached msys2-ncurses-6.5-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libxcrypt-4.4.36-1-x86_64.pkg.tar.zst.
-- Using msys root at E:/Code/vcpkg/downloads/tools/msys2/212eb2bc95cd8a82
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst.
-- Using msys root at E:/Code/vcpkg/downloads/tools/msys2/1e74ca60daa10104
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Building x64-windows-dbg
CMake Warning at scripts/cmake/vcpkg_execute_build_process.cmake:65 (message):
  Please ensure your system has sufficient memory.
Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_make.cmake:136 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_make.cmake:2 (vcpkg_build_make)
  ports/libffi/portfile.cmake:60 (vcpkg_install_make)
  scripts/ports.cmake:175 (include)


-- Restarting build without parallelism
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: E:/Code/vcpkg/downloads/tools/msys2/212eb2bc95cd8a82/usr/bin/make.exe -j 8 --trace -f Makefile all
    Working Directory: E:/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/
    See logs for more information:
      E:\Code\vcpkg\buildtrees\libffi\build-x64-windows-dbg-out.log
      E:\Code\vcpkg\buildtrees\libffi\build-x64-windows-dbg-err.log
      E:\Code\vcpkg\buildtrees\libffi\build-x64-windows-dbg-out-1.log
      E:\Code\vcpkg\buildtrees\libffi\build-x64-windows-dbg-err-1.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_make.cmake:136 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_make.cmake:2 (vcpkg_build_make)
  ports/libffi/portfile.cmake:60 (vcpkg_install_make)
  scripts/ports.cmake:175 (include)



E:\Code\vcpkg\buildtrees\libffi\build-x64-windows-dbg-err-1.log
make[2]: *** [Makefile:1117: libffi_convenience.la] Error 157
make[1]: *** [Makefile:1414: all-recursive] Error 1
make: *** [Makefile:627: all] Error 2
E:\Code\vcpkg\buildtrees\libffi\build-x64-windows-dbg-err.log
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
cl : Command line warning D9024 : unrecognized source file type './../src/libffi-3-5867c437e9.clean/src/x86/win64_intel.S', object file assumed
cl : Command line warning D9027 : source file './../src/libffi-3-5867c437e9.clean/src/x86/win64_intel.S' ignored
make[2]: *** [Makefile:1117: libffi_convenience.la] Error 157
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:1114: libffi.la] Error 2
make[1]: *** [Makefile:1414: all-recursive] Error 1
make: *** [Makefile:627: all] Error 2
E:\Code\vcpkg\buildtrees\libffi\build-x64-windows-dbg-out-1.log
Makefile:666: update target 'fficonfig.h' due to: stamp-h1
test -f fficonfig.h || rm -f stamp-h1
test -f fficonfig.h || /usr/bin/make  stamp-h1
Makefile:627: update target 'all' due to: target is .PHONY
/usr/bin/make  all-recursive
make[1]: Entering directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg'
Makefile:1414: update target 'all-recursive' due to: target is .PHONY
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 '1'; then false; elif test -n 'x86_64-pc-msys'; then true; elif test -n '4.4.1' && test -n '/e/Code/vcpkg/buildtrees/libffi/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='include testsuite man doc' ;; \
  *) list='include testsuite man ' ;; \
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 include
make[2]: Entering directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/include'
Making all in testsuite
make[2]: Entering directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/testsuite'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/testsuite'
Making all in man
make[2]: Entering directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/man'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/man'
make[2]: Entering directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg'
Makefile:1117: update target 'libffi_convenience.la' due to: target does not exist
/bin/sh ./libtool  --tag=CC   --mode=link compile cl.exe  -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL  -Xlinker -Xlinker -Xlinker -LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib -Xlinker -Xlinker -Xlinker -LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib/manual-link -Xlinker -Xlinker -Xlinker -machine:x64 -Xlinker -Xlinker -Xlinker -nologo -Xlinker -Xlinker -Xlinker -debug -Xlinker -Xlinker -Xlinker -INCREMENTAL -o libffi_convenience.la  src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo src/tramp.lo   src/x86/ffiw64.lo src/x86/win64_intel.lo -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -lcomdlg32 -ladvapi32
libtool: link: ar-lib lib.exe cr .libs/ffi_convenience.lib src/.libs/prep_cif.obj src/.libs/types.obj src/.libs/raw_api.obj src/.libs/java_raw_api.obj src/.libs/closures.obj src/.libs/tramp.obj src/x86/.libs/ffiw64.obj src/x86/.libs/win64_intel.obj 
LINK : fatal error LNK1181: cannot open input file 'src\x86\.libs\win64_intel.obj'
make[2]: Leaving directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg'
make[1]: Leaving directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg'
E:\Code\vcpkg\buildtrees\libffi\build-x64-windows-dbg-out.log
Makefile:666: update target 'fficonfig.h' due to: stamp-h1
test -f fficonfig.h || rm -f stamp-h1
test -f fficonfig.h || /usr/bin/make  stamp-h1
Makefile:627: update target 'all' due to: target is .PHONY
/usr/bin/make  all-recursive
make[1]: Entering directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg'
Makefile:1414: update target 'all-recursive' due to: target is .PHONY
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 '1'; then false; elif test -n 'x86_64-pc-msys'; then true; elif test -n '4.4.1' && test -n '/e/Code/vcpkg/buildtrees/libffi/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='include testsuite man doc' ;; \
  *) list='include testsuite man ' ;; \
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 include
make[2]: Entering directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/include'
Making all in testsuite
make[2]: Entering directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/testsuite'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/testsuite'
Making all in man
make[2]: Entering directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/man'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg/man'
make[2]: Entering directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg'
Makefile:728: update target 'src/.dirstamp' due to: target does not exist
/usr/bin/mkdir -p src
Makefile:731: update target 'src/.deps/.dirstamp' due to: target does not exist
/usr/bin/mkdir -p src/.deps
: > src/.dirstamp
: > src/.deps/.dirstamp
Makefile:1053: update target 'src/x86/.dirstamp' due to: target does not exist
/usr/bin/mkdir -p src/x86
Makefile:1056: update target 'src/x86/.deps/.dirstamp' due to: target does not exist
/usr/bin/mkdir -p src/x86/.deps
: > src/x86/.deps/.dirstamp
: > src/x86/.dirstamp
Makefile:666: update target 'fficonfig.h' due to: stamp-h1
test -f fficonfig.h || rm -f stamp-h1
Makefile:1339: update target 'src/prep_cif.lo' due to: target does not exist
source='./../src/libffi-3-5867c437e9.clean/src/prep_cif.c' object='src/prep_cif.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./../src/libffi-3-5867c437e9.clean/depcomp \
/bin/sh ./libtool  --tag=CC   --mode=compile compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -D_DEBUG  -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL -c -o src/prep_cif.lo ./../src/libffi-3-5867c437e9.clean/src/prep_cif.c
Makefile:1339: update target 'src/types.lo' due to: target does not exist
source='./../src/libffi-3-5867c437e9.clean/src/types.c' object='src/types.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./../src/libffi-3-5867c437e9.clean/depcomp \
/bin/sh ./libtool  --tag=CC   --mode=compile compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -D_DEBUG  -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL -c -o src/types.lo ./../src/libffi-3-5867c437e9.clean/src/types.c
Makefile:1339: update target 'src/raw_api.lo' due to: target does not exist
source='./../src/libffi-3-5867c437e9.clean/src/raw_api.c' object='src/raw_api.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./../src/libffi-3-5867c437e9.clean/depcomp \
/bin/sh ./libtool  --tag=CC   --mode=compile compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -D_DEBUG  -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL -c -o src/raw_api.lo ./../src/libffi-3-5867c437e9.clean/src/raw_api.c
test -f fficonfig.h || /usr/bin/make  stamp-h1
Makefile:1339: update target 'src/java_raw_api.lo' due to: target does not exist
source='./../src/libffi-3-5867c437e9.clean/src/java_raw_api.c' object='src/java_raw_api.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./../src/libffi-3-5867c437e9.clean/depcomp \
/bin/sh ./libtool  --tag=CC   --mode=compile compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -D_DEBUG  -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL -c -o src/java_raw_api.lo ./../src/libffi-3-5867c437e9.clean/src/java_raw_api.c
Makefile:1339: update target 'src/closures.lo' due to: target does not exist
source='./../src/libffi-3-5867c437e9.clean/src/closures.c' object='src/closures.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./../src/libffi-3-5867c437e9.clean/depcomp \
/bin/sh ./libtool  --tag=CC   --mode=compile compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -D_DEBUG  -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL -c -o src/closures.lo ./../src/libffi-3-5867c437e9.clean/src/closures.c
Makefile:1339: update target 'src/tramp.lo' due to: target does not exist
source='./../src/libffi-3-5867c437e9.clean/src/tramp.c' object='src/tramp.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./../src/libffi-3-5867c437e9.clean/depcomp \
/bin/sh ./libtool  --tag=CC   --mode=compile compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -D_DEBUG  -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL -c -o src/tramp.lo ./../src/libffi-3-5867c437e9.clean/src/tramp.c
Makefile:1339: update target 'src/x86/ffiw64.lo' due to: target does not exist
source='./../src/libffi-3-5867c437e9.clean/src/x86/ffiw64.c' object='src/x86/ffiw64.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./../src/libffi-3-5867c437e9.clean/depcomp \
/bin/sh ./libtool  --tag=CC   --mode=compile compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -D_DEBUG  -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL -c -o src/x86/ffiw64.lo ./../src/libffi-3-5867c437e9.clean/src/x86/ffiw64.c
Makefile:1315: update target 'src/x86/win64_intel.lo' due to: target does not exist
source='./../src/libffi-3-5867c437e9.clean/src/x86/win64_intel.S' object='src/x86/win64_intel.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./../src/libffi-3-5867c437e9.clean/depcomp \
/bin/sh ./libtool  --tag=CC   --mode=compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -D_DEBUG -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL -c -o src/x86/win64_intel.lo ./../src/libffi-3-5867c437e9.clean/src/x86/win64_intel.S
libtool: compile:  compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 -D_DEBUG -DFFI_BUILDING_DLL -c -showIncludes ./../src/libffi-3-5867c437e9.clean/src/prep_cif.c  -DDLL_EXPORT -DPIC -o src/.libs/prep_cif.obj
prep_cif.c
libtool: compile:  compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 -D_DEBUG -DFFI_BUILDING_DLL -c -showIncludes ./../src/libffi-3-5867c437e9.clean/src/types.c  -DDLL_EXPORT -DPIC -o src/.libs/types.obj
types.c
libtool: compile:  compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 -D_DEBUG -DFFI_BUILDING_DLL -c -showIncludes ./../src/libffi-3-5867c437e9.clean/src/raw_api.c  -DDLL_EXPORT -DPIC -o src/.libs/raw_api.obj
raw_api.c
libtool: compile:  compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 -D_DEBUG -DFFI_BUILDING_DLL -c -showIncludes ./../src/libffi-3-5867c437e9.clean/src/java_raw_api.c  -DDLL_EXPORT -DPIC -o src/.libs/java_raw_api.obj
java_raw_api.c
libtool: compile:  cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -D_DEBUG -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 -I./../src/libffi-3-5867c437e9.clean/src -DFFI_BUILDING_DLL -c -showIncludes ./../src/libffi-3-5867c437e9.clean/src/x86/win64_intel.S  -DDLL_EXPORT -DPIC -o src/x86/.libs/win64_intel.obj
cl : Command line warning D9021 : no action performed
libtool: compile:  compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 -D_DEBUG -DFFI_BUILDING_DLL -c -showIncludes ./../src/libffi-3-5867c437e9.clean/src/tramp.c  -DDLL_EXPORT -DPIC -o src/.libs/tramp.obj
tramp.c
libtool: compile:  compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 -D_DEBUG -DFFI_BUILDING_DLL -c -showIncludes ./../src/libffi-3-5867c437e9.clean/src/x86/ffiw64.c  -DDLL_EXPORT -DPIC -o src/x86/.libs/ffiw64.obj
ffiw64.c
./../src/libffi-3-5867c437e9.clean/src/x86/ffiw64.c(136): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
libtool: compile:  compile cl.exe -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -DWIN32 -D_WINDOWS -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 -D_DEBUG -DFFI_BUILDING_DLL -c -showIncludes ./../src/libffi-3-5867c437e9.clean/src/closures.c  -DDLL_EXPORT -DPIC -o src/.libs/closures.obj
closures.c
Makefile:1117: update target 'libffi_convenience.la' due to: target does not exist
/bin/sh ./libtool  --tag=CC   --mode=link compile cl.exe  -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL  -Xlinker -Xlinker -Xlinker -LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib -Xlinker -Xlinker -Xlinker -LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib/manual-link -Xlinker -Xlinker -Xlinker -machine:x64 -Xlinker -Xlinker -Xlinker -nologo -Xlinker -Xlinker -Xlinker -debug -Xlinker -Xlinker -Xlinker -INCREMENTAL -o libffi_convenience.la  src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo src/tramp.lo   src/x86/ffiw64.lo src/x86/win64_intel.lo -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -lcomdlg32 -ladvapi32
Makefile:1114: update target 'libffi.la' due to: target does not exist
/bin/sh ./libtool  --tag=CC   --mode=link compile cl.exe  -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL -no-undefined -version-info `grep -v '^#' ./../src/libffi-3-5867c437e9.clean/libtool-version`   '-Xlinker' '-Xlinker' '-Xlinker' '-LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib' '-Xlinker' '-Xlinker' '-Xlinker' '-LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib/manual-link' '-Xlinker' '-Xlinker' '-Xlinker' '-machine:x64' '-Xlinker' '-Xlinker' '-Xlinker' '-nologo' '-Xlinker' '-Xlinker' '-Xlinker' '-debug' '-Xlinker' '-Xlinker' '-Xlinker' '-INCREMENTAL' -no-undefined -Xlinker -Xlinker -Xlinker -LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib -Xlinker -Xlinker -Xlinker -LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib/manual-link -Xlinker -Xlinker -Xlinker -machine:x64 -Xlinker -Xlinker -Xlinker -nologo -Xlinker -Xlinker -Xlinker -debug -Xlinker -Xlinker -Xlinker -INCREMENTAL -o libffi.la -rpath /E/Code/vcpkg/installed/x64-windows/debug/lib src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo src/tramp.lo  src/x86/ffiw64.lo src/x86/win64_intel.lo -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -lcomdlg32 -ladvapi32
libtool: link: ar-lib lib.exe cr .libs/ffi_convenience.lib src/.libs/prep_cif.obj src/.libs/types.obj src/.libs/raw_api.obj src/.libs/java_raw_api.obj src/.libs/closures.obj src/.libs/tramp.obj src/x86/.libs/ffiw64.obj src/x86/.libs/win64_intel.obj 
LINK : fatal error LNK1181: cannot open input file 'src\x86\.libs\win64_intel.obj'
libtool: link: dumpbin.exe -symbols -headers  src/.libs/prep_cif.obj src/.libs/types.obj src/.libs/raw_api.obj src/.libs/java_raw_api.obj src/.libs/closures.obj src/.libs/tramp.obj src/x86/.libs/ffiw64.obj src/x86/.libs/win64_intel.obj   | gawk '     {last_section=section; section=$ 3};     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};     /^ *Symbol name *: /{split($ 0,sn,":"); si=substr(sn[2],2)};     /^ *Type *: code/{print "T",si,substr(si,length(prfx))};     /^ *Type *: data/{print "I",si,substr(si,length(prfx))};     $ 0!~/External *\|/{next};     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};     {if(hide[section]) next};     {f="D"}; $ 0~/\(\).*\|/{f="T"};     {split($ 0,a,/\||\r/); split(a[2],s)};     s[1]~/^[@?]/{print f,s[1],s[1]; next};     s[1]~prfx {split(s[1],t,"@"); print f,t[1],substr(t[1],length(prfx))}     ' prfx=^ | /usr/bin/sed '/ __gnu_lto/d' | /usr/bin/sed -e '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/' | /usr/bin/sed -e '/^[AITW][ ]/s/.*[ ]//' | sort | uniq > .libs/ffi.exp
libtool: link: if test DEF = "`/usr/bin/sed -n -e 's/^[	 ]*//' -e '/^\(;.*\)*$/d' -e 's/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p' -e q .libs/ffi.exp`" ; then cp ".libs/ffi.exp" ".libs/ffi-8.dll.def"; echo ".libs\\ffi-8.dll.def" > ".libs/ffi-8.dll.exp"; else /usr/bin/sed -e 's/^/-link -EXPORT:/' < .libs/ffi.exp > .libs/ffi-8.dll.exp; fi
libtool: link:  compile cl.exe -o .libs\\ffi-8.dll  src/.libs/prep_cif.obj src/.libs/types.obj src/.libs/raw_api.obj src/.libs/java_raw_api.obj src/.libs/closures.obj src/.libs/tramp.obj src/x86/.libs/ffiw64.obj src/x86/.libs/win64_intel.obj   -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 -Xlinker -LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib -Xlinker -LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib/manual-link -Xlinker -machine:x64 -Xlinker -nologo -Xlinker -debug -Xlinker -INCREMENTAL -Xlinker -LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib -Xlinker -LIBPATH:E:/Code/vcpkg/installed/x64-windows/debug/lib/manual-link -Xlinker -machine:x64 -Xlinker -nologo -Xlinker -debug -Xlinker -INCREMENTAL    -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -lcomdlg32 -ladvapi32 "@.libs\\ffi-8.dll.exp" -Wl,-DLL,-IMPLIB:".libs\\ffi.lib"
LINK : fatal error LNK1104: cannot open file 'src\x86\.libs\win64_intel.obj'
make[2]: Leaving directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg'
make[1]: Leaving directory '/e/Code/vcpkg/buildtrees/libffi/x64-windows-dbg'
@JonLiu1993 JonLiu1993 self-assigned this Jun 14, 2024
@JonLiu1993 JonLiu1993 added the requires:repro The issue is not currently repro-able label Jun 14, 2024
@JonLiu1993
Copy link
Member

@patthoyts, I can't reproduce your error. You can try these two aspects:

  1. Are you using antivirus software? If yes, please turn it off and try again.
  2. Please delete the '.' in the /.libs/ file name and try again
LINK : fatal error LNK1181: cannot open input file 'src\x86\.libs\win64_intel.obj'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

2 participants