Opened 6 years ago
Closed 2 years ago
#57506 closed defect (fixed)
libgcc6 @6.5.0 does not build on PPC Mac OS X 10.4.11, Tiger, with G4 (7447A) because of "Bootstrap comparison failure!"
Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.5.4 |
Keywords: | tiger | Cc: | evanmiller (Evan Miller) |
Port: | libgcc6 |
Description
This failure is similar to #56922:
/usr/bin/make "DESTDIR=" "RPATH_ENVVAR=DYLD_LIBRARY_PATH" "TARGET_SUBDIR=ppc-apple-darwin8" "bindir=/opt/local/bin" "datadir=/opt/local/share/gcc-6" "exec_prefix=/opt/local" "includedir=/opt/local/include/gcc6" "datarootdir=/opt/local/share/gcc-6" "docdir=/opt/local/share/gcc-6/doc/" "infodir=/opt/local/share/info" "pdfdir=/opt/local/share/gcc-6/doc/" "htmldir=/opt/local/share/gcc-6/doc/" "libdir=/opt/local/lib/libgcc" "libexecdir=/opt/local/libexec" "lispdir=" "localstatedir=/opt/local/var" "mandir=/opt/local/share/man" "oldincludedir=/usr/include" "prefix=/opt/local" "sbindir=/opt/local/sbin" "sharedstatedir=/opt/local/com" "sysconfdir=/opt/local/etc" "tooldir=/opt/local/ppc-apple-darwin8" "build_tooldir=/opt/local/ppc-apple-darwin8" "target_alias=ppc-apple-darwin8" "AWK=gawk" "BISON=bison" "CC_FOR_BUILD=/opt/local/bin/gcc-apple-4.2 -arch ppc" "CFLAGS_FOR_BUILD=-pipe -Os" "CXX_FOR_BUILD=/opt/local/bin/g++-apple-4.2 -arch ppc -std=gnu++98" "EXPECT=expect" "FLEX=flex" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS_FOR_BUILD=-L/opt/local/lib -Wl,-headerpad_max_install_names" "LEX=flex" "M4=gm4" "MAKE=/usr/bin/make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SED=/opt/local/bin/gsed" "SHELL=/bin/sh" "YACC=bison -y" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "ADA_CFLAGS=" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=-gnatpg' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2 -mdynamic-no-pic" "BOOT_LDFLAGS=" "CFLAGS=-pipe -Os" "CXXFLAGS=-pipe -Os" "LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names" "LIBCFLAGS=-pipe -Os" "LIBCXXFLAGS=-pipe -Os -fno-implicit-templates" "STAGE1_CHECKING=--enable-checking=yes" "STAGE1_LANGUAGES=c,c++,lto" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=/opt/local/bin/ar" "AS_FOR_TARGET=/opt/local/bin/as" "CC_FOR_TARGET=/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/work/build/./gcc/" "CFLAGS_FOR_TARGET=-g -O2 -pipe -Os" "CPPFLAGS_FOR_TARGET=" "CXXFLAGS_FOR_TARGET=-g -O2 -pipe -Os" "DLLTOOL_FOR_TARGET=dlltool" "FLAGS_FOR_TARGET=-B/opt/local/ppc-apple-darwin8/bin/ -B/opt/local/ppc-apple-darwin8/lib/ -isystem /opt/local/ppc-apple-darwin8/include -isystem /opt/local/ppc-apple-darwin8/sys-include" "GCJ_FOR_TARGET=" "GFORTRAN_FOR_TARGET=/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/work/build/./gcc/gfortran -B/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/work/build/./gcc/" "GOC_FOR_TARGET=" "GOCFLAGS_FOR_TARGET=-O2 -g" "LD_FOR_TARGET=/opt/local/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe -Os" "LIBCXXFLAGS_FOR_TARGET=-g -O2 -pipe -Os -fno-implicit-templates" "NM_FOR_TARGET=/opt/local/bin/nm" "OBJDUMP_FOR_TARGET=/opt/local/bin/objdump" "OBJCOPY_FOR_TARGET=" "RANLIB_FOR_TARGET=/opt/local/bin/ranlib" "READELF_FOR_TARGET=readelf" "STRIP_FOR_TARGET=/opt/local/bin/strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "BUILD_CONFIG=bootstrap-debug" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=:" "STAGE1_CFLAGS=-g -mdynamic-no-pic" "STAGE1_CXXFLAGS=-g -mdynamic-no-pic" "STAGE1_TFLAGS=" "STAGE2_CFLAGS=-g -O2 -mdynamic-no-pic -gtoggle" "STAGE2_CXXFLAGS=-g -O2 -mdynamic-no-pic -gtoggle" "STAGE2_TFLAGS=" "STAGE3_CFLAGS=-g -O2 -mdynamic-no-pic " "STAGE3_CXXFLAGS=-g -O2 -mdynamic-no-pic " "STAGE3_TFLAGS=" "STAGE4_CFLAGS=-g -O2 -mdynamic-no-pic " "STAGE4_CXXFLAGS=-g -O2 -mdynamic-no-pic " "STAGE4_TFLAGS=" "STAGEprofile_CFLAGS=-g -O2 -mdynamic-no-pic -gtoggle -fprofile-generate" "STAGEprofile_CXXFLAGS=-g -O2 -mdynamic-no-pic -gtoggle -fprofile-generate" "STAGEprofile_TFLAGS=" "STAGEfeedback_CFLAGS=-g -O2 -mdynamic-no-pic -fprofile-use" "STAGEfeedback_CXXFLAGS=-g -O2 -mdynamic-no-pic -fprofile-use" "STAGEfeedback_TFLAGS=" "CXX_FOR_TARGET= $r/./gcc/xg++ -B$r/./gcc/ -nostdinc++ `if test -f $r/ppc-apple-darwin8/libstdc++-v3/scripts/testsuite_flags; then /bin/sh $r/ppc-apple-darwin8/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$r/ppc-apple-darwin8/libstdc++-v3/src -L$r/ppc-apple-darwin8/libstdc++-v3/src/.libs -L$r/ppc-apple-darwin8/libstdc++-v3/libsupc++/.libs" "TFLAGS=" "CONFIG_SHELL=/bin/sh" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000" compare make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/work/build' make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/work/build' rm -f stage_current make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/work/build' Comparing stages 2 and 3 warning: gcc/cc1-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_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/work/build' make[1]: *** [stage3-bubble] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/work/build' make: *** [bootstrap-lean] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/work/build' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/work/build" && /usr/bin/make -w bootstrap-lean Exit code: 2 Error: Failed to build libgcc6: command execution failed DEBUG: Error code: CHILDSTATUS 288 2 DEBUG: Backtrace: command execution failed while executing "system {*}$notty {*}$nice $fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/libgcc6/main.log for details. DEBUG: could not read "/opt/local/lib/libstdc++.6.dylib": no such file or directory while executing "::file type $file"
The last failure report about "/opt/local/lib/libstdc++.6.dylib" does not seem to be true:
pete 239 /\ l -i /opt/local/lib/libstdc++* 53830503 lrwxrwxrwx 1 root admin 24 2. Nov 22:47 /opt/local/lib/libstdc++.6.dylib -> libgcc/libstdc++.6.dylib pete 240 /\ l -Li /opt/local/lib/libstdc++ 53830502 -rwxr-xr-x 1 root admin 1218356 13. Okt 00:42 /opt/local/lib/libstdc++.6.dylib
The symlink /opt/local/lib/libstdc++
was obviously created or updated at the begin of installing libgcc7
. So it must have been present at time of building libgcc6
.
Attachments (2)
Change History (9)
Changed 6 years ago by ballapete (Peter "Pete" Dyballa)
Attachment: | main.log.gz added |
---|
comment:1 Changed 6 years ago by kencu (Ken)
Well -- as you know -- it built find on my G5 Tiger builder.
After several months of digging, I am still not quite sure what is wrong with your setup there, but I'm not too surprised this gcc6 build failed in exactly the same way as the previous gcc6 build. 56922.
Obviously something is causing your Bootstrap comparison failure!
... I just have no idea at present what it is.
If you get too frustrated with this, you can feel free to download the gcc6
binary and move on.
Changed 6 years ago by ballapete (Peter "Pete" Dyballa)
Attachment: | main.log.2.gz added |
---|
Main.log from build of version 6.5.0_1 on PowerPC 7447A
comment:2 Changed 6 years ago by ballapete (Peter "Pete" Dyballa)
Version 6.5.0_1 fails as well with:
/usr/bin/make "DESTDIR=" "RPATH_ENVVAR=DYLD_LIBRARY_PATH" "TARGET_SUBDIR=ppc-apple-darwin8" "bindir=/opt/local/bin" "datadir=/opt/local/share/gcc-6" "exec_prefix=/opt/local" "includedir=/opt/local/include/gcc6" "datarootdir=/opt/local/share/gcc-6" "docdir=/opt/local/share/gcc-6/doc/" "infodir=/opt/local/share/info" "pdfdir=/opt/local/share/gcc-6/doc/" "htmldir=/opt/local/share/gcc-6/doc/" "libdir=/opt/local/lib/gcc6" "libexecdir=/opt/local/libexec" "lispdir=" "localstatedir=/opt/local/var" "mandir=/opt/local/share/man" "oldincludedir=/usr/include" "prefix=/opt/local" "sbindir=/opt/local/sbin" "sharedstatedir=/opt/local/com" "sysconfdir=/opt/local/etc" "tooldir=/opt/local/ppc-apple-darwin8" "build_tooldir=/opt/local/ppc-apple-darwin8" "target_alias=ppc-apple-darwin8" "AWK=gawk" "BISON=bison" "CC_FOR_BUILD=/opt/local/bin/gcc-apple-4.2 -arch ppc" "CFLAGS_FOR_BUILD=-pipe -Os" "CXX_FOR_BUILD=/opt/local/bin/g++-apple-4.2 -arch ppc -std=gnu++98" "EXPECT=expect" "FLEX=flex" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS_FOR_BUILD=-L/opt/local/lib -Wl,-headerpad_max_install_names" "LEX=flex" "M4=gm4" "MAKE=/usr/bin/make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SED=/opt/local/bin/gsed" "SHELL=/bin/sh" "YACC=bison -y" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "ADA_CFLAGS=" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=-gnatpg' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2 -mdynamic-no-pic" "BOOT_LDFLAGS=" "CFLAGS=-pipe -Os" "CXXFLAGS=-pipe -Os" "LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names" "LIBCFLAGS=-pipe -Os" "LIBCXXFLAGS=-pipe -Os -fno-implicit-templates" "STAGE1_CHECKING=--enable-checking=yes" "STAGE1_LANGUAGES=c,c++,lto" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=/opt/local/bin/ar" "AS_FOR_TARGET=/opt/local/bin/as" "CC_FOR_TARGET=/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/work/build/./gcc/" "CFLAGS_FOR_TARGET=-g -O2 -pipe -Os" "CPPFLAGS_FOR_TARGET=" "CXXFLAGS_FOR_TARGET=-g -O2 -pipe -Os" "DLLTOOL_FOR_TARGET=dlltool" "FLAGS_FOR_TARGET=-B/opt/local/ppc-apple-darwin8/bin/ -B/opt/local/ppc-apple-darwin8/lib/ -isystem /opt/local/ppc-apple-darwin8/include -isystem /opt/local/ppc-apple-darwin8/sys-include" "GCJ_FOR_TARGET=" "GFORTRAN_FOR_TARGET=/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/work/build/./gcc/gfortran -B/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/work/build/./gcc/" "GOC_FOR_TARGET=" "GOCFLAGS_FOR_TARGET=-O2 -g" "LD_FOR_TARGET=/opt/local/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe -Os" "LIBCXXFLAGS_FOR_TARGET=-g -O2 -pipe -Os -fno-implicit-templates" "NM_FOR_TARGET=/opt/local/bin/nm" "OBJDUMP_FOR_TARGET=/opt/local/bin/objdump" "OBJCOPY_FOR_TARGET=" "RANLIB_FOR_TARGET=/opt/local/bin/ranlib" "READELF_FOR_TARGET=readelf" "STRIP_FOR_TARGET=/opt/local/bin/strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "BUILD_CONFIG=bootstrap-debug" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=:" "STAGE1_CFLAGS=-g -mdynamic-no-pic" "STAGE1_CXXFLAGS=-g -mdynamic-no-pic" "STAGE1_TFLAGS=" "STAGE2_CFLAGS=-g -O2 -mdynamic-no-pic -gtoggle" "STAGE2_CXXFLAGS=-g -O2 -mdynamic-no-pic -gtoggle" "STAGE2_TFLAGS=" "STAGE3_CFLAGS=-g -O2 -mdynamic-no-pic " "STAGE3_CXXFLAGS=-g -O2 -mdynamic-no-pic " "STAGE3_TFLAGS=" "STAGE4_CFLAGS=-g -O2 -mdynamic-no-pic " "STAGE4_CXXFLAGS=-g -O2 -mdynamic-no-pic " "STAGE4_TFLAGS=" "STAGEprofile_CFLAGS=-g -O2 -mdynamic-no-pic -gtoggle -fprofile-generate" "STAGEprofile_CXXFLAGS=-g -O2 -mdynamic-no-pic -gtoggle -fprofile-generate" "STAGEprofile_TFLAGS=" "STAGEfeedback_CFLAGS=-g -O2 -mdynamic-no-pic -fprofile-use" "STAGEfeedback_CXXFLAGS=-g -O2 -mdynamic-no-pic -fprofile-use" "STAGEfeedback_TFLAGS=" "CXX_FOR_TARGET= $r/./gcc/xg++ -B$r/./gcc/ -nostdinc++ `if test -f $r/ppc-apple-darwin8/libstdc++-v3/scripts/testsuite_flags; then /bin/sh $r/ppc-apple-darwin8/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$r/ppc-apple-darwin8/libstdc++-v3/src -L$r/ppc-apple-darwin8/libstdc++-v3/src/.libs -L$r/ppc-apple-darwin8/libstdc++-v3/libsupc++/.libs" "TFLAGS=" "CONFIG_SHELL=/bin/sh" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000" compare make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/work/build' make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/work/build' rm -f stage_current make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/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_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/work/build' make[1]: *** [stage3-bubble] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/work/build' make: *** [bootstrap-lean] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/work/build' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/work/build" && /usr/bin/make -w bootstrap-lean Exit code: 2 Error: Failed to build gcc6: command execution failed
now reporting
DEBUG: Error code: CHILDSTATUS 13925 2 DEBUG: Backtrace: command execution failed while executing "system {*}$notty {*}$nice $fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc6/gcc6/main.log for details. DEBUG: Failed to locate 'lbzip2' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
Lbzip2 does not exist here.
comment:3 Changed 3 years ago by kencu (Ken)
I have something else for you to try if you still see this -- add this to the Portfile at an appropriate spot:
configure.args-append --with-dwarf2
When trying to build a standalone, no-MacPorts, gcc5 installer on Tiger, gcc5 simply would not ever finish a build unless I added this (or disabled the comparison stage). Using bootstrap-debug did not fix the build there. But this did.
Exactly why this worked and bootstrap-debug did not work is under assessment, as bootstrap-debug is meant to strip out the debug symbols before comparison, but it might be worth a try for you.
I suspect this might also fix the random "Bootstrap comparison failure!" errors we have seen (sometimes!) on gcc46 and up on these older systems. Perhaps it is some combination of the initial build compiler and linker defaulting to various debug settings and the stage 1,2,3 compilers defaulting in some other fashion. It's clearly complicated.
comment:4 Changed 3 years ago by evanmiller (Evan Miller)
Cc: | evanmiller added |
---|
comment:5 Changed 3 years ago by evanmiller (Evan Miller)
FWIW libgcc6 @6.5.0_4 builds just fine on a G3 running 10.4.11 here. I did not add the suggested --with-dwarf2
flag.
comment:6 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)
The time of this compiler is over. It is possible that missing disk space caused the failure. It can certainly be closed, except there are objections. Then I'll rebuild…
comment:7 Changed 2 years ago by kencu (Ken)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Main.log from build on PowerPC 7447A