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

    <tr>
        <th>Summary</th>
        <td>
            compiler-rt/s390x: `error: out-of-line definition of 'patchFunctionEntry' does not match any declaration in namespace '__xray'`
        </td>
    </tr>

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

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

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

<pre>
    On ubuntu lunar s390x: 
https://llvm-jenkins.debian.net/job/llvm-toolchain-lunar-binaries/architecture=s390x,distribution=lunar,label=s390x/1039/console
```
ib/linux/libclang_rt.asan-s390x.a
[3/50] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.s390x.dir/xray_s390x.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.s390x.dir/xray_s390x.cpp.o 
/build/source/build-llvm/tools/clang/stage2-bins/./bin/clang++ --target=s390x-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/compiler-rt/lib/xray/.. -I/build/source/compiler-rt/lib/xray/../../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 -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins/runtimes/runtimes-bins=../../../../../../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -Wall -Wno-unused-parameter -O2 -DNDEBUG -g1 -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 -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -std=c++17 -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.s390x.dir/xray_s390x.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.s390x.dir/xray_s390x.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.s390x.dir/xray_s390x.cpp.o -c /build/source/compiler-rt/lib/xray/xray_s390x.cpp
/build/source/compiler-rt/lib/xray/xray_s390x.cpp:20:14: error: out-of-line definition of 'patchFunctionEntry' does not match any declaration in namespace '__xray'
   20 | bool __xray::patchFunctionEntry(const bool Enable, uint32_t FuncId,
      | ^~~~~~~~~~~~~~~~~~
/build/source/compiler-rt/lib/xray/xray_s390x.cpp:44:14: error: out-of-line definition of 'patchFunctionExit' does not match any declaration in namespace '__xray'
   44 | bool __xray::patchFunctionExit(const bool Enable, uint32_t FuncId,
      | ^~~~~~~~~~~~~~~~~
/build/source/compiler-rt/lib/xray/xray_s390x.cpp:68:14: error: out-of-line definition of 'patchFunctionTailExit' does not match any declaration in namespace '__xray'
   68 | bool __xray::patchFunctionTailExit(const bool Enable, const uint32_t FuncId,
 | ^~~~~~~~~~~~~~~~~~~~~
/build/source/compiler-rt/lib/xray/xray_s390x.cpp:71:10: error: no matching function for call to 'patchFunctionExit'
   71 | return patchFunctionExit(Enable, FuncId, Sled);
      | ^~~~~~~~~~~~~~~~~
/build/source/compiler-rt/lib/xray/xray_interface_internal.h:144:6: note: candidate function not viable: requires 4 arguments, but 3 were provided
  144 | bool patchFunctionExit(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled,
      |      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  145 | const XRayTrampolines &Trampolines);
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEWN1y4jgWfhpxoxJlZAjhgguC8S5VkzAV6EpmbihZOjbqliWPfkiYi332LdkQkml6N7vN1lIU2Ec6f5--cySbOScrDTBFozs0ynos-J2xU3dQe3DeQq8w4jBdaRyKoH3AKmhmsUsnyStKZxglGUpmO-8bh9IZojmiuVL7mnwF_U1q1xdQSKb7Gjyi-VdTnMa9MYrvmNSktUgKqZmV4BDNmeU76YH7YAGlWeeLzoV03soieGk0SrNWDdG5YgWo87R8kKQTRHNutDMKuvjQTXL8treyjULq8Nr-F1wxXW2t7zPHNGkN9dlRc3SXIpqPEjTK8F2QSkhd4fnzMzbFV-Aec1M3UoEl1nfGEM1fLTsgms_v2TfIpWqTetw8W3bod8aFtMdp207Am6ZvOo_5bPnLIovYXtH0cZ0QzYuYA6K5M8FyOAlIXBNE87gq0WSLSJzlWQU0Lk6U9uN0qc_jd4jeYUI8sxX40xqQFllS6YBJtp49LDfL3xeP2_nq_n71sH1YbR8X2SJfPiy2d1-Wv2yWD2tMsufH2W_bv8_W28XzfPHrZrl6WKM0G2CSbbfrTTbfzlcP683sYbO9n80fV-vzQL56vJ99L_5leb88S5eXMv8X-Pb7_43O6UdqroIATErnGf9GGmsinY0lzlujK0yeSmNr5jF5AmuNRWnWCYgDHqz0B0yetCFBBweCcFPXTIsILBBmq1CDjrqCeSBe1hDTzlePm2X-23a9-vI4X6A0o5iUvy7nmJTaEAc1015yIrUH2xgnYxlhUu6lk4VU0h-I1NGBIzspBOh3sb3z8yYLugrMChCE7ZlU7GhDwwsmT0ypOPXVW_YhkY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