Date: Thu, 13 Oct 2016 18:17:29 +0000 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 Message-ID: <bug-213458-27794@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213458-27794>