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

compile libxml2 fail #2636

Closed mojie126 closed 2 months ago

mojie126 commented 2 months ago

It seems that when compiling the first library, it reported an error and exited...

微信截图_20240413092724

logs.zip

mojie126 commented 2 months ago

By the way, when I asked the questions at the beginning, whether to compile library files or compile applications, I seemed to choose both 2.No

mojie126 commented 2 months ago

ccache=2 but still use ccache.exe gcc xxx?

mojie126 commented 2 months ago

edit media-autobuild_suite.bat line number 1904 and 1905

        echo.export CC="gcc"
        echo.export CXX="g++"
mojie126 commented 2 months ago

A lot of hardcoded ccache gcc or ccache clangd...

L4cache commented 2 months ago

路径太长?

mojie126 commented 2 months ago

我试过D:\ma,ccache也不行,所以我把所有用ccache xxx的都把ccache弄掉了

L4cache commented 2 months ago

https://github.com/ccache/ccache/issues/1409

奇怪的是你的路径里面看起来也没有非 ascii 字符啊? What's strange is that your path doesn't look like it has any non-ascii characters in it?

看了一下那个 issue 的评论,是用户名里面有非 ascii 字符导致的问题,测试了一下确实是这样

实际上你的用户名你也没有非 ascii 字符,但是 PATH 变量里面有,看来可能是“主要的”环境变量里面有任何非 ascii 字符就不行,除非你开系统的 Beta 的 UTF-8 支持

PATH=/opt/cargo/bin:/opt/bin:/local64/bin-audio:/local64/bin-global:/local64/bin-video:/local64/bin:/mingw64/bin:/local64/share/info:/mingw64/share/info:/usr/share/info:/usr/local/bin:/usr/bin:/bin:/d/其他软件/CUDA/bin:/d/其他软件/CUDA/libnvvp:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/c/Program Files/Git/cmd:/c/Program Files/TortoiseGit/bin:/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/c/Program Files/Bandizip:/c/Program Files/Git LFS:/c/Program Files/Docker/Docker/resources/bin:/c/Program Files/NVIDIA Corporation/Nsight Compute 2024.1.1:/c/Users/mojie126/.cargo/bin:/c/Users/mojie126/AppData/Local/Microsoft/WindowsApps:/c/Users/mojie126/AppData/Local/JetBrains/Toolbox/scripts:/c/Users/mojie126/AppData/Local/Microsoft/WinGet/Packages/Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe/ffmpeg-6.1.1-full_build/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

mojie126 commented 2 months ago

就是说呐,所以我只能把所有ccache xxx的都改掉了,最关键的是,ini配置里ccache=2不好使