From owner-freebsd-mips@freebsd.org Thu Oct 13 16:15:20 2016 Return-Path: Delivered-To: freebsd-mips@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 6213EC0FB64 for ; Thu, 13 Oct 2016 16:15:20 +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 51417E69 for ; Thu, 13 Oct 2016 16:15:20 +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 u9DGFKCA015649 for ; Thu, 13 Oct 2016 16:15:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-mips@FreeBSD.org Subject: [Bug 213454] mips64 BERI boot components fail to build with CROSS_TOOLCHAIN=mips64-gcc Date: Thu, 13 Oct 2016 16:15:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-mips@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: 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-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 16:15:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213454 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-mips@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-mips@freebsd.org Thu Oct 13 18:17:29 2016 Return-Path: Delivered-To: freebsd-mips@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 C0E8BC105EA for ; Thu, 13 Oct 2016 18:17:29 +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 B072B225 for ; Thu, 13 Oct 2016 18:17:29 +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 u9DIHTZe012210 for ; Thu, 13 Oct 2016 18:17:29 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-mips@FreeBSD.org Subject: [Bug 213458] MIPS ERL kernel build fails on octeon-sdk/cvmx-srio.c with external GCC 5.3.0 Date: Thu, 13 Oct 2016 18:17:29 +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: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-mips@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-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 18:17:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213458 Bug ID: 213458 Summary: MIPS ERL kernel build fails on octeon-sdk/cvmx-srio.c with external GCC 5.3.0 Product: Base System Version: CURRENT Hardware: mips OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-mips@FreeBSD.org Reporter: emaste@freebsd.org make CROSS_TOOLCHAIN=3Dmips64-gcc TARGET_ARCH=3Dmips64 KERNCONF=3DERL build= kernel fails with: /usr/local/bin/mips64-portbld-freebsd10.1-gcc -isystem /tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd/tmp/usr/include -L/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd/tmp/usr/lib -B/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd/tmp/usr/lib --sysroot=3D/tank/emaste/obj/mips.mips64/tank/emaste/src/freebsd/tmp -B/usr/local/mips64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/tank/emaste/src/freebsd/sys -I/tank/emaste/src/freebsd/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-pic -mno-abicalls -G0 -DKERNLOADADDR=3D0xffffffff80100000 -march=3Docteon -mabi= =3D64 -MD=20 -MF.depend.cvmx-srio.o -MTcvmx-srio.o -msoft-float -ffreestanding -fwrapv -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-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 -fno-common -fms-extensions -finline-limit=3D8000 --param inline-unit-growth=3D10000 --param large-function-growth=3D100000 --param max-inline-insns-single=3D10000=20 -std=3Diso9899:1999 -Werror=20 /tank/emaste/src/freebsd/sys/contrib/octeon-sdk/cvmx-srio.c {standard input}: Assembler messages: {standard input}:75: Error: opcode not supported on this processor: octeon (mips64r2) `saa $2,($3)' {standard input}:4568: Error: opcode not supported on this processor: octeon (mips64r2) `saa $11,($3)' {standard input}:4892: Error: opcode not supported on this processor: octeon (mips64r2) `saa $9,($2)' {standard input}:5145: Error: opcode not supported on this processor: octeon (mips64r2) `saa $3,($6)' *** Error code 1 (ignored) This issue was also reported on Linux (https://community.ubnt.com/t5/EdgeMAX/kernel-compilation/td-p/466677/page/= 4). A Gentoo wiki page explains that the support was only in a Cavium-provided toolchain, not upstream (https://wiki.gentoo.org/wiki/MIPS/ERLite-3). jmallett added saa/saad instructions to our base gas in r208737 (https://svnweb.freebsd.org/changeset/base/208737, see contrib/binutils/gas/config/tc-mips.c) but support is not in the FreeBSD mi= ps binutils port. This issue should probably be addressed by adding support to the binutils p= ort, and also adding a workaround to the base system. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-mips@freebsd.org Thu Oct 13 23:05:16 2016 Return-Path: Delivered-To: freebsd-mips@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 8C442C10105 for ; Thu, 13 Oct 2016 23:05:16 +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 7B51D1837 for ; Thu, 13 Oct 2016 23:05:16 +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 u9DN5Gfs012869 for ; Thu, 13 Oct 2016 23:05:16 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-mips@FreeBSD.org Subject: [Bug 213454] mips64 BERI boot components fail to build with CROSS_TOOLCHAIN=mips64-gcc Date: Thu, 13 Oct 2016 23:05:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: brooks@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-mips@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 23:05:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213454 Brooks Davis changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |brooks@FreeBSD.org, | |rwatson@FreeBSD.org --- Comment #1 from Brooks Davis --- This diff allowed it to build when I tried a couple weeks ago at EuroBSDCon= . I didn't attempt to test it: Index: sys/boot/mips/beri/common/common.ldscript =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/boot/mips/beri/common/common.ldscript (revision 306227) +++ sys/boot/mips/beri/common/common.ldscript (working copy) @@ -73,5 +73,5 @@ __kernel_base__ =3D 0x100000; __kernel_vaddr__ =3D __mips64_xkphys_cached__ + __kernel_base__; -OUTPUT_FORMAT("elf64-tradbigmips"); +OUTPUT_FORMAT("elf64-tradbigmips-freebsd"); OUTPUT_ARCH(mips) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-mips@freebsd.org Fri Oct 14 19:07:45 2016 Return-Path: Delivered-To: freebsd-mips@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 6E784C12CC8 for ; Fri, 14 Oct 2016 19:07:45 +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 5E339ED9 for ; Fri, 14 Oct 2016 19:07:45 +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 u9EJ7j5s011625 for ; Fri, 14 Oct 2016 19:07:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-mips@FreeBSD.org Subject: [Bug 213454] mips64 BERI boot components fail to build with CROSS_TOOLCHAIN=mips64-gcc Date: Fri, 14 Oct 2016 19:07:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-mips@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2016 19:07:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213454 --- Comment #2 from Ed Maste --- > This diff allowed it to build when I tried a couple weeks ago at EuroBSDC= on. It looks like that fixes the build with external tool chain, but breaks it = with in-tree ld? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-mips@freebsd.org Sat Oct 15 19:38:25 2016 Return-Path: Delivered-To: freebsd-mips@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 2752AC13095 for ; Sat, 15 Oct 2016 19:38:25 +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 10BBF274 for ; Sat, 15 Oct 2016 19:38:25 +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 u9FJcOmL084378 for ; Sat, 15 Oct 2016 19:38:24 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-mips@FreeBSD.org Subject: [Bug 213454] mips64 BERI boot components fail to build with CROSS_TOOLCHAIN=mips64-gcc Date: Sat, 15 Oct 2016 19:38:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-mips@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: 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-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Oct 2016 19:38:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213454 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --=20 You are receiving this mail because: You are the assignee for the bug.=