Dinesh,
On Aug 25, 2015, at 10:39 PM, Dineshkumar parameswaran
<[email protected]<mailto:[email protected]>> wrote:
Pedro ,
Thanx for your reply.
I tried to execute the /build/bin/sandesh it is not executed.It is in
powerpc executable. How can i build the sandesh to x86 executable while
building the targets with the sandesh targets should be executable on powerPC.
You will have to define scons rules so that the sandesh compiler is built with
the host compiler rather than with the cross compiler.
Often build systems have the notion of a HOST_CC environment variable. You can
modify the scons rules such that when building the sandesh compiler HOST_CC
takes precedence over CC…
the env.Alias targets defined in controller/src/vnsw/agent/contrail.
If i remember correctly this is “scons agent:contrail-vrouter-agent"
With this command it is showing errors follows
Do not know how to make File target `agent:contrail-vrouter-agent'
I ran this command on the home directory where the sconstruct file is present
I tried the following command also
scons controller/src/vnsw/agent/contrail:contrail-vrouter-agent
This also not working
Can you explain some more detail about how to compile the source code for
contrail-vrouter-agent.
________________________________
From: [email protected]<mailto:[email protected]>
To: [email protected]<mailto:[email protected]>
CC: [email protected]<mailto:[email protected]>
Subject: Re: [opencontrail-dev] vrouter user space agent cross compilation
Date: Mon, 24 Aug 2015 16:26:39 +0000
Dinesh,
On Aug 18, 2015, at 9:33 PM, Dineshkumar parameswaran
<[email protected]<mailto:[email protected]>> wrote:
Hi all,
I need to cross compile the vrouter data plane component and user space
component to powerpc platform. I am setting CC and CXX environment variable as
my cross compiler. While cross compiling i am getting the following error.
Install file: "build/debug/tools/sandesh/compiler/sandesh" as
"build/bin/sandesh"
SandeshCBuilder vrouter/sandesh/vr.sandesh ->
build/debug/vrouter/sandesh/gen-c/vr_types.h
build/debug/vrouter/sandesh/gen-c/vr_types.c
scons: warning: sandesh -version returned 2, retrying
I thought this is because of the sandesh binary. This is in powerpc
executable.So with this we are not able to compile other source codes.Is there
any way to cross compile the vrouter data plane component??.
Can you try to execute “build/bin/sandesh” ?
You can look at what the build rules are in tools/build/rules.py for
SandeshCBuilder or use "scons -v” and try to figure out why this step is
failing.
While i am compiling the user space agent from the controller source code for
x86 i am getting following error.
I am using the following command to build the userspace agent in my ubuntu14.04
machine
scons --kernel-dir=/lib/modules/`uname -r` controller/src/vnsw/agent
Use the env.Alias targets defined in controller/src/vnsw/agent/contrail.
If i remember correctly this is “scons agent:contrail-vrouter-agent"
cons: building associated VariantDir targets: build/debug/vnsw/agent
RunUnitTest(["build/debug/vnsw/agent/cmn/test/test_cmn.log"],
["build/debug/vnsw/agent/cmn/test/test_cmn"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/cmn/test/test_cmn
PASS
RunUnitTest(["build/debug/vnsw/agent/cmn/test/test_subop.log"],
["build/debug/vnsw/agent/cmn/test/test_subop"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/cmn/test/test_subop
PASS
RunUnitTest(["build/debug/vnsw/agent/diag/test/test_ping.log"],
["build/debug/vnsw/agent/diag/test/test_ping"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/diag/test/test_ping
PASS
RunUnitTest(["build/debug/vnsw/agent/filter/test/acl_change_test.log"],
["build/debug/vnsw/agent/filter/test/acl_change_test"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/filter/test/acl_change_test
PASS
RunUnitTest(["build/debug/vnsw/agent/filter/test/acl_entry_test.log"],
["build/debug/vnsw/agent/filter/test/acl_entry_test"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/filter/test/acl_entry_test
PASS
RunUnitTest(["build/debug/vnsw/agent/filter/test/acl_test.log"],
["build/debug/vnsw/agent/filter/test/acl_test"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/filter/test/acl_test
PASS
RunUnitTest(["build/debug/vnsw/agent/init/test/test_agent_init.log"],
["build/debug/vnsw/agent/init/test/test_agent_init"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/init/test/test_agent_init
PASS
RunUnitTest(["build/debug/vnsw/agent/init/test/test_vmware.log"],
["build/debug/vnsw/agent/init/test/test_vmware"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/init/test/test_vmware
PASS
RunUnitTest(["build/debug/vnsw/agent/kstate/test/test_kstate.log"],
["build/debug/vnsw/agent/kstate/test/test_kstate"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/kstate/test/test_kstate
PASS
RunUnitTest(["build/debug/vnsw/agent/kstate/test/test_sandesh_kstate.log"],
["build/debug/vnsw/agent/kstate/test/test_sandesh_kstate"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/kstate/test/test_sandesh_kstate
PASS
RunUnitTest(["build/debug/vnsw/agent/nexthop_server/test/test_agent_init.log"],
["build/debug/vnsw/agent/nexthop_server/test/test_agent_init"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/nexthop_server/test/test_agent_init
PASS
RunUnitTest(["build/debug/vnsw/agent/openstack/test/nova_inc.log"],
["build/debug/vnsw/agent/openstack/test/nova_inc"])
/home/vchn122/dinesh/contrail-controller/build/debug/vnsw/agent/openstack/test/nova_inc
TIMEOUT
scons: *** [build/debug/vnsw/agent/openstack/test/nova_inc.log] Error None
scons: building terminated because of errors.
_______________________________________________
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