What's new

MAKE: Argument list too long

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

trumpone

New Around Here
I just created a new build VM with Ubuntu 20.04.3 LTS and got the following Make error for the latest repo. It was at the very start of the build, which is nice.
Code:
execvp: /bin/sh: Argument list too long

The issue was a large shell command embedded in the KernelConfig function, inside ~/asuswrt-merlin.ng/release/src-rt/Makefile. My fix was to split the shell command, somewhere in the middle around line 4800, as follows:
Code:
    )
    @( \

Alternatively, maybe there's a way to increase the MAX ARG size for shell commands, that the Make program uses?
 
  • Like
Reactions: KMO

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top