Hello,

                                    

please keep the list in CC.

 

it looks that it still tries to compile the x86 code, and not the MIPS one.

 

What do you get when you execute “make cfg” on your system – this is what I get on 64 Linux:

 

henning@static:~/repositories/kamailio/src$ make cfg

target architecture <x86_64>, host architecture <x86_64>

 

If you have the possibility to test a native compilation on the platform, maybe this is easier to do as well. It will take some time to compile, but still not too much.

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: subhra giri <subhraprakash79@gmail.com>
Sent: Friday, March 6, 2020 12:20 PM
To: Henning Westerholt <hw@skalatan.de>
Subject: Re: [sr-dev] Regarding MIPS Compilation

 

Dear Henning

Thank you very much from my heart.

I was trying to cross compile it for mips64-octeon-linux.

I followed the below steps.export CC=/home/SDK3.1.2/tools-3.1.2_build_50/bin/mips64-octeon-linux-gnu-gcc

1) downloaded and untrar kamailio-5.3.2.

2)From kamailio-5.3.2 directory, i used  below commands

export CC=/home/SDK3.1.2/tools-3.1.2_build_50/bin/mips64-octeon-linux-gnu-gcc

make

 

then i am getting below errors

-------------------------

core/parser/../mem/../atomic/atomic_x86.h: In function 'atomic_dec_and_test_int':

core/parser/../mem/../atomic/atomic_x86.h:222:1: error: impossible constraint in 'asm'
make: *** [main.o] Error 1

 

Please help me if i have used right steps for cross compilation.

Thanks and Regards

Subhra Prakash Giri

 

On Fri, Mar 6, 2020 at 3:05 PM Henning Westerholt <hw@skalatan.de> wrote:

Hello,

 

do you get some problems during compilation? Please provide more details what you have tried, and which steps don’t work etc..

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-dev <sr-dev-bounces@lists.kamailio.org> On Behalf Of subhra giri
Sent: Thursday, March 5, 2020 3:01 PM
To: sr-dev@lists.kamailio.org
Subject: [sr-dev] Regarding MIPS Compilation

 

Hi

Can any body help me how to compile kamailio for mips

 

Thanks and Regards

Subhra Prakash Giri