build: remove support for s390 (but not s390x)

Upstream V8 removed support for s390 earlier this year and it's known
to no longer build. Remove the support from our build scripts.

Fixes: https://github.com/nodejs/node/issues/28866
PR-URL: https://github.com/nodejs/node/pull/28883
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Ben Noordhuis 2019-07-28 21:14:57 +02:00 committed by Rich Trott
parent de88d6c187
commit fd9e0f72ab
11 changed files with 13 additions and 31 deletions

View File

@ -388,10 +388,6 @@
'cflags': [ '-m64', '-mminimal-toc' ], 'cflags': [ '-m64', '-mminimal-toc' ],
'ldflags': [ '-m64' ], 'ldflags': [ '-m64' ],
}], }],
[ 'target_arch=="s390"', {
'cflags': [ '-m31', '-march=z196' ],
'ldflags': [ '-m31', '-march=z196' ],
}],
[ 'target_arch=="s390x"', { [ 'target_arch=="s390x"', {
'cflags': [ '-m64', '-march=z196' ], 'cflags': [ '-m64', '-march=z196' ],
'ldflags': [ '-m64', '-march=z196' ], 'ldflags': [ '-m64', '-march=z196' ],

View File

@ -47,7 +47,7 @@ parser = optparse.OptionParser()
valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux', valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux',
'android', 'aix', 'cloudabi') 'android', 'aix', 'cloudabi')
valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc', valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc',
'ppc64', 'x32','x64', 'x86', 'x86_64', 's390', 's390x') 'ppc64', 'x32','x64', 'x86', 'x86_64', 's390x')
valid_arm_float_abi = ('soft', 'softfp', 'hard') valid_arm_float_abi = ('soft', 'softfp', 'hard')
valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon') valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')
valid_mips_arch = ('loongson', 'r1', 'r2', 'r6', 'rx') valid_mips_arch = ('loongson', 'r1', 'r2', 'r6', 'rx')
@ -867,7 +867,6 @@ def host_arch_cc():
'__PPC64__' : 'ppc64', '__PPC64__' : 'ppc64',
'__PPC__' : 'ppc64', '__PPC__' : 'ppc64',
'__x86_64__' : 'x64', '__x86_64__' : 'x64',
'__s390__' : 's390',
'__s390x__' : 's390x', '__s390x__' : 's390x',
} }
@ -876,8 +875,7 @@ def host_arch_cc():
for i in matchup: for i in matchup:
if i in k and k[i] != '0': if i in k and k[i] != '0':
rtn = matchup[i] rtn = matchup[i]
if rtn != 's390': break
break
if rtn == 'mipsel' and '_LP64' in k: if rtn == 'mipsel' and '_LP64' in k:
rtn = 'mips64el' rtn = 'mips64el'

View File

@ -10,8 +10,6 @@
'includes': ['config/archs/linux-ppc64le/asm/openssl-cl.gypi'], 'includes': ['config/archs/linux-ppc64le/asm/openssl-cl.gypi'],
}, 'target_arch=="ppc64" and OS=="linux"', { }, 'target_arch=="ppc64" and OS=="linux"', {
'includes': ['config/archs/linux-ppc64/asm/openssl-cl.gypi'], 'includes': ['config/archs/linux-ppc64/asm/openssl-cl.gypi'],
}, 'target_arch=="s390" and OS=="linux"', {
'includes': ['config/archs/linux32-s390x/asm/openssl-cl.gypi'],
}, 'target_arch=="s390x" and OS=="linux"', { }, 'target_arch=="s390x" and OS=="linux"', {
'includes': ['config/archs/linux64-s390x/asm/openssl-cl.gypi'], 'includes': ['config/archs/linux64-s390x/asm/openssl-cl.gypi'],
}, 'target_arch=="arm" and OS=="linux"', { }, 'target_arch=="arm" and OS=="linux"', {

View File

@ -10,8 +10,6 @@
'includes': ['config/archs/linux-ppc64le/asm_avx2/openssl-cl.gypi'], 'includes': ['config/archs/linux-ppc64le/asm_avx2/openssl-cl.gypi'],
}, 'target_arch=="ppc64" and OS=="linux"', { }, 'target_arch=="ppc64" and OS=="linux"', {
'includes': ['config/archs/linux-ppc64/asm_avx2/openssl-cl.gypi'], 'includes': ['config/archs/linux-ppc64/asm_avx2/openssl-cl.gypi'],
}, 'target_arch=="s390" and OS=="linux"', {
'includes': ['config/archs/linux32-s390x/asm_avx2/openssl-cl.gypi'],
}, 'target_arch=="s390x" and OS=="linux"', { }, 'target_arch=="s390x" and OS=="linux"', {
'includes': ['config/archs/linux64-s390x/asm_avx2/openssl-cl.gypi'], 'includes': ['config/archs/linux64-s390x/asm_avx2/openssl-cl.gypi'],
}, 'target_arch=="arm" and OS=="linux"', { }, 'target_arch=="arm" and OS=="linux"', {

View File

@ -10,8 +10,6 @@
'includes': ['config/archs/linux-ppc64le/no-asm/openssl-cl.gypi'], 'includes': ['config/archs/linux-ppc64le/no-asm/openssl-cl.gypi'],
}, 'target_arch=="ppc64" and OS=="linux"', { }, 'target_arch=="ppc64" and OS=="linux"', {
'includes': ['config/archs/linux-ppc64/no-asm/openssl-cl.gypi'], 'includes': ['config/archs/linux-ppc64/no-asm/openssl-cl.gypi'],
}, 'target_arch=="s390" and OS=="linux"', {
'includes': ['config/archs/linux32-s390x/no-asm/openssl-cl.gypi'],
}, 'target_arch=="s390x" and OS=="linux"', { }, 'target_arch=="s390x" and OS=="linux"', {
'includes': ['config/archs/linux64-s390x/no-asm/openssl-cl.gypi'], 'includes': ['config/archs/linux64-s390x/no-asm/openssl-cl.gypi'],
}, 'target_arch=="arm" and OS=="linux"', { }, 'target_arch=="arm" and OS=="linux"', {

View File

@ -10,8 +10,6 @@
'includes': ['config/archs/linux-ppc64le/asm/openssl.gypi'], 'includes': ['config/archs/linux-ppc64le/asm/openssl.gypi'],
}, 'target_arch=="ppc64" and OS=="linux"', { }, 'target_arch=="ppc64" and OS=="linux"', {
'includes': ['config/archs/linux-ppc64/asm/openssl.gypi'], 'includes': ['config/archs/linux-ppc64/asm/openssl.gypi'],
}, 'target_arch=="s390" and OS=="linux"', {
'includes': ['config/archs/linux32-s390x/asm/openssl.gypi'],
}, 'target_arch=="s390x" and OS=="linux"', { }, 'target_arch=="s390x" and OS=="linux"', {
'includes': ['config/archs/linux64-s390x/asm/openssl.gypi'], 'includes': ['config/archs/linux64-s390x/asm/openssl.gypi'],
}, 'target_arch=="arm" and OS=="linux"', { }, 'target_arch=="arm" and OS=="linux"', {

View File

@ -10,8 +10,6 @@
'includes': ['config/archs/linux-ppc64le/asm_avx2/openssl.gypi'], 'includes': ['config/archs/linux-ppc64le/asm_avx2/openssl.gypi'],
}, 'target_arch=="ppc64" and OS=="linux"', { }, 'target_arch=="ppc64" and OS=="linux"', {
'includes': ['config/archs/linux-ppc64/asm_avx2/openssl.gypi'], 'includes': ['config/archs/linux-ppc64/asm_avx2/openssl.gypi'],
}, 'target_arch=="s390" and OS=="linux"', {
'includes': ['config/archs/linux32-s390x/asm_avx2/openssl.gypi'],
}, 'target_arch=="s390x" and OS=="linux"', { }, 'target_arch=="s390x" and OS=="linux"', {
'includes': ['config/archs/linux64-s390x/asm_avx2/openssl.gypi'], 'includes': ['config/archs/linux64-s390x/asm_avx2/openssl.gypi'],
}, 'target_arch=="arm" and OS=="linux"', { }, 'target_arch=="arm" and OS=="linux"', {

View File

@ -11,8 +11,6 @@
'includes': ['config/archs/linux-ppc64le/no-asm/openssl.gypi'], 'includes': ['config/archs/linux-ppc64le/no-asm/openssl.gypi'],
}, 'target_arch=="ppc64" and OS=="linux"', { }, 'target_arch=="ppc64" and OS=="linux"', {
'includes': ['config/archs/linux-ppc64/no-asm/openssl.gypi'], 'includes': ['config/archs/linux-ppc64/no-asm/openssl.gypi'],
}, 'target_arch=="s390" and OS=="linux"', {
'includes': ['config/archs/linux32-s390x/no-asm/openssl.gypi'],
}, 'target_arch=="s390x" and OS=="linux"', { }, 'target_arch=="s390x" and OS=="linux"', {
'includes': ['config/archs/linux64-s390x/no-asm/openssl.gypi'], 'includes': ['config/archs/linux64-s390x/no-asm/openssl.gypi'],
}, 'target_arch=="arm" and OS=="linux"', { }, 'target_arch=="arm" and OS=="linux"', {

View File

@ -165,7 +165,7 @@
}, { }, {
'gomadir': '<!(/bin/echo -n ${HOME}/goma)', 'gomadir': '<!(/bin/echo -n ${HOME}/goma)',
}], }],
['host_arch!="ppc" and host_arch!="ppc64" and host_arch!="ppc64le" and host_arch!="s390" and host_arch!="s390x"', { ['host_arch!="ppc" and host_arch!="ppc64" and host_arch!="ppc64le" and host_arch!="s390x"', {
'host_clang%': 1, 'host_clang%': 1,
}, { }, {
'host_clang%': 0, 'host_clang%': 0,

View File

@ -140,7 +140,7 @@
'conditions': [ 'conditions': [
['host_arch=="ia32" or host_arch=="x64" or \ ['host_arch=="ia32" or host_arch=="x64" or \
host_arch=="ppc" or host_arch=="ppc64" or \ host_arch=="ppc" or host_arch=="ppc64" or \
host_arch=="s390" or host_arch=="s390x" or \ host_arch=="s390x" or \
clang==1', { clang==1', {
'variables': { 'variables': {
'host_cxx_is_biarch%': 1, 'host_cxx_is_biarch%': 1,
@ -151,7 +151,7 @@
}, },
}], }],
['target_arch=="ia32" or target_arch=="x64" or \ ['target_arch=="ia32" or target_arch=="x64" or \
target_arch=="ppc" or target_arch=="ppc64" or target_arch=="s390" or \ target_arch=="ppc" or target_arch=="ppc64" or \
target_arch=="s390x" or clang==1', { target_arch=="s390x" or clang==1', {
'variables': { 'variables': {
'target_cxx_is_biarch%': 1, 'target_cxx_is_biarch%': 1,
@ -302,7 +302,7 @@
'V8_TARGET_ARCH_ARM64', 'V8_TARGET_ARCH_ARM64',
], ],
}], }],
['v8_target_arch=="s390" or v8_target_arch=="s390x"', { ['v8_target_arch=="s390x"', {
'defines': [ 'defines': [
'V8_TARGET_ARCH_S390', 'V8_TARGET_ARCH_S390',
], ],
@ -320,7 +320,7 @@
'cflags': [ '-march=z196' ], 'cflags': [ '-march=z196' ],
}], }],
], ],
}], # s390 }], # s390x
['v8_target_arch=="ppc" or v8_target_arch=="ppc64"', { ['v8_target_arch=="ppc" or v8_target_arch=="ppc64"', {
'defines': [ 'defines': [
'V8_TARGET_ARCH_PPC', 'V8_TARGET_ARCH_PPC',
@ -1045,13 +1045,13 @@
or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
(v8_target_arch=="arm" or v8_target_arch=="ia32" or \ (v8_target_arch=="arm" or v8_target_arch=="ia32" or \
v8_target_arch=="mips" or v8_target_arch=="mipsel" or \ v8_target_arch=="mips" or v8_target_arch=="mipsel" or \
v8_target_arch=="ppc" or v8_target_arch=="s390")', { v8_target_arch=="ppc")', {
'target_conditions': [ 'target_conditions': [
['_toolset=="host"', { ['_toolset=="host"', {
'conditions': [ 'conditions': [
['host_cxx_is_biarch==1', { ['host_cxx_is_biarch==1', {
'conditions': [ 'conditions': [
['host_arch=="s390" or host_arch=="s390x"', { ['host_arch=="s390x"', {
'cflags': [ '-m31' ], 'cflags': [ '-m31' ],
'ldflags': [ '-m31' ] 'ldflags': [ '-m31' ]
},{ },{
@ -1069,7 +1069,7 @@
'conditions': [ 'conditions': [
['target_cxx_is_biarch==1', { ['target_cxx_is_biarch==1', {
'conditions': [ 'conditions': [
['host_arch=="s390" or host_arch=="s390x"', { ['host_arch=="s390x"', {
'cflags': [ '-m31' ], 'cflags': [ '-m31' ],
'ldflags': [ '-m31' ] 'ldflags': [ '-m31' ]
},{ },{

View File

@ -653,7 +653,7 @@
'<(V8_ROOT)/src/builtins/ppc/builtins-ppc.cc', '<(V8_ROOT)/src/builtins/ppc/builtins-ppc.cc',
], ],
}], }],
['v8_target_arch=="s390" or v8_target_arch=="s390x"', { ['v8_target_arch=="s390x"', {
'sources': [ 'sources': [
'<(V8_ROOT)/src/builtins/s390/builtins-s390.cc', '<(V8_ROOT)/src/builtins/s390/builtins-s390.cc',
], ],
@ -2187,7 +2187,7 @@
'<(V8_ROOT)/src/wasm/baseline/ppc/liftoff-assembler-ppc.h', '<(V8_ROOT)/src/wasm/baseline/ppc/liftoff-assembler-ppc.h',
], ],
}], }],
['v8_target_arch=="s390" or v8_target_arch=="s390x"', { ['v8_target_arch=="s390x"', {
'sources': [ ### gcmole(arch:s390) ### 'sources': [ ### gcmole(arch:s390) ###
'<(V8_ROOT)/src/compiler/backend/s390/code-generator-s390.cc', '<(V8_ROOT)/src/compiler/backend/s390/code-generator-s390.cc',
'<(V8_ROOT)/src/compiler/backend/s390/instruction-codes-s390.h', '<(V8_ROOT)/src/compiler/backend/s390/instruction-codes-s390.h',
@ -2298,7 +2298,7 @@
}], }],
# Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library
# to implement atomic memory access # to implement atomic memory access
['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "ppc64", "s390", "s390x"]', { ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "ppc64", "s390x"]', {
'link_settings': { 'link_settings': {
'libraries': ['-latomic', ], 'libraries': ['-latomic', ],
}, },