Open bdbaddog opened 6 years ago
This is still a problem with 3.0.5. I would simply wipe this, PA-RISC is dead.
Still a problem on 4.4.0. Patch:
diff -ur SCons/Platform/hpux.py SCons/Platform/hpux.py
--- SCons/Platform/hpux.py 2021-11-17 17:06:47 +0000
+++ SCons/Platform/hpux.py 2022-08-10 14:29:41 +0000
@@ -35,7 +35,7 @@
#Based on HP-UX11i: ARG_MAX=2048000 - 3000 for environment expansion
env['MAXLINELENGTH'] = 2045000
- env['SHLIBSUFFIX'] = '.sl'
+ env['SHLIBSUFFIX'] = '.so'
env['HOST_OS'] = 'hpux'
# Local Variables:
diff -ur SCons/Tool/hplink.py SCons/Tool/hplink.py
--- SCons/Tool/hplink.py 2021-11-15 20:50:26 +0000
+++ SCons/Tool/hplink.py 2022-08-10 14:30:10 +0000
@@ -58,9 +58,10 @@
"""
link.generate(env)
- env['LINKFLAGS'] = SCons.Util.CLVar('-Wl,+s -Wl,+vnocompatwarnings')
+ env['LINKFLAGS'] = SCons.Util.CLVar('-Wl,+s')
env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -b')
- env['SHLIBSUFFIX'] = '.sl'
+ env["_SHLIBVERSIONFLAGS"] = "$SHLIBVERSIONFLAGS -Wl,+h,$_SHLIBSONAME"
+ env['SHLIBSUFFIX'] = '.so'
def exists(env):
return ccLinker
Applying this fix seems simple enough, though nobody else has anything to test on. PA-RISC may be dead, but Itanium is pretty dead too, no?
Applying this fix seems simple enough, though nobody else has anything to test on. PA-RISC may be dead, but Itanium is pretty dead too, no?
Technically, yes. Itanium ist not produced, but HPE will provide support for all machines beyond 2025 and I will/have to continue to run those for many reasons. SCons is the only way to compile libserf which I need for Subversion which we need for manage 100 000s LoC engineering code.
Yes, this will break PA-RISC, but this platform is truly dead. SCons has been working for me just fine on HP-UX IA64 for years for at least libserf. So the patch has been tested many times.
Sure - I'd take the argument that if PA-RISC, if there's still one running somewhere, can't run a Python that SCons requires (which at this point is 3.6 or greater) then there's no reason to keep support for such a platform in the current tip of the tree.
What do you think, @bdbaddog
I bet that Python 3.x does not even compile on PA-RISC. I took me quite some effort to make Python 3.8 to compile and run on IA64, I have upstreamed all patches and some are still open.
Can't we detect if SCons is running on itanium and just make these changes in that case. That way if someone out there is still building on PA-RISC we don't break them. Should be trivial right?
seems like that sequence is excerpted above, but someone would have to run an old SCons to work with Python 2.x anyway, which it sounds like would be a limitation.
Unfortunately, the issue still persists on main.
yeah, doesn't seem like anyone applied the change.
This issue was originally created at: 2016-09-16 06:17:40. This issue was reported by:
michael_o
. michael_o said at 2016-09-16 06:17:40bdbaddog said at 2016-09-16 09:21:23
michael_o said at 2016-09-16 11:40:03
root@blnn716x - / 1024 # uname -m 9000/785
https://github.com/gcc-mirror/gcc/blob/master/config.guess#L632-L651
michael_o said at 2016-09-16 11:46:58
michael_o said at 2016-09-16 15:28:07
bdbaddog said at 2016-09-16 15:44:02
michael_o said at 2016-09-17 01:53:44