Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

barracuda156

macrumors 68020
Original poster
Sep 3, 2021
2,398
1,591
I am trying to build gcc8 via Macports on G5 Quad running 10.6 PPC.

I have built gcc7 earlier (thanks to helpful suggestions of kencu here), and it took about 7 to 9 hrs from what I recall. But now I am at 20,5 hrs with no end seen. Wonder if the compilation is hopelessly stuck or I should wait indefinitely until the Terminal spits out an error and completes the process.

I can see cc1 process in activity at 90-100%, but in Terminal nothing moves for many hours already. Dots do not move, process header is the same.

The log file is stuck at here for unknown time (at least nothing changed for past 1,5 hrs with it):

Code:
:info:build /opt/local/bin/g++-mp-7 -arch ppc -std=gnu++98 -no-pie   -g -mdynamic-no-pic -DIN_GCC -fPIC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -L/opt/local/lib -Wl,-headerpad_max_install_names -o lto1 \
:info:build         lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto/lto-partition.o lto/lto-symtab.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -L/opt/local/lib -lisl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp   -lz libcommon.a ../libcpp/libcpp.a  -liconv ../libbacktrace/.libs/libbacktrace.a ../libiberty/pic/libiberty.a ../libdecnumber/libdecnumber.a
:info:build /opt/local/bin/g++-mp-7 -arch ppc -std=gnu++98 -fno-PIE -c  -DIN_GCC_FRONTEND -g -mdynamic-no-pic -DIN_GCC -fPIC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include -I/opt/local/include  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libdecnumber -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libbacktrace -I/opt/local/include -I/opt/local/include -o cc1plus-checksum.o -MT cc1plus-checksum.o -MMD -MP -MF ./.deps/cc1plus-checksum.TPo cc1plus-checksum.c
:info:build cc1plus: warning: '-mdynamic-no-pic' overrides '-fpic', '-fPIC', '-fpie' or '-fPIE'
:info:build /opt/local/bin/g++-mp-7 -arch ppc -std=gnu++98 -fno-PIE -c  -DIN_GCC_FRONTEND -g -mdynamic-no-pic -DIN_GCC -fPIC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include -I/opt/local/include  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libdecnumber -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libbacktrace -I/opt/local/include -I/opt/local/include -o cc1-checksum.o -MT cc1-checksum.o -MMD -MP -MF ./.deps/cc1-checksum.TPo cc1-checksum.c
:info:build /opt/local/bin/g++-mp-7 -arch ppc -std=gnu++98 -no-pie   -g -mdynamic-no-pic -DIN_GCC -fPIC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -L/opt/local/lib -Wl,-headerpad_max_install_names -o cc1plus \
:info:build           cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/class.o cp/constexpr.o cp/constraint.o cp/cp-gimplify.o cp/cp-objcp-common.o cp/cp-ubsan.o cp/cvt.o cp/cxx-pretty-print.o cp/decl.o cp/decl2.o cp/dump.o cp/error.o cp/except.o cp/expr.o cp/friend.o cp/init.o cp/lambda.o cp/lex.o cp/logic.o cp/mangle.o cp/method.o cp/name-lookup.o cp/optimize.o cp/parser.o cp/pt.o cp/ptree.o cp/repo.o cp/rtti.o cp/search.o cp/semantics.o cp/tree.o cp/typeck.o cp/typeck2.o cp/vtable-class-hierarchy.o attribs.o incpath.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 darwin-c.o rs6000-c.o cc1plus-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/pic/libiberty.a ../libdecnumber/libdecnumber.a  -L/opt/local/lib -lisl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp   -lz
:info:build cc1plus: warning: '-mdynamic-no-pic' overrides '-fpic', '-fPIC', '-fpie' or '-fPIE'
:info:build /opt/local/bin/g++-mp-7 -arch ppc -std=gnu++98 -no-pie   -g -mdynamic-no-pic -DIN_GCC -fPIC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -L/opt/local/lib -Wl,-headerpad_max_install_names -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 darwin-c.o rs6000-c.o \
:info:build       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/pic/libiberty.a ../libdecnumber/libdecnumber.a  -L/opt/local/lib -lisl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp   -lz
:info:build ld: warning: direct access in libc_name::hash(char const*, unsigned int) to global weak symbol libc_name::hash(char const*, unsigned int) mea

