[FFmpeg-trac] #9794(undetermined:open): ffmpeg failed to config on release configuration with MSVC on Windows (was: ffmpeg failed to build "C compiler test failed" with MSVC on Windows. Could you please help look at this issue?)

FFmpeg trac at avcodec.org
Thu May 26 13:37:45 EEST 2022


#9794: ffmpeg failed to config on release configuration with MSVC on Windows
-------------------------------------+-------------------------------------
             Reporter:  Yang Shino   |                    Owner:  (none)
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  arm          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by Yang Shino):

 * status:  new => open
 * summary:
     ffmpeg failed to build "C compiler test failed" with MSVC on Windows.
     Could you please help look at this issue?
     => ffmpeg failed to config on release configuration with MSVC on
     Windows


Old description:

> '''Repro steps:'''
> 1. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft
> Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat"
> -host_arch=amd64 -arch=arm64
> 2. git clone https://github.com/FFmpeg/FFmpeg F:\gitP\FFmpeg/FFmpeg
> 3. git -C "F:\gitP\FFmpeg\FFmpeg" reset --hard c523724
> 4. cd F:\gitP\FFmpeg\FFmpeg\..\
> 5. set FFMPEG_SRC_PATH=F:\gitP\FFmpeg\FFmpeg
> 6. set FFMPEG_FATE_PATH=../fate-suite/
> 7. set path=F:\gitP\FFmpeg\FFmpeg\..\tools;%PATH%
> 8. set MSYS2_PATH_TYPE=inherit
> 9. .\tools\msys32\usr\bin\sh.exe --login -i -c
> "/F/gitP/ffmpeg/tools/build.sh"
>
> '''Error message:'''
> cl.exe is unable to create an executable file.
> If cl.exe is a cross-compiler, use the --enable-cross-compile option.
> Only do this if you know what cross compiling means.
> C compiler test failed.
>
> If you think configure made a mistake, make sure you are using the latest
> version from Git.  If the latest version fails, report the problem to the
> ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
> Include the log file "ffbuild/config.log" produced by configure as this
> will help
> solve the problem.
> Failed to configure!

New description:

 '''Summary of the bug:'''
 ffmpeg failed to config on release|arm64 with MSVC on Windows. This issue
 can be reproduced from master revision c523724. Could you please help take
 a look at this? Thank you!
 '''Repro steps:'''
 1. Open a VS 2019 x64 prompt
 2. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft
 Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64
 -arch=arm64
 3. git clone https://github.com/FFmpeg/FFmpeg F:\gitP\FFmpeg/FFmpeg
 4. git -C "F:\gitP\FFmpeg\FFmpeg" reset --hard c523724
 5. cd F:\gitP\FFmpeg\FFmpeg\..\
 6. set FFMPEG_SRC_PATH=F:\gitP\FFmpeg\FFmpeg
 7. set FFMPEG_FATE_PATH=../fate-suite/
 8. set path=F:\gitP\FFmpeg\FFmpeg\..\tools;%PATH%
 9. set MSYS2_PATH_TYPE=inherit
 10. .\tools\msys32\usr\bin\sh.exe --login -i -c
 "/F/gitP/ffmpeg/tools/build.sh"

 '''Error message:'''
 cl.exe is unable to create an executable file.
 If cl.exe is a cross-compiler, use the --enable-cross-compile option.
 Only do this if you know what cross compiling means.
 C compiler test failed.

 If you think configure made a mistake, make sure you are using the latest
 version from Git.  If the latest version fails, report the problem to the
 ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
 Include the log file "ffbuild/config.log" produced by configure as this
 will help
 solve the problem.
 Failed to configure!

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9794#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list