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

pipetogrep

macrumors 6502
Original poster
Jan 27, 2021
361
505
Hi all,

I'm attempting to build TenFourFox on Leopard. Following the guide here which works on Tiger, this is the result when running
Code:
gmake -f client.mk build

Code:
powermac-g4:dev chris$ cd tenfourfox-master
powermac-g4:tenfourfox-master chris$ cp G4-7450.mozcfg .mozconfig
powermac-g4:tenfourfox-master chris$ autoconf213
powermac-g4:tenfourfox-master chris$ gmake -f client.mk build
mkdir -p '/Users/chris/dev/tenfourfox-master/obj-ff-dbg/'
python2.7 /Users/chris/dev/tenfourfox-master/config/pythonpath.py -I /Users/chris/dev/tenfourfox-master/testing/mozbase/mozfile \
    /Users/chris/dev/tenfourfox-master/python/mozbuild/mozbuild/controller/clobber.py /Users/chris/dev/tenfourfox-master /Users/chris/dev/tenfourfox-master/obj-ff-dbg
Clobber not needed.
> /Users/chris/dev/tenfourfox-master/obj-ff-dbg/.mozconfig.mk
gmake -f /Users/chris/dev/tenfourfox-master/client.mk realbuild CREATE_MOZCONFIG_JSON=
gmake[1]: Entering directory '/Users/chris/dev/tenfourfox-master'
Adding client.mk options from /Users/chris/dev/tenfourfox-master/.mozconfig:
    AUTOCONF=autoconf213
    MOZ_MAKE_FLAGS=-s -j2
    MOZ_OBJDIR=/Users/chris/dev/tenfourfox-master/obj-ff-dbg
    OBJDIR=/Users/chris/dev/tenfourfox-master/obj-ff-dbg
    FOUND_MOZCONFIG=/Users/chris/dev/tenfourfox-master/.mozconfig
Generating /Users/chris/dev/tenfourfox-master/js/src/configure using autoconf
cd /Users/chris/dev/tenfourfox-master/js/src; autoconf213
gmake[2]: Entering directory '/Users/chris/dev/tenfourfox-master'
cp /Users/chris/dev/tenfourfox-master/.mozconfig /Users/chris/dev/tenfourfox-master/obj-ff-dbg/.mozconfig
cd /Users/chris/dev/tenfourfox-master/obj-ff-dbg
/Users/chris/dev/tenfourfox-master/configure
Adding configure options from /Users/chris/dev/tenfourfox-master/.mozconfig
  --enable-application=browser
  --disable-tests
  --disable-static
  --enable-optimize
  --disable-cpp-exceptions
  --disable-debug
  --disable-crashreporter
  --enable-printing
  --enable-prebinding
  --enable-macos-target=10.4
  --enable-chrome-format=jar
  --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
  --enable-tenfourfox-vmx
  --enable-strip
  --enable-install-strip
  --with-system-jpeg
  --with-distribution-id=com.floodgap
  --enable-webrtc
