From: Boszormenyi Zoltan <zboszor@pr.hu>
To: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: binutuils-native from master fails with GCC 4.9 on the buld host
Date: Mon, 14 Apr 2014 11:37:19 +0200 [thread overview]
Message-ID: <534BAC4F.9040405@pr.hu> (raw)
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
next reply other threads:[~2014-04-14 9:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-14 9:37 Boszormenyi Zoltan [this message]
2014-04-19 2:43 ` [meta-freescale] binutuils-native from master fails with GCC 4.9 on the buld host Otavio Salvador
2014-04-19 2:43 ` Otavio Salvador
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=534BAC4F.9040405@pr.hu \
--to=zboszor@pr.hu \
--cc=meta-freescale@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.