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

x264 build failure - /usr/bin/bash -j invalid option #8473

Closed
ghost opened this issue Oct 6, 2019 · 20 comments · Fixed by #11836
Closed

x264 build failure - /usr/bin/bash -j invalid option #8473

ghost opened this issue Oct 6, 2019 · 20 comments · Fixed by #11836
Assignees
Labels
category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly

Comments

@ghost
Copy link

ghost commented Oct 6, 2019

Host Environment
-OS: Windows 10 1903 18362.388
-Compiler: VS2017 v15.9.16 and VS2019 v16.3.2

To Reproduce
Steps to reproduce the behavior:
./vcpkg install x264
(My default triplet is x64-windows and vcpkg is built using the -win64 option)

Failure logs
-Cut and past the appropriate build messages from the console output.

This is the same for both VS2017 and VS2019 except for the vcpkg directory

SYSTEM@ANDROMEDA 10/06/2019 18:30:59 D:\Git\vs2019
->vcpkg install x264
The following packages will be built and installed:
x264[core]:x64-windows
Starting package 1/1: x264:x64-windows
Building package x264[core]:x64-windows...
-- Using cached D:/Git/vcpkg.downloads/mirror-x264-303c484ec828ed0d8bfe743500e70314d026c3bd.tar.gz
-- Using source at D:/Git/vs2019/buildtrees/x264/src/14d026c3bd-bca2ebf740
-- Using generator make
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
Command failed: D:/Git/vcpkg.downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc -c -j 17 make
Working Directory: D:/Git/vs2019/buildtrees/x264/x64-windows-dbg
See logs for more information:
D:\Git\vs2019\buildtrees\x264\build-x64-windows-dbg-err.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_build_make.cmake:123 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_make.cmake:24 (vcpkg_build_make)
ports/x264/portfile.cmake:33 (vcpkg_install_make)
scripts/ports.cmake:94 (include)

Error: Building package x264: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: x264:x64-windows
Vcpkg version: 2019.09.12-nohash

Additionally, attach any relevant sections from the log files above.
build-x64-windows-dbg-err.log

-Please attach any additional failure logs mentioned in the console output.

Additional context
This is from the latest vcpkg "git pull" from git to my two different VCPKG roots, one for VS2017 and one for VS2019, performed at ~ 18:00 US Eastern Time.

@ghost ghost added the category:port-bug The issue is with a library, which is something the port should already support label Oct 6, 2019
@JackBoosY JackBoosY self-assigned this Oct 7, 2019
@MVoz
Copy link
Contributor

MVoz commented Oct 7, 2019

@JackBoosY

not correct
msys64/usr/bin/bash.exe --noprofile --norc -c -j 17 make

it must be
msys64/usr/bin/bash.exe --noprofile --norc -c make -j 17

72af04f

?
COMMAND ${MAKE} ${MAKE_OPTS} -j ${VCPKG_CONCURRENCY}

@oracleoftroy
Copy link
Contributor

I have the same error and have been looking into working around it. -j is an option for make, but is being passed into bash instead.

The issue stems from scripts/cmake/vcpkg_build_make.cmake lines 55 and 57-58, where the make command is being set in the options. When the make command is assembled on line 124, it sticks in some extra options in the wrong spot.

line 124: ${MAKE} -j ${VCPKG_CONCURRENCY} ${MAKE_OPTS}
expands to: path/to/bash.exe --noprofile --norc -c -j <some number> make
instead of : path/to/bash.exe --noprofile --norc -c make -j <some number>

I changed line 55 to:
set(MAKE ${BASH} --noprofile --norc -c ${_VCPKG_PROJECT_SUBPATH}make)

line 57-58 to:

set(MAKE_OPTS "")
set(INSTALL_OPTS "install")

This gets around the error, though it might be better to move the -j option to MAKE_OPTS instead of subverting the options and adding it willy-nilly like it currently does.

Sadly, the build still fails when trying to do the rename on line 37 of the portfile.cmake for x254

file(RENAME ${CURRENT_PACKAGES_DIR}/bin/x264.exe ${CURRENT_PACKAGES_DIR}/tools/x264/x264.exe)

The error is

