A plain docker environment for building static binaries compiled with rust and linked against musl instead of glibc. Built nightly on travis.
This is only useful if you require external C dependencies, because otherwise you could do rustup target add x86_64-unknown-linux-musl.
This container comes with a bunch of statically compiled C libraries using musl-gcc so that we can statically link against these as well.
If you already have rustup installed on the machine that should compile, you might consider cross as a more general solution for cross compiling rust binaries.
Usage
Pull and run from a rust project root:
docker pull clux/muslrust
docker run -v $PWD:/volume --rm -t clux/muslrust cargo build
You should have a static executable in the target folder:
ldd target/x86_64-unknown-linux-musl/debug/EXECUTABLE
not a dynamic executable
From there on, you can include it in a blank docker image (because everything you need is included in the binary) and perhaps end up with a 5MB docker blog image.
rust-cross - Everything you need to know about cross compiling Rust programs!
https://github.com/japaric/docker/blob/master/rust-uclibc/mipsel-unknown-linux-uclibc.config
sudo cpan -i PAR::Packer
cpan -i PAR::Packer
pp -o example example.pl
This would work only on the OS where it was built.
Crosstool-NG is a versatile (cross) toolchain generator. It supports many architectures and components and has a simple yet powerful menuconfig-style interface. Please read the introduction and refer to the documentation for more information.
Cross compiling toolchains in Docker images
Comment compiler pkgsrc pour linux ?
Compiler le navigateur Chromium pour Android
et enfin le développeur guide pour pkgsrc ;)
comment compiler pkgsrc from scratch ?
Les options du compilateur GCC pour la plateforme de processeur ARM.
Très utile quand on veut compiler pour plusieurs processeurs à la fois ;)
Erreurs connues lors de la compilation de PHP
et comment les résoudre
je suis en train de compiler php 5.6.2....
voir aussi :
http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204
Qemu compilé pour windows
python -c "import compileall ; compileall.compile_dir( '.' )"
simple clair, facile :x
j'aime ;)
Compiler NodeJS sur ARM...
http://forum.qnap.com/viewtopic.php?f=50&t=45603&sid=e6cfa1352daa0c00a2b3b345989dd4a0&start=15
http://old.nabble.com/Illegal-instruction-on-ARM-td33119914.html
http://stackoverflow.com/questions/6788768/cannot-build-node-on-sheevaplug-armv5t-with-debian-squeeze
http://www.wigwag.com/devblog/cross-compile-v8-target-arm/
http://code.google.com/p/go/issues/detail?id=2533
https://github.com/joyent/node/issues/2131#issuecomment-3208846
http://stackoverflow.com/questions/6788768/cannot-build-node-on-sheevaplug-armv5t-with-debian-squeeze
http://www.it-wars.com/article305/compiler-node-js-pour-arm-v5
http://www.it-wars.com/article181/
http://comments.gmane.org/gmane.comp.lang.javascript.v8.general/2870
http://comments.gmane.org/gmane.comp.lang.javascript.nodejs/15708
http://repo.or.cz/w/a2jmidid.git/commitdiff/1e746c65bb5fbd39dfa1de297abd1052ad00bd81
http://us.generation-nt.com/answer/bug-598704-lash-ftbfs-alpha-error-mcontext-t-has-no-member-named-gregs-help-200513411.html
http://codereview.chromium.org/3161009/diff/1/2