[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #44853] gmake: execvp: bash: The parameter or environment lists are
From: |
Robert Sachunsky |
Subject: |
[bug #44853] gmake: execvp: bash: The parameter or environment lists are too long. |
Date: |
Sun, 27 Jun 2021 07:28:42 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0 |
Follow-up Comment #9, bug #44853 (project make):
related/duplicate: #45763
I would like to add that (to my surprise) even the workaround offered by the
file function (and specifically documented for this purpose in section 8.6 of
the manual, with example recipes) _may not work_:
program: $(OBJECTS)
$(file >$@.in,$^)
$(CMD) $(CMDFLAGS) @$@.in
@rm $@.in
It seems like the reason for me was that the makefile contained an *export*
directive (for all variables), which causes *OBJECTS* getting appended to the
envp of the execve call of the recipe. Since E2BIG is caused by _either_ the
argv _or_ the envp argument, the result is the same (just the error message is
confusing).
So as long as make has no general solution for E2BIG, I recommend at least
documenting that *.EXPORT_ALL_VARIABLES* or *export* will break the file
function workaround.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?44853>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #44853] gmake: execvp: bash: The parameter or environment lists are too long.,
Robert Sachunsky <=