file RENAME failed to rename

    D:/Tools/vcpkg/packages/x264_x64-windows/bin/x264.exe

  to

    D:/Tools/vcpkg/packages/x264_x64-windows/tools/x264/x264.exe

  because: File exists

I find this odd because the x264_x64-windows\tools\x264 directory is completely empty, so I'm not sure what file it thinks exists. I also do not have a x264_x64-windows/bin directory.

@Christsnatcher
Copy link

Christsnatcher commented Oct 10, 2019

I just updated vcpkg and - out of curiousity - tried to install x264, now getting the same error message as @oracleoftroy:

For x86-windows:

D:\Code\Repos\vcpkg>vcpkg install x264
The following packages will be built and installed:
    x264[core]:x86-windows
Starting package 1/1: x264:x86-windows
Building package x264[core]:x86-windows...
-- Using cached D:/Code/Repos/vcpkg/downloads/mirror-x264-303c484ec828ed0d8bfe743500e70314d026c3bd.tar.gz
-- Using source at D:/Code/Repos/vcpkg/buildtrees/x264/src/14d026c3bd-bca2ebf740
-- Using generator make
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x86-windows-dbg
-- Configuring x86-windows-rel
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Installing x86-windows-dbg
-- Installing x86-windows-rel
CMake Error at ports/x264/portfile.cmake:37 (file):
  file RENAME failed to rename

    D:/Code/Repos/vcpkg/packages/x264_x86-windows/bin/x264.exe

  to

    D:/Code/Repos/vcpkg/packages/x264_x86-windows/tools/x264/x264.exe

  because: File exists

Call Stack (most recent call first):
  scripts/ports.cmake:94 (include)

For x64-windows:

D:\Code\Repos\vcpkg>vcpkg install x264:x64-windows
Your feedback is important to improve Vcpkg! Please take 3 minutes to complete our survey by running: vcpk
The following packages will be built and installed:
    x264[core]:x64-windows
Starting package 1/1: x264:x64-windows
Building package x264[core]:x64-windows...
-- Using cached D:/Code/Repos/vcpkg/downloads/mirror-x264-303c484ec828ed0d8bfe743500e70314d026c3bd.tar.gz
-- Using source at D:/Code/Repos/vcpkg/buildtrees/x264/src/14d026c3bd-bca2ebf740
-- Using generator make
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing x64-windows-dbg
-- Installing x64-windows-rel
CMake Error at ports/x264/portfile.cmake:37 (file):
  file RENAME failed to rename

    D:/Code/Repos/vcpkg/packages/x264_x64-windows/bin/x264.exe

  to

    D:/Code/Repos/vcpkg/packages/x264_x64-windows/tools/x264/x264.exe

  because: File exists

Call Stack (most recent call first):
  scripts/ports.cmake:94 (include)

The "tools" directory stays empty during the building process, neither an "x264" subfolder nor an x264.exe are present there at any time, so I honestly don't know why the rename command fails. Maybe "copy" would be better here?

@spindensity
Copy link

After updating vcpkg, getting the same problem here.

Stdout

Building package x264[core]:x64-windows...
-- Using cached D:/Repository/vcpkg/downloads/mirror-x264-303c484ec828ed0d8bfe743500e70314d026c3bd.tar.gz
-- Using source at D:/Repository/vcpkg/buildtrees/x264/src/14d026c3bd-bca2ebf740
-- Using generator make
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing x64-windows-dbg
-- Installing x64-windows-rel
CMake Error at ports/x264/portfile.cmake:37 (file):
  file RENAME failed to rename

    D:/Repository/vcpkg/packages/x264_x64-windows/bin/x264.exe

  to

    D:/Repository/vcpkg/packages/x264_x64-windows/tools/x264/x264.exe

  because: File exists

Call Stack (most recent call first):
  scripts/ports.cmake:94 (include)


Error: Building package x264:x64-windows failed with: BUILD_FAILED

@JackBoosY
Copy link
Contributor

make: Nothing to be done for 'default'. I'm looking into it.

@jasjuang
Copy link
Contributor

Just ran into the same problem and looking forward to the fix

@JackBoosY
Copy link
Contributor

