Re: GCC 4.9.2 w/binutils 2.24 compile error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2014-11-05 3:58 GMT+08:00 Uri Moszkowicz <uri@xxxxxxxxx>:
> Hi,
> I'm trying to build GCC 4.9.2 with binutils 2.24. I untarred GCC, ran
> contrib/download_prerequisites, untarred binutils, and then linked
> without overwriting all items from binutils into the GCC root
> directory. I then ran configure and make from a directory parallel to
> GCC as the directions state (I've also built GCC before). I also tried
> with GCC 4.9.1 on SUSE10 and RHEL5 and got the same error, shown
> below. I found a thread from Google suggesting that this error had
> been fixed a while ago but clearly not. Any suggestions for how to
> work around this problem?
>
> Thanks,
> Uri
>
> /mnt/c/gcc/rhel5/./prev-gcc/xgcc -B/mnt/c/gcc/rhel5/./prev-gcc/
> -B/med/d/gcc/gcc-4.9.2/rhel5/x86_64-unknown-linux-gnu/bin/
> -B/mnt/d/gcc/gcc-4.9.2/rhel5/x86_64-unknown-linux-gnu/bin/
> -B/mnt/d/gcc/gcc-4.9.2/rhel5/x86_64-unknown-linux-gnu/lib/ -isystem
> /mnt/d/gcc/gcc-4.9.2/rhel5/x86_64-unknown-linux-gnu/include -isystem
> /mnt/d/gcc/gcc-4.9.2/rhel5/x86_64-unknown-linux-gnu/sys-include
> -L/mnt/d/gcc/rhel5/./ld    -DHAVE_CONFIG_H -I. -I../../gcc-4.9.2/gas
> -I. -I../../gcc-4.9.2/gas -I../bfd -I../../gcc-4.9.2/gas/config
> -I../../gcc-4.9.2/gas/../include -I../../gcc-4.9.2/gas/..
> -I../../gcc-4.9.2/gas/../bfd
> -DLOCALEDIR="\"/mnt/d/gcc/gcc-4.9.2/rhel5/share/locale\""  -W -Wall
> -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2
[snip]
> cc1: all warnings being treated as errors
> make[5]: *** [subsegs.o] Error 1
> make[5]: Leaving directory `/mnt/d/gcc/rhel5/gas'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory `/med/d/gcc/rhel5/gas'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/med/d/gcc/rhel5/gas'
> make[2]: *** [all-stage2-gas] Error 2
> make[2]: Leaving directory `/med/d/gcc/rhel5'
> make[1]: *** [stage2-bubble] Error 2
> make[1]: Leaving directory `/med/d/gcc/rhel5'
> make: *** [all] Error 2

Hi, Uri,

If I remember correctly, there are some warnings if you use gcc-4.9
or gcc-trunk to compile binutils-2.24 code base (but gcc-4.8 is ok).

I think you can try to configure binutils-2.24 with --disable-werror.


Best regards,
jasonwucj



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux