https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123976
--- Comment #186 from Peter Dyballa <Peter_Dyballa at web dot de> ---
Last try was with:
env PKG_CONFIG_PATH=/usr/lib/pkgconfig
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/opt/local/libexec/gcc10-bootstrap/bin
LANG=C ../gcc-16-branch-gcc-16-1-darwin/configure --disable-libgomp
--disable-multilib CC=powerpc-apple-darwin9-gcc CXX=powerpc-apple-darwin9-g++
Make starts with:
Configuring stage 1 in ./gmp
configure: creating cache ./config.cache
checking build system type... powerpc-apple-darwin9.8.0
checking host system type... none-apple-darwin9.8.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for none-apple-darwin9.8.0-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p...
../../gcc-16-branch-gcc-16-1-darwin/gmp/install-sh -c -d
Already five hours later I had:
rm -rf libcommon.a
ar rc libcommon.a custom-sarif-properties/cfg.o
custom-sarif-properties/digraphs.o custom-sarif-properties/state-graphs.o
diagnostic-global-context.o diagnostics/buffering.o diagnostics/changes.o
diagnostics/color.o diagnostics/context.o diagnostics/digraphs.o
diagnostics/dumping.o diagnostics/digraphs-to-dot.o
diagnostics/digraphs-to-dot-from-cfg.o diagnostics/file-cache.o
diagnostics/output-spec.o diagnostics/html-sink.o diagnostics/sarif-sink.o
diagnostics/text-sink.o diagnostics/lazy-paths.o diagnostics/logging.o
diagnostics/macro-unwinding.o diagnostics/option-classifier.o
diagnostics/paths.o diagnostics/paths-output.o
diagnostics/physical-location-maker.o diagnostics/source-printing.o
diagnostics/state-graphs-to-dot.o diagnostics/selftest-context.o
diagnostics/selftest-logical-locations.o diagnostics/selftest-paths.o
diagnostics/diagnostics-selftests.o gcc-diagnostic-spec.o graphviz.o pex.o
pretty-print.o intl.o json.o json-parsing.o json-diagnostic.o pub-sub.o xml.o
sbitmap.o vec.o input.o hash-table.o ggc-none.o memory-block.o selftest.o
sort.o selftest-json.o text-art/box-drawing.o text-art/canvas.o
text-art/ruler.o text-art/selftests.o text-art/style.o text-art/styled-string.o
text-art/table.o text-art/theme.o text-art/tree-widget.o text-art/widget.o
ranlib libcommon.a
if [ -f ../stage_final ] \
&& cmp -s ../stage_current ../stage_final; then \
cp ../prev-gcc/cc1-checksum.cc cc1-checksum.cc; \
else \
build/genchecksum 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-fold.o c/gimple-parser.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-indentation.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-ubsan.o c-family/known-headers.o
c-family/c-attribs.o c-family/c-warn.o c-family/c-spellcheck.o
c-family/c-type-mismatch.o darwin-c.o rs6000-c.o simple-diagnostic-path.o
diagnostics/lazy-paths.o libbackend.a main.o libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
../libbacktrace/.libs/libbacktrace.a \
checksum-options > cc1-checksum.cc.tmp && \
../../gcc-16-branch-gcc-16-1-darwin/gcc/../move-if-change
cc1-checksum.cc.tmp cc1-checksum.cc; \
fi
powerpc-apple-darwin9-g++ -std=c++14 -fno-PIE -c -DIN_GCC_FRONTEND -g
-mdynamic-no-pic -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -fno-PIE -I. -I.
-I../../gcc-16-branch-gcc-16-1-darwin/gcc
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/.
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../include
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../libcpp/include
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../libcody
-I/Users/pete/Quellen/Objekte/./gmp
-I/Users/pete/Quellen/gcc-16-branch-gcc-16-1-darwin/gmp
-I/Users/pete/Quellen/Objekte/./mpfr/src
-I/Users/pete/Quellen/gcc-16-branch-gcc-16-1-darwin/mpfr/src
-I/Users/pete/Quellen/gcc-16-branch-gcc-16-1-darwin/mpc/src
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../libdecnumber
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../libbacktrace -o cc1-checksum.o
-MT cc1-checksum.o -MMD -MP -MF ./.deps/cc1-checksum.TPo cc1-checksum.cc
powerpc-apple-darwin9-g++ -std=c++14 -no-pie -g -mdynamic-no-pic -DIN_GCC
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-DHAVE_CONFIG_H -no-pie -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-fold.o
c/gimple-parser.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-indentation.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-ubsan.o
c-family/known-headers.o c-family/c-attribs.o c-family/c-warn.o
c-family/c-spellcheck.o c-family/c-type-mismatch.o darwin-c.o rs6000-c.o \
cc1-checksum.o simple-diagnostic-path.o diagnostics/lazy-paths.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/Users/pete/Quellen/Objekte/./gmp/.libs
-L/Users/pete/Quellen/Objekte/./mpfr/src/.libs
-L/Users/pete/Quellen/Objekte/./mpc/src/.libs -lmpc -lmpfr -lgmp -L./../zlib
-lz
ld: bl out of range (-16824316 max is +/-16M) from
__ZSt21__throw_bad_exceptionv at 0x03AC2C7C in __text_cold of
/opt/local/libexec/gcc10-bootstrap/lib/gcc/powerpc-apple-darwin9/10.5.0/../../../libstdc++.a(functexcept.o)
to ___cxa_allocate_exception$island_2 at 0x02AB749C in __text of cc1 in
__ZSt21__throw_bad_exceptionv from
/opt/local/libexec/gcc10-bootstrap/lib/gcc/powerpc-apple-darwin9/10.5.0/../../../libstdc++.a(functexcept.o)
collect2: error: ld returned 1 exit status
make[3]: *** [cc1] Error 1
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
I do remember having had 'bl out of range' two years ago when trying to build
MuPDF on PPC Tiger, Mac OS X 10.4.11, darwin8, Xcode 2.5:
https://trac.macports.org/ticket/69879. Six weeks later I sent an eMail to
gcc-help list – no answer. I reported that to Artifex,
https://bugs.ghostscript.com/show_bug.cgi?id=707844, where it was argued that
this "compiler/linker issue" happened because "GCC 7.5 is quite old".
I have in Apple Mail an eMail discussion with Gordon Steemson, probably from
gcc-help, who tried to help, with the recommendation to use '"-mlongcall" or
its synonym "-mlong-branch"', but no solution in the end (and MacPorts stopped
supporting Tiger).
This inexact host triplet comes from (examining the saved output from build):
508 config.status: executing libtool commands
509 configure: summary of build options:
510
511 Version: GNU MP 6.3.0
512 Host type: none-apple-darwin9.8.0
513 ABI: standard
514 Install prefix: /usr/local
515 Compiler: powerpc-apple-darwin9-gcc
516 Static libraries: yes
517 Shared libraries: no
Next configure seems to be a bit more clever:
1762 Configuring stage 1 in ./mpfr
1763 configure: creating cache ./config.cache
1764 checking build system type... powerpc-apple-darwin9.8.0
1765 checking host system type... powerpc-apple-darwin9.8.0
1766 checking for a BSD-compatible install... /usr/bin/install -c
1767 checking whether sleep supports fractional seconds... yes
1768 checking filesystem timestamp resolution... 2