[MacPorts] #56922: Libgcc7 @7.3.0_1 fails to build on PPC Tiger, Mac OS X 10.4.11, because comparison of stages 2 and 3 fails

MacPorts noreply at macports.org
Sun Aug 12 19:54:28 UTC 2018


#56922: Libgcc7 @7.3.0_1 fails to build on PPC Tiger, Mac OS X 10.4.11, because
comparison of stages 2 and 3 fails
------------------------+--------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.3
Resolution:             |   Keywords:  tiger
      Port:  libgcc7    |
------------------------+--------------------

Comment (by ballapete):

 The build without the `configure` option `--with-build-config=bootstrap-
 debug` ended almost an hour ago. It brought the same result:

 {{{
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/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_gcc7/libgcc7/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_gcc7/libgcc7/work/build'
 Comparing stages 2 and 3
 warning: gcc/cc1obj-checksum.o differs
 warning: gcc/cc1objplus-checksum.o differs
 Bootstrap comparison failure!
 gcc/host-darwin.o differs
 make[2]: *** [compare] Error 1
 }}}

 {{{
 -rw-r--r-- 1 macports admin  880 08-12 19:08
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage3-gcc
 /cc1objplus-checksum.o
 -rw-r--r-- 1 macports admin  876 08-12 19:06
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage3-gcc
 /cc1obj-checksum.o
 -rw-r--r-- 1 macports admin 4688 08-12 18:27
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage3-gcc
 /host-darwin.o
 -rw-r--r-- 1 macports admin  512 08-12 14:27
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage2-gcc
 /cc1objplus-checksum.o
 -rw-r--r-- 1 macports admin  512 08-12 14:12
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage2-gcc
 /cc1obj-checksum.o
 -rw-r--r-- 1 macports admin 2924 08-12 09:45
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage2-gcc
 /host-darwin.o
 }}}

 I tried to strip the files à la `strip file -o file-stripped`. `host-
 darwin.o` produces output

 {{{
 strip: symbols referenced by relocation entries that can't be stripped in:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage2-gcc
 /host-darwin.o
 restGPRx
 saveGPR
 dyld_stub_binding_helper
 _getpagesize
 __Z11fancy_abortPKciS0_
 _mmap
 _munmap
 __Z11fatal_errorjPKcz
 _input_location
 }}}

 instead on an output file. The resulting output files are:

 {{{
 -rw-r--r-- 1 root     admin  476 08-12 21:27
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage2-gcc
 /cc1objplus-checksum-stripped.o
 -rw-r--r-- 1 root     admin  476 08-12 21:27
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage2-gcc
 /cc1obj-checksum-stripped.o
 -rw-r--r-- 1 root     admin  476 08-12 21:22
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage3-gcc
 /cc1obj-checksum-stripped.o
 -rw-r--r-- 1 root     admin  476 08-12 21:21
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage3-gcc
 /cc1objplus-checksum-stripped.o
 -rw-r--r-- 1 macports admin  880 08-12 19:08
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage3-gcc
 /cc1objplus-checksum.o
 -rw-r--r-- 1 macports admin  876 08-12 19:06
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage3-gcc
 /cc1obj-checksum.o
 -rw-r--r-- 1 macports admin 4688 08-12 18:27
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage3-gcc
 /host-darwin.o
 -rw-r--r-- 1 macports admin  512 08-12 14:27
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage2-gcc
 /cc1objplus-checksum.o
 -rw-r--r-- 1 macports admin  512 08-12 14:12
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage2-gcc
 /cc1obj-checksum.o
 -rw-r--r-- 1 macports admin 2924 08-12 09:45
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage2-gcc
 /host-darwin.o
 }}}


 Some `configure` step reports that comparison is performed with `cmp
 --ignore-initial=16 $$f1 $$f2`. Using this I get:

 {{{
 root 345 /\ cmp --ignore-initial=16
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage?-gcc
 /cc1objplus-checksum-stripped.o
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage2-gcc
 /cc1objplus-checksum-stripped.o
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage3-gcc
 /cc1objplus-checksum-stripped.o differ: char 445, line 1
 root 346 /\ cmp --ignore-initial=16
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage?-gcc
 /cc1obj-checksum-stripped.o
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage2-gcc
 /cc1obj-checksum-stripped.o
 /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/work/build/stage3-gcc
 /cc1obj-checksum-stripped.o differ: char 445, line 1
 }}}

 So there is a difference.

 The new `main.log` also shows some differences, besides the unused
 `configure` option. It's the sequence of warnings which are emitted by ld.
 It's unlikely that this comes from a "parallel build" – usually a single
 ld is used. I am attaching this main.log too.

-- 
Ticket URL: <https://trac.macports.org/ticket/56922#comment:23>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list