Re: [opencontrail-dev] Compiling contrail-vrouter on powerpc

2015-09-03 Thread Pedro Marques
Navneet, If you want to generate 32bit binaries you will have to address the issue of atomic update of counters, which are typically 64 bit. That will cause you to have to create a wrapper that hides that difference… The kernel module also seems to have the assumption of a 64 bit atomic word.

Re: [opencontrail-dev] Compiling contrail-vrouter on powerpc

2015-09-03 Thread Navneet Singh
Pedro Can we compile it on 32-bit powerpc ubuntu system? On Thu, Sep 3, 2015 at 11:54 PM, abhishek jain wrote: > Thanks Pedro for your help. > > We'll try to run 64 bit powerpc ubuntu. > > Regards > --Abhishek Jain > > sent from my sony Xperia smartphone > On Sep 3, 2015 11:33 PM, "Pedro Marque

Re: [opencontrail-dev] Compiling contrail-vrouter on powerpc

2015-09-03 Thread abhishek jain
Thanks Pedro for your help. We'll try to run 64 bit powerpc ubuntu. Regards --Abhishek Jain sent from my sony Xperia smartphone On Sep 3, 2015 11:33 PM, "Pedro Marques" wrote: > Abhishek, > Your gcc is a 32 bit binary. That probably means that it is defaulting to > compile in 32bit mode. > The

Re: [opencontrail-dev] Compiling contrail-vrouter on powerpc

2015-09-03 Thread Pedro Marques
Abhishek, Your gcc is a 32 bit binary. That probably means that it is defaulting to compile in 32bit mode. There are both 32 and 64 ubuntu distributions for powerpc as far as i can gather from google. Is this machine your target ? Can it run the 64 bit ubuntu image ? If you want to run it as a

Re: [opencontrail-dev] Compiling contrail-vrouter on powerpc

2015-09-03 Thread abhishek jain
Sorry it is 14.04 powerpc ubuntu system and we need to build contrail-vrouter-agent for powerc arch. sent from my sony Xperia smartphone On Sep 3, 2015 10:55 PM, "abhishek jain" wrote: > Hi Pedro > > Below are the necessary details of the ubuntu 14.94 powerpc system .. > > file /usr/bin/g++-4.8

Re: [opencontrail-dev] Compiling contrail-vrouter on powerpc

2015-09-03 Thread abhishek jain
Hi Pedro Below are the necessary details of the ubuntu 14.94 powerpc system .. file /usr/bin/g++-4.8 /usr/bin/g++-4.8: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=8f69c8ddae20308b452dfbe093556aeb1

Re: [opencontrail-dev] Compiling contrail-vrouter on powerpc

2015-09-03 Thread Pedro Marques
Navneet, Is this a 32 or 64 bit CPU ? It seems that src/io/io_utils.h contains a set of variables declared as: tbb::atomic This should be available on a 64 bit CPU. Does the compiler have a flag to enable 64 bit mode ? I’m sure that there are several places where counters are used with the ass