-
Notifications
You must be signed in to change notification settings - Fork 267
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
Argument list too long #2782
Comments
Is this the time we finally reached the command line length limit (again?)? Put argument list into a file is not a common feature I suppose, but luckily GCC and Clang both support flags in a text file, the tricky part is that FFmpeg, like many other projects, is using build system, which may require a lot more effort to change. |
I can't reproduce this issue though... |
L4cache, try asking for a full shared x86 build, including libfdk, libjxl etc. |
Running the same configuration (mabs.ini, ffmpeg_options and mpv_options) resulted in the build passing for me. What is the folder path mabs is in? Perhaps your base path is too long? |
Oh yeah, and somehow the msys2 environment (the shell?) supports a single argument length up to nearly 12 MiB... and the total command line length limit is probably even longer.
|
This worked, thank you. I had just used the full project name as a name for the root folder. Changing it to just "ffmpeg" enabled it to run all the way through :) |
Happened to me too: Before that I tried to include librist, which still fails building
so I disabled it again in ffmpeg_options.txt; after that, building the dynamic ffmpeg started failing. PS:
I can't find in any log which command exactly it tried to execute. And the MinGW32 pass finished, probably because it loads a few less libraries (some only work in 64 bit code). |
@rbouqueau confirms while testing to build GPAC and a dynamic ffmpeg, the bottleneck seems to be ccache. Please re-open? |
I confirm I moved the build to a root folder and ccache still complained. |
Request to re-open @1480c1 |
It looks like something just randomly decided to stop working... |
Deleting all build directories and local result files. |
Disabling ccache in m-ab-s is actually "telling" ccache to not cache while still using ccache in compile commands. media-autobuild_suite/media-autobuild_suite.bat Lines 1964 to 1969 in 7e35fbd
|
Tested that as well. A GPL3 compatible license had just even not too many parameters, but a non-free build caused the same error even without ccache (in this case with g++). The command line has 29835 characters. |
Not actually... I'm out of things to blame |
Is it possible at all to feed library file name parameters to the linker via parameter file? |
I think for now you'll just have to limit the number of enabled libraries for shared ffmpeg, you can use a separate ffmpeg_options_shared.txt file.
It should be a viable solution but I guess that would require ffmpeg's build system to support it... |
I'm having the same problem. Windows 10 Pro 2004 x64, running on VMware on a hypervisor. Built successfully on November 12, 2024, but it had issues. Trying again for the past couple days and not able to get past the "Argument list too long" error. (Using pastebin due to I've heard that this can be caused by the folder name being too long or too nested, but I'm running it in |
Is the issue perhaps specific to doing it on a VM? Because I'm on a VM. Is anyone else who's having this issue running on a VM / VPS? |
In my case the suite is running directly on the host OS: Windows 10. |
Same issue here, path is C:\tools\mabs, so not that long at all. |
Which .exe is actually throwing the error? |
As far as I tested: ccache. But after I edited that out as @L4cache mentioned above, it was ld. |
If anyone has gotten it to work with a |
Options in |
I've tried searching this but it's unclear... where does |
You should have the customization option (or whatever else it is called) enabled and the default options is auto generated. |
Batch configuration option: Choose ffmpeg and mpv optional libraries?When you selected option 1 here, build/media-autobuild_suite.ini will contain the entry I used this option and enabled as many libraries as supported. This was certainly beyond a sane selection. Alternatively, option 2 would use a quite useful selection as a "Light build"; option 3 would use a rather large selection similar to builds made by the Zeranoe autobuild site, and 4 would enable as many libraries as possible; all of these do not use text files to select single libraries but presets inside the media-autobuild_suite.bat. |
Just updated to the latest on both my x86 and x64 VMs (both run identical Windows 10 x64), one has x64 building of FFMPEG, one has x86. Last night, the x86 made it all the way through. The x64 did not (other error), so I updated to the latest version, and it failed with "list too long". Logs attached. |
If you don't need the shared (dll) versions, just build only the static libraries for FFmpeg and it should work.
So, in Not sure if it's going to be possible to build the shared FFmpeg libraries again as the devs don't seem to know why it's failing with the "argument list too long" error. It's not actually too long, so it must be some bug or typo somewhere. |
I need the DLLs for web back-end usage, so .EXE is not an option. |
logs.zip
Hi all.
I am trying to build the non-free x86 shared build, but despite running the latest version, I get this error:
LD libavcodec/avcodec-61.dll
/bin/sh: line 1: /mingw32/bin/ccache: Argument list too long
make: *** [/build/ffmpeg-git/ffbuild/library.mak:119: libavcodec/avcodec-61.dll] Error 126
Log file(s) attached as per request.
When searching the web, some suggest putting the argument list into a file. More here: https://stackoverflow.com/questions/52391581/mingw32-bin-curl-argument-list-too-long
The text was updated successfully, but these errors were encountered: