Skip to content

nim

  • Build csources first
  • Build koch in Nim source
  • Run koch to build Nim and Nim tools
  • Prefer /usr/share to /opt for nimble pkgs in glaucus
  • Bootstrap csources_v3 using make instead of build.sh as the latter requires GNU parallel for parallel builds
  • Use koch install instead of ./install.sh as the latter may not always available
  • Might require libucontext (with -lucontext added to LDFLAGS) on musl based systems (e.g. Alpine)
  • nim-gdb might have bashisms (check Alpine)
  • Consider toolsNoExternal for fully offline bootstraps with koch
  • These work:
Terminal window
# koch
./koch install \
../../../toolchain/lib
# install.sh
sh install.sh \
../../../toolchain/lib
# install.sh
DESTDIR=../../../toolchain \
sh install.sh \
/lib
  • This does not work:
Terminal window
DESTDIR=../../../toolchain \
./koch install \
/lib