Compile Fail

Env:
Xcode 13 Beta
Cmake 3.21.1
Python 3.9.6
Ninja 1.10.2
sccache 0.2.15

Command:
utils/build-script --skip-build-benchmarks
--skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)"
--sccache --release-debuginfo --swift-disable-dead-stripping --test
--xcode --swift-darwin-supported-archs "x86_64" --reconfigure

In /Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/Testing/Temporary/LastTest.log:
Start testing: Aug 01 07:11 CST

1/9 Testing: api_test
1/9 Test: api_test
Command: "/Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/api_test/RelWithDebInfo/api_test"
Directory: /Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir
"api_test" start time: Aug 01 07:11 CST
Output:

539 tests passed, 0 failed, 0 skipped
PASS

Test time = 0.01 sec

Test Passed.
"api_test" end time: Aug 01 07:11 CST
"api_test" time elapsed: 00:00:00

2/9 Testing: html_normalization
2/9 Test: html_normalization
Command: "/usr/local/bin/python3" "-m" "doctest" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/normalize.py"
Directory: /Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir
"html_normalization" start time: Aug 01 07:11 CST
Output:


Test time = 0.12 sec

Test Passed.
"html_normalization" end time: Aug 01 07:11 CST
"html_normalization" time elapsed: 00:00:00

3/9 Testing: spectest_library
3/9 Test: spectest_library
Command: "/usr/local/bin/python3" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec.txt" "--library-dir" "/Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir/../src"
Directory: /Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir
"spectest_library" start time: Aug 01 07:11 CST
Output:

Traceback (most recent call last):
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py", line 137, in
converter = CMark(prog=args.program, library_dir=args.library_dir).to_html
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/cmark.py", line 59, in init
cmark = CDLL(libpath)
UnboundLocalError: local variable 'libpath' referenced before assignment

Test time = 0.09 sec

Test Failed.
"spectest_library" end time: Aug 01 07:11 CST
"spectest_library" time elapsed: 00:00:00

4/9 Testing: pathological_tests_library
4/9 Test: pathological_tests_library
Command: "/usr/local/bin/python3" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/pathological_tests.py" "--library-dir" "/Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir/../src"
Directory: /Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir
"pathological_tests_library" start time: Aug 01 07:11 CST
Output:

Traceback (most recent call last):
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/pathological_tests.py", line 21, in
cmark = CMark(prog=args.program, library_dir=args.library_dir)
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/cmark.py", line 59, in init
cmark = CDLL(libpath)
UnboundLocalError: local variable 'libpath' referenced before assignment

Test time = 0.07 sec

Test Failed.
"pathological_tests_library" end time: Aug 01 07:11 CST
"pathological_tests_library" time elapsed: 00:00:00

5/9 Testing: roundtriptest_library
5/9 Test: roundtriptest_library
Command: "/usr/local/bin/python3" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/roundtrip_tests.py" "--spec" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec.txt" "--library-dir" "/Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir/../src"
Directory: /Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir
"roundtriptest_library" start time: Aug 01 07:11 CST
Output:

Traceback (most recent call last):
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/roundtrip_tests.py", line 44, in
do_test(converter, test, args.normalize, result_counts)
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py", line 41, in do_test
[retcode, actual_html, err] = converter(test['markdown'])
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/roundtrip_tests.py", line 26, in converter
cmark = CMark(prog=args.program, library_dir=args.library_dir)
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/cmark.py", line 59, in init
cmark = CDLL(libpath)
UnboundLocalError: local variable 'libpath' referenced before assignment

Test time = 0.07 sec

Test Failed.
"roundtriptest_library" end time: Aug 01 07:11 CST
"roundtriptest_library" time elapsed: 00:00:00

6/9 Testing: entity_library
6/9 Test: entity_library
Command: "/usr/local/bin/python3" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/entity_tests.py" "--library-dir" "/Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir/../src"
Directory: /Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir
"entity_library" start time: Aug 01 07:11 CST
Output:

Traceback (most recent call last):
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/entity_tests.py", line 29, in
cmark = CMark(prog=args.program, library_dir=args.library_dir)
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/cmark.py", line 59, in init
cmark = CDLL(libpath)
UnboundLocalError: local variable 'libpath' referenced before assignment

Test time = 0.05 sec

Test Failed.
"entity_library" end time: Aug 01 07:11 CST
"entity_library" time elapsed: 00:00:00

7/9 Testing: spectest_executable
7/9 Test: spectest_executable
Command: "/usr/local/bin/python3" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec.txt" "--program" "/Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir/../src/cmark"
Directory: /Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir
"spectest_executable" start time: Aug 01 07:11 CST
Output:

Traceback (most recent call last):
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py", line 140, in
do_test(converter, test, args.normalize, result_counts)
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py", line 41, in do_test
[retcode, actual_html, err] = converter(test['markdown'])
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/cmark.py", line 42, in
self.to_html = lambda x: pipe_through_prog(prog, x)
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/cmark.py", line 10, in pipe_through_prog
p1 = Popen(prog.split(), stdout=PIPE, stdin=PIPE, stderr=PIPE)
File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir/../src/cmark'

Test time = 0.08 sec

Test Failed.
"spectest_executable" end time: Aug 01 07:11 CST
"spectest_executable" time elapsed: 00:00:00

8/9 Testing: smartpuncttest_executable
8/9 Test: smartpuncttest_executable
Command: "/usr/local/bin/python3" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/smart_punct.txt" "--program" "/Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir/../src/cmark --smart"
Directory: /Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir
"smartpuncttest_executable" start time: Aug 01 07:11 CST
Output:

Traceback (most recent call last):
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py", line 140, in
do_test(converter, test, args.normalize, result_counts)
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py", line 41, in do_test
[retcode, actual_html, err] = converter(test['markdown'])
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/cmark.py", line 42, in
self.to_html = lambda x: pipe_through_prog(prog, x)
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/cmark.py", line 10, in pipe_through_prog
p1 = Popen(prog.split(), stdout=PIPE, stdin=PIPE, stderr=PIPE)
File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir/../src/cmark'

Test time = 0.07 sec

Test Failed.
"smartpuncttest_executable" end time: Aug 01 07:11 CST
"smartpuncttest_executable" time elapsed: 00:00:00

9/9 Testing: regressiontest_executable
9/9 Test: regressiontest_executable
Command: "/usr/local/bin/python3" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/regression.txt" "--program" "/Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir/../src/cmark"
Directory: /Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir
"regressiontest_executable" start time: Aug 01 07:11 CST
Output:

Traceback (most recent call last):
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py", line 140, in
do_test(converter, test, args.normalize, result_counts)
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/spec_tests.py", line 41, in do_test
[retcode, actual_html, err] = converter(test['markdown'])
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/cmark.py", line 42, in
self.to_html = lambda x: pipe_through_prog(prog, x)
File "/Users/shizhiang/Documents/GitHub/swift-project/cmark/test/cmark.py", line 10, in pipe_through_prog
p1 = Popen(prog.split(), stdout=PIPE, stdin=PIPE, stderr=PIPE)
File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/shizhiang/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/testdir/../src/cmark'

Test time = 0.06 sec

Test Failed.
"regressiontest_executable" end time: Aug 01 07:11 CST
"regressiontest_executable" time elapsed: 00:00:00

End testing: Aug 01 07:11 CST

I get that too whenever I try to build with the --xcode flag. I've got Xcode versions 12.5.1, 13b4, and 13b5 installed, and it doesn't matter which version I tell xcode-select to use.

Terms of Service

Privacy Policy

Cookie Policy