From owner-freebsd-current@FreeBSD.ORG Sat Apr 18 18:12:34 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 18F1D665; Sat, 18 Apr 2015 18:12:34 +0000 (UTC) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 935C6E56; Sat, 18 Apr 2015 18:12:33 +0000 (UTC) Received: by labbd9 with SMTP id bd9so101118980lab.2; Sat, 18 Apr 2015 11:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=c/Ezh9LREUTOhlqM7vqwMi8ZYku7K+glrbfVsat9bsw=; b=kTGG+XTp4KhH/JtiTe0BflskDGCrjfPk3BseukSiAgjKVSqnR2OLAcpLEbOb27Iwpp YWXXB1PeAl6/Cu5uCWyvrBKUv5kh9DxlHcjLwp8sPC+OlN2ovAuuA51xJoP6Z1oQMFuO ysKwQSJwACMviZoXSr72FqEoY4swuZsgfIc0Ac7fh47Dap8tKaDEHTNhz7aF76ZOY/YT X3q3UsSWOiZOpuCQ+/ch7s99RdlEe2Z5uyk52SCwmrPTVyQ5/RKKF53k8fHG/vHO6i/p RTKSagS4dD5t18/ZQC182OJ/UbTr0EouICZc/IV7bUsrMUQw6wGUZr9DGOMF+ue6kS7S IHtA== MIME-Version: 1.0 X-Received: by 10.152.205.106 with SMTP id lf10mr9126400lac.89.1429380751781; Sat, 18 Apr 2015 11:12:31 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.164.38 with HTTP; Sat, 18 Apr 2015 11:12:31 -0700 (PDT) Date: Sat, 18 Apr 2015 11:12:31 -0700 X-Google-Sender-Auth: 6st8hkg0Il_k6jw2VOCX4WCg41E Message-ID: Subject: [Request for Help] Reducing gcc 4.9 compilation warnings From: Craig Rodrigues To: freebsd-current Current Cc: "freebsd-testing@freebsd.org" , FreeBSD Toolchain Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Apr 2015 18:12:34 -0000 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