From owner-freebsd-mips@FreeBSD.ORG Tue Feb 3 20:26:29 2015 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6863B527 for ; Tue, 3 Feb 2015 20:26:29 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4908B97C for ; Tue, 3 Feb 2015 20:26:29 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t13KQTAc094835 for ; Tue, 3 Feb 2015 20:26:29 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-mips@FreeBSD.org Subject: [Bug 197259] [mips64] First Pass at clang enabled builds for mips64 (with clang36) Date: Tue, 03 Feb 2015 20:26:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sbruno@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2015 20:26:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197259 --- Comment #11 from Sean Bruno --- Ok, much further along now. We appear to be breaking down handling crt: ------------------------------------------------------------- >>> 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/mip s.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-impor t/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-im port/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) sh /home/sbruno/bsd/clang360-import/tools/install.sh -C -o root -g wheel -m 444 libcompiler_rt.a /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/lib /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/lib/libgcc.a -> libcompiler_rt.a ===> gnu/lib/csu (obj,depend,all,install) cc -O -pipe -v -G0 -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3 -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -I/home/sbruno/bsd/clang360-impo rt/gnu/lib/csu/../../../contrib/gcclibs/include -I/home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcc/config -I/home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcc -I. -I/home/sbruno/bsd/clang360-import/gnu/li b/csu/../../usr.bin/cc/cc_tools -std=gnu89 -Qunused-arguments -g0 -DCRT_BEGIN -c -o crtbegin.o /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcc/crtstuff.c 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 crtstuff.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -mno-zero- initialized-in-bss -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.m ips64/home/sbruno/bsd/clang360-import/gnu/lib/csu/crtbegin.o -resource-dir /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/bin/../lib/clang/3.6.0 -D IN_GCC -D HAVE_LD_EH_FRAME_HDR -D DT_CONFIG -D __GLIBC__=3 -D CRT_BEGIN -I /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcclibs/include -I /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcc/config -I /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcc -I . -I /home/ sbruno/bsd/clang360-import/gnu/lib/csu/../../usr.bin/cc/cc_tools -isysroot /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp -O2 -std=gnu89 -fdebug-compilation-dir /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/gnu/lib/csu -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-inline-functions -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o crtbegin.o -x c /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcc/crtstuff.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: /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcclibs/include /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcc/config /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcc . /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../usr.bin/cc/cc_tools /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. :6:20: error: expected identifier .cpsetup $31, $2, 1b ^ Assertion failed: (!Name.empty() && "Normal symbols cannot be unnamed!"), function GetOrCreateSymbol, file /home/sbruno/bsd/clang360-import/lib/clang/libllvmmc/../../../contrib/llvm/lib/MC/MCContext.cpp, line 101. Stack dump: Stack dump: 0. Program arguments: /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 crtstuff.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -mno-zero-initialized-in-bss -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/gnu/lib/csu/crtbegin.o -resource-dir /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/bin/../lib/clang/3.6.0 -D IN_GCC -D HAVE_LD_EH_FRAME_HDR -D DT_CONFIG -D __GLIBC__=3 -D CRT_BEGIN -I /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcclibs/include -I /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcc/config -I /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcc -I . -I /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../usr.bin/cc/cc_tools -isysroot /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp -O2 -std=gnu89 -fdebug-compilation-dir /var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/gnu/lib/csu -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-inline-functions -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o crtbegin.o -x c /home/sbruno/bsd/clang360-import/gnu/lib/csu/../../../contrib/gcc/crtstuff.c 1. parser at end of file 2. Code generation cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (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/crtstuff-ce8c9e.c cc: note: diagnostic msg: /tmp/crtstuff-ce8c9e.sh cc: note: diagnostic msg: ******************** *** Error code 254 Stop. make[4]: stopped in /home/sbruno/bsd/clang360-import/gnu/lib/csu *** Error code 1 -- You are receiving this mail because: You are on the CC list for the bug.