Still haven't gotten Xcode project generation to work. Also can't get build-toolchain to work, seems I'm getting link errors because it's expecting an arm64 version of python:
ld: warning: ignoring file /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
"_PyMemoryView_FromMemory", referenced from:
(anonymous namespace)::BinaryPythonFile::Write(void const*, unsigned long&) in liblldbPluginScriptInterpreterPython.a(PythonDataObjects.cpp.o)
"_PyErr_NormalizeException", referenced from:
lldb_private::python::PythonException::PythonException(char const*) in liblldbPluginScriptInterpreterPython.a(PythonDataObjects.cpp.o)
"_PyImport_ImportModule", referenced from:
lldb_private::python::PythonModule::Import(llvm::Twine const&) in liblldbPluginScriptInterpreterPython.a(PythonDataObjects.cpp.o)
** Generating gyb Files **
/Users/holliday/opt/anaconda3/bin/python /Users/holliday/swift-project/swift/utils/gyb /Users/holliday/swift-project/swift-syntax/Sources/SwiftSyntax/SyntaxFactory.swift.gyb -o /var/folders/kj/6xq_02p15hn3_88kwl7s38p00000gn/T/SyntaxFactory.swift --line-directive=
rsync --checksum /var/folders/kj/6xq_02p15hn3_88kwl7s38p00000gn/T/SyntaxFactory.swift /var/folders/kj/6xq_02p15hn3_88kwl7s38p00000gn/T/tmp6am4hrq9/SyntaxFactory.swift
/Users/holliday/opt/anaconda3/bin/python /Users/holliday/swift-project/swift/utils/gyb /Users/holliday/swift-project/swift-syntax/Sources/SwiftSyntax/SyntaxEnum.swift.gyb -o /var/folders/kj/6xq_02p15hn3_88kwl7s38p00000gn/T/SyntaxEnum.swift --line-directive=
Traceback (most recent call last):
File "/Users/holliday/swift-project/swift/utils/gyb", line 3, in <module>
gyb.main()
File "/Users/holliday/swift-project/swift/utils/gyb.py", line 1267, in main
f.write(execute_template(ast, args.line_directive, **bindings))
File "/Users/holliday/swift-project/swift/utils/gyb.py", line 1137, in execute_template
ast.execute(execution_context)
File "/Users/holliday/swift-project/swift/utils/gyb.py", line 639, in execute
x.execute(context)
File "/Users/holliday/swift-project/swift/utils/gyb.py", line 725, in execute
result = eval(self.code, context.local_bindings)
File "/Users/holliday/swift-project/swift-syntax/Sources/SwiftSyntax/SyntaxEnum.swift.gyb", line 4, in <module>
from gyb_syntax_support.Traits import TRAITS
File "/Users/holliday/swift-project/swift/utils/gyb_syntax_support/Traits.py", line 1, in <module>
from Child import Child
ModuleNotFoundError: No module named 'Child'
FAIL: Gyb-generated files committed to repository do not match generated ones. Please re-generate the gyb-files and recommit them.
You commented out that arm64 cross-compile from the preset? You could comment out this benchmark build too and then circle back at the end to fix whatever is failing.
Also, what commit have you checked out of the Swift repos, just latest main? I don't recommend that, best is to check out the latest source snapshot, currently June 1st. That way, you know you have a set of commits that passed the CI together (if you're using update-checkout, it has a flag to checkout all Swift repos to one tag).
Btw @mishal_shah, I noticed that a handful of Swift repos were not tagged with the trunk June 1 snapshot tag, like libdispatch. Never seen that before, something slipped through the cracks?