Git Product home page Git Product logo

pombreda / rtbkit-deps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rtbkit/rtbkit-deps

0.0 2.0 0.0 119.48 MB

Container repo for Datacratic platform dependencies to be installed per-user

Makefile 0.33% CSS 0.07% C++ 50.62% C 0.91% Perl 0.01% Shell 0.13% HTML 46.93% Max 0.01% XSLT 0.24% Python 0.60% Assembly 0.06% TeX 0.01% Perl 6 0.01% Tcl 0.01% JavaScript 0.04% C# 0.01% Cuda 0.01% Gnuplot 0.01% Fortran 0.01% QMake 0.01%

rtbkit-deps's Introduction

Platform Dependencies

Container repo for Datacratic platform dependencies to be installed per-user

After cloning run:

git submodule update --init && make

Building on Ubuntu 14.04

To build on Ubuntu 14.04 you will have to disable nodejs by building using the NODEJS_ENABLED flag set to 0. The command would then be:

make NODEJS_ENABLED=0

Troubleshooting

GCC Internal Compiler Errors

It's possible that while building on a machine with limitted resources, the compilation will fail with a gcc internal compiler error which usually indicates that gcc ran out of memory. This can be fixed by reducing the number of processes that make spawns during the compilation process. There's two ways to do this:

  1. Reduce the number of submodules that are built in parallel by tweaking the -j command line argument provided to make.

  2. Reduce the number of parallel jobs that are used to build each submodule by overwritting the JOBS variable for our Makefile.

We don't recommend it but here's an example of how to tweak both parameters:

nice make -j2 JOBS=2

We don't recommend specifying a -j parameter because it has a multiplicative effect on the JOBS variable.

Instead, if for example you have 4 cores at your disposal, use

nice make JOBS=4

Illegal Instruction

CityHash makes use of the sse4.2 instruction set which can be problematic on VM machines in the cloud. Since the specs of the host machine can change when migrating a VM you can run into a situation where the machine used for building CityHash has sse4.2 but the environment in which it is actually used doesn't which will result in the SIGILL signal to be raised (illegal instruction).

If this is a possibility, we recommand turning off sse4.2 entirely using the DISABLE_SSE42 variable like so:

nice make all DISABLE_SSE42=1

This will prevent CityHash from taking advantage of sse4.2 instructions regardless of whether the machine supports it or not.

rtbkit-deps's People

Contributors

mikeburkat avatar nicolaskruchten avatar jeremybarnes avatar marccardinal avatar recosetops avatar

Watchers

James Cloos avatar Philippe Ombredanne avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.