Opened 10 years ago
Closed 10 years ago
#45174 closed defect (fixed)
defect: build of libgcc 4.9.1 fails on PPC Leopard (Mac OS X 10.5.8) because of "Bootstrap comparison failure!"
Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.1 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), larryv (Lawrence Velázquez), mojca (Mojca Miklavec), csanchezdll | |
Port: | libgcc |
Description
After 17 hours I get:
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/libgcc/work/build' make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/libgcc/work/build' rm -f stage_current make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/libgcc/work/build' Comparing stages 2 and 3 warning: gcc/cc1-checksum.o differs warning: gcc/cc1obj-checksum.o differs warning: gcc/cc1objplus-checksum.o differs warning: gcc/cc1plus-checksum.o differs Bootstrap comparison failure! gcc/host-darwin.o differs make[2]: *** [compare] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/libgcc/work/build' make[1]: *** [stage3-bubble] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/libgcc/work/build' make: *** [bootstrap] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/libgcc/work/build' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/libgcc/work/build" && /usr/bin/make -w bootstrap Exit code: 2
Attachments (2)
Change History (19)
Changed 10 years ago by ballapete (Peter "Pete" Dyballa)
comment:1 Changed 10 years ago by ballapete (Peter "Pete" Dyballa)
When I started a new install, without debug option, port continued to build and install libgcc and now I have
libgcc @4.9.1_0 (active)
comment:2 follow-up: 3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
When you say "debug option" do you mean the -d
flag, as in sudo port -d install gcc49
, or do you mean something else? The debug flag doesn't change how the build works, only how much information MacPorts displays about it.
comment:3 Changed 10 years ago by ballapete (Peter "Pete" Dyballa)
Replying to ryandesign@…:
When you say "debug option" do you mean the
-d
flag, as insudo port -d install gcc49
, or do you mean something else?
I meant port's -d flag.
comment:4 follow-ups: 6 7 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added; mww@… removed |
---|---|
Owner: | changed from macports-tickets@… to mww@… |
I think I experience the same error with libgcc @4.9.2_1, also on Leopard PowerPC. I'll attach my log.
Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | ryandesign.libgcc.leopard.ppc.main.log.bz2 added |
---|
comment:7 follow-up: 13 Changed 10 years ago by ballapete (Peter "Pete" Dyballa)
Replying to ryandesign@…:
I think I experience the same error with libgcc @4.9.2_1, also on Leopard PowerPC.
For me the builds of libgcc and gcc@4.9.2_1 succeeded both without differences in the stages…
comment:8 follow-up: 9 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
After a clean and retry and another 7 hours of building, it failed for me with the same error again.
comment:9 follow-up: 10 Changed 10 years ago by ballapete (Peter "Pete" Dyballa)
Replying to ryandesign@…:
After a clean and retry and another 7 hours of building, it failed for me with the same error again.
Did your Mac have all the time enough free disk space?
comment:10 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to Peter_Dyballa@…:
Did your Mac have all the time enough free disk space?
Yes, as far as I remember.
comment:13 follow-up: 14 Changed 10 years ago by csanchezdll
Replying to Peter_Dyballa@…:
Replying to ryandesign@…:
I think I experience the same error with libgcc @4.9.2_1, also on Leopard PowerPC.
For me the builds of libgcc and gcc@4.9.2_1 succeeded both without differences in the stages…
I got the "Bootstrap comparison failure" error in the log when building libgcc@4.9.2_1 on my 10.4.11 PowerPC. I had interrupted (Ctrl-C) the build a couple of times and started it again (with a plain "port build"). However, after a "port clean" the build finished without problems. I suspect this might be a problem in gcc own Makefiles requiring a clean build directory for bootstrap.
comment:14 follow-up: 15 Changed 10 years ago by ballapete (Peter "Pete" Dyballa)
Replying to csanchezdll@…:
I also encountered these failures on PPC. Someone suggested this might have been caused by missing disk space. My way of building the packages happens in GNU Emacs. Since I know that the build of GCC 4.x can take days I start the upgrade some time and leave it run in GNU Emacs. Once a day I check whether the build still continues. And this is performed from inside a Terminal of my MacBook with an SSH session on Tiger or Leopard. Simply running w shows the load, and when it's higher than one, then the build continues. So it's not likely that some "interrupt" happened.
Anyway, I started a new build, having almost 6 GB of free disk space…
comment:15 follow-up: 16 Changed 10 years ago by ballapete (Peter "Pete" Dyballa)
Replying to Peter_Dyballa@…:
Replying to csanchezdll@…:
Anyway, I started a new build, having almost 6 GB of free disk space…
Actually the build did not take long… It took long for me to look after it! After less than a day it ended here:
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/gcc49/work/build/./prev-gcc/xg++ -B/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/gcc49/work/build/./prev-gcc/ -B/opt/local/ppc-apple-darwin9/bin/ -nostdinc++ -B/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/gcc49/work/build/prev-ppc-apple-darwin9/libstdc++-v3/src/.libs -B/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/gcc49/work/build/prev-ppc-apple-darwin9/libstdc++-v3/libsupc++/.libs -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/gcc49/work/build/prev-ppc-apple-darwin9/libstdc++-v3/include/ppc-apple-darwin9 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/gcc49/work/build/prev-ppc-apple-darwin9/libstdc++-v3/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/gcc49/work/gcc-4.9.2/libstdc++-v3/libsupc++ -L/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/gcc49/work/build/prev-ppc-apple-darwin9/libstdc++-v3/src/.libs -L/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/gcc49/work/build/prev-ppc-apple-darwin9/libstdc++-v3/libsupc++/.libs -g -O2 -mdynamic-no-pic -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c/c-array-notation.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o darwin-c.o rs6000-c.o \ cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a -liconv ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/opt/local/lib -lcloog-isl -L/opt/local/lib -lisl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp -lz final section layout: __TEXT/__text addr=0x000027E4, size=0x008DDC9C, fileOffset=0x000017E4, type=1 __TEXT/__text_startup addr=0x008E0480, size=0x000005C0, fileOffset=0x008DF480, type=1 __TEXT/__text_cold addr=0x008E0A40, size=0x000113F4, fileOffset=0x008DFA40, type=1 __TEXT/__symbol_stub1 addr=0x008F1E34, size=0x00003090, fileOffset=0x008F0E34, type=27 __TEXT/__cstring addr=0x008F4EC4, size=0x000A6619, fileOffset=0x008F3EC4, type=12 __TEXT/__const addr=0x0099B4E0, size=0x001B6244, fileOffset=0x0099A4E0, type=0 __TEXT/__eh_frame addr=0x00B51728, size=0x001208D8, fileOffset=0x00B50728, type=18 __DATA/__dyld addr=0x00C72000, size=0x0000001C, fileOffset=0x00C71000, type=29 __DATA/__nl_symbol_ptr addr=0x00C7201C, size=0x00000EAC, fileOffset=0x00C7101C, type=28 __DATA/__la_symbol_ptr addr=0x00C72EC8, size=0x00000C24, fileOffset=0x00C71EC8, type=26 __DATA/__mod_init_func addr=0x00C73AEC, size=0x000000C8, fileOffset=0x00C72AEC, type=32 __DATA/__data addr=0x00C73BB8, size=0x00003208, fileOffset=0x00C72BB8, type=0 __DATA/__const addr=0x00C76DC0, size=0x00057498, fileOffset=0x00C75DC0, type=0 __DATA/__static_data addr=0x00CCE258, size=0x00000010, fileOffset=0x00CCD258, type=0 __DATA/__gcc_except_tab addr=0x00CCE268, size=0x000060BA, fileOffset=0x00CCD268, type=0 __DATA/__pu_bss2 addr=0x00CD4324, size=0x0008892C, fileOffset=0x00000000, type=24 __DATA/__common addr=0x00D5CC50, size=0x0000000C, fileOffset=0x00000000, type=24 __DATA/__bss1 addr=0x00D5CC5C, size=0x000007DE, fileOffset=0x00000000, type=24 __DATA/__bss12 addr=0x00D5E000, size=0x40000000, fileOffset=0x00000000, type=24 __DATA/__bss4 addr=0x40D5E000, size=0x00004A00, fileOffset=0x00000000, type=24 __DATA/__bss3 addr=0x40D62A00, size=0x00004B18, fileOffset=0x00000000, type=24 __DATA/__bss0 addr=0x40D67518, size=0x00001F4C, fileOffset=0x00000000, type=24 __DATA/__bss2 addr=0x40D69464, size=0x0002AAF8, fileOffset=0x00000000, type=24 __DATA/__pu_bss3 addr=0x40D93F60, size=0x000125D8, fileOffset=0x00000000, type=24 __DATA/__pu_bss0 addr=0x40DA6538, size=0x00007A6C, fileOffset=0x00000000, type=24 ld: 32-bit absolute address out of range (0x140D6AFBC max is 4GB): from vtable for (anonymous namespace)::pass_branch_target_load_optimize2 + 0x0000001C (0x00C9EC00) to 0x140D6AFBC in vtable for (anonymous namespace)::pass_branch_target_load_optimize2 from libbackend.a(bt-load.o) for architecture ppc collect2: error: ld returned 1 exit status make[3]: *** [cc1] Error 1 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/gcc49/work/build/gcc'
So this time it's the new (?) ld that fails, as it does with gcc48 @4.8.4, see Ticket #46677. Maybe ld64 should be chosen for the job… GCC49 @4.9.2 builds fine with the setting "port:ld64" in the depends_lib section.
comment:16 Changed 10 years ago by zzanderr
Replying to Peter_Dyballa@…:
So this time it's the new (?) ld that fails, as it does with gcc48 @4.8.4, see Ticket #46677. Maybe ld64 should be chosen for the job… GCC49 @4.9.2 builds fine with the setting "port:ld64" in the depends_lib section.
I was able to build libgcc @4.9.2_1 on a PowerBook G4 by first explicitly choosing ld64 +ld64_97. (By default, ld64 installs with the variant +ld64_127 on PowerBook G4's running Leopard.) See the ticket #46801 for the build logs for libgcc.
comment:17 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
main.log