-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
cmake: add the -dynamic-linker=...
form to the -dynamic-linker regex
#22308
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. but shall we apply a similar change to configure.py
? as it is using
Line 1705 in 48a4efb
original_dynamic_linker = re.search('-dynamic-linker ([^ ]*)', gcc_linker_output).groups()[0] |
diff --git a/configure.py b/configure.py
index 4610030970..5bc7a9c8c0 100755
--- a/configure.py
+++ b/configure.py
@@ -1702,7 +1702,7 @@ def generate_version(date_stamp):
# the program headers.
def dynamic_linker_option():
gcc_linker_output = subprocess.check_output(['gcc', '-###', '/dev/null', '-o', 't'], stderr=subprocess.STDOUT).decode('utf-8')
- original_dynamic_linker = re.search('-dynamic-linker ([^ ]*)', gcc_linker_output).groups()[0]
+ original_dynamic_linker = re.search('-dynamic-linker[ =]([^ ]*)', gcc_linker_output).groups()[0]
employ_ld_trickery = True
# distro-specific setup
or it is immune to this problem?
On my system (Nix), the compiler produces a `-dynamic-linker=/nix/store/...` in the linker call scanned by get_padded_dynamic_linker_option. But the regex can't deal with the `=` there, it requires a ` `. Fix that. We also do the same in configure.py, and remove the Nix-specific hack which used to disable the entire mechanism.
80f46b1
to
66d5a82
Compare
If you scroll down just 2 lines from there, you will see that someone added a Nix-specific hack which completely disables the I updated the patch with a corresponding change to the regex in configure.py, and I removed the Nix-specific hack. |
Hopefully it doesn't break some other piece of the build on Nix. But it works for me, and I think I'm probably the only person who builds Scylla on Nix right now. |
The Nix build scripts in the Scylla repository are unmaintained and broken anyway, so I doubt even more that anyone other than me builds Scylla on Nix. I don't use those scripts, I have my own private ones. |
🔴 CI State: FAILURE✅ - Build Build Details:
|
|
🔴 CI State: FAILURE✅ - Build Build Details:
|
🔴 CI State: FAILURE✅ - Build Build Details:
|
On my system (Nix), the compiler produces a
. Fix that.
-dynamic-linker=/nix/store/...
in the linker call scanned by get_padded_dynamic_linker_option. But the regex can't deal with the=
there, it requires aCould be backported, but it's not needed for anything.