Dinesh,
The SConscript file that controls the compilation of the thirft libraries and 
compiler is in controller/lib/thirft/SConscript.

You will need to modify the build process such that you compile thrift twice… 
once to generate the libraries for the target and once to generate the compiler 
that you run on the host.

  Pedro.

On Aug 30, 2015, at 9:56 PM, Dineshkumar parameswaran 
<[email protected]<mailto:[email protected]>> wrote:



With Thanx and Regards ,
Dineshkumar.P



________________________________
From: [email protected]<mailto:[email protected]>
To: [email protected]<mailto:[email protected]>
Subject: RE: [opencontrail-dev] compiler/cpp/thrift : exec format error
Date: Mon, 31 Aug 2015 04:56:30 +0000

Hi Pedro,

In which file I need to change the configuration for thrift compiler. Since 
there is many SConscript file and Im new to this, i'm not sure with the right 
one. and only gcc, g++, randlib, ar,strip, ld from host is enough or anything 
else need to given ?? Kindly do the needful..


With Thanx and Regards ,
Dineshkumar.P



________________________________
From: [email protected]<mailto:[email protected]>
To: [email protected]<mailto:[email protected]>
Subject: RE: [opencontrail-dev] compiler/cpp/thrift : exec format error
Date: Mon, 31 Aug 2015 04:55:02 +0000

Hi Pedro,

In which file I need to change the configuration for thrift compiler. Since 
there is many SConscript file and Im new to this, i'm not sure with the right 
one. and only gcc, g++, randlib, ar,strip, ld from host is enough or anything 
else need to given ?? Kindly do the needful..

With Thanx and Regards ,
Dineshkumar.P



________________________________
From: [email protected]<mailto:[email protected]>
To: [email protected]<mailto:[email protected]>
CC: [email protected]<mailto:[email protected]>
Subject: Re: [opencontrail-dev] compiler/cpp/thrift : exec format error
Date: Fri, 28 Aug 2015 16:06:16 +0000

Dinesh,
The thrift IDL compiler needs to be built using the hosts’s compiler and linker.

  Pedro.

On Aug 28, 2015, at 2:00 AM, Dineshkumar parameswaran 
<[email protected]<mailto:[email protected]>> wrote:

Hi All,

I'm Compiling Contrail Source Code To powerPc  platform.  While Compiling I'm 
getting exec format error in thrift binary. I'm compiling this source code with 
yocto by writing bitbake file. Please find the log below

| /bin/bash: ../../../compiler/cpp/thrift: cannot execute binary file: Exec 
format error
| make[3]: *** [gen-cpp/DebugProtoTest_types.cpp] Error 126

| make[2]: *** [install-recursive] Error 1

| make[1]: *** [install-recursive] Error 1

| make: *** [install-recursive] Error 1
| scons: *** [build/third_party/thrift/config.status] Error 2
| scons: building terminated because of errors.

What changes need to be done for rectifying this error ?? Can anyone help me in 
this ??


With Thanx and Regards ,
Dineshkumar.P

_______________________________________________
Dev mailing list
[email protected]<mailto:[email protected]>
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

_______________________________________________
Dev mailing list
[email protected]<mailto:[email protected]>
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to