From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.cybertec.at (ns.km31432.keymachine.de [87.118.86.135]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 704B1E00B84 for ; Mon, 14 Apr 2014 02:37:25 -0700 (PDT) Received: from localhost.localdomain (unknown [87.242.12.103]) by mail.cybertec.at (Postfix) with ESMTPSA id BC59639003CD for ; Mon, 14 Apr 2014 09:37:19 +0000 (UTC) Message-ID: <534BAC4F.9040405@pr.hu> Date: Mon, 14 Apr 2014 11:37:19 +0200 From: Boszormenyi Zoltan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: "meta-freescale@yoctoproject.org" Subject: binutuils-native from master fails with GCC 4.9 on the buld host X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2014 09:37:28 -0000 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit Hi, one of my build machines has Fedora 21 Rawhide with GCC 4.9. I tried to build an FSL image and now binutils-native fails to compile: | In file included from /home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/as.h:95:0, | from /home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/subsegs.c:25: | /home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/subsegs.c: In function 'subseg_change': | ../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no effect [-Werror=unused-value] | #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE) | ^ | /home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/subsegs.c:70:7: note: in expansion of macro 'bfd_set_section_userdata' | bfd_set_section_userdata (stdoutput, seg, seginfo); | ^ | /home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/subsegs.c: In function 'subseg_get': | ../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no effect [-Werror=unused-value] | #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE) | ^ | /home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/subsegs.c:172:7: note: in expansion of macro 'bfd_set_section_userdata' | bfd_set_section_userdata (stdoutput, secptr, seginfo); | ^ | gcc -DHAVE_CONFIG_H -I. -I/home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas -I. -I/home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas -I../bfd -I/home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/config -I/home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/../include -I/home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/.. -I/home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/../bfd -DLOCALEDIR="\"/home/zozo/fsl-community-bsp-2/build-master/tmp/sysroots/x86_64-linux/usr/share/locale\"" -isystem/home/zozo/fsl-community-bsp-2/build-master/tmp/sysroots/x86_64-linux/usr/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -isystem/home/zozo/fsl-community-bsp-2/build-master/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -c -o tc-i386.o `test -f 'config/tc-i386.c' || echo '/home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/'`config/tc-i386.c | In file included from /home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/as.h:95:0, | from /home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/write.c:25: | /home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/write.c: In function 'record_alignment': | ../bfd/bfd.h:303:83: error: right-hand operand of comma expression has no effect [-Werror=unused-value] | #define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE) | ^ | /home/zozo/fsl-community-bsp-2/build-master/tmp/work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/gas/write.c:366:5: note: in expansion of macro 'bfd_set_section_alignment' | bfd_set_section_alignment (stdoutput, seg, align); | ^ | cc1: all warnings being treated as errors This happens with the master branch of the fsl repositories. I know Fedora 21 and GCC 4.9 still has some months to be released. This is just a heads up that at least this new "-Wunused-value" was enabled for -Wall in GCC 4.9. FYI, the bugzilla report about binutils is: https://bugzilla.redhat.com/show_bug.cgi?id=1087374 Best regards, Zoltán Böszörményi