P. S. gcc9 and later fail to build, and fail much faster.
Screenshot 2021-11-13 18-16-17.png
 
Leave it to build. May take days on these old machines mate. If it’s still building that’s a good sign at least. Did you set the ‘-v’ verbose flag?

For good or bad, I had to force reboot, since due to completely unrelated issue I got spinning wheel of death.

However it seems that compilation got stuck at something related to ld, which was reported to cause problems on PPC already. Notice the last sentence in the log:

Code:
checksum.o -MT cc1plus-checksum.o -MMD -MP -MF ./.deps/cc1plus-checksum.TPo cc1plus-checksum.c
:info:build cc1plus: warning: '-mdynamic-no-pic' overrides '-fpic', '-fPIC', '-fpie' or '-fPIE'
:info:build /opt/local/bin/g++-mp-7 -arch ppc -std=gnu++98 -fno-PIE -c  -DIN_GCC_FRONTEND -g -mdynamic-no-pic -DIN_GCC -fPIC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include -I/opt/local/include  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libdecnumber -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/../libbacktrace -I/opt/local/include -I/opt/local/include -o cc1-checksum.o -MT cc1-checksum.o -MMD -MP -MF ./.deps/cc1-checksum.TPo cc1-checksum.c
:info:build /opt/local/bin/g++-mp-7 -arch ppc -std=gnu++98 -no-pie   -g -mdynamic-no-pic -DIN_GCC -fPIC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -L/opt/local/lib -Wl,-headerpad_max_install_names -o cc1plus \
:info:build           cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/class.o cp/constexpr.o cp/constraint.o cp/cp-gimplify.o cp/cp-objcp-common.o cp/cp-ubsan.o cp/cvt.o cp/cxx-pretty-print.o cp/decl.o cp/decl2.o cp/dump.o cp/error.o cp/except.o cp/expr.o cp/friend.o cp/init.o cp/lambda.o cp/lex.o cp/logic.o cp/mangle.o cp/method.o cp/name-lookup.o cp/optimize.o cp/parser.o cp/pt.o cp/ptree.o cp/repo.o cp/rtti.o cp/search.o cp/semantics.o cp/tree.o cp/typeck.o cp/typeck2.o cp/vtable-class-hierarchy.o attribs.o incpath.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 darwin-c.o rs6000-c.o cc1plus-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/pic/libiberty.a ../libdecnumber/libdecnumber.a  -L/opt/local/lib -lisl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp   -lz
:info:build cc1plus: warning: '-mdynamic-no-pic' overrides '-fpic', '-fPIC', '-fpie' or '-fPIE'
:info:build /opt/local/bin/g++-mp-7 -arch ppc -std=gnu++98 -no-pie   -g -mdynamic-no-pic -DIN_GCC -fPIC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -L/opt/local/lib -Wl,-headerpad_max_install_names -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 darwin-c.o rs6000-c.o \
:info:build       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/pic/libiberty.a ../libdecnumber/libdecnumber.a  -L/opt/local/lib -lisl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp   -lz
:info:build ld: warning: direct access in libc_name::hash(char const*, unsigned int) to global weak symbol libc_name::hash(char const*, unsigned int) mea
 
However it seems that compilation got stuck at something related to ld, which was reported to cause problems on PPC already. Notice the last sentence in the log:

Is there a reason why you are building on PPC instead of just building for PPC?

MorphOS does have a working gcc9 which I'm pretty sure was build on x86 (Linux on AMD I'd guess) so maybe you should look into that route to determinate if the issue is building gcc8-ppc or building WITH gcc7-ppc.
 
I ran gcc8 building for another night, and it failed here:

Code:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2599:3:
error: 'dlerror' was not declared in this scope
   dlerror ();
   ^~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2599:3:
note: suggested alternative: 'error'
   dlerror ();
   ^~~~~~~
   error
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2602:6:
error: 'RTLD_NOW' was not declared in this scope
      RTLD_NOW | RTLD_LOCAL);
      ^~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2602:6:
note: suggested alternative: 'CLD_NOOP'
      RTLD_NOW | RTLD_LOCAL);
      ^~~~~~~~
      CLD_NOOP
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2602:17:
error: 'RTLD_LOCAL' was not declared in this scope
      RTLD_NOW | RTLD_LOCAL);
                 ^~~~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2602:17:
note: suggested alternative: 'TV_LOAD'
      RTLD_NOW | RTLD_LOCAL);
                 ^~~~~~~~~~
                 TV_LOAD
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2601:12:
error: 'dlopen' was not declared in this scope
   handle = dlopen (m_tempdir->get_path_so_file (),
            ^~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2601:12:
note: suggested alternative: 'open'
   handle = dlopen (m_tempdir->get_path_so_file (),
            ^~~~~~
            open
make[3]: *** [jit/jit-playback.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gfortran.pod gcc.pod
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/build'
make: *** [bootstrap-lean] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/build'
Command failed:  cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/build"
&& /usr/bin/make -j4 -w bootstrap-lean
Exit code: 2
Error: Failed to build gcc8: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port gcc8 failed

Full log attached.

If anyone got ideas how to make it work, suggestions are highly welcomed :)
 

Attachments

  • gcc8_new.log.zip
    190.3 KB · Views: 101
Is there a reason why you are building on PPC instead of just building for PPC?

MorphOS does have a working gcc9 which I'm pretty sure was build on x86 (Linux on AMD I'd guess) so maybe you should look into that route to determinate if the issue is building gcc8-ppc or building WITH gcc7-ppc.

I have been planning to try building a cross-compiler on an Intel Mac to build stuff for PowerPC. There are difficulties in that route (Xcode releases won’t “know” about 10.6 PPC), and no guarantee it gonna work. But yes, I will try that.
 
  • Like
Reactions: ChrisCharman
You should check out Rene Rebe on YouTube. He runs a Linux SDE called T2SDE and cross-builds all the latest packages, including GCC, live on YouTube using many architectures including PowerPC macs. Obviously it’s Linux not Darwin he’s working on but the fundamentals are the same. I watch his stuff a lot it’s fascinating. I’m also aware that there are toolchains available on Linux to cross-compile for OS X, so that’s another option to add to the list.
 
  • Like
Reactions: barracuda156
I'd suggest looking up the system messages in Console if you haven't already. The Console messages are handy particularly in ld (library) related incompatibilities / errors.
 
  • Like
Reactions: ChrisCharman
Is there a reason why you are building on PPC instead of just building for PPC?

MorphOS does have a working gcc9 which I'm pretty sure was build on x86 (Linux on AMD I'd guess) so maybe you should look into that route to determinate if the issue is building gcc8-ppc or building WITH gcc7-ppc.

Cross-compiler partly builds but fails on this:

Code:
checking fcntl.h presence... yes

checking for fcntl.h... yes

checking stdio.h usability... failed

checking for powerpc64-apple-darwin10.0.0-dsymutil... no

checking for dsymutil... dsymutil

configure: WARNING: using cross tools not prefixed with host triplet

checking for powerpc64-apple-darwin10.0.0-nmedit... no

checking for nmedit... nmedit

checking for powerpc64-apple-darwin10.0.0-lipo... /usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/bin/lipo

checking for powerpc64-apple-darwin10.0.0-otool... powerpc64-apple-darwin10.0.0-otool

checking for powerpc64-apple-darwin10.0.0-otool64... no

checking for otool64... no

checking for -single_module linker flag... yes

checking stdio.h presence... yes

checking for stdio.h... yes

checking limits.h usability... yes

checking for -exported_symbols_list linker flag... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.

yes

checking limits.h presence... make[1]: *** [configure-target-libquadmath] Error 1

yes

checking for limits.h... yes

checking whether vsnprintf is usable... no

checking how to print strings... printf

checking for a sed that does not truncate output... /usr/bin/sed

checking for fgrep... /usr/bin/grep -F

checking for ld used by /Users/svacchanda/gcc_all/gcc-11.2.0/build/./gcc/xgcc -B/Users/svacchanda/gcc_all/gcc-11.2.0/build/./gcc/ -B/usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/bin/ -B/usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/lib/ -isystem /usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/include -isystem /usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/sys-include   ... /Users/svacchanda/gcc_all/gcc-11.2.0/build/./gcc/collect-ld

checking if the linker (/Users/svacchanda/gcc_all/gcc-11.2.0/build/./gcc/collect-ld) is GNU ld... no

checking for BSD- or MS-compatible name lister (nm)... /Users/svacchanda/gcc_all/gcc-11.2.0/build/./gcc/nm

checking the name lister (/Users/svacchanda/gcc_all/gcc-11.2.0/build/./gcc/nm) interface... BSD nm

checking whether ln -s works... yes

checking the maximum length of command line arguments... 196608

checking whether the shell understands some XSI constructs... yes

checking whether the shell understands "+="... yes

checking for /Users/svacchanda/gcc_all/gcc-11.2.0/build/./gcc/collect-ld option to reload object files... -r

checking for powerpc64-apple-darwin10.0.0-objdump... powerpc64-apple-darwin10.0.0-objdump

checking how to recognize dependent libraries... pass_all

checking for powerpc64-apple-darwin10.0.0-ar... /usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/bin/ar

checking for powerpc64-apple-darwin10.0.0-strip... (cached) /usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/bin/strip

checking for powerpc64-apple-darwin10.0.0-ranlib... /usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/bin/ranlib

checking command to parse /Users/svacchanda/gcc_all/gcc-11.2.0/build/./gcc/nm output from /Users/svacchanda/gcc_all/gcc-11.2.0/build/./gcc/xgcc -B/Users/svacchanda/gcc_all/gcc-11.2.0/build/./gcc/ -B/usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/bin/ -B/usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/lib/ -isystem /usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/include -isystem /usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/sys-include    object... failed

checking for powerpc64-apple-darwin10.0.0-dsymutil... no

checking for dsymutil... dsymutil

configure: WARNING: using cross tools not prefixed with host triplet

checking for powerpc64-apple-darwin10.0.0-nmedit... no

checking for nmedit... nmedit

checking for powerpc64-apple-darwin10.0.0-lipo... /usr/local/gcc/ppc64/11/powerpc64-apple-darwin10.0.0/bin/lipo

checking for powerpc64-apple-darwin10.0.0-otool... powerpc64-apple-darwin10.0.0-otool

checking for powerpc64-apple-darwin10.0.0-otool64... no

checking for otool64... no

checking for -single_module linker flag... yes

checking for -exported_symbols_list linker flag... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.

make[1]: *** [configure-target-libssp] Error 1

Building 32 bit version against 10.5 SDK also fails:

Code:
checking how to recognize dependent libraries... pass_all

checking for powerpc-apple-darwin9.8.0-ar... (cached) /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ar

checking for powerpc-apple-darwin9.8.0-strip... /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/strip

checking for powerpc-apple-darwin9.8.0-ranlib... (cached) /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ranlib

checking for gawk... awk

checking command to parse /Users/svacchanda/gcc_all/gcc11_build/./gcc/nm output from /Users/svacchanda/gcc_all/gcc11_build/./gcc/xgcc -B/Users/svacchanda/gcc_all/gcc11_build/./gcc/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/lib/ -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/include -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/sys-include    object... /Users/svacchanda/gcc_all/gcc11_build/./gcc/xgcc -B/Users/svacchanda/gcc_all/gcc11_build/./gcc/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/lib/ -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/include -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/sys-include    -E

/Users/svacchanda/gcc_all/gcc11_build/./gcc/xgcc -B/Users/svacchanda/gcc_all/gcc11_build/./gcc/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/lib/ -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/include -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/sys-include    -E

checking for grep that handles long lines and -e... checking whether -fstack-protector works... yes

checking for CET support... no

checking whether hidden visibility is supported... yes

checking whether symbol versioning is supported... no

checking for grep that handles long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for ANSI C header files... failed

checking for powerpc-apple-darwin9.8.0-dsymutil... no


checking for dsymutil... dsymutil
configure: WARNING: using cross tools not prefixed with host triplet

checking for powerpc-apple-darwin9.8.0-nmedit... no

checking for nmedit... nmedit

checking for powerpc-apple-darwin9.8.0-lipo... /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/lipo

checking for powerpc-apple-darwin9.8.0-otool... powerpc-apple-darwin9.8.0-otool

checking for powerpc-apple-darwin9.8.0-otool64... no

checking for otool64... no

checking for -single_module linker flag... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for ANSI C header files... yes

checking for sys/types.h... no


checking for -exported_symbols_list linker flag... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.

make[1]: *** [configure-target-libobjc] Error 1

yes

checking for sys/stat.h... yes

checking for sys/types.h... yes

checking for stdlib.h... yes

checking for sys/stat.h... yes

checking for string.h... yes

checking for stdlib.h... yes

checking for memory.h... yes

checking for string.h... yes

checking for strings.h... yes

checking for memory.h... yes

checking for inttypes.h... yes

checking for strings.h... yes

checking for stdint.h... yes

checking for inttypes.h... yes

checking for unistd.h... yes

checking for stdint.h... yes

checking minix/config.h usability... yes

checking for unistd.h... no

checking minix/config.h presence... no

checking for minix/config.h... no

checking whether it is safe to define __EXTENSIONS__... yes

checking alloca.h usability... yes

checking for makeinfo... makeinfo --split-size=5000000

checking for modern makeinfo... yes

checking alloca.h presence... yes

checking for alloca.h... yes

checking malloc.h usability... no

checking malloc.h presence... no

checking for malloc.h... no

yes

checking paths.h usability... checking how to print strings... printf


checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F

checking for ld used by /Users/svacchanda/gcc_all/gcc11_build/./gcc/xgcc -B/Users/svacchanda/gcc_all/gcc11_build/./gcc/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/lib/ -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/include -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/sys-include   ... /Users/svacchanda/gcc_all/gcc11_build/./gcc/collect-ld

checking if the linker (/Users/svacchanda/gcc_all/gcc11_build/./gcc/collect-ld) is GNU ld... no

checking for BSD- or MS-compatible name lister (nm)... /Users/svacchanda/gcc_all/gcc11_build/./gcc/nm

checking the name lister (/Users/svacchanda/gcc_all/gcc11_build/./gcc/nm) interface... yes

checking paths.h presence... yes

checking for paths.h... yes

checking syslog.h usability... BSD nm


checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes

checking for /Users/svacchanda/gcc_all/gcc11_build/./gcc/collect-ld option to reload object files... -r

checking for powerpc-apple-darwin9.8.0-objdump... powerpc-apple-darwin9.8.0-objdump


checking how to recognize dependent libraries... pass_all

checking for powerpc-apple-darwin9.8.0-ar... /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ar

checking for powerpc-apple-darwin9.8.0-strip... (cached) /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/strip

checking for powerpc-apple-darwin9.8.0-ranlib... /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ranlib

