Cross-Compile gmp on Ubuntu for Synology NAS (PPC)

Luka Lukapple80 at gmail.com
Wed Nov 20 20:30:50 UTC 2013


Hi all.
I'm trying to cross-compile gmp 5.1.3 on Ubuntu for my Synology NAS.
Here are some info about NAS:

Synology:

- model DS213+

- CPU: Freescale QorIQ P1022

- Arch: PowerPC

- Endianness: Big Endian

- Linux 2.6.32

- uname -a:

Linux LupoDiskStation 2.6.32.12 #3776 SMP Sat Aug 17 02:11:24 CST 2013 ppc
GNU/Linux synology_qoriq_213+


I've downloaded toolchain for synology. Now I want to configure/make GMP
using this command (found it on Synology 3rd-Party Apps Developer Guide):


sudo env
CC=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc \

LD=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ld \

RANLIB=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ranlib
\

CFLAGS="-I/usr/local/powerpc-none-linux-gnuspe/include -mcpu=8548
-mhard-float -mfloat-gprs=double" \

LDFLAGS="-L/usr/local/powerpc-none-linux-gnuspe/lib" \

./configure \

--host=powerpc-unknown-linux \

--target=powerpc-unknown-linux \

--build=i686-pc-linux \

--prefix=/usr/local


But I get following error message:

configure: error: could not find a working compiler, see config.log for
details


I've already tried to use -m32 flag at the end of CFLAGS:

CFLAGS="-I/usr/local/powerpc-none-linux-gnuspe/include -mcpu=8548
-mhard-float -mfloat-gprs=double -m32"

But it doesn't help.


Any idea what should I try next ?


I need gmp in order to compile some other package for synology, which uses
gmp (in that package I get error: configure: error: GNU Multi Precision
library gmp not found).


Thanks!


More information about the gmp-discuss mailing list