<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56998>56998</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            ubuntu bionic: compiler-rt fails to build with `no member named 'string_view' in namespace 'std'`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            compiler-rt,
            build-problem
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sylvestre
      </td>
    </tr>
</table>

<pre>
    ```

"/build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/build-llvm/./bin/clang++" --target=aarch64-unknown-linux-gnu -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I"/build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/compiler-rt/lib/orc/.." -I"/build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/compiler-rt/lib/orc/../../include" -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/build-llvm/runtimes/runtimes-bins=build-llvm/runtimes/runtimes-bins -ffile-prefix-map=/build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/= -no-canonical-prefixes -Wall -std=c++14 -Wno-unused-parameter -O3 -DNDEBUG -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions "-I/build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/build-llvm/include" "-I/build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/llvm/include" -MD -MT compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/macho_platform.cpp.o -MF compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/macho_platform.cpp.o.d -o compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/macho_platform.cpp.o -c '/build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/compiler-rt/lib/orc/macho_platform.cpp'
In file included from /build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/compiler-rt/lib/orc/macho_platform.cpp:13:
In file included from /build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/compiler-rt/lib/orc/macho_platform.h:17:
In file included from /build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/compiler-rt/lib/orc/executor_address.h:20:
/build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/compiler-rt/lib/orc/simple_packed_serialization.h:403:58: error: no member named 'string_view' in namespace 'std'
template <> class SPSSerializationTraits<SPSString, std::string_view> {
                                                    ~~~~~^
/build/llvm-toolchain-snapshot-16~++20220808091537+061e0189a3da/compiler-rt/lib/orc/macho_platform.cpp:178:34: error: no member named 'string_view' in namespace 'std'
      std::vector<std::pair<std::string_view, ExecutorAddrRange>> Secs);
                            ~~~~~^
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNV99v2zgM_muSF0NBYueXH_KQpemhwGUdmgyHewpkSXZ0syWfJKft_vr7aKdtgm7AMHS9tYYckRL5iaRIOrPycdGbDk_P8Ko3XJ7GOO7F11mjS4l3WR4rFqwtxYFrw7zhtT_YwEbT3mzdiz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