Cross compilation rethinkdb for Raspberry Pi

Ubuntu 14.04 x86_64 is currently running. I want to rewrite compth rethinkdb for my RPi for experimental purposes, which is supported in 1.12 (and people seem to have successfully compiled).

I installed toolchain:

sudo apt-get install g++-4.7-arm-linux-gnueabi gcc-arm-linux-gnueabi export CXX=/usr/bin/arm-linux-gnueabi-g++-4.7 export CC=/usr/bin/arm-linux-gnueabi-gcc-4.7 export AR=/usr/bin/arm-linux-gnueabi-ar export LD=/usr/bin/arm-linux-gnueabi-ld 

Configuration in progress:

 ./configure --ccache --allow-fetch --without-tcmalloc * Detecting system configuration Bash: 4.3.8(1)-release Use ccache: yes C++ Compiler: GCC 4.7 (/usr/bin/arm-linux-gnueabi-g++-4.7) Host System: arm-linux-gnueabi Build System: Linux 3.13.0-24-generic x86_64 Cross-compiling: yes Host Operating System: Linux Without tcmalloc: yes Build client drivers: no Build Architecture: x86_64 Precompiled web assets: no Protobuf compiler: /usr/bin/protoc Node.js package manager: /usr/bin/npm LESS css: external/less_1.6.2 CoffeeScript: external/coffee-script_1.7.1 Handlebars: external/handlebars_1.3.0 Browserify: external/browserify_3.24.13 ProtoBuf.js: external/protobufjs_2.0.4 wget: /usr/bin/wget curl: /usr/bin/curl protobuf: external/protobuf_2.5.0 v8: external/v8_3.22.24.17 RE2: external/re2_20140111 z: external/zlib_1.2.8 Google Test: external/gtest_1.6.0 termcap: no Test protobuf: external/protobuf_2.5.0 Test boost: external/boost_1.55.0 Installation prefix: /usr/local Configuration prefix: /usr/local/etc Runtime data prefix: /usr/local/var * Warning: ARM support is still experimental * Wrote configuration to config.mk 

However, make does not work,

 /bin/bash: ccache: command not found 

Any pointers to this?

+6
source share
2 answers

Any pointers to this?

Just install ccache. It would be useful even if you did not have this problem, because it speeds up compilation on embedded ones somewhat. We also use it in the company, fwiw, even with ice cream, after all.

 sudo apt-get install ccache 
+5
source

The actual state of cross-compiling rethinkdb for raspberries-pi is now complicated. It seems that this is not actively supported, and over time it has become difficult to create it. This is possible with little effort. This requires a transition to the rethinkdb build structure based on useful ol 'make files ...

You can find an attempt to do this here in the Docker file. It basically creates a Docker container with all the dependencies (especially the cross-compiler), modifies the configuration and creates rethinkdb. The result is a rethinkdb package for raspberries.

You can use it as is or look at it and play it yourself.

+1
source

All Articles