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

ar command fails silently #580

Open
himamis opened this issue Jan 9, 2016 · 1 comment
Open

ar command fails silently #580

himamis opened this issue Jan 9, 2016 · 1 comment

Comments

@himamis
Copy link
Contributor

himamis commented Jan 9, 2016

Related to issue #572
With a project over 3500 files, the createStaticLibrary command fails silently. The failing command is ar used to link the object files, creating a static library.
I've extraced the command, and ran in, I get the Argument list too long error.

If I move the files into Xcode, and compile it there, it is successful. That is, because Xcode uses libtool instead of ar, with the parameter -objectlist file, where file contains the names of the objects to link together (http://www.gnu.org/software/libtool/manual/libtool.html#Link-mode). In essence, libtool can act as a wrapper for the ar library. This is the same solution that we implemented in #572.

My proposal here, is to remove the linking tasks from the native compilation, and use libtool instead, with the same arguments, and using an arg file.

@brunobowden we might want to wait with the new release, until we can find a solution to this problem.

@himamis
Copy link
Contributor Author

himamis commented Jan 9, 2016

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

1 participant