creating cache ./config.cache
checking host system type... powerpc-apple-darwin9.8.0
checking target system type... powerpc-apple-darwin9.8.0
checking build system type... powerpc-apple-darwin9.8.0
checking for mawk... no
checking for gawk... gawk
checking for python2.7... /opt/macports-tff/bin/python2.7
Creating Python environment
New python executable in /Users/chris/dev/tenfourfox-master/obj-ff-dbg/_virtualenv/bin/python
Installing setuptools, pip...done.
running build_ext
building 'psutil._psutil_osx' extension
creating build
creating build/temp.macosx-10.5-ppc-2.7
creating build/temp.macosx-10.5-ppc-2.7/psutil
creating build/temp.macosx-10.5-ppc-2.7/psutil/arch
creating build/temp.macosx-10.5-ppc-2.7/psutil/arch/osx
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSUTIL_VERSION=311 -I/opt/macports-tff/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_osx.c -o build/temp.macosx-10.5-ppc-2.7/psutil/_psutil_osx.o
psutil/_psutil_osx.c: In function 'psutil_proc_memory_maps':
psutil/_psutil_osx.c:322: warning: format '%016lx' expects type 'long unsigned int', but argument 3 has type 'vm_address_t'
psutil/_psutil_osx.c:322: warning: format '%016lx' expects type 'long unsigned int', but argument 4 has type 'vm_address_t'
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSUTIL_VERSION=311 -I/opt/macports-tff/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_common.c -o build/temp.macosx-10.5-ppc-2.7/psutil/_psutil_common.o
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSUTIL_VERSION=311 -I/opt/macports-tff/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/arch/osx/process_info.c -o build/temp.macosx-10.5-ppc-2.7/psutil/arch/osx/process_info.o
creating build/lib.macosx-10.5-ppc-2.7
creating build/lib.macosx-10.5-ppc-2.7/psutil
/usr/bin/gcc-4.2 -bundle -undefined dynamic_lookup -L/opt/macports-tff/lib -Wl,-headerpad_max_install_names -L/opt/macports-tff/lib/db48 build/temp.macosx-10.5-ppc-2.7/psutil/_psutil_osx.o build/temp.macosx-10.5-ppc-2.7/psutil/_psutil_common.o build/temp.macosx-10.5-ppc-2.7/psutil/arch/osx/process_info.o -o build/lib.macosx-10.5-ppc-2.7/psutil/_psutil_osx.so -framework CoreFoundation -framework IOKit
building 'psutil._psutil_posix' extension
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/macports-tff/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.macosx-10.5-ppc-2.7/psutil/_psutil_posix.o
psutil/_psutil_posix.c: In function 'psutil_net_if_stats':
psutil/_psutil_posix.c:403: warning: implicit declaration of function 'ioctl'
/usr/bin/gcc-4.2 -bundle -undefined dynamic_lookup -L/opt/macports-tff/lib -Wl,-headerpad_max_install_names -L/opt/macports-tff/lib/db48 build/temp.macosx-10.5-ppc-2.7/psutil/_psutil_posix.o -o build/lib.macosx-10.5-ppc-2.7/psutil/_psutil_posix.so
copying build/lib.macosx-10.5-ppc-2.7/psutil/_psutil_osx.so -> psutil
copying build/lib.macosx-10.5-ppc-2.7/psutil/_psutil_posix.so -> psutil

checking Python environment is Mozilla virtualenv... yes
checking for perl5... /opt/macports-tff/bin/perl5
checking for gcc... /opt/local/bin/gcc-mp-4.8 -flax-vector-conversions -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic
checking whether the C compiler (/opt/local/bin/gcc-mp-4.8 -flax-vector-conversions -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
------ config.log ------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:1218: checking host system type
configure:1239: checking target system type
configure:1257: checking build system type
configure:1338: checking for mawk
configure:1338: checking for gawk
configure:1423: checking for python2.7
configure:1533: checking Python environment is Mozilla virtualenv
configure:1768: checking for perl5
configure:3454: checking for gcc
configure:3567: checking whether the C compiler (/opt/local/bin/gcc-mp-4.8 -flax-vector-conversions -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  ) works
configure:3583: /opt/local/bin/gcc-mp-4.8 -flax-vector-conversions -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic -o conftest    conftest.c  1>&5
/Users/chris/dev/tenfourfox-master/configure: line 3582: /opt/local/bin/gcc-mp-4.8: No such file or directory
configure: failed program was:

#line 3578 "configure"
#include "confdefs.h"

main(){return(0);}
configure: error: installation or configuration problem: C compiler cannot create executables.
*** Fix above errors and then restart with\
               "gmake -f client.mk build"
gmake[2]: *** [/Users/chris/dev/tenfourfox-master/client.mk:361: configure] Error 1
gmake[2]: Leaving directory '/Users/chris/dev/tenfourfox-master'
gmake[1]: *** [/Users/chris/dev/tenfourfox-master/client.mk:373: /Users/chris/dev/tenfourfox-master/obj-ff-dbg/Makefile] Error 2
gmake[1]: Leaving directory '/Users/chris/dev/tenfourfox-master'
gmake: *** [client.mk:171: build] Error 2

Any help debugging this would be appreciated. Thanks.
 
Gah. I see part of the problem right off the bat. I'm not using the right MacPorts prefix. I'll update that first and report back.
 
OK. I've replaced all instances of the original Macports prefix with the one that I'm using for this build. This was done by using my script at https://github.com/llamallama/tenfourfox-toolkit-scripts/blob/main/build_tenfourfox.

Code:
powermac-g4:dev chris$ build_tenfourfox ./
1) G3
2) G4-7400
3) G4-7450
4) G5
Your processor is a ppc7450.
Please note that you can only build for the processor you have and lower.
For example, you can't build for a G5 from a G4.
Select the processor to build TenFourFox for (1-4): 3

