Closed Bug 1571566 Opened 5 years ago Closed 5 years ago

"TypeError: cannot use a string pattern on a bytes-like object" on cmake error while building clang

Categories

(Firefox Build System :: Toolchains, defect)

defect
Not set
normal

Tracking

(firefox70 fixed)

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

When cmake fails during the clang build, the following error happens:

Traceback (most recent call last):
  File "Z:\task_1564889942\build\src/build/build-clang/build-clang.py", line 769, in <module>
    build_type, assertions, python_path, gcc_dir, libcxx_include_dir)
  File "Z:\task_1564889942\build\src/build/build-clang/build-clang.py", line 382, in build_one_stage
    build_package(build_dir, cmake_args)
  File "Z:\task_1564889942\build\src/build/build-clang/build-clang.py", line 113, in build_package
    run_in(package_build_dir, ["cmake"] + cmake_args)
  File "Z:\task_1564889942\build\src/build/build-clang/build-clang.py", line 81, in run_in
    check_run(args)
  File "Z:\task_1564889942\build\src/build/build-clang/build-clang.py", line 61, in check_run
    output_match = find_first_match(cmake_output_re)
  File "Z:\task_1564889942\build\src/build/build-clang/build-clang.py", line 57, in find_first_match
    match = re.search(l)
TypeError: cannot use a string pattern on a bytes-like object

This originates from the python3 conversion.

Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b5b513cec19f
Fix cmake error handling in build-clang.py after python3 conversion. r=dmajor
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Has Regression Range: --- → yes
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: