-
Notifications
You must be signed in to change notification settings - Fork 21
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
Extra space in -rpath option #141
Comments
This issue arose because of changes made in June 2022 in commit 2da92f4, TN: V517-017, Change-Id: I9f4a290ce1fcfa9b47c60930d7d0c17d5e5314e4. This change was to "Allow multiply values in Run_Path_Option attribute in gprlib". I don't understand what can have given rise to this, because none of the Run_Path_Options in linker.xml have more than one occurrence for a specific configuration. Maybe it's to do with something like this SO question, where you want to tell gcc e.g. Why do I get the problem? because here any spaces inserted are passed to gcc in a single argument, and how that gets interpreted in the handover to the linker isn't obvious. My first reaction would be to revert this commit, but of course I don't know what problem V517-017 was addressing. For now, I'll just do this (change to v23.0.0)
which relies on there being only one |
I've just retried this; with GCC 13.2.0, gprbuild 24.0.0, Command Line Tools 14.2/15.3 the problem does not occur. So I think we can close? |
This works for us. Let's close. |
This is on macOS, and I know you don't support it, but I'm hoping you'll be able to point me in the right direction.
When building a shared library, gprbuild v23.0.0 issues
which results in
Please note the extra space after the
-Wl,-rpath,
options passed to gcc, and the resulting 2 spaces after the-rpath
options passed told
.The result is that a program that uses the dynamic library fails,
(note the space in
Reason: tried: ' /opt...
).Other gprbuilds tried:
The text was updated successfully, but these errors were encountered: