From owner-freebsd-bugs@freebsd.org Mon Jun 19 02:08:54 2017 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 B88DBD92CCF for ; Mon, 19 Jun 2017 02:08:54 +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 9A9FF83BC5 for ; Mon, 19 Jun 2017 02:08:54 +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 v5J28sY5034901 for ; Mon, 19 Jun 2017 02:08:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 220118] devel/powerpc64-gcc based buildkernel: sys/powerpc/powerpc/stack_machdep.c rejected for: '__builtin_frame_address' with a nonzero argument is unsafe Date: Mon, 19 Jun 2017 02:08:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern 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: Mon, 19 Jun 2017 02:08:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220118 Bug ID: 220118 Summary: devel/powerpc64-gcc based buildkernel: sys/powerpc/powerpc/stack_machdep.c rejected for: '__builtin_frame_address' with a nonzero argument is unsafe Product: Base System Version: CURRENT Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: markmi@dsl-only.net This is another example place with the same sort of compiler report as bugzilla 215600 was for. I've switched back to using WERROR to allow the kernel to build via xtoolchain-powerpc64-gcc . The example context is a debug kernel build. At least this place in the kernel also needs an update if WERROR use is to be avoided for xtoolchain-powerpc64-gcc. The detailed build failure material follows. --- stack_machdep.o --- /usr/src/sys/powerpc/powerpc/stack_machdep.c: In function 'stack_save': /usr/src/sys/powerpc/powerpc/stack_machdep.c:113:22: error: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Werror=3Dframe-address] frame =3D (register_t)__builtin_frame_address(1); ^~~~~~~~~~~~~~~~~~~~~~~~~~ Building /usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src/s= ys/GENERIC64vtsc-DBG/mmu_phyp.o . . . --- stack_machdep.o --- cc1: all warnings being treated as errors . . . --- stack_machdep.o --- *** [stack_machdep.o] Error code 1 make[2]: stopped in /usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src/s= ys/GENERIC64vtsc-DBG .ERROR_TARGET=3D'stack_machdep.o' .ERROR_META_FILE=3D'/usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc= .powerpc64/usr/src/sys/GENERIC64vtsc-DBG/stack_machdep.o.meta' .MAKE.LEVEL=3D'2' . . . # Meta data file /usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src/s= ys/GENERIC64vtsc-DBG/stack_machdep.o.meta CMD /usr/local/bin/powerpc64-unknown-freebsd12.0-gcc -isystem /usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src/t= mp/usr/include -L/usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src= /tmp/usr/lib -B/usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src= /tmp/usr/lib --sysroot=3D/usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc= 64/usr/src/tmp -B/usr/local/powerpc64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -msoft-float -fPIC -fno-omit-frame-pointer -mno-altivec -msoft-float -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qu= al -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=3Daddress -Wno-error=3Daggressive-loop-optimizations -Wno-error=3Darray-bounds -Wno-error=3Dattributes -Wno-error=3Dcast-qual -Wno-error=3Denum-compare -Wno-error=3Dinline -Wno-error=3Dmaybe-uninitialized -Wno-error=3Doverflow -Wno-error=3Dsequence-point -Wno-error=3Dstrict-overflow -Wno-error=3Dunused-but-set-variable -Wno-error=3Dmisleading-indentation -Wno-error=3Dnonnull-compare -Wno-error=3Dshift-overflow -Wno-error=3Dtautological-compare -v -fno-common -fms-extensions -finline-limit=3D15000 --param inline-unit-growth=3D100 --param large-function-growth=3D1000 -Wa,-many -mcall-aixdesc -std=3Diso9899:1999 = -Werror=20 /usr/src/sys/powerpc/powerpc/stack_machdep.c CMD ctfconvert -L VERSION -g stack_machdep.o CWD /usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src/s= ys/GENERIC64vtsc-DBG TARGET stack_machdep.o -- command output -- Using built-in specs. COLLECT_GCC=3D/usr/local/bin/powerpc64-unknown-freebsd12.0-gcc Target: powerpc64-unknown-freebsd12.0 Configured with: /usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/configure --target=3Dpowerpc64-unknown-freebsd12.0 --disable-nls --enable-languages= =3Dc,c++ --without-headers --with-gmp=3D/usr/local --with-pkgversion=3D'FreeBSD Ports Collection for powerpc64' --with-system-zlib --with-gcc-include-dir=3D/usr/include/c++/v1/ --with-as=3D/usr/local/bin/powerpc64-freebsd-as --with-ld=3D/usr/local/bin/powerpc64-freebsd-ld --prefix=3D/usr/local --localstatedir=3D/var --mandir=3D/usr/local/man --infodir=3D/usr/local/inf= o/ --build=3Damd64-unknown-freebsd12.0 Thread model: posix gcc version 6.3.0 (FreeBSD Ports Collection for powerpc64)=20 COLLECT_GCC_OPTIONS=3D'-isystem' '/usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src/= tmp/usr/include' '-L/usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/sr= c/tmp/usr/lib' '-B' '/usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src/= tmp/usr/lib' '-B' '/usr/local/powerpc64-freebsd/bin/' '-c' '-O' '-pipe' '-g' '-nostdinc' '-I' '.' '-I' '/usr/src/sys' '-I' '/usr/src/sys/contrib/libfdt' '-D' '_KERN= EL' '-D' 'HAVE_KERNEL_OPTION_HEADERS' '-include' 'opt_global.h' '-msoft-float' '-fPIC' '-fno-omit-frame-pointer' '-mno-altivec' '-msoft-float' '-ffreestanding' '-fwrapv' '-fstack-protector' '-gdwarf-2' '-Wall' '-Wredundant-decls' '-Wnested-externs' '-Wstrict-prototypes' '-Wmissing-prototypes' '-Wpointer-arith' '-Winline' '-Wcast-qual' '-Wundef' '-Wno-pointer-sign' '-fformat-extensions' '-Wmissing-include-dirs' '-fdiagnostics-show-option' '-Wno-unknown-pragmas' '-Wno-error=3Daddress' '-Wno-error=3Daggressive-loop-optimizations' '-Wno-error=3Darray-bounds' '-Wno-error=3Dattributes' '-Wno-error=3Dcast-qual' '-Wno-error=3Denum-compa= re' '-Wno-error=3Dinline' '-Wno-error=3Dmaybe-uninitialized' '-Wno-error=3Dover= flow' '-Wno-error=3Dsequence-point' '-Wno-error=3Dstrict-overflow' '-Wno-error=3Dunused-but-set-variable' '-Wno-error=3Dmisleading-indentation' '-Wno-error=3Dnonnull-compare' '-Wno-error=3Dshift-overflow' '-Wno-error=3Dtautological-compare' '-v' '-fno-common' '-fms-extensions' '-finline-limit=3D15000' '--param' 'inline-unit-growth=3D100' '--param' 'large-function-growth=3D1000' '-mcall-aixdesc' '-std=3Dc99' '-Werror' /usr/local/libexec/gcc/powerpc64-unknown-freebsd12.0/6.3.0/cc1 -quiet -nostdinc -v -I . -I /usr/src/sys -I /usr/src/sys/contrib/libfdt -isysroot /usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src/t= mp -D _KERNEL -D HAVE_KERNEL_OPTION_HEADERS -isystem /usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src/t= mp/usr/include -include opt_global.h /usr/src/sys/powerpc/powerpc/stack_machdep.c -quiet -dumpbase stack_machdep.c -msoft-float -mno-altivec -msoft-float -mcall-aix= desc -auxbase stack_machdep -g -gdwarf-2 -O -Wall -Wredundant-decls -Wnested-ext= erns -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qu= al -Wundef -Wno-pointer-sign -Wmissing-include-dirs -Wno-unknown-pragmas -Wno-error=3Daddress -Wno-error=3Daggressive-loop-optimizations -Wno-error=3Darray-bounds -Wno-error=3Dattributes -Wno-error=3Dcast-qual -Wno-error=3Denum-compare -Wno-error=3Dinline -Wno-error=3Dmaybe-uninitiali= zed -Wno-error=3Doverflow -Wno-error=3Dsequence-point -Wno-error=3Dstrict-overf= low -Wno-error=3Dunused-but-set-variable -Wno-error=3Dmisleading-indentation -Wno-error=3Dnonnull-compare -Wno-error=3Dshift-overflow -Wno-error=3Dtautological-compare -Werror -std=3Dc99 -version -fPIC -fno-omit-frame-pointer -ffreestanding -fwrapv -fstack-protector -fformat-extensions -fdiagnostics-show-option -fno-common -fms-extensions -finline-limit=3D15000 --param inline-unit-growth=3D100 --param large-function-growth=3D1000 -o - | /usr/local/bin/powerpc64-freebsd-as -v -I . -I /usr/src/sys -I /usr/src/sys/contrib/libfdt --traditional-format -a64 -mppc64 -many -many -o stack_machdep.o GNU assembler version 2.28 (powerpc64-freebsd) using BFD version (GNU Binut= ils) 2.28 GNU C99 (FreeBSD Ports Collection for powerpc64) version 6.3.0 (powerpc64-unknown-freebsd12.0) compiled by GNU C version 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347), GMP version 6.1.2, MPFR version 3.1.5-p2, = MPC version 1.0.3, isl version none GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 #include "..." search starts here: #include <...> search starts here: . /usr/src/sys /usr/src/sys/contrib/libfdt /usr/obj/powerpc64vtscdbg_xtoolchain-gcc_kernel/powerpc.powerpc64/usr/src/t= mp/usr/include End of search list. GNU C99 (FreeBSD Ports Collection for powerpc64) version 6.3.0 (powerpc64-unknown-freebsd12.0) compiled by GNU C version 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347), GMP version 6.1.2, MPFR version 3.1.5-p2, = MPC version 1.0.3, isl version none GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: 8ac087b8ad16a23ac09c5d0c7497aeae /usr/src/sys/powerpc/powerpc/stack_machdep.c: In function 'stack_save': /usr/src/sys/powerpc/powerpc/stack_machdep.c:113:22: error: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Werror=3Dframe-address] frame =3D (register_t)__builtin_frame_address(1); ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors *** Error code 1 . . . --=20 You are receiving this mail because: You are the assignee for the bug.=