See also Installing OS X Tiger (10.4) on an eMac
brew install coreutils
CC src/src_libstdbuf_so-libstdbuf.o
CCLD src/libstdbuf.so
powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-shared'
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status
make[2]: *** [src/libstdbuf.so] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
Error: No such file or directory - /usr/sbin/pkgutil
Update: it looks like installing apple-gcc42
fixed this:
checking for gcc... /usr/local/bin/gcc-4.2
brew install sdl2_gfx
config.status: executing libtool commands
config.status: executing depfiles commands
Options summary:
* --enable-mmx: yes
==> make install
/bin/sh ./libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL2_gfx\" -DVERSION=\"1.0.0\" -DSIZEOF_LONG=4 -I. -F/usr/local/Frameworks -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -O -DUSE_MMX -mmmx -D_THREAD_SAFE -I/usr/local/include/SDL2 -c -o SDL2_framerate.lo SDL2_framerate.c
libtool: compile: /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL2_gfx\" -DVERSION=\"1.0.0\" -DSIZEOF_LONG=4 -I. -F/usr/local/Frameworks -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -O -DUSE_MMX -mmmx -D_THREAD_SAFE -I/usr/local/include/SDL2 -c SDL2_framerate.c -fno-common -DPIC -o .libs/SDL2_framerate.o
cc1: error: invalid option ‘mmx’
make: *** [SDL2_framerate.lo] Error 1
PR submitted: mistydemeo/tigerbrew#678
Failure while installing the libpng dependency:
$ brew install sdl2_image
...
make install-data-hook
+ cd /usr/local/Cellar/libpng/1.6.24/include
+ rm -f pnglibconf.h
+ ln -s libpng16/pnglibconf.h pnglibconf.h
+ rm -f png.h
+ ln -s libpng16/png.h png.h
+ rm -f pngconf.h
+ ln -s libpng16/pngconf.h pngconf.h
+ cd /usr/local/Cellar/libpng/1.6.24/lib/pkgconfig
+ rm -f libpng.pc
+ ln -s libpng16.pc libpng.pc
Error: No such file or directory @ dir_chdir - /Users/cell/github/mistydemeo/tigerbrew/Library/Formula
perhaps this was because my PWD was the Formula directory, and it tried to use ./libpng.rb?
Update: yes, after changing directories it worked.
However, sdl2_image still fails:
$ brew install sdl2_image
...
libtool: compile: /usr/local/bin/gcc-4.2 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL2_image\" -DVERSION=\"2.0.0\" -DLOAD_JPG=1 -DLOAD_PNG=1 -DLOAD_TIF=1 -DLOAD_WEBP=1 -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -DLOAD_WEBP_DYNAMIC=\"libwebp.dylib\" -DLOAD_TIF_DYNAMIC=\"libtiff.dylib\" -DLOAD_JPG_DYNAMIC=\"libjpeg.dylib\" -DLOAD_PNG_DYNAMIC=\"libpng.dylib\" -I. -I/usr/local/opt/libpng/include -F/usr/local/Frameworks -I/usr/local/Cellar/webp/0.4.3/include -I/usr/local/Cellar/libpng/1.6.24/include/libpng16 -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -DSDL_IMAGE_USE_COMMON_BACKEND -D_THREAD_SAFE -I/usr/local/include/SDL2 -c IMG_webp.c -fno-common -DPIC -o .libs/IMG_webp.o
IMG_webp.c: In function ‘IMG_LoadWEBP_RW’:
IMG_webp.c:245: error: ‘s’ undeclared (first use in this function)
IMG_webp.c:245: error: (Each undeclared identifier is reported only once
IMG_webp.c:245: error: for each function it appears in.)
make: *** [IMG_webp.lo] Error 1
Error: No such file or directory - /usr/sbin/pkgutil
$ brew install sdl2_mixer
...
/bin/sh ./libtool --mode=compile /usr/local/bin/gcc-4.2 -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -F/usr/local/Frameworks -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/local/include/SDL2 -DHAVE_SIGNAL_H -DHAVE_SETBUF -fvisibility=hidden -DHAVE_FORK -DCMD_MUSIC -DWAV_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I./timidity -DUSE_NATIVE_MIDI -I./native_midi -c native_midi/native_midi_macosx.c -o build/native_midi_macosx.lo
libtool: compile: /usr/local/bin/gcc-4.2 -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -F/usr/local/Frameworks -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/local/include/SDL2 -DHAVE_SIGNAL_H -DHAVE_SETBUF -fvisibility=hidden -DHAVE_FORK -DCMD_MUSIC -DWAV_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I./timidity -DUSE_NATIVE_MIDI -I./native_midi -c native_midi/native_midi_macosx.c -fno-common -DPIC -o build/.libs/native_midi_macosx.o
native_midi/native_midi_macosx.c: In function ‘native_midi_loadsong_RW’:
native_midi/native_midi_macosx.c:204: error: ‘song’ undeclared (first use in this function)
native_midi/native_midi_macosx.c:204: error: (Each undeclared identifier is reported only once
native_midi/native_midi_macosx.c:204: error: for each function it appears in.)
make: *** [build/native_midi_macosx.lo] Error 1
Error: No such file or directory - /usr/sbin/pkgutil
/usr/local/bin/gcc-4.2 -m32 -I/usr/local/opt/readline/include -F/usr/local/Frameworks -I/usr/local/include -I/private/tmp/clisp20200429-948-w80xbg/clisp-2.49/src/gllib -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -O0 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT -I. -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -O0 -c stream.c
stream.d: In function ‘iconv_mblen’:
stream.d:4051: error: ‘iconv’ undeclared (first use in this function)
stream.d:4051: error: (Each undeclared identifier is reported only once
stream.d:4051: error: for each function it appears in.)
stream.d: In function ‘iconv_mbstowcs’:
stream.d:4103: error: ‘iconv’ undeclared (first use in this function)
stream.d: In function ‘iconv_wcslen’:
stream.d:4184: error: ‘iconv’ undeclared (first use in this function)
stream.d: In function ‘iconv_wcstombs’:
stream.d:4268: error: ‘iconv’ undeclared (first use in this function)
stream.d: In function ‘iconv_range’:
stream.d:4416: error: ‘iconv’ undeclared (first use in this function)
stream.d: In function ‘oconv_unshift_output_unbuffered_’:
stream.d:5786: error: ‘iconv’ undeclared (first use in this function)
stream.d: In function ‘oconv_unshift_output_buffered_’:
stream.d:7187: error: ‘iconv’ undeclared (first use in this function)
After building libiconv, clisp still fails, because libiconv does not get symlinked into the system paths.
/usr/local/bin/gcc-4.2 -m32 -I/usr/local/opt/readline/include -F/usr/local/Frameworks -I/usr/local/include -I/private/tmp/clisp20200429-6355-bdywgg/clisp-2.49/src/gllib -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -O0 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT -I. -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -O0 -c stream.c
stream.d: In function ‘iconv_mblen’:
stream.d:4051: error: ‘iconv’ undeclared (first use in this function)
$ brew install --build-bottle ecl
==> Downloading https://common-lisp.net/project/ecl/files/ecl-16.0.0.tgz
/usr/local/Library/Homebrew/vendor/portable-curl/current/bin/curl -fLA Homebrew/0.9.5 (Macintosh; powerpc Mac OS X 10.4.11) curl/7.58.0 https://common-lisp.net/project/ecl/files/ecl-16.0.0.tgz -C 0 -o /Users/cell/Library/Caches/Homebrew/ecl-16.0.0.tgz.incomplete
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "ecl"
Download failed: https://common-lisp.net/project/ecl/files/ecl-16.0.0.tgz
Looks like the URL has changed to https://common-lisp.net/project/ecl/files/ecl-16.0.0.tgz
Hmm, the build is still broken after fixing the URL:
/usr/local/bin/gcc-4.2 -DECLDIR="\"/usr/local/Cellar/ecl/16.0.0/lib/ecl-16.0.0\"" -I. -I/private/tmp/ecl20200429-5909-um6lko/ecl-16.0.0/build -I/private/tmp/ecl20200429-5909-um6lko/ecl-16.0.0/src/c -I../ecl/gc -DECL_API -DECL_NO_LEGACY -F/usr/local/Frameworks -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -fPIC -fno-common -D_THREAD_SAFE -Ddarwin -c -o main.o main.o.c
In file included from /private/tmp/ecl20200429-5909-um6lko/ecl-16.0.0/build/ecl/ecl.h:80,
from /private/tmp/ecl20200429-5909-um6lko/ecl-16.0.0/src/c/main.d:20:
/private/tmp/ecl20200429-5909-um6lko/ecl-16.0.0/build/ecl/object.h:377: error: expected specifier-qualifier-list before ‘bool’
In file included from /private/tmp/ecl20200429-5909-um6lko/ecl-16.0.0/build/ecl/ecl.h:81,
from /private/tmp/ecl20200429-5909-um6lko/ecl-16.0.0/src/c/main.d:20:
./ecl/external.h:236: error: expected specifier-qualifier-list before ‘bool’
./ecl/external.h:473: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_alpha_char_p’
./ecl/external.h:474: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_alphanumericp’
./ecl/external.h:475: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_both_case_p’
./ecl/external.h:478: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_graphic_char_p’
./ecl/external.h:479: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_lower_case_p’
./ecl/external.h:480: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_standard_char_p’
./ecl/external.h:481: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_base_char_p’
./ecl/external.h:482: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_upper_case_p’
./ecl/external.h:488: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_char_eq’
./ecl/external.h:490: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_char_equal’
./ecl/external.h:513: error: expected declaration specifiers or ‘...’ before ‘bool’
./ecl/external.h:617: error: expected declaration specifiers or ‘...’ before ‘bool’
./ecl/external.h:618: error: expected declaration specifiers or ‘...’ before ‘bool’
./ecl/external.h:620: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_library_close’
./ecl/external.h:713: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_input_stream_p’
./ecl/external.h:714: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_output_stream_p’
./ecl/external.h:716: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_interactive_stream_p’
./ecl/external.h:732: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_listen_stream’
./ecl/external.h:741: error: expected declaration specifiers or ‘...’ before ‘bool’
./ecl/external.h:816: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_remhash’
./ecl/external.h:899: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_endp’
./ecl/external.h:903: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ecl_member_eq’
had a broken source URL, PR: mistydemeo/tigerbrew#680
still broken after fixing the URL:
Making install in quartz
CC gvdevice_quartz.lo
In file included from gvdevice_quartz.c:20:
gvplugin_quartz.h:17:26: error: Availability.h: No such file or directory
In file included from gvdevice_quartz.c:20:
gvplugin_quartz.h:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘format_to_uti’
gvplugin_quartz.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘device_data_consumer_callbacks’
gvplugin_quartz.h:63: error: expected declaration specifiers or ‘...’ before ‘CGContextRef’
gvplugin_quartz.h:63: error: expected declaration specifiers or ‘...’ before ‘CGPoint’
make[3]: *** [gvdevice_quartz.lo] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
/usr/local/bin/gcc-4.2 -F/usr/local/Frameworks -I. -I/private/tmp/bitchx20200430-12067-1180qqe/bitchx-1.2.1/include -I../../../include -I. -I./include -DHAVE_CONFIG_H -fPIC -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -fno-strict-aliasing -Wall -c misc.c
ar cru libtoc.a toc.o network.o util.o server.o interface.o buddy.o ll.o misc.o
/usr/local/bin/gcc-4.2 -shared toc.o util.o cmd.o aim.o compat.o -fPIC -o aim.so -Ltoc -ltoc
/usr/bin/ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
cmd.o definition of common _away_message (size 2048)
cmd.o definition of common _current_chat (size 512)
cmd.o definition of common _msgdus (size 4)
toc.o definition of common _sock_read_id (size 4)
aim.o definition of common _timer_id (size 4)
toc/libtoc.a(misc.o) definition of common _aim_host (size 512)
toc/libtoc.a(misc.o) definition of common _aim_port (size 4)
toc/libtoc.a(buddy.o) definition of common _buddy_chats (size 4)
toc/libtoc.a(buddy.o) definition of common _deny (size 4)
toc/libtoc.a(buddy.o) definition of common _groups (size 4)
toc/libtoc.a(misc.o) definition of common _login_host (size 512)
toc/libtoc.a(misc.o) definition of common _login_port (size 4)
cmd.o definition of common _msgdthem (size 4)
toc/libtoc.a(buddy.o) definition of common _permit (size 4)
toc/libtoc.a(toc.o) definition of common _state (size 4)
toc/libtoc.a(server.o) definition of common _my_evil (size 4)
toc/libtoc.a(misc.o) definition of common _aim_username (size 80)
toc/libtoc.a(misc.o) definition of common _registered (size 4)
toc/libtoc.a(misc.o) definition of common _user_info (size 2048)
toc/libtoc.a(interface.o) definition of common _TOC_HANDLERS (size 120)
toc/libtoc.a(interface.o) definition of common _TOC_RAW_HANDLERS (size 120)
toc/libtoc.a(buddy.o) definition of common _invited_chats (size 4)
toc/libtoc.a(misc.o) definition of common _aim_password (size 16)
toc/libtoc.a(misc.o) definition of common _debug_buff (size 1024)
toc/libtoc.a(misc.o) definition of common _quad_addr (size 4)
toc/libtoc.a(misc.o) definition of common _toc_addy (size 16)
toc/libtoc.a(network.o) definition of common _proxy_host (size 256)
collect2: ld returned 1 exit status
make[2]: *** [aim.so] Error 1
make[1]: *** [all] Error 1
make: *** [dll] Error 2
lj_arch.h:310:2: error: #error "Need at least GCC 4.3 or newer"
lj_arch.h:310:2: error: #error "Need at least GCC 4.3 or newer"
lj_arch.h:310:2: error: #error "Need at least GCC 4.3 or newer"
lj_arch.h:310:2: error: #error "Need at least GCC 4.3 or newer"
HOSTCC host/minilua.o
HOSTLINK host/minilua
lj_arch.h:310:2: error: #error "Need at least GCC 4.3 or newer"
DYNASM host/buildvm_arch.h
HOSTCC host/buildvm.o
In file included from host/buildvm.h:16,
from host/buildvm.c:17:
./lj_arch.h:310:2: error: #error "Need at least GCC 4.3 or newer"
make[2]: *** [host/buildvm.o] Error 1
make[1]: *** [amalg] Error 2
make: *** [amalg] Error 2
hmm, I already have gcc 7.3.0 installed. how do I make it use that?
this failed while building mplayer, I think.
/bin/sh ../libtool --tag=CC --preserve-dup-deps --mode=link /usr/local/bin/gcc-4.2 -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -o test-xalloc-die test-xalloc-die.o libtests.a ../lib/libunistring.la libtests.a
libtool: link: /usr/local/bin/gcc-4.2 -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4 -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -o .libs/test-xalloc-die test-xalloc-die.o -L/usr/local/lib libtests.a ../lib/.libs/libunistring.dylib /usr/lib/libiconv.dylib libtests.a
make check-TESTS
PASS: test-alloca-opt
...
PASS: test-fgetc
../build-aux/test-driver: line 107: 20776 Abort trap "$@" >$log_file 2>&1
FAIL: test-float
PASS: test-fputc
...
PASS: test-locale
../build-aux/test-driver: line 107: 21099 Segmentation fault "$@" >$log_file 2>&1
FAIL: test-localename
PASS: test-lock
...
PASS: test-signbit
../build-aux/test-driver: line 107: 21711 Abort trap "$@" >$log_file 2>&1
FAIL: test-stdalign
PASS: test-stdbool
...
============================================================================
Testsuite summary for
============================================================================
# TOTAL: 495
# PASS: 481
# SKIP: 11
# XFAIL: 0
# FAIL: 3
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
============================================================================
make[5]: *** [test-suite.log] Error 1
make[4]: *** [check-TESTS] Error 2
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check] Error 2
make: *** [check-recursive] Error 1
==> Formula
Path: /usr/local/Library/Formula/libunistring.rb
g++ -shared -o libunrar.so -pthread rar.o strlist.o strfn.o pathfn.o smallfn.o global.o file.o filefn.o filcreat.o archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o resource.o match.o timefn.o rdwrfn.o consio.o options.o errhnd.o rarvm.o secpassword.o rijndael.o getbits.o sha1.o sha256.o blake2s.o hash.o extinfo.o extract.o volume.o list.o find.o unpack.o headers.o threadpool.o rs16.o cmddata.o ui.o filestr.o scantree.o dll.o qopen.o
powerpc-apple-darwin8-g++-4.0.1: unrecognized option '-shared'
powerpc-apple-darwin8-g++-4.0.1: unrecognized option '-pthread'
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status
make: *** [lib] Error 1
hmm, perhaps the problem is that CC and CXX are not being used:
==> ENV
CC: /usr/local/bin/gcc-4.2 => /usr/local/Cellar/apple-gcc42/4.2.1-5553/bin/gcc-4.2
CXX: /usr/local/bin/g++-4.2 => /usr/local/Cellar/apple-gcc42/4.2.1-5553/bin/g++-4.2
OBJC: /usr/local/bin/gcc-4.2
OBJCXX: /usr/local/bin/g++-4.2
CFLAGS: -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4
CXXFLAGS: -Os -w -pipe -mcpu=7450 -faltivec -mmacosx-version-min=10.4
CPPFLAGS: -F/usr/local/Frameworks
LDFLAGS: -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names
MAKEFLAGS: -j1
CMAKE_FRAMEWORK_PATH: /usr/local/Frameworks
MACOSX_DEPLOYMENT_TARGET: 10.4
PKG_CONFIG_LIBDIR: /usr/local/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.4:/usr/lib/pkgconfig
HOMEBREW_VERBOSE: 1
PATH: /usr/local/opt/coreutils/libexec/gnubin:/usr/local/sbin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/Library/ENV/scm
CPATH: /usr/local/include
/$scratchfilename=/tmp/canonicalize-whitespace-1.15912.tmp
//entering make-host-1.sh
//building cross-compiler, and doing first genesis
make-host-1.sh: line 34: /private/tmp/sbcl--bootstrap3220200430-15674-zyam3w/sbcl-1.1.6-x86-darwin/src/runtime/sbcl: cannot execute binary file
hmm, it is trying to build and execute an x86 binary?
cell@emac$ time nice brew install --build-bottle clozure-cl
==> Downloading http://ccl.clozure.com/ftp/pub/release/1.10/ccl-1.10-darwinx86.tar.gz
==> Downloading from https://ccl.clozure.com/ftp/pub/release/1.10/ccl-1.10-darwinx86.tar.gz
/usr/local/Library/Homebrew/vendor/portable-curl/current/bin/curl -fLA Homebrew/0.9.5 (Macintosh; powerpc Mac OS X 10.4.11) curl/7.58.0 https://ccl.clozure.com/ftp/pub/release/1.10/ccl-1.10-darwinx86.tar.gz -C 0 -o /Users/cell/Library/Caches/Homebrew/clozure-cl-1.10.tar.gz.incomplete
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 147M 100 147M 0 0 4568k 0 0:00:32 0:00:32 --:--:-- 4879k
==> Verifying clozure-cl-1.10.tar.gz checksum
/usr/bin/tar xzf /Users/cell/Library/Caches/Homebrew/clozure-cl-1.10.tar.gz
==> Cleaning
==> Finishing up
ln -s ../Cellar/clozure-cl/1.10/bin/ccl ccl
ln -s ../Cellar/clozure-cl/1.10/bin/ccl64 ccl64
==> Summary
/usr/local/Cellar/clozure-cl/1.10: 1600 files, 186M, built in 97 seconds
real 1m40.641s
user 0m46.781s
sys 0m37.742s
cell@emac$ ccl
/usr/local/bin/ccl: line 48: /usr/local/Cellar/clozure-cl/1.10/libexec/dppccl: No such file or directory
/usr/local/bin/ccl: line 48: exec: /usr/local/Cellar/clozure-cl/1.10/libexec/dppccl: cannot execute: No such file or directory
cell@emac$ [126]
after modifying the formula to get around the libiconv problem, it built, but a few tests failed:
finished 52 files: 1 error out of 10,960 tests
1 alltest: 0 errors out of 636 tests
2 array: 0 errors out of 290 tests
3 backquot: 0 errors out of 89 tests
4 bin-io: 0 errors out of 15 tests
5 characters: 0 errors out of 221 tests
6 clos: 0 errors out of 495 tests
7 defhash: 0 errors out of 6 tests
8 encoding: 0 errors out of 36 tests
9 eval20: 0 errors out of 44 tests
10 ext-clisp: 0 errors out of 95 tests
11 floeps: 0 errors out of 20 tests
12 format: 0 errors out of 301 tests
13 genstream: 0 errors out of 14 tests
14 hashlong: 0 errors out of 14 tests
15 hashtable: 0 errors out of 10 tests
16 iofkts: 0 errors out of 228 tests
17 lambda: 0 errors out of 90 tests
18 lists151: 0 errors out of 201 tests
19 lists152: 0 errors out of 255 tests
20 lists153: 0 errors out of 1 test
21 lists154: 0 errors out of 46 tests
22 lists155: 0 errors out of 25 tests
23 lists156: 0 errors out of 20 tests
24 list-set: 0 errors out of 10 tests
25 loop: 0 errors out of 134 tests
26 macro8: 0 errors out of 242 tests
27 map: 0 errors out of 64 tests
28 mop: 0 errors out of 220 tests
29 number: 0 errors out of 3,655 tests
30 number2: 0 errors out of 331 tests
31 pack11: 0 errors out of 208 tests
32 path: 0 errors out of 165 tests
33 setf: 0 errors out of 183 tests
34 socket: 0 errors out of 89 tests
35 steele7: 0 errors out of 85 tests
36 streams: 1 error out of 373 tests
37 streamslong: 0 errors out of 24 tests
38 strings: 0 errors out of 409 tests
39 symbol10: 0 errors out of 152 tests
40 symbols: 0 errors out of 6 tests
41 time: 0 errors out of 23 tests
42 type: 0 errors out of 285 tests
43 unportable: 0 errors out of 30 tests
44 weak: 0 errors out of 120 tests
45 weakhash: 0 errors out of 25 tests
46 weakhash2: 0 errors out of 46 tests
47 bind-eval: 0 errors out of 72 tests
48 bind-compile: 0 errors out of 72 tests
49 conditions: 0 errors out of 92 tests
50 restarts: 0 errors out of 69 tests
51 excepsit: 0 errors out of 384 tests
52 weakptr: 0 errors out of 240 tests
Real time: 1038.7192 sec.
Run time: 1000.9092 sec.
Space: 967871676 Bytes
GC: 1405, GC time: 214.8168 sec.
1
Bye.
(echo *.erg | grep '*' >/dev/null) || (echo "Test failed:" ; ls -l *erg; echo "To see which tests failed, type" ; echo " cat "`pwd`"/*.erg" ; exit 1)
Test failed:
-rw-r--r-- 1 cell wheel 284 Apr 30 13:45 streams.erg
To see which tests failed, type
cat /private/tmp/clisp20200430-3989-z6b9sh/clisp-2.49/src/tests/*.erg
make[1]: *** [compare] Error 1
make: *** [check-tests] Error 2
it looks like the error was:
(STRINGP (WITH-OUTPUT-TO-STRING (S) (DESCRIBE NIL S)))
;; connecting to "http://clisp.cons.org/impnotes/id-href.map"...connected...HTTP/1.1 302 Found --> "https://clisp.cons.org:80/impnotes/id-href.map"
;; connecting to "http://clisp.cons.orghttps://clisp.cons.org:80/impnotes/id-href.map"...
[SIMPLE-PARSE-ERROR]: PARSE-INTEGER: substring "" does not have integer syntax at position 0
ERROR!! ERROR should be T !
The mod was to change:
+#if defined(GNU_LIBICONV) && !defined(__APPLE_CC__)
to:
+#if defined(GNU_LIBICONV) && defined(iconv)
Homebrew/brew#1468