m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.49k stars 257 forks source link

Build using fresh installation fails on libxml2 #2590

Closed Boulder08 closed 5 months ago

Boulder08 commented 5 months ago

I just did a fresh install of m-ab-s, but the build process fails on the first tool.

Starting 64bit compilation of all tools
Imported options from ffmpeg_options.txt
License: nonfree
Imported options from mpv_options.txt

        Starting 64bit compilation of global tools
├ Running download_rustup...
├ Running install_rust...
├ Stripping...
└ rustinstall  ................................................. [Updated]
├ Running rustup_update...
├ Running set_default_toolchain...
  Running git clone for libxml2...
  Running git update for libxml2...
┌ libxml2 git  ........................................ [Recently updated]
├ Running cmake...
Likely error (tail of the failed operation logfile):

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:13 (project)

-- Configuring incomplete, errors occurred!
cmake failed. Check C:/sources/mabs/build/libxml2-git/build-64bit/ab-suite.cmake.log
This is required for other packages, so this script will exit.
  Creating diagnostics file...

And the cmake log:

-- Check for working C compiler: C:/sources/mabs/msys64/mingw64/lib/ccache/bin/gcc.exe
-- Check for working C compiler: C:/sources/mabs/msys64/mingw64/lib/ccache/bin/gcc.exe - broken
CMake Error at C:/sources/mabs/msys64/mingw64/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "C:/sources/mabs/msys64/mingw64/lib/ccache/bin/gcc.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: 'C:/sources/mabs/build/libxml2-git/build-64bit/CMakeFiles/CMakeScratch/TryCompile-embq8f'

    Run Build Command(s): C:/sources/mabs/msys64/mingw64/bin/ninja.exe -v cmTC_97a15
    [1/2] C:\sources\mabs\msys64\mingw64\lib\ccache\bin\gcc.exe   -D_FORTIFY_SOURCE=2 -fstack-protector-strong -mtune=generic -O2 -pipe -D__USE_MINGW_ANSI_STDIO=1 -mthreads -o CMakeFiles\cmTC_97a15.dir\testCCompiler.c.o -c C:\sources\mabs\build\libxml2-git\build-64bit\CMakeFiles\CMakeScratch\TryCompile-embq8f\testCCompiler.c
    FAILED: CMakeFiles/cmTC_97a15.dir/testCCompiler.c.o 
    C:\sources\mabs\msys64\mingw64\lib\ccache\bin\gcc.exe   -D_FORTIFY_SOURCE=2 -fstack-protector-strong -mtune=generic -O2 -pipe -D__USE_MINGW_ANSI_STDIO=1 -mthreads -o CMakeFiles\cmTC_97a15.dir\testCCompiler.c.o -c C:\sources\mabs\build\libxml2-git\build-64bit\CMakeFiles\CMakeScratch\TryCompile-embq8f\testCCompiler.c
    ninja: build stopped: subcommand failed.

logs.zip

1480c1 commented 5 months ago

Can you try to see if it works on https://github.com/1480c1/media-autobuild_suite/tree/revert_ccache ?

Boulder08 commented 5 months ago

Yes, looks like that fix works.

1480c1 commented 5 months ago

Pushed https://github.com/m-ab-s/media-autobuild_suite/commit/6bbbdae9dfd52ef8af6784117f2830365c64a57a