<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - PowerPC64: clang crashes when compiling Mesa with debugging"
   href="https://bugs.llvm.org/show_bug.cgi?id=43862">43862</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PowerPC64: clang crashes when compiling Mesa with debugging
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>9.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>pkubaj@anongoth.pl
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22755" name="attach_22755" title="shell script and preprocessed source">attachment 22755</a> <a href="attachment.cgi?id=22755&action=edit" title="shell script and preprocessed source">[details]</a></span>
shell script and preprocessed source

I experience the following crash when compiling Mesa 18.3.2 with LLVM 9.0.0 on
powerpc64 architecture:
Assertion failed: (idx < size()), function operator[], file
/usr/src/contrib/llvm/include/llvm/ADT/SmallVector.h, line 153.
Stack dump:
0.      Program arguments: /usr/bin/c++ -cc1 -triple
powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name
sb_bc_builder.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix
-relaxed-aliasing -fno-trapping-math -masm-verbose -mconstructor-aliases
-fuse-init-array -target-cpu ppc64 -target-feature +secure-plt -mfloat-abi hard
-dwarf-column-info -debug-info-kind=standalone -dwarf-version=4
-debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file
/tmp/usr/ports/graphics/mesa-dri/work/mesa-18.3.2/src/gallium/drivers/r600/sb/.libs/sb_bc_builder.gcno
-sys-header-deps -D PACKAGE_NAME="Mesa" -D PACKAGE_TARNAME="mesa" -D
PACKAGE_VERSION="18.3.2" -D PACKAGE_STRING="Mesa 18.3.2" -D
PACKAGE_BUGREPORT="<a href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa">https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa</a>" -D
PACKAGE_URL="" -D PACKAGE="mesa" -D VERSION="18.3.2" -D STDC_HEADERS=1 -D
HAVE_SYS_TYPES_H=1 -D HAVE_SYS_STAT_H=1 -D HAVE_STDLIB_H=1 -D HAVE_STRING_H=1
-D HAVE_MEMORY_H=1 -D HAVE_STRINGS_H=1 -D HAVE_INTTYPES_H=1 -D HAVE_STDINT_H=1
-D HAVE_UNISTD_H=1 -D HAVE_DLFCN_H=1 -D LT_OBJDIR=".libs/" -D YYTEXT_POINTER=1
-D HAVE___BUILTIN_BSWAP32=1 -D HAVE___BUILTIN_BSWAP64=1 -D HAVE___BUILTIN_CLZ=1
-D HAVE___BUILTIN_CLZLL=1 -D HAVE___BUILTIN_CTZ=1 -D HAVE___BUILTIN_EXPECT=1 -D
HAVE___BUILTIN_FFS=1 -D HAVE___BUILTIN_FFSLL=1 -D HAVE___BUILTIN_POPCOUNT=1 -D
HAVE___BUILTIN_POPCOUNTLL=1 -D HAVE___BUILTIN_UNREACHABLE=1 -D
HAVE_FUNC_ATTRIBUTE_CONST=1 -D HAVE_FUNC_ATTRIBUTE_FLATTEN=1 -D
HAVE_FUNC_ATTRIBUTE_FORMAT=1 -D HAVE_FUNC_ATTRIBUTE_MALLOC=1 -D
HAVE_FUNC_ATTRIBUTE_PACKED=1 -D HAVE_FUNC_ATTRIBUTE_PURE=1 -D
HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -D HAVE_FUNC_ATTRIBUTE_UNUSED=1 -D
HAVE_FUNC_ATTRIBUTE_VISIBILITY=1 -D HAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -D
HAVE_FUNC_ATTRIBUTE_WEAK=1 -D HAVE_FUNC_ATTRIBUTE_ALIAS=1 -D
HAVE_FUNC_ATTRIBUTE_NORETURN=1 -D HAVE_DLADDR=1 -D HAVE_CLOCK_GETTIME=1 -D
HAVE_CLOCK_NANOSLEEP=1
-D HAVE_PTHREAD_PRIO_INHERIT=1 -D HAVE_PTHREAD=1 -D HAVE_SYS_UMTX_H=1 -D
ENABLE_ST_OMX_BELLAGIO=0 -D ENABLE_ST_OMX_TIZONIA=0 -D __STDC_CONSTANT_MACROS
-D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D USE_GCC_ATOMIC_BUILTINS -D
DEBUG -D HAVE_XLOCALE_H -D HAVE_SYS_SYSCTL_H -D HAVE_DLFCN_H -D HAVE_STRTOF -D
HAVE_MKOSTEMP -D HAVE_TIMESPEC_GET -D HAVE_MEMFD_CREATE -D HAVE_STRTOD_L -D
HAVE_DL_ITERATE_PHDR -D HAVE_POSIX_MEMALIGN -D HAVE_ZLIB -D
HAVE_PTHREAD_SETAFFINITY -D HAVE_LINUX_FUTEX_H -D HAVE_LIBDRM -D GLX_USE_DRM -D
GLX_INDIRECT_RENDERING -D GLX_DIRECT_RENDERING -D HAVE_X11_PLATFORM -D
HAVE_SURFACELESS_PLATFORM -D HAVE_DRM_PLATFORM -D HAVE_WAYLAND_PLATFORM -D
WL_HIDE_DEPRECATED -D HAVE_DRI3 -D HAVE_DRI3_MODIFIERS -D ENABLE_SHADER_CACHE
-D HAVE_MINCORE -D HAVE_ST_VDPAU -D HAVE_LLVM=0x0800 -D
MESA_LLVM_VERSION_PATCH=1 -D PIC -O2 -Wall -Wno-missing-field-initializers
-fdeprecated-macro -ferror-limit 19 -fmessage-length 81 -fvisibility hidden
-stack-protector 2 -fno-signed-char -fobjc-runtime=gnustep -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -faddrsig -x c++ sb_bc_builder-669135.cpp
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'sb_bc_builder-669135.cpp'.
4.      Running pass 'Linux PPC Assembly Printer' on function
'@_ZN7r600_sb10bc_builder12build_cf_expEPNS_7cf_nodeE'


The shell script and preprocessed source file are attached.

According to one of FreeBSD PPC devs, "looks like the 28th or so RLWINM8 is
being written with two parameters missing".</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>