Opened 15 years ago
Closed 15 years ago
#20197 closed defect (fixed)
Binutils 2.19 fails to build on Snow Leopard (10.6) x86_64
Reported by: | sparcdr@… | Owned by: | pguyot (Paul Guyot) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | andrius.laikina@…, mark@…, jbentch@…, ryandesign (Ryan Carsten Schmidt) | |
Port: | binutils |
Description (last modified by mf2k (Frank Schima))
sparcdr@xray-lan ~$ sudo port install binutils ---> Computing dependencies for binutils ---> Building binutils Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_binutils/work/binutils-2.19" && /usr/bin/make -j2 all " returned error 2 Command output: /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c wrstabs.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c addr2line.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c readelf.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c unwind-ia64.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c nm.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c is-strip.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c cxxfilt.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c size.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c bucomm.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c version.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c filemode.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c .././binutils/objdump.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c dwarf.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c prdbg.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c rddbg.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c debug.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c stabs.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c ieee.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c rdcoff.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c arparse.c -Wno-error /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -arch x86_64 -c strings.c cc1: warnings being treated as errors strings.c: In function 'strings_file': strings.c:407: warning: 'stat64' is deprecated (declared at /usr/include/sys/stat.h:465) make[4]: *** [strings.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-binutils] Error 2 make: *** [all] Error 2 Error: Status 1 encountered during processing.
Attachments (1)
Change History (8)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to pguyot@… |
Port: | binutils added |
comment:2 Changed 15 years ago by tobypeterson
Cc: | andrius.laikina@… added |
---|
Changed 15 years ago by mark@…
Attachment: | binutils-disable-werror.patch added |
---|
Patch for binutils Portfile
comment:3 Changed 15 years ago by mark@…
Attached a patch, that just adds --disable-werror. Binutils is complaining that the stat64 is deprecated, however it still functions during this period of transition to 64-bit.
comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|
Thanks, Mark. I added --disable-werror
in r57223 which fixes the x86_64 build on Snow Leopard. Unfortunately the x86_64/i386 universal build is still broken:
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.././binutils -I. -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -arch x86_64 -arch i386 -c readelf.c readelf.c: In function 'slurp_rela_relocs': readelf.c:724: warning: left shift count >= width of type readelf.c:725: warning: right shift count >= width of type readelf.c:726: warning: right shift count >= width of type readelf.c: In function 'slurp_rel_relocs': readelf.c:818: warning: left shift count >= width of type readelf.c:819: warning: right shift count >= width of type readelf.c:820: warning: right shift count >= width of type readelf.c: In function 'get_reloc_symindex': readelf.c:862: warning: right shift count >= width of type readelf.c: In function 'get_elf_section_flags': readelf.c:3995: warning: large integer implicitly truncated to unsigned type readelf.c:3996: warning: large integer implicitly truncated to unsigned type readelf.c:3996: error: duplicate case value readelf.c:3995: error: previously used here readelf.c:3997: warning: large integer implicitly truncated to unsigned type readelf.c:3997: error: duplicate case value readelf.c:3995: error: previously used here readelf.c:3998: warning: large integer implicitly truncated to unsigned type readelf.c:3998: error: duplicate case value readelf.c:3995: error: previously used here readelf.c:3999: warning: large integer implicitly truncated to unsigned type readelf.c:3999: error: duplicate case value readelf.c:3995: error: previously used here readelf.c:4000: warning: large integer implicitly truncated to unsigned type readelf.c:4000: error: duplicate case value readelf.c:3995: error: previously used here readelf.c: In function 'dump_ia64_unwind': readelf.c:5019: warning: right shift count >= width of type readelf.c:5025: warning: right shift count >= width of type lipo: can't figure out the architecture type of: /var/tmp//cccfiZDb.out make[4]: *** [readelf.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-binutils] Error 2 make: *** [all] Error 2
comment:7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
It seems to build universal using the muniversal portgroup so I switched it to that in r57224.
Note: See
TracTickets for help on using
tickets.
Please use WikiFormatting.