Hi @timautry, thanks for reporting this issue.
I've fixed it, please update vcpkg and rebuild x264.

Thanks.

@ghost
Copy link
Author

ghost commented Oct 22, 2019

Thank you @JackBoosY - works great on both latest builds of VS2017 and VS2019 - super work and I appreciate it very much. Take care and have a wonderful week!!!

@VFoV
Copy link

VFoV commented Jul 6, 2020

I'm coming across a similar error message when trying to build x264. Let me know if I should post this as a new issue, I suspect it will be an easy fix as I am a novice and unfamiliar with compilers.

OS: Windows 10 1909
Compiler: VS 2019 16.6.3

C:\vcpkg-master> .\vcpkg install x264
Computing installation plan...
The following packages will be built and installed:
x264[core]:x86-windows
Starting package 1/1: x264:x86-windows
Building package x264[core]:x86-windows...
-- Using cached C:/vcpkg-master/downloads/mirror-x264-303c484ec828ed0d8bfe743500e70314d026c3bd.tar.gz
-- Using source at C:/vcpkg-master/buildtrees/x264/src/14d026c3bd-bca2ebf740
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x86-windows-dbg
-- Configuring x86-windows-rel
-- Building x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
Command failed: C:/vcpkg-master/downloads/tools/msys2/msys64/usr/bin/make.exe -j 9 --trace -f Makefile all
Working Directory: C:/vcpkg-master/buildtrees/x264/x86-windows-dbg
See logs for more information:
C:\vcpkg-master\buildtrees\x264\build-x86-windows-dbg-out.log
C:\vcpkg-master\buildtrees\x264\build-x86-windows-dbg-err.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_build_make.cmake:200 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_make.cmake:24 (vcpkg_build_make)
ports/x264/portfile.cmake:29 (vcpkg_install_make)
scripts/ports.cmake:76 (include)

Error: Building package x264:x86-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: x264:x86-windows
Vcpkg version: 2020.02.04-nohash

Additionally, attach any relevant sections from the log files above.
build-x86-windows-dbg-out.log
build-x86-windows-dbg-err.log

@JackBoosY
Copy link
Contributor

@VFoV Can you make sure your vcpkg is latest?

@VFoV
Copy link

VFoV commented Jul 7, 2020

@VFoV Can you make sure your vcpkg is latest?

Hello, I re-cloned vcpkg from the github page, re-ran the boostrapping and integration then ran .\vcpkg update. I then ran the x264 install again and got this error:

Starting package 68/79: x264:x64-windows
Building package x264[core]:x64-windows...
-- Downloading https://github.com/mirror/x264/archive/303c484ec828ed0d8bfe743500e70314d026c3bd.tar.gz...
-- Extracting source C:/vcpkg/downloads/mirror-x264-303c484ec828ed0d8bfe743500e70314d026c3bd.tar.gz
-- Applying patch uwp-cflags.patch
-- Using source at C:/vcpkg/buildtrees/x264/src/14d026c3bd-bca2ebf740
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
Command failed: C:/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc --debug -c " CC='C:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile cl.exe -nologo' CXX='C:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile cl.exe -nologo' LD='link.exe -verbose' AR='C:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/ar-lib lib.exe -verbose' RANLIB=':' CCAS=':' NM='dumpbin.exe -symbols -headers -all' DLLTOOL='link.exe -verbose -dll' ./../src/14d026c3bd-bca2ebf740/configure --build=x86_64-pc-mingw32 --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32 --enable-strip --disable-lavf --disable-swscale --disable-avs --disable-ffms --disable-gpac --disable-lsmash --disable-asm --enable-debug --disable-silent-rules --verbose --enable-shared --disable-static --prefix=/C/vcpkg/installed/x64-windows/debug --bindir='${prefix}'/../tools/x264/debug/bin --sbindir='${prefix}'/../tools/x264/debug/sbin --includedir='${prefix}'/../include --datarootdir='${prefix}'/share/x264"
Working Directory: C:/vcpkg/buildtrees/x264/x64-windows-dbg
Error code: 1
See logs for more information:
C:\vcpkg\buildtrees\x264\config-x64-windows-dbg-out.log
config-x64-windows-dbg-out.log
config.log

@Christsnatcher
Copy link

Christsnatcher commented Jul 7, 2020

Hello,

I'm back to this topic because I run into the very same issue as described by @VFoV when trying to build x264 x86 / x64 via vcpkg, here're the error messages:

x86-windows:

D:\Code\Repos\vcpkg>vcpkg install x264:x86-windows
Computing installation plan...
The following packages will be built and installed:
    x264[core]:x86-windows
Starting package 1/1: x264:x86-windows
Building package x264[core]:x86-windows...
-- Downloading https://github.com/mirror/x264/archive/303c484ec828ed0d8bfe743500e70314d026c3bd.tar.gz...
-- Extracting source D:/Code/Repos/vcpkg/downloads/mirror-x264-303c484ec828ed0d8bfe743500e70314d026c3bd.tar.gz
-- Applying patch uwp-cflags.patch
-- Using source at D:/Code/Repos/vcpkg/buildtrees/x264/src/14d026c3bd-bca2ebf740
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
    Command failed: D:/Code/Repos/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc --debug -c " CC='D:/Code/Repos/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile cl.exe -nologo' CXX='D:/Code/Repos/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile cl.exe -nologo' LD='link.exe -verbose' AR='D:/Code/Repos/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/ar-lib lib.exe -verbose' RANLIB=':' CCAS=':' NM='dumpbin.exe -symbols -headers -all' DLLTOOL='link.exe -verbose -dll' ./../src/14d026c3bd-bca2ebf740/configure --build=x86_64-pc-mingw32 --target=i686-pc-mingw32 --host=i686-pc-mingw32 --enable-strip --disable-lavf --disable-swscale --disable-avs --disable-ffms --disable-gpac --disable-lsmash --disable-asm --enable-debug --disable-silent-rules --verbose --enable-shared --disable-static --prefix=/D/Code/Repos/vcpkg/installed/x86-windows/debug --bindir='${prefix}'/../tools/x264/debug/bin --sbindir='${prefix}'/../tools/x264/deb
ug/sbin --includedir='${prefix}'/../include --datarootdir='${prefix}'/share/x264"
    Working Directory: D:/Code/Repos/vcpkg/buildtrees/x264/x86-windows-dbg
    Error code: 1
    See logs for more information:
      D:\Code\Repos\vcpkg\buildtrees\x264\config-x86-windows-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:461 (vcpkg_execute_required_process)
  ports/x264/portfile.cmake:15 (vcpkg_configure_make)
  scripts/ports.cmake:76 (include)


Error: Building package x264:x86-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: x264:x86-windows
  Vcpkg version: 2020.06.15-nohash

x64-windows:

D:\Code\Repos\vcpkg>vcpkg install x264:x64-windows
Computing installation plan...
The following packages will be built and installed:
    x264[core]:x64-windows
Starting package 1/1: x264:x64-windows
Building package x264[core]:x64-windows...
-- Using cached D:/Code/Repos/vcpkg/downloads/mirror-x264-303c484ec828ed0d8bfe743500e70314d026c3bd.tar.gz
-- Using source at D:/Code/Repos/vcpkg/buildtrees/x264/src/14d026c3bd-bca2ebf740
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
    Command failed: D:/Code/Repos/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc --debug -c " CC='D:/Code/Repos/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile cl.exe -nologo' CXX='D:/Code/Repos/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile cl.exe -nologo' LD='link.exe -verbose' AR='D:/Code/Repos/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/ar-lib lib.exe -verbose' RANLIB=':' CCAS=':' NM='dumpbin.exe -symbols -headers -all' DLLTOOL='link.exe -verbose -dll' ./../src/14d026c3bd-bca2ebf740/configure --build=x86_64-pc-mingw32 --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32 --enable-strip --disable-lavf --disable-swscale --disable-avs --disable-ffms --disable-gpac --disable-lsmash --disable-asm --enable-debug --disable-silent-rules --verbose --enable-shared --disable-static --prefix=/D/Code/Repos/vcpkg/installed/x64-windows/debug --bindir='${prefix}'/../tools/x264/debug/bin --sbindir='${prefix}'/../tools/x264
/debug/sbin --includedir='${prefix}'/../include --datarootdir='${prefix}'/share/x264"
    Working Directory: D:/Code/Repos/vcpkg/buildtrees/x264/x64-windows-dbg
    Error code: 1
    See logs for more information:
      D:\Code\Repos\vcpkg\buildtrees\x264\config-x64-windows-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:461 (vcpkg_execute_required_process)
  ports/x264/portfile.cmake:15 (vcpkg_configure_make)
  scripts/ports.cmake:76 (include)


Error: Building package x264: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: x264:x64-windows
  Vcpkg version: 2020.06.15-nohash

It looks as if configure arguments were passed to link.exe instead, but apparently the src itself is flawed: I tried to build the program using my personal MSYS2 installation and x86 failed with exactly the same "No C compiler found" error when running ./configure, while the x64 build succeeded. Maybe x264 does not support 32-bit builds in the first place? But even if that would be true it would unfortunately not explain why the x64-windows build also fails with vcpkg. Find all my logs attached, thank you!
x264.zip

-- Edit --

I apparently was wrong with my assumptions, the src is fine, but you have to pass the correct --host triplet argument to configure, which is either i686-w64-mingw32 for x86 or x86_64-w64-mingw32 for x64, because config.guess does not get them right, at least not the 32-bit one in my case.

So the actual culprit is the resp. portfile.cmake, which specifies configure options which do not exist for this particular x264 configure script. Check yourself by running ./configure --help, you won't find any of the specified options in the list. This obviously leads to the errors we encounter, as shown here:

Unknown option --build=x86_64-pc-mingw32, ignored
Unknown option --target=x86_64-pc-mingw32, ignored
Unknown option --disable-silent-rules, ignored
Unknown option --verbose, ignored
Unknown option --disable-static, ignored
Unknown option --sbindir=${prefix}/../tools/x264/debug/sbin, ignored
Unknown option --datarootdir=${prefix}/share/x264, ignored

All these options actually are "unknown" to the x264 configure script used in the src package which vcpkg downloads, so it's just logical that it has to fail in finding an appropriate compiler.

@JackBoosY JackBoosY reopened this Jul 8, 2020
@JackBoosY
Copy link
Contributor

In config.log:

checking for -Werror=unknown-warning-option... no
Failed commandline was:
--------------------------------------------------
F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile cl.exe -nologo conftest.c  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I$(SRCPATH) -D_POSIX_C_SOURCE=200112L  -Werror=unknown-warning-option  -LF:/vcpkg/installed/x86-windows/debug/lib -VERBOSE -no-undefined -machine:x86  -o conftest
./../src/14d026c3bd-bca2ebf740.clean/configure: line 158: F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile: No such file or directory
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main (void) {  return 0; }
--------------------------------------------------
checking for -lshell32... no
Failed commandline was:
--------------------------------------------------
F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile cl.exe -nologo conftest.c  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I$(SRCPATH) -D_POSIX_C_SOURCE=200112L  -lshell32  -LF:/vcpkg/installed/x86-windows/debug/lib -VERBOSE -no-undefined -machine:x86  -o conftest
./../src/14d026c3bd-bca2ebf740.clean/configure: line 158: F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile: No such file or directory
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main (void) {  return 0; }
--------------------------------------------------
checking whether windres works... no
Failed commandline was:
--------------------------------------------------
windres --target=pe-i386  -o conftest.o conftest.rc
/bin/sh: gcc: command not found
windres: preprocessing failed.
--------------------------------------------------
Failed program was:
--------------------------------------------------
0 RCDATA {0}
--------------------------------------------------
checking whether !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) is true... no
--------------------------------------------------
./../src/14d026c3bd-bca2ebf740.clean/configure: line 189: F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile: No such file or directory
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include <winapifamily.h>
#if !(!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) 
#error  
#endif 
--------------------------------------------------
x264 configure script
Command line options: "--build=i686-pc-mingw32" "--target=i686-pc-mingw32" "--host=i686-pc-mingw32" "--enable-strip" "--disable-lavf" "--disable-swscale" "--disable-avs" "--disable-ffms" "--disable-gpac" "--disable-lsmash" "--disable-asm" "--enable-debug" "--disable-silent-rules" "--verbose" "--enable-shared" "--disable-static" "--prefix=/F/vcpkg/installed/x86-windows/debug" "--bindir=${prefix}/../tools/x264/debug/bin" "--sbindir=${prefix}/../tools/x264/debug/sbin" "--includedir=${prefix}/../include" "--datarootdir=${prefix}/share/x264"

