Date: Mon, 02 Feb 2015 01:19:03 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 197259] [mips64] First Pass at clang enabled builds for mips64 (with clang36) Message-ID: <bug-197259-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197259 Bug ID: 197259 Summary: [mips64] First Pass at clang enabled builds for mips64 (with clang36) Product: Base System Version: 11.0-CURRENT Hardware: mips OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: sbruno@FreeBSD.org CC: dim@FreeBSD.org Starting down the road of compiling mips64 for clang. I get a clang crash here: -------------------------------------------------------------- >>> stage 4.2: building libraries -------------------------------------------------------------- cd /home/sbruno/bsd/clang360-import; MAKEOBJDIRPREFIX=/var/tmp/mips.mips64 MACHINE_ARCH=mips64 MACHINE=mips CPUTYPE= GROFF_BIN_PATH=/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/legacy/usr/bin GROFF_FONT_PATH=/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/legacy/usr/share/tmac _SHLIBDIRPREFIX=/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp _LDSCRIPTROOT= VERSION="FreeBSD 11.0-CURRENT mips64 1100058" INSTALL="sh /home/sbruno/bsd/clang360-import/tools/install.sh" PATH=/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/legacy/usr/sbin:/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/legacy/usr/bin:/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/legacy/usr/games:/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/legacy/bin:/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/sbin:/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/bin:/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin CC="cc " CXX="c++ " DEPFLAGS="" CPP="cpp " AS="as" AR="ar" LD="ld" NM=nm OBJDUMP=objdump OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size" make -f Makefile.inc1 DESTDIR=/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp -DNO_FSCHG MK_HTML=no -DNO_LINT MK_MAN=no MK_PROFILE=no MK_TESTS=no MK_TESTS_SUPPORT=yes libraries cd /home/sbruno/bsd/clang360-import && make -f Makefile.inc1 _prereq_libs && make -f Makefile.inc1 _startup_libs && make -f Makefile.inc1 _prebuild_libs && make -f Makefile.inc1 _generic_libs ===> gnu/lib/libssp/libssp_nonshared (obj,depend,all,install) sh /home/sbruno/bsd/clang360-import/tools/install.sh -C -o root -g wheel -m 444 libssp_nonshared.a /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/lib ===> gnu/lib/libgcc (obj,depend,all,install) sh /home/sbruno/bsd/clang360-import/tools/install.sh -C -o root -g wheel -m 444 libgcc_eh.a /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/lib ===> lib/libcompiler_rt (obj,depend,all,install) cc -O -pipe -v -G0 -fpic -fvisibility=hidden -DVISIBILITY_HIDDEN -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments -c /home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/absvti2.c -o absvti2.o FreeBSD clang version 3.6.0 (tags/RELEASE_360/rc2 227651) 20150131 Target: mips64-unknown-freebsd11.0 Thread model: posix "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/bin/cc" -cc1 -triple mips64-unknown-freebsd11.0 -emit-obj -disable-free -main-file-name absvti2.c -mrelocation-model pic -pic-level 1 -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu mips64r2 -target-feature -o32 -target-feature +n64 -target-abi n64 -mfloat-abi hard -mllvm -mips-ssection-threshold=0 -v -dwarf-column-info -coverage-file /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/absvti2.o -resource-dir /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/bin/../lib/clang/3.6.0 -D VISIBILITY_HIDDEN -isysroot /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp -O2 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -std=gnu99 -fdebug-compilation-dir /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/lib/libcompiler_rt -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -mstackrealign -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o absvti2.o -x c /home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/absvti2.c clang -cc1 version 3.6.0 based upon LLVM 3.6.0 default target mips64-unknown-freebsd11.0 #include "..." search starts here: #include <...> search starts here: /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/bin/../lib/clang/3.6.0/include /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include End of search list. fatal error: error in backend: Cannot select: 0x8032c5cc0: i64,glue = subc 0x8032c5660, 0x8032c5000 [ORD=4] [ID=11] 0x8032c5660: i64 = xor 0x8032c5000, 0x8032c5550 [ORD=3] [ID=10] 0x8032c5000: i64 = sra 0x8032c5dd0, 0x8032c6550 [ORD=2] [ID=7] 0x8032c5dd0: i64,ch = CopyFromReg 0x80326e930, 0x8032c6990 [ORD=2] [ID=6] 0x8032c6990: i64 = Register %vreg2 [ID=1] 0x8032c6550: i32 = Constant<63> [ID=5] 0x8032c5550: i64,ch = CopyFromReg 0x8032c5dd0:1, 0x8032c6660 [ORD=2] [ID=8] 0x8032c6660: i64 = Register %vreg3 [ID=2] 0x8032c5000: i64 = sra 0x8032c5dd0, 0x8032c6550 [ORD=2] [ID=7] 0x8032c5dd0: i64,ch = CopyFromReg 0x80326e930, 0x8032c6990 [ORD=2] [ID=6] 0x8032c6990: i64 = Register %vreg2 [ID=1] 0x8032c6550: i32 = Constant<63> [ID=5] In function: __absvti2 cc: error: clang frontend command failed with exit code 70 (use -v to see invocation) FreeBSD clang version 3.6.0 (tags/RELEASE_360/rc2 227651) 20150131 Target: mips64-unknown-freebsd11.0 Thread model: posix cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. cc: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/absvti2-6a9ce7.c cc: note: diagnostic msg: /tmp/absvti2-6a9ce7.sh cc: note: diagnostic msg: ******************** *** Error code 70 Stop. make[4]: stopped in /home/sbruno/bsd/clang360-import/lib/libcompiler_rt *** Error code 1 Stop. make[3]: stopped in /home/sbruno/bsd/clang360-import *** Error code 1 Stop. make[2]: stopped in /home/sbruno/bsd/clang360-import *** Error code 1 Stop. make[1]: stopped in /home/sbruno/bsd/clang360-import *** Error code 1 Stop. make: stopped in /home/sbruno/bsd/clang360-import -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197259-8>