dragonfly上で llvm の CrossCompile? をした時のメモ †
準備 †
- arm-linux-gnueabihf のインストール
CrossCompile? †
- 実行
% /usr/local/linaro/arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc -g -o hello hello.c
- CrossCompile? できているか確認
% file hello
hello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter
/lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.26,
BuildID[sha1]=a78af9ba00197d52a8ed7cbac433b24360c57283, not stripped
Raspberry pi 3 で動かす †
- QEMUのインストール
% brew install qemu
CbClang?-on-arm CMake †
export CC=/usr/local/linaro/arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc
export CXX=/usr/local/linaro/arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++
cmake -G Ninja \
CMAKE_INSTALL_PREFIX:PATH=`pwd` ~/hg/CbC/CbC_llvm
qemuでの起動 †