checking whether F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile cl.exe -nologo works... no
Failed commandline was:
--------------------------------------------------
F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile cl.exe -nologo conftest.c -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I$(SRCPATH) -D_POSIX_C_SOURCE=200112L    -m32 -LF:/vcpkg/installed/x86-windows/debug/lib -VERBOSE -no-undefined -machine:x86   -Wl,--large-address-aware -Wl,--dynamicbase,--nxcompat,--tsaware -o conftest
./../src/14d026c3bd-bca2ebf740.clean/configure: line 158: F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile: No such file or directory
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main (void) {  return 0; }
--------------------------------------------------
DIED: No working C compiler found.

@Neumann-A Could you please take a look?

Thanks.

@JackBoosY
Copy link
Contributor

JackBoosY commented Jul 9, 2020

F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.16/compile: No such file or directory

Only have F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15 on my machine.

After changing automake-1.16 to automake-1.15, still have other build errors:

dependency file generation...
F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./common/osdep.c -MT common/osdep.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./common/base.c -MT common/base.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./common/cpu.c -MT common/cpu.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./common/tables.c -MT common/tables.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./encoder/api.c -MT encoder/api.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./common/win32thread.c -MT common/win32thread.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./x264.c -MT x264.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./input/input.c -MT input/input.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./input/timecode.c -MT input/timecode.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./input/raw.c -MT input/raw.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./input/y4m.c -MT input/y4m.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./output/raw.c -MT output/raw.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./output/matroska.c -MT output/matroska.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./output/matroska_ebml.c -MT output/matroska_ebml.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./output/flv.c -MT output/flv.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./output/flv_bytestream.c -MT output/flv_bytestream.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./filters/filters.c -MT filters/filters.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./filters/video/video.c -MT filters/video/video.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./filters/video/source.c -MT filters/video/source.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./filters/video/internal.c -MT filters/video/internal.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./filters/video/resize.c -MT filters/video/resize.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./filters/video/fix_vfr_pts.c -MT filters/video/fix_vfr_pts.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./filters/video/select_every.c -MT filters/video/select_every.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./filters/video/crop.c -MT filters/video/crop.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./x264dll.c -MT x264dll.o -MM -g0 1>> .depend;  F:/vcpkg/downloads/tools/msys2/msys64/usr/share/automake-1.15/compile cl.exe -nologo -O1 -g -m32  -D_WIN32_WINNT=0x0601 -DWIN32_LEAN_AND_MEAN -DWIN32 -D_WINDOWS -MDd -D_DEBUG -Ob0 -Od  -Wall -I. -I. -D_POSIX_C_SOURCE=200112L -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=6 -fno-tree-vectorize -fno-zero-initialized-in-bss ./example.c -MT example.o -MM -g0 1>> .depend;
make: *** [Makefile:313: .depend] Error 2

@JackBoosY
Copy link
Contributor

I think #11836 should fix this issue.

@JackBoosY JackBoosY linked a pull request Jul 9, 2020 that will close this issue
@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 Jul 9, 2020
@Christsnatcher
Copy link

Looks good, let's hope for the best. Thank you all very much!

@ghost
Copy link
Author

ghost commented Jul 14, 2020

I close, I no longer use product.

@ghost ghost closed this as completed Jul 14, 2020
@Christsnatcher
Copy link

Christsnatcher commented Jul 14, 2020

Well, but other people, e.g. myself still do, you know?

So please don't stop working on a fix, many thanks!

@JackBoosY JackBoosY reopened this Jul 14, 2020
@JackBoosY
Copy link
Contributor

@Christsnatcher Anyway, I'm still tracking this issue.

@Christsnatcher
Copy link

@JackBoosY Thank you very much, that's really appreciated.

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
Development

Successfully merging a pull request may close this issue.

7 participants