Skip to content
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

Fix "Argument list too long" error for large trickified libraries and/or long build paths #1155

Closed
ddj116 opened this issue Jun 2, 2021 · 2 comments
Assignees

Comments

@ddj116
Copy link
Contributor

ddj116 commented Jun 2, 2021

The problem

When a trickified library has too many $(IO_OBJECTS), $(SWIG_OBJECTS), or the build path is of sufficiently large length, this error can occur on the final link of $(TRICKIFY_OBJECT_NAME):

Linking^[[0m    trickified_lib.o
make[1]: execvp: /bin/bash: Argument list too long

This has been replicated for the JEOD trickified library in ramtares with an extremely long path to the repository

The fix

We can change ld to use @file notation for input which will shorten the recipe length as run in the shell

@dbankieris
Copy link
Contributor

Note that ld is only used when TRICKIFY_BUILD_TYPE is PLO. Solutions for TRICK_CXX and ar are also needed.

@dbankieris
Copy link
Contributor

Oh, they all support @file. Woohoo!

ddj116 pushed a commit that referenced this issue Jun 2, 2021
Fixes the "execvp: /bin/bash: Argument list too long" error for
sufficiently large trickified libraries / absolute build paths

Refs #1155
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants