Opened 13 years ago
Closed 13 years ago
#29925 closed defect (fixed)
arm-elf-binutils @2.21.51.0.9 error: warning: declaration of 'link_info' shadows a global declaration"
Reported by: | smbmacportstrac@… | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | ||
Port: | arm-elf-binutils |
Description (last modified by jmroot (Joshua Root))
Build Error 10.5.8 PowerPC Xcode 3.1.4 buildmakejobs 4 configureccache yes
:info:build ccache /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_ rsync.macports.org_release_ports_cross_arm-elf-binutils/work/binutils-2.21.51.0.9/ld -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-binutils/work/binutils-2.21.51.0.9/ld - I../bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-binutils/work/binutils-2.21.51.0.9/ld/../bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-binutils/work/binutils-2.21.51.0.9/ld/../include -pipe -O2 -arch ppc -DENABLE_PLUGINS -DLOCALEDIR="\"/opt/local/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -pipe -O2 -arch ppc -MT ldlang.o -MD -MP -MF .deps/ldlang.Tpo -c -o ldlang.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-binutils/work/binutils-2.21.51.0.9/ld/ldlang.c ... :info:build cc1: warnings being treated as errors :info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-binutils/work/binutils-2.21.51.0.9/ld/ldlang.c:45: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-binutils/work/binutils-2.21.51.0.9/ld/../bfd/libbfd.h:2292: warning: declaration of 'link_info' shadows a global declaration :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-binutils/work/binutils-2.21.51.0.9/ld/ldmain.h:43: warning: shadowed declaration is here
Change History (7)
comment:1 Changed 13 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|
comment:2 Changed 13 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to raimue@… |
---|
comment:3 Changed 13 years ago by raimue (Rainer Müller)
I don't have any powerpc to test this. I updated the arm-elf-binutils port to binutils 2.21.52.0.2 in r79789.
Please run selfupdate and try again.
comment:4 Changed 13 years ago by smbmacportstrac@…
2.21.52.0.2 fails at the same spot in the same way.
http://comments.gmane.org/gmane.comp.gnu.binutils/51213
It looks like a solution is to use a newer version of gcc, or configure with --disable-werror.
if [powerpc, xcode3.0.4] then # how do you do this in MacPorts? configure.args-append --disable-werror fi # Or require gcc-4.2 instead of gcc-4.0 in Xcode 3.0.4. if [powerpc, xcode3.0.4] then # how do you do this in MacPorts? configure.cc /usr/bin/gcc-4.2 fi
The configure.args-append seems to fix the problem. However, I'm not sure if the built binutils are "correct" or not since I don't have a way to test the arm-elf-binutils tools at the moment.
comment:5 Changed 13 years ago by smbmacportstrac@…
The configure.cc workaround also fixes the build problem. Would "configure.compiler gcc-4.2" be a better solution?
(Also, in the previous comment, 3.0.4 should be 3.1.4.)
comment:6 Changed 13 years ago by jmroot (Joshua Root)
There shouldn't be any harm in using --disable-werror always. This is what it did before r69960 (which is why I assigned the ticket to whom I did).
comment:7 Changed 13 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Added configure.args-append --disable-werror
in r79798.
Please remember to preview and use WikiFormatting.