1) Pull latest source from master.
   This stashes your changes pulls froms and merges master into your branch.

2) Build from where it last left off.
   This keeps configure and obj-ff-dbg/ intact.
   Use this if you had to cancel your previous build.

3) Rebuild from scratch.
   This runs 'rm -rf configure obj-ff-dbg/' and starts the build over.

.//tenfourfox exists. Do you want to (1-4): 3
Cleaning and starting over
Replacing all occurences of "/opt/local" with "/opt/macports-tff":
Replaced in .//tenfourfox/.mozconfig
Replaced in .//tenfourfox/104fx_copy.sh
Replaced in .//tenfourfox/104fx_fix_links.sh
Replaced in .//tenfourfox/configure
Replaced in .//tenfourfox/configure.in
Replaced in .//tenfourfox/DEBUG-gprof.mozcfg
Replaced in .//tenfourfox/DEBUG.mozcfg
Replaced in .//tenfourfox/G3.mozcfg
Replaced in .//tenfourfox/G4-7400.mozcfg
Replaced in .//tenfourfox/G4-7450-nostrip.mozcfg
Replaced in .//tenfourfox/G4-7450.mozcfg
Replaced in .//tenfourfox/G5-nostrip-gprof.mozcfg
Replaced in .//tenfourfox/G5-nostrip.mozcfg
Replaced in .//tenfourfox/G5.mozcfg
Replaced in .//tenfourfox/intel-Yonah.mozcfg
Replaced in .//tenfourfox/js/src/configure
Replaced in .//tenfourfox/js/src/configure.in
Replaced in .//tenfourfox/js/src/jit-test/jit_test.py
Replaced in .//tenfourfox/js/src/tests/jstests.py
Replaced in .//tenfourfox/nsprpub/configure.in
Replaced in .//tenfourfox/obj-ff-dbg/.mozconfig
Replaced in .//tenfourfox/obj-ff-dbg/.mozconfig.json
Replaced in .//tenfourfox/testing/mozharness/configs/b2g/desktop_macosx64.py
Replaced in .//tenfourfox/testing/mozharness/configs/builds/releng_base_mac_64_builds.py
Replaced in .//tenfourfox/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_debug.py
Replaced in .//tenfourfox/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_opt.py
Replaced in .//tenfourfox/testing/mozharness/configs/builds/releng_sub_mac_configs/64_debug.py
Replaced in .//tenfourfox/testing/mozharness/configs/builds/releng_sub_mac_configs/64_graphene.py
Replaced in .//tenfourfox/testing/mozharness/configs/builds/releng_sub_mac_configs/64_horizon.py
Replaced in .//tenfourfox/testing/mozharness/configs/builds/releng_sub_mac_configs/64_mulet.py
Replaced in .//tenfourfox/testing/mozharness/configs/builds/releng_sub_mac_configs/64_stat_and_debug.py
mkdir -p '/Users/chris/dev/tenfourfox/obj-ff-dbg/'
python2.7 /Users/chris/dev/tenfourfox/config/pythonpath.py -I /Users/chris/dev/tenfourfox/testing/mozbase/mozfile \
    /Users/chris/dev/tenfourfox/python/mozbuild/mozbuild/controller/clobber.py /Users/chris/dev/tenfourfox /Users/chris/dev/tenfourfox/obj-ff-dbg
Clobber not needed.
> /Users/chris/dev/tenfourfox/obj-ff-dbg/.mozconfig.mk
gmake -f /Users/chris/dev/tenfourfox/client.mk realbuild CREATE_MOZCONFIG_JSON=
gmake[1]: Entering directory '/Users/chris/dev/tenfourfox'
Adding client.mk options from /Users/chris/dev/tenfourfox/.mozconfig:
    AUTOCONF=autoconf213
    MOZ_MAKE_FLAGS=-s -j2
    MOZ_OBJDIR=/Users/chris/dev/tenfourfox/obj-ff-dbg
    OBJDIR=/Users/chris/dev/tenfourfox/obj-ff-dbg
    FOUND_MOZCONFIG=/Users/chris/dev/tenfourfox/.mozconfig
gmake[2]: Entering directory '/Users/chris/dev/tenfourfox'
cp /Users/chris/dev/tenfourfox/.mozconfig /Users/chris/dev/tenfourfox/obj-ff-dbg/.mozconfig
cd /Users/chris/dev/tenfourfox/obj-ff-dbg
/Users/chris/dev/tenfourfox/configure
Adding configure options from /Users/chris/dev/tenfourfox/.mozconfig
  --enable-application=browser
  --disable-tests
  --disable-static
  --enable-optimize
  --disable-cpp-exceptions
  --disable-debug
  --disable-crashreporter
  --enable-printing
  --enable-prebinding
  --enable-macos-target=10.4
  --enable-chrome-format=jar
  --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
  --enable-tenfourfox-vmx
  --enable-strip
  --enable-install-strip
  --with-system-jpeg
  --with-distribution-id=com.floodgap
  --enable-webrtc
creating cache ./config.cache
checking host system type... powerpc-apple-darwin9.8.0
checking target system type... powerpc-apple-darwin9.8.0
checking build system type... powerpc-apple-darwin9.8.0
checking for mawk... no
checking for gawk... gawk
checking for python2.7... /opt/macports-tff/bin/python2.7
Creating Python environment
New python executable in /Users/chris/dev/tenfourfox/obj-ff-dbg/_virtualenv/bin/python
Installing setuptools, pip...done.
running build_ext
copying build/lib.macosx-10.5-ppc-2.7/psutil/_psutil_osx.so -> psutil
copying build/lib.macosx-10.5-ppc-2.7/psutil/_psutil_posix.so -> psutil

checking Python environment is Mozilla virtualenv... yes
checking for perl5... /opt/macports-tff/bin/perl5
checking for gcc... /opt/macports-tff/bin/gcc-mp-4.8 -flax-vector-conversions -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic
checking whether the C compiler (/opt/macports-tff/bin/gcc-mp-4.8 -flax-vector-conversions -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  ) works... yes
checking whether the C compiler (/opt/macports-tff/bin/gcc-mp-4.8 -flax-vector-conversions -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether /opt/macports-tff/bin/gcc-mp-4.8 -flax-vector-conversions -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic accepts -g... yes
checking for c++... /opt/macports-tff/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic
checking whether the C++ compiler (/opt/macports-tff/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  ) works... yes
checking whether the C++ compiler (/opt/macports-tff/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether /opt/macports-tff/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic accepts -g... yes
checking for ranlib... ranlib
checking for as... /opt/macports-tff/bin/as
checking for ar... ar
checking for ld... ld
checking for strip... strip
configure: warning: Forcing strip to /opt/macports-tff/bin/strip7
checking for windres... no
checking for otool... otool
checking for rustc... no
checking how to run the C preprocessor... /opt/macports-tff/bin/gcc-mp-4.8 -flax-vector-conversions -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic -E
checking how to run the C++ preprocessor... /opt/macports-tff/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic -E
checking for a BSD compatible install... /opt/macports-tff/bin/ginstall -c
checking whether ln -s works... yes
checking for minimum required perl version >= 5.006... 5.028003
checking for full perl installation... yes
checking for doxygen... :
checking for autoconf... /opt/macports-tff/bin/autoconf
checking for unzip... /usr/bin/unzip
checking for zip... /usr/bin/zip
checking for xargs... /usr/bin/xargs
checking for rpmbuild... :
checking for genisoimage... :
checking for dsymutil... /usr/bin/dsymutil
checking for valid compiler/Mac OS X SDK combination... yes
checking for gmake... /opt/macports-tff/bin/gmake
checking for X... no
checking that static assertion macros used in autoconf tests work... yes
checking for --noexecstack option to as... no
checking for -z noexecstack option to ld... no
checking for -z text option to ld... no
checking for --build-id option to ld... no
checking for --ignore-unresolved-symbol option to ld... no
checking if toolchain supports -mssse3 option... no
checking if toolchain supports -msse4.1 option... no
checking whether the C++ compiler supports -Wno-unused-local-typedef... no
checking whether the C++ compiler supports -Wno-inline-new-delete... no
checking whether the C++ compiler supports -Wno-unused-local-typedef... (cached) no
checking for 64-bit OS... no
checking for iOS target... no
/Users/chris/dev/tenfourfox/configure: line 9454: test: argument expected
checking for -dead_strip option to ld... no
checking for -allow_heap_execute option to ld... no
checking whether the C++ compiler (/opt/macports-tff/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti ) actually is a C++ compiler... no
configure: error: /opt/macports-tff/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti  failed to compile and link a simple C++ source.
------ config.log ------
return 0;
; return 0; }
configure:9536: checking for -allow_heap_execute option to ld
configure:9547: /opt/macports-tff/bin/gcc-mp-4.8 -flax-vector-conversions -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic -o conftest  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -std=gnu99 -fno-strict-aliasing -fno-exceptions   -Wl,-allow_heap_execute conftest.c  1>&5
ld: -allow_heap_execute option can only be used when linking for i386
collect2: error: ld returned 1 exit status
configure: failed program was:
#line 9540 "configure"
#include "confdefs.h"

int main() {
return 0;
; return 0; }
configure:10510: checking whether the C++ compiler (/opt/macports-tff/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti ) actually is a C++ compiler
configure:10529: /opt/macports-tff/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic -o conftest  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti   conftest.C  1>&5
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o, in section __TEXT,__text reloc 1: sectionForNum(4) section number not for any section for architecture ppc7450
collect2: error: ld returned 1 exit status
configure: failed program was:
#line 10522 "configure"
#include "confdefs.h"
#include <new>
int main() {
int *foo = new int;
; return 0; }
configure: error: /opt/macports-tff/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti  failed to compile and link a simple C++ source.
*** Fix above errors and then restart with\
               "gmake -f client.mk build"
gmake[2]: *** [/Users/chris/dev/tenfourfox/client.mk:361: configure] Error 1
gmake[2]: Leaving directory '/Users/chris/dev/tenfourfox'
gmake[1]: *** [/Users/chris/dev/tenfourfox/client.mk:373: /Users/chris/dev/tenfourfox/obj-ff-dbg/Makefile] Error 2
gmake[1]: Leaving directory '/Users/chris/dev/tenfourfox'
gmake: *** [client.mk:171: build] Error 2
 
Some progress made, after running
Code:
sudo port install ld64 +ld64_97
and adding -mmacosx-version-min=10.4 flag to the CC and CXX compiler spec in .mozconfig, it starts compiling. I'll leave it running. Here's hoping we get a build.
 
Using the older linker is indeed what I did last time I built it on Leopard (three years ago) https://github.com/classilla/tenfourfox/issues/498

I have built it about 1000 times on Tiger since then (PPC and Intel), but never bothered with Leopard again after that -- it should still be true that the older linker is needed.
 
This sort of thing is a bit beyond my experience but I've been watching you guys from the sidelines. Is there any chance of using newer versions of gcc to get a TFF build using LTO and PGO? I saw on talospace that it helps a lot on the Power9 builds...
 
This sort of thing is a bit beyond my experience but I've been watching you guys from the sidelines. Is there any chance of using newer versions of gcc to get a TFF build using LTO and PGO? I saw on talospace that it helps a lot on the Power9 builds...
I previously tried gcc6, but ran into this:


It might be fixable, with a proper amount of enthusiasm.

On the other hand, the upstream branch of FireFox that TenFourFox was getting it's patches from has stopped all updates now, so ... no more from there. TenFourFox is basically static at it's current build.

Cameron considered trying to feed off a newer branch instead, porting the TFF changes into some newer FireFox branch, but that was overwhelming from a workload and logistics point of view, not to mention he found rust was a hard dependency and rust does not now and probably never will exist for 10.4 and/or 10.5 PPC Macs.
 
Last edited:
Using the older linker is indeed what I did last time I built it on Leopard (three years ago) https://github.com/classilla/tenfourfox/issues/498

I have built it about 1000 times on Tiger since then (PPC and Intel), but never bothered with Leopard again after that -- it should still be true that the older linker is needed.
This is really helpful, @kencu. I'm hitting that issue with the math headers. I'll try applying the patch. Thanks!
 
  • Like
Reactions: kencu
I have a working build! It’s against the 10.4 SDK. Now to try against 10.5 and see how it fails.
 
  • Like
Reactions: B S Magnet
So now I'm working on building against the 10.5 SDK. It's gotta a decent way into the build but fails when it tries to build something related to the OS X speech synthesizer service saying that only the 10.4 SDK is supported. I wonder how feasible it would be to disable webspeech for this build.

Code:
In file included from /Users/chris/dev/tenfourfox/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm:13:0:
../../../../../dist/include/nsCocoaUtils.h:53:2: error: #error The 10.4 SDK is the only supported target!
 #error The 10.4 SDK is the only supported target!
  ^
/Users/chris/dev/tenfourfox/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm: In member function 'virtual nsresult mozilla::dom::EnumVoicesRunnable::Run()':
/Users/chris/dev/tenfourfox/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm:298:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (i=0; i<[voices count]; i++) {
                            ^

In the directory  /Users/chris/dev/tenfourfox/obj-ff-dbg/dom/media/webspeech/synth/cocoa
The following command failed to execute properly:
/opt/macports-tff/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic -o OSXSpeechSynthesizerService.o -c -fvisibility=hidden -fvisibility-inlines-hidden -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -I/Users/chris/dev/tenfourfox/dom/media/webspeech/synth/cocoa -I. -I../../../../../dist/include -I/Users/chris/dev/tenfourfox/obj-ff-dbg/dist/include/nspr -I/Users/chris/dev/tenfourfox/obj-ff-dbg/dist/include/nss -I/Users/chris/dev/tenfourfox/jpeg-imageio -fPIC -DMOZILLA_CLIENT -include ../../../../../mozilla-config.h -MD -MP -MF .deps/OSXSpeechSynthesizerService.o.pp -I/Users/chris/dev/tenfourfox/jpeg-imageio -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Wno-invalid-offsetof -Wcast-align -isysroot /Developer/SDKs/MacOSX10.5.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -DNO_X11 -pipe -DNDEBUG -DTRIMMED -gdwarf-2 -O3 -fobjc-exceptions /Users/chris/dev/tenfourfox/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm
gmake[5]: *** [/Users/chris/dev/tenfourfox/config/rules.mk:963: OSXSpeechSynthesizerService.o] Error 1
gmake[5]: Leaving directory '/Users/chris/dev/tenfourfox/obj-ff-dbg/dom/media/webspeech/synth/cocoa'
gmake[4]: *** [/Users/chris/dev/tenfourfox/config/recurse.mk:71: dom/media/webspeech/synth/cocoa/target] Error 2
 
Perhaps a question to ask yourself is what advantage do you perceive to obtain by building this codebase against the 10.5 SDK that would make this effort of updating it use a newer SDK worthwhile?

I have build TFF on -- I think the highest system was 10.11 -- against the 10.4 SDK without any troubles.
 
  • Like
Reactions: barracuda156
@kencu I'm trying to help @z970mp with this idea.

one thing that I would be interested to see is if you (or someone) could build TenFourFox linked against the newer 10.5 libraries as opposed to the 10.4 libraries.

I have a suspicion that this could enable GPU acceleration and thus actually use the graphics card for rendering instead of the CPU, given the greater abilities that the Leopard graphics libraries / toolchains provide over their predecessor.
I'm not sure if making use of GPU acceleration would be at all possible so I guess the answer is I just want to see if it is possible to compile against the 10.5 SDK. Considering that we're playing with ancient hardware and OSes, "worthwhile" rarely factors into any of this for me. :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.