-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
gnome.mkenums generates huge command which causes command line too long
error
#6710
Comments
I opened #4966 to fix this a year ago, but I forgot about it. I'm not sure why we use absolute paths; would have to check |
Absolute paths are added because of #973 as I can see. |
I came here from research on microsoft/vcpkg#22201 (comment) (gtk3, but there seems to be a similiar issue with gtk4). IIUC there is a the generated command line length is too long for Windows since meson switched to absolute paths. With many tools, such problems are avoided with response files. AFAIU Is this something which could be implemented? Disclaimer: Nearly no knowledge of meson, gnome, gtk. |
Yes, absolutely. There's a PR which predates this ticket, and tried to implement it here: #4966 Unfortunately the codebase changed and it "needs to be rewritten from scratch" so it got closed. It definitely needs to be done, we just need someone to do the work. |
Any news? |
I try to build gtk+ 3.24.14 under msys2 system on Windows with following command:
As you can see I use separate build directory
Next I call:
which fails with error:
If I build gtk+ directly in source directory all works fine.
As I can see in generated
build.ninja
file there is a command with 39000+ symbols length:Most part of this huge command is paths to header files:
If I run this command directly in console it gives
Argument list too long
errorThis command is generated from rule in gtk/meson.build:
The source of this problem is
d5f7ba8 which converts all relative paths to absolute in gnome.mkenums and can cause generation of too long command to execute. After I removed in
build.CustomTarget(output, state.subdir, custom_kwargs, absolute_paths=True)
parameterabsolute_paths=True
- all builds fine.The text was updated successfully, but these errors were encountered: