2016年11月30日 星期三

[Compiler Server] Building compiler server for ARM

Install library package for 32bit



Edit /etc/pacman.conf

[multilib]
Include = /etc/pacman.d/mirrorlist



update the package list and upgrade with pacman -Syu
pacman -Syu

pacman -S lib32-zlib # Compression library implementing the deflate compression method found in gzip and PKZIP (32-bit)
pacman -S lib32-gcc-libs # Runtime libraries shipped by GCC (32-bit)
pacman -S lib32-glibc # GNU C Library (32-bit)


Install system tool package



Download Regina-REXX-3.9.1.tar.gz and compile it.
After compile the package, then install it.
Regina-REXX-3.9.1.tar.gz

sudo pacman -S bison
sudo pacman -S flex
sudo pacman -S intltool
sudo pacman -S lzop
sudo pacman -S libtool
sudo pacman -S ccache
sudo pacman -S jdk8-openjdk 


Envrionment settings



Set python to version 2.7
Using python2.7 compile the code.
cd /bin
ln -sf python2.7 python


Add following code into .bashrc
vim ~/.bashrc

export CXC_COMPILER_ROOT_DIR=/opt/toolchains/zOEMtools_eCos/eCos20/gnutools/mipsisa32-elf-i386-linux
export GNUTOOLS=/opt/toolchains/zOEMtools_eCos/eCos20/gnutools
export ARM_TOOLCHAIN_PATH=/opt/toolchains/stbgcc-4.5.4-2.5/bin
PATH=$CXC_COMPILER_ROOT_DIR/bin:/opt/toolchains/BrcmUtils:/opt/toolchains/stbgcc-4.8-1.5/bin:/opt/toolchains/uclibc-crosstools-gcc-4.2.3-4/usr/bin:$ARM_TOOLCHAIN_PATH:$PATH

0 意見:

張貼留言