用于Android的交叉编译MPICH2。
我在这里找到了参考资料 http://hex.ro/wp/projects/personal-cloud-computing/compiling-mpich2-for-android-and-running-on-two-phones/
在这里 www.scientificbulletin.upb.ro/rev_docs_arhiva/fullffc_583765。
我做了以下
使用Build Root(buildroot-2016.02)进行交叉编译ARM工具链
目标选项:
目标架构为ARM little endian
将二进制格式定位为ELF
选择工具链作为Buildroot工具链(内部)
内核头文件为3.12.x
C库为uClibc
运行此make命令后。
1. $ export PATH=/home/mpiuser/CrossBuild/buildroot-2016.02/output/host/usr/bin:$PATH
2. $ sudo ./configure --prefix=/home/mpiuser/CrossBuild/arm-mpich-install --disable-fortran CC=/home/mpiuser/CrossBuild/buildroot-2016.02/output/host/usr/bin/arm-linux-gcc --host=arm-linux
此make之后运行mpich-3.2,并在编译期间抛出错误:
GEN lib/libmpi.la
CXX src/binding/cxx/initcxx.lo
CXXLD lib/libmpicxx.la
lib/.libs/libmpi.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libmpicxx.la] Error 1
make[2]: Leaving directory `/home/mpiuser/CrossBuild/mpich-3.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mpiuser/CrossBuild/mpich-3.2'
make: *** [all] Error 2
请求帮助。感谢