From owner-freebsd-bugs@freebsd.org Sun Dec 4 07:08:18 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 60194C668F1 for ; Sun, 4 Dec 2016 07:08:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4EFB6189D for ; Sun, 4 Dec 2016 07:08:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uB478IQu083387 for ; Sun, 4 Dec 2016 07:08:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 215039] head -r309179 TARGET_ARCH=powerpc64 buildworld using WITH_LLVM_LIBUNWIND= fails to build: asserts and rejects .S file contents Date: Sun, 04 Dec 2016 07:08:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2016 07:08:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215039 Bug ID: 215039 Summary: head -r309179 TARGET_ARCH=3Dpowerpc64 buildworld using WITH_LLVM_LIBUNWIND=3D fails to build: asserts and rejects .S file contents Product: Base System Version: CURRENT Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: markmi@dsl-only.net (This test was done on a powerpc64 for TARGET_ARCH=3Dpowerpc64, not cross compiling. Compared to my normal, successful buildworld I just added WITH_LLVM_LIBUNWI= ND=3D to the SRC_CONF_ENV file that I use.) I list parts of the .meta file contents for 3 files that got errors: # Meta data file /usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc64/usr/src/li= b/libgcc_eh/libunwind.o.meta CMD /usr/bin/clang++ -B /usr/local/powerpc64-freebsd/bin/ -target powerpc64-unknown-freebsd12.0 --sysroot=3D/usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc6= 4/usr/src/tmp -B/usr/local/powerpc64-freebsd/bin/ -fvisibility=3Dhidden -fPIC -O2 -pipe -I/usr/src/contrib/llvm/projects/libunwind/include -I/usr/src/lib/libgcc_eh -D_LIBUNWIND_IS_NATIVE_ONLY -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -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 -std=3Dc++11 -fno-rtti -Wno-c++11-extensions -c /usr/src/contrib/llvm/projects/libunwind/src/libunwind.cpp -o libunwind.o CWD /usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc64/usr/src/li= b/libgcc_eh TARGET libunwind.o -- command output -- In file included from /usr/src/contrib/llvm/projects/libunwind/src/libunwind.cpp:27: /usr/src/contrib/llvm/projects/libunwind/src/UnwindCursor.hpp:612:3: error: static_assert failed "UnwindCursor<> does not fit in unw_cursor_t" static_assert((check_fit, unw_cursor_t>::does_fit), ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/contrib/llvm/projects/libunwind/src/libunwind.cpp:68:24: note: in instantiation of member function 'libunwind::UnwindCursor::UnwindCursor' requested here new ((void *)cursor) UnwindCursor( ^ 1 error generated. *** Error code 1 # Meta data file /usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc64/usr/src/li= b/libgcc_eh/UnwindRegistersRestore.o.meta CMD /usr/bin/clang -B /usr/local/powerpc64-freebsd/bin/ -target powerpc64-unknown-freebsd12.0 --sysroot=3D/usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc6= 4/usr/src/tmp -B/usr/local/powerpc64-freebsd/bin/ -O2 -pipe=20=20 -I/usr/src/contrib/llvm/projects/libunwind/include -I/usr/src/lib/libgcc_eh -D_LIBUNWIND_IS_NATIVE_ONLY -std=3Dgnu99 -Wsystem-headers -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 /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S -o UnwindRegistersRestore.o CMD=20 CWD /usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc64/usr/src/li= b/libgcc_eh TARGET UnwindRegistersRestore.o -- command output -- /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S:98:46: error: unexpected token in directive .globl _ZN9libunwind13Registers_ppc6jumptoEv @ .hidden _ZN9libunwind13Registers_ppc6jumptoEv @ .type _ZN9libunwind13Registers_ppc6jumptoEv,@function @ _ZN9libunwind13Registers_ppc6jumptoEv: ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S:100:3: error: unrecognized instruction mnemonic ; void libunwind::Registers_ppc::jumpto() ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S:100:1= 7: error: unexpected token at start of statement ; void libunwind::Registers_ppc::jumpto() ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S:102:3: error: unrecognized instruction mnemonic ; On entry: ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S:102:1= 1: error: unexpected token at start of statement ; On entry: ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S:103:3: error: unrecognized instruction mnemonic ; thread_state pointer is in r3 ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S:103:2= 4: error: unrecognized instruction mnemonic ; thread_state pointer is in r3 ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S:103:3= 0: error: unrecognized instruction mnemonic ; thread_state pointer is in r3 ^ . . . (a very long list) . . . # Meta data file /usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc64/usr/src/li= b/libgcc_eh/UnwindRegistersSave.o.meta CMD /usr/bin/clang -B /usr/local/powerpc64-freebsd/bin/ -target powerpc64-unknown-freebsd12.0 --sysroot=3D/usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc6= 4/usr/src/tmp -B/usr/local/powerpc64-freebsd/bin/ -O2 -pipe=20=20 -I/usr/src/contrib/llvm/projects/libunwind/include -I/usr/src/lib/libgcc_eh -D_LIBUNWIND_IS_NATIVE_ONLY -std=3Dgnu99 -Wsystem-headers -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 /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S -o UnwindRegistersSave.o CMD=20 CWD /usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc64/usr/src/li= b/libgcc_eh TARGET UnwindRegistersSave.o -- command output -- /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:102:3: error: unrecognized instruction mnemonic ; extern int unw_getcontext(unw_context_t* thread_state) ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:102:14: error: unrecognized instruction mnemonic ; extern int unw_getcontext(unw_context_t* thread_state) ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:104:3: error: unrecognized instruction mnemonic ; On entry: ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:104:11: error: unexpected token at start of statement ; On entry: ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:105:3: error: unrecognized instruction mnemonic ; thread_state pointer is in r3 ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:105:24: error: unrecognized instruction mnemonic ; thread_state pointer is in r3 ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:105:30: error: unrecognized instruction mnemonic ; thread_state pointer is in r3 ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:107:23: error: unexpected token in directive .globl unw_getcontext @ .type unw_getcontext,@function @ unw_getcontext: ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:108:13: error: invalid memory operand stw r0, 8(r3) ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:108:15: error: unknown operand stw r0, 8(r3) ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:108:15: error: unexpected token at start of statement stw r0, 8(r3) ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:109:8: error: invalid operand for instruction mflr r0 ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:110:13: error: invalid memory operand stw r0, 0(r3) ; store lr as ssr0 ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:110:15: error: unknown operand stw r0, 0(r3) ; store lr as ssr0 ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:110:15: error: unexpected token at start of statement stw r0, 0(r3) ; store lr as ssr0 ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:110:19: error: unrecognized instruction mnemonic stw r0, 0(r3) ; store lr as ssr0 ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:110:28: error: unrecognized instruction mnemonic stw r0, 0(r3) ; store lr as ssr0 ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:111:14: error: invalid memory operand stw r1, 12(r3) ^ /usr/src/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S:111:16: error: unknown operand stw r1, 12(r3) ^ . . . (Another very long list) . . . --=20 You are receiving this mail because: You are the assignee for the bug.=