Ah, there was another toolchain-benchmarks
some lines below in the same preset, so of course the skip-toolchain-benchmarks
somewhere above wouldn't have effect. Patched that away, trying again now… (that does work, now going to try to make lintian happy, too)
@mishal_shah any thoughts on why that failure is happening when building the Focal deb? I continue to see an equivalent failure both when attempting to build (with docker-compose
, as advised in the README) either 5.7.1. or 5.7.2 if I don't patch away the toolchain-benchmarks
:
--- Building benchmarks ---
Traceback (most recent call last):
File "swift/utils/build-script", line 720, in <module>
sys.exit(main())
File "swift/utils/build-script", line 715, in main
return main_normal()
File "swift/utils/build-script", line 671, in main_normal
invocation.execute()
File "/tmp/swift-deb-builder/swiftlang-5.7.2/swift/utils/swift_build_support/swift_build_support/build_script_invocation.py", line 672, in execute
self._execute(pipeline, [self.args.host_target] +
File "/tmp/swift-deb-builder/swiftlang-5.7.2/swift/utils/swift_build_support/swift_build_support/build_script_invocation.py", line 735, in _execute
self.execute_product_build_steps(product_class, host_target)
File "/tmp/swift-deb-builder/swiftlang-5.7.2/swift/utils/swift_build_support/swift_build_support/build_script_invocation.py", line 791, in execute_product_build_steps
product.build(host_target)
File "/tmp/swift-deb-builder/swiftlang-5.7.2/swift/utils/swift_build_support/swift_build_support/products/benchmarks.py", line 49, in build
run_build_script_helper(host_target, self, self.args)
File "/tmp/swift-deb-builder/swiftlang-5.7.2/swift/utils/swift_build_support/swift_build_support/products/benchmarks.py", line 123, in run_build_script_helper
toolchain_path = _get_toolchain_path(host_target, product, args)
File "/tmp/swift-deb-builder/swiftlang-5.7.2/swift/utils/swift_build_support/swift_build_support/products/benchmarks.py", line 107, in _get_toolchain_path
if swiftpm.SwiftPM.has_cross_compile_hosts(args):
File "/tmp/swift-deb-builder/swiftlang-5.7.2/swift/utils/swift_build_support/swift_build_support/products/product.py", line 248, in has_cross_compile_hosts
return self.args.cross_compile_hosts
AttributeError: 'Namespace' object has no attribute 'args'
ERROR: command terminated with a non-zero exit status 1, aborting