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

/usr/bin/gcc-ar vs /usr/bin/ar #2675

Closed
yesudeep opened this issue Jul 16, 2022 · 4 comments
Closed

/usr/bin/gcc-ar vs /usr/bin/ar #2675

yesudeep opened this issue Jul 16, 2022 · 4 comments

Comments

@yesudeep
Copy link

Hello,

I’m wondering about the difference between /usr/bin/gcc-ar and /usr/bin/ar.
When using them with bazel, they exhibit different behavior.
One supports reading parameters from ‘@file’ and another doesn’t appear to:
bazel complains about this because when it uses the binary at /usr/bin/gcc-ar.
As soon as I sym-link /usr/bin/gcc-ar -> /usr/bin/ar, bazel works as expected).

Why are there 2 ‘ar’ binaries and can /usr/bin/gcc-ar be a symlink to
whatever we're using at /usr/bin/ar? I'm asking because as soon as there is
a system update the symlink is replaced automatically and I have to redo the
sym-linking.

Cheers,
Y.

@fenrus75
Copy link
Contributor

fenrus75 commented Jul 16, 2022 via email

@yesudeep
Copy link
Author

Ah, I see. Reading more about this at: bazelbuild/bazel#3760

@yesudeep
Copy link
Author

Closing this as this isn't as a result of clearlinux.

@yesudeep
Copy link
Author

As a side note, I've had to replace /usr/bin/gcc-ar with a wrapper script as a workaround.
I guess I'll have to keep re-symlinking gcc-ar whenever it updates, but that's alright I guess.

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

No branches or pull requests

2 participants