Skip to content

Instantly share code, notes, and snippets.

@jasom
Last active August 29, 2015 14:07
Show Gist options
  • Save jasom/5b7b40debea3558cf09e to your computer and use it in GitHub Desktop.
Save jasom/5b7b40debea3558cf09e to your computer and use it in GitHub Desktop.
How to install clasp on gentoo

You will need gcc:4.8 installed; as of writing this is keyword masked, so unless you are already running ~, you'll need to add sys-devel/gcc:4.8 ~amd64 to your package.keywords. Note that you do not need it to be the default gcc, as clasp allows specifying gcc and g++ executables

Other than that, see the other files in this gist for the config.

  1. Checkout clasp-externals and clasp
  2. Copy clasp-externals.local.config from this gist to clasp-externals/local.config
  3. Copy clasp.local.config from this gist to clasp/local.config
  4. cd clasp-externals
  5. make
  6. If make fails, run it again. If it fails a third time, talk to jasom in #clasp on freenode
  7. cd ../clasp
  8. make
  9. If make fails, run it again. If it fails a third time, talk to jasom in #clasp on freenode
  10. You should now have clasp executables in ~/local/clasp/bin
#
# What system are you building on? linux or darwin
#
export TARGET_OS = linux
#
# This defines where externals-clasp will put the built libraries
# that clasp needs
#
export EXTERNALS_BUILD_TARGET_DIR = $(HOME)/local/externals-clasp
#
# This defines how many processors you have available to build with
# More processors = faster build
#
export PJOBS = 8
#
# This defines where gcc lives
# the gcc executable needs to be at $(GCC_TOOLCHAIN)/bin/gcc
# the g++ executable needs to be at $(GCC_TOOLCHAIN)/bin/g++
#
export GCC_TOOLCHAIN = /usr
export GCC_EXECUTABLE = /usr/bin/gcc-4.8.3
export GXX_EXECUTABLE = /usr/bin/g++-4.8.3
#
# ------- Only change if you know what you are doing -------
#
export TOOLSET = gcc
#
# What system are you building on? linux or darwin
#
export TARGET_OS = linux
#
# This defines where clasp should put the built clasp application
#
export CLASP_BUILD_TARGET_DIR = $(HOME)/local/clasp
#
# This defines where externals-clasp put the built libraries
# that clasp needs
#
export EXTERNALS_BUILD_TARGET_DIR = $(HOME)/local/externals-clasp
#
# This defines how many processors you have available to build with
# More processors = faster build
#
export PJOBS = 1
# --- Dont change the stuff below ---
export LINK = static
export ADDRESS-MODEL = 64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment