Date: Sat, 18 Apr 2015 11:12:31 -0700 From: Craig Rodrigues <rodrigc@FreeBSD.org> To: freebsd-current Current <freebsd-current@freebsd.org> Cc: "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Subject: [Request for Help] Reducing gcc 4.9 compilation warnings Message-ID: <CAG=rPVetxeXcVAB7ripkMtEYGB3Fw18JZH3XpOnRqEf6nvmXdQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, After the latest commits by members of freebsd-toolchain@ , I have managed to compile latest CURRENT world and GENERIC kernel on amd64 with an gcc 4.9 external toolchain by doing: pkg install devel/amd64-xtoolchain-gcc cd /usr/src sed -i "" -e 's/boot2//' sys/boot/i386/Makefile make buildworld CROSS_TOOLCHAIN=amd64-gcc NO_WERROR=yes WERROR= make buildkernel CROSS_TOOLCHAIN=amd64-gcc NO_WERROR=yes WERROR= It was necessary to skip boot2 from building because of errors reported here: https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-April/001658.html The boot2 compilation errors still need to be worked on. However, most other things compile with warnings. If folks are interested in looking at the warnings, you can see them here: https://jenkins.freebsd.org/job/FreeBSD_HEAD_amd64_gcc4.9/warnings17 Please look at these warnings, and if you see places to patch the code to eliminate the warnings, please submit patches and commit them if you can. clang is still going to be the default compiler in the base system, but it is nice to have FreeBSD compilable by multiple compilers. -- Craig
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVetxeXcVAB7ripkMtEYGB3Fw18JZH3XpOnRqEf6nvmXdQ>