Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 16271  / 1 Year ago, thu, february 23, 2023, 11:45:50

I'm trying to cross compile StrongSwan package on Ubuntu for Synology NAS using official Synology toolchain.



Host:
hostname = ubuntu
uname -m = i686
uname -r = 3.8.0-32-generic
uname -s = Linux

Target:
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+


When I run ./configure, I get error:




configure: error: GNU Multi Precision library gmp not found




Configure command:



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


If I run ./configure without extra parameters (with ubuntu gcc), I get no errors.
I can also successfully compile helloworld.c with synology toolchain.



I've following GMP packages installed:



dpkg --get-selections | grep gmp
gmpc install
gmpc-data install
gmpc-dev install
libgmp-dev install
libgmp10 install
libgmp3-dev install
libgmp3c2 install
libgmpada2 install
libgmpxx4ldbl install


Header file is under /usr/include/gmp.h.



Any idea how to include that gmp.h ?


More From » compiling

 Answers
3

It's working now.
I had to download gmp, cross compile it and copy files to /usr/local/powerpc-none-linux-gnuspe/include dir.


[#28310] Saturday, February 25, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terneive

Total Points: 329
Total Questions: 117
Total Answers: 105

Location: Denmark
Member since Tue, Oct 18, 2022
2 Years ago
;