checking command to parse /Users/svacchanda/gcc_all/gcc11_build/./gcc/nm output from /Users/svacchanda/gcc_all/gcc11_build/./gcc/xgcc -B/Users/svacchanda/gcc_all/gcc11_build/./gcc/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/lib/ -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/include -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/sys-include    object... yes

checking syslog.h presence... yes

checking for syslog.h... yes

checking for string.h... (cached) yes

checking for unistd.h... (cached) yes

checking fcntl.h usability... yes


checking fcntl.h presence... yes
checking for fcntl.h... yes

checking stdio.h usability... yes

checking stdio.h presence... failed

checking for powerpc-apple-darwin9.8.0-dsymutil... no


checking for dsymutil... dsymutil
configure: WARNING: using cross tools not prefixed with host triplet

checking for powerpc-apple-darwin9.8.0-nmedit... no

checking for nmedit... nmedit

checking for powerpc-apple-darwin9.8.0-lipo... /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/lipo

checking for powerpc-apple-darwin9.8.0-otool... powerpc-apple-darwin9.8.0-otool

checking for powerpc-apple-darwin9.8.0-otool64... no


checking for otool64... no
checking for -single_module linker flag... yes

checking for stdio.h... yes

checking limits.h usability... no


checking for -exported_symbols_list linker flag... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
yes
checking limits.h presence... make[1]: *** [configure-target-libquadmath] Error 1
yes
checking for limits.h... yes
checking whether vsnprintf is usable... no
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F

checking for ld used by /Users/svacchanda/gcc_all/gcc11_build/./gcc/xgcc -B/Users/svacchanda/gcc_all/gcc11_build/./gcc/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/lib/ -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/include -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/sys-include   ... /Users/svacchanda/gcc_all/gcc11_build/./gcc/collect-ld

checking if the linker (/Users/svacchanda/gcc_all/gcc11_build/./gcc/collect-ld) is GNU ld... no

checking for BSD- or MS-compatible name lister (nm)... /Users/svacchanda/gcc_all/gcc11_build/./gcc/nm

checking the name lister (/Users/svacchanda/gcc_all/gcc11_build/./gcc/nm) interface... BSD nm


checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes

checking for /Users/svacchanda/gcc_all/gcc11_build/./gcc/collect-ld option to reload object files... -r

checking for powerpc-apple-darwin9.8.0-objdump... powerpc-apple-darwin9.8.0-objdump


checking how to recognize dependent libraries... pass_all

checking for powerpc-apple-darwin9.8.0-ar... /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ar

checking for powerpc-apple-darwin9.8.0-strip... (cached) /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/strip

checking for powerpc-apple-darwin9.8.0-ranlib... /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ranlib

checking command to parse /Users/svacchanda/gcc_all/gcc11_build/./gcc/nm output from /Users/svacchanda/gcc_all/gcc11_build/./gcc/xgcc -B/Users/svacchanda/gcc_all/gcc11_build/./gcc/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/ -B/usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/lib/ -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/include -isystem /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/sys-include    object... failed

checking for powerpc-apple-darwin9.8.0-dsymutil... no


checking for dsymutil... dsymutil
configure: WARNING: using cross tools not prefixed with host triplet

checking for powerpc-apple-darwin9.8.0-nmedit... no

checking for nmedit... nmedit

checking for powerpc-apple-darwin9.8.0-lipo... /usr/local/gcc/ppc/11/powerpc-apple-darwin9.8.0/bin/lipo

checking for powerpc-apple-darwin9.8.0-otool... powerpc-apple-darwin9.8.0-otool

checking for powerpc-apple-darwin9.8.0-otool64... no

checking for otool64... no

checking for -single_module linker flag... no


checking for -exported_symbols_list linker flag... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libssp] Error 1

make: *** [all] Error 2

svacchanda@Sergeys-Mac-mini gcc11_build % 1;2c
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.