Skip to content

Instantly share code, notes, and snippets.

@cellularmitosis
Created May 2, 2020 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cellularmitosis/ff4327103b8765dff0a8f7c02f77acbe to your computer and use it in GitHub Desktop.
Save cellularmitosis/ff4327103b8765dff0a8f7c02f77acbe to your computer and use it in GitHub Desktop.

Building Janet 1.8.1 on OS X 10.4 (Tiger)

posix_spawn isn't available on Tiger

Open source components of 10.4.11: https://opensource.apple.com/release/mac-os-x-10411ppc.html

curl -s https://opensource.apple.com/tarballs/xnu/xnu-792.24.17.tar.gz | gunzip | strings | grep posix_spawn does not yield any hits.

Here is a reference to ninja not building on Tiger due to missing posix_spawn: https://trac.macports.org/attachment/ticket/58099/patch-tiger-no-posix-spawn-2.diff

This ticket mentions that posix_spawn is available in Leopard (10.5): https://trac.macports.org/ticket/41519

http://newosxbook.com/MOXiI.pdf discusses fork() vs posix_spawn().

ld: unknown flag -export_dynamic

gcc-7  -std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fPIC -O2 -fvisibility=hidden -c build/shell.c -o build/shell.o -I build
gcc-7  -rdynamic  -std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fPIC -O2 -fvisibility=hidden -o build/janet build/janet.o build/shell.o -lm -lpthread -ldl
/usr/bin/ld: unknown flag: -export_dynamic
collect2: error: ld returned 1 exit status
make: *** [build/janet] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment