<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!") during FreeBSD/mips64 rescue build"
   href="https://llvm.org/bugs/show_bug.cgi?id=31148">31148</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!") during FreeBSD/mips64 rescue build
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </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>ELF
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>emaste@freebsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>23214
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I will collect a reproduction cpio soon.

Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file ../include/llvm/Support/Casting.h, line 236.
0  ld          0x0000000000aade6f llvm::raw_null_ostream::~raw_null_ostream() +
146431
1  ld          0x0000000000aae2c9 llvm::raw_null_ostream::~raw_null_ostream() +
147545
2  ld          0x0000000000aab107 llvm::raw_null_ostream::~raw_null_ostream() +
134807
3  ld          0x0000000000aae7cc llvm::raw_null_ostream::~raw_null_ostream() +
148828
4  libthr.so.3 0x00000008052cea3a pthread_sigmask + 1306                        
5  libthr.so.3 0x00000008052ce11c pthread_getspecific + 3580                    
Stack dump:                                                                     
0.      Program arguments:
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp/usr/bin/ld
--sysroot=/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp -EB -EB
-EB -G0 -melf64btsmip_fbsd -Bstatic -o rescue
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp/usr/lib/crt1.o
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp/usr/lib/crti.o
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp/usr/lib/crtbeginT.o
-L/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp/usr/lib
-L/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp/usr/lib
-L/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp/usr/lib
-L/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp/usr/bin
-L/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp/usr/bin
rescue.o cat.lo chflags.lo chio.lo chmod.lo cp.lo date.lo dd.lo df.lo echo.lo
ed.lo expr.lo getfacl.lo hostname.lo kenv.lo kill.lo ln.lo ls.lo mkdir.lo mv.lo
pkill.lo ps.lo pwd.lo realpath.lo rm.lo rmdir.lo setfacl.lo sh.lo sleep.lo
stty.lo sync.lo test.lo rcp.lo csh.lo badsect.lo camcontrol.lo ccdconfig.lo
clri.lo devfs.lo dmesg.lo dump.lo dumpfs.lo dumpon.lo fsck.lo fsck_ffs.lo
fsck_msdosfs.lo fsdb.lo fsirand.lo gbde.lo geom.lo ifconfig.lo init.lo
kldconfig.lo kldload.lo kldstat.lo kldunload.lo ldconfig.lo md5.lo mdconfig.lo
mdmfs.lo mknod.lo mount.lo mount_cd9660.lo mount_msdosfs.lo mount_nfs.lo
mount_nullfs.lo mount_udf.lo mount_unionfs.lo newfs.lo newfs_msdos.lo
nos-tun.lo ping.lo reboot.lo restore.lo rcorder.lo route.lo routed.lo
rtquery.lo rtsol.lo savecore.lo spppcontrol.lo swapon.lo sysctl.lo tunefs.lo
umount.lo atmconfig.lo ping6.lo ipf.lo zfs.lo zpool.lo dhclient.lo head.lo
mt.lo nc.lo sed.lo tail.lo tee.lo gzip.lo bzip2.lo less.lo xz.lo tar.lo vi.lo
id.lo iscsictl.lo zdb.lo chroot.lo chown.lo iscsid.lo
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/rescue/rescue/../librescue/exec.o
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/rescue/rescue/../librescue/getusershell.o
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/rescue/rescue/../librescue/login_class.o
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/rescue/rescue/../librescue/popen.o
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/rescue/rescue/../librescue/rcmdsh.o
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/rescue/rescue/../librescue/sysctl.o
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/rescue/rescue/../librescue/system.o
-lcrypt -ledit -ljail -lkvm -lelf -ll -ltermcapw -lutil -lxo -l80211 -lalias
-lcam -lncursesw -ldevstat -lipsec -llzma -lavl -lzpool -lzfs_core -lzfs
-lnvpair -lpthread -luutil -lumem -lgeom -lbsdxml -lkiconv -lmt -lsbuf -lufs
-lz -lbz2 -larchive -lcrypto -lmd -lm --start-group -lgcc -lgcc_eh -lc
--end-group
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp/usr/lib/crtend.o
/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd-xlld/tmp/usr/lib/crtn.o</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>