使用bake重新编译ns3, dce, quagga

OS:CentOS66

预制条件:在重新编译前将gcc升级到4.8.2,autoconf, automake升级到高版本。

出现的状况是使用bake下载net-sim代码出现127, Key过期错误。我试着将github的ssh key更正了也不行。试着用自己手写代码git update,发现可以工作。

这个不知道哪里惹到了bake,于是就全部清除了bake来进行重新更新代码,编译。

1 清除bake, dce目录

2

hg clone http://code.nsnam.org/bake bake

3

export BAKE_HOME=`pwd`/bake
export PATH=$PATH:$BAKE_HOME
export PYTHONPATH=$PYTHONPATH:$BAKE_HOME

4

mkdir dce
cd dce
bake.py configure -e dce-linux-1.6 -e dce-quagga-1.6
bake.py download
bake.py build

5

这是编译结果,我在编译脚本里加了打印,方便看到编译的动作。

[root@gdc1000 dce]# bake.py build
 >> Building pybindgen-0.17.0.886 -  execute: /home/gftp/tool/network/newbake/dce/source/pybindgen-0.17.0.886 ['/home/gftp/tool/network/newbake/dce/source/pybindgen-0.17.0.886/waf', 'configure', '--prefix=/home/gftp/tool/network/newbake/dce/build']. 

 execute: /home/gftp/tool/network/newbake/dce/source/pybindgen-0.17.0.886 ['/home/gftp/tool/network/newbake/dce/source/pybindgen-0.17.0.886/waf', '--generate-version']. 

 execute: /home/gftp/tool/network/newbake/dce/source/pybindgen-0.17.0.886 ['/home/gftp/tool/network/newbake/dce/source/pybindgen-0.17.0.886/waf', 'install']. 

OK
 >> Building iperf - Patch file is /home/gftp/tool/network/newbake/dce/source/iperf/../ns-3-dce/utils/iperf_4_dce.patch in iperf
 execute: /home/gftp/tool/network/newbake/dce/source/iperf ['mkdir', '/home/gftp/tool/network/newbake/dce/source/iperf/objdir']. 

Subprocess failed with error 1: Operation not permitted, ['mkdir', '/home/gftp/tool/network/newbake/dce/source/iperf/objdir']
 execute: /home/gftp/tool/network/newbake/dce/source/iperf ['make', 'LDFLAGS=-pie', 'LDFLAGS+=-rdynamic']. 

 execute: /home/gftp/tool/network/newbake/dce/source/iperf ['make', 'install']. 

OK
 >> Building net-next-sim-2.6.36 -  execute: /home/gftp/tool/network/newbake/dce/source/net-next-sim-2.6.36 ['mkdir', '/home/gftp/tool/network/newbake/dce/source/net-next-sim-2.6.36']. 

Subprocess failed with error 1: Operation not permitted, ['mkdir', '/home/gftp/tool/network/newbake/dce/source/net-next-sim-2.6.36']
 execute: /home/gftp/tool/network/newbake/dce/source/net-next-sim-2.6.36 ['make', 'defconfig', 'ARCH=sim']. 

 execute: /home/gftp/tool/network/newbake/dce/source/net-next-sim-2.6.36 ['make', 'library', 'ARCH=sim']. 

OK
 >> Building wget -  execute: /home/gftp/tool/network/newbake/dce/source/wget ['mkdir', '/home/gftp/tool/network/newbake/dce/source/wget/objdir']. 

Subprocess failed with error 1: Operation not permitted, ['mkdir', '/home/gftp/tool/network/newbake/dce/source/wget/objdir']
 execute: /home/gftp/tool/network/newbake/dce/source/wget ['make']. 

 execute: /home/gftp/tool/network/newbake/dce/source/wget ['make', 'install']. 

OK
 >> Building thttpd - Patch file is /home/gftp/tool/network/newbake/dce/source/thttpd/../ns-3-dce/utils/dce-thttpd.patch in thttpd
 execute: /home/gftp/tool/network/newbake/dce/source/thttpd ['mkdir', '/home/gftp/tool/network/newbake/dce/source/thttpd/objdir']. 

Subprocess failed with error 1: Operation not permitted, ['mkdir', '/home/gftp/tool/network/newbake/dce/source/thttpd/objdir']
 execute: /home/gftp/tool/network/newbake/dce/source/thttpd ['make', 'thttpd']. 

 execute: /home/gftp/tool/network/newbake/dce/source/thttpd ['make', 'install', '-n']. 

OK
 >> Building bash -  execute: /home/gftp/tool/network/newbake/dce/source/bash ['mkdir', '/home/gftp/tool/network/newbake/dce/source/bash/objdir']. 

Subprocess failed with error 1: Operation not permitted, ['mkdir', '/home/gftp/tool/network/newbake/dce/source/bash/objdir']
 execute: /home/gftp/tool/network/newbake/dce/source/bash ['make']. 

 execute: /home/gftp/tool/network/newbake/dce/source/bash ['make', 'install']. 

OK
 >> Building netanim-3.106 -  execute: /home/gftp/tool/network/newbake/dce/source/netanim-3.106 ['mkdir', '/home/gftp/tool/network/newbake/dce/source/netanim-3.106']. 

Subprocess failed with error 1: Operation not permitted, ['mkdir', '/home/gftp/tool/network/newbake/dce/source/netanim-3.106']
 execute: /home/gftp/tool/network/newbake/dce/source/netanim-3.106 ['make']. 

 execute: /home/gftp/tool/network/newbake/dce/source/netanim-3.106 ['make', 'install']. 

OK
 >> Building ccnx -  execute: /home/gftp/tool/network/newbake/dce/source/ccnx ['mkdir', '/home/gftp/tool/network/newbake/dce/source/ccnx/objdir']. 

Subprocess failed with error 1: Operation not permitted, ['mkdir', '/home/gftp/tool/network/newbake/dce/source/ccnx/objdir']
 execute: /home/gftp/tool/network/newbake/dce/source/ccnx ['make', 'MORE_LDLIBS=-pie', 'COPT+=-rdynamic']. 

 execute: /home/gftp/tool/network/newbake/dce/source/ccnx ['make', 'install']. 

OK
 >> Building iproute-2.6.38-fix-01 - Patch file is /home/gftp/tool/network/newbake/dce/source/iproute-2.6.38-fix-01/../ns-3-dce/utils/iproute-2.6.38-fix-01.patch in iproute-2.6.38-fix-01
 execute: /home/gftp/tool/network/newbake/dce/source/iproute-2.6.38-fix-01 ['mkdir', '/home/gftp/tool/network/newbake/dce/source/iproute-2.6.38-fix-01/objdir']. 

Subprocess failed with error 1: Operation not permitted, ['mkdir', '/home/gftp/tool/network/newbake/dce/source/iproute-2.6.38-fix-01/objdir']
 execute: /home/gftp/tool/network/newbake/dce/source/iproute-2.6.38-fix-01 ['make', 'CCOPTS+=-fpic', 'CCOPTS+=-D_GNU_SOURCE', 'CCOPTS+=-O0', 'CCOPTS+=-U_FORTIFY_SOURCE', 'CCOPTS+=-g', 'LDFLAGS=-pie', 'LDFLAGS+=-rdynamic']. 

 execute: /home/gftp/tool/network/newbake/dce/source/iproute-2.6.38-fix-01 ['make', 'install', 'DESTDIR=/home/gftp/tool/network/newbake/dce/build']. 

OK
 >> Building quagga -  execute: /home/gftp/tool/network/newbake/dce/source/quagga ['mkdir', '/home/gftp/tool/network/newbake/dce/source/quagga/objdir']. 

Subprocess failed with error 1: Operation not permitted, ['mkdir', '/home/gftp/tool/network/newbake/dce/source/quagga/objdir']
 execute: /home/gftp/tool/network/newbake/dce/source/quagga ['make']. 

 execute: /home/gftp/tool/network/newbake/dce/source/quagga ['make', 'install', '-n']. 

OK
 >> Building iputils - Patch file is /home/gftp/tool/network/newbake/dce/source/iputils/../ns-3-dce/myscripts/ns-3-dce-quagga/utils/iputils-ping6.patch in iputils
Patch file is /home/gftp/tool/network/newbake/dce/source/iputils/../ns-3-dce/myscripts/ns-3-dce-quagga/utils/iputils-ping6.patch in iputils
 execute: /home/gftp/tool/network/newbake/dce/source/iputils ['make', 'CFLAGS=-fpic', 'CFLAGS+=-D_GNU_SOURCE', 'CFLAGS+=-g', 'CFLAGS+=-Wstrict-prototypes', 'CFLAGS+=-Wall', 'LDFLAGS=-pie', 'LDFLAGS+=-rdynamic', 'ping', 'ping6']. 

 execute: /home/gftp/tool/network/newbake/dce/source/iputils ['mkdir', '-p', '/home/gftp/tool/network/newbake/dce/build/bin_dce/']. 

 execute: /home/gftp/tool/network/newbake/dce/source/iputils ['cp', 'ping', 'ping6', '/home/gftp/tool/network/newbake/dce/build/bin_dce']. 

OK
 >> Building elf-loader -  execute: /home/gftp/tool/network/newbake/dce/source/elf-loader ['mkdir', '/home/gftp/tool/network/newbake/dce/source/elf-loader']. 

Subprocess failed with error 1: Operation not permitted, ['mkdir', '/home/gftp/tool/network/newbake/dce/source/elf-loader']
 execute: /home/gftp/tool/network/newbake/dce/source/elf-loader ['make', 'vdl-config.h']. 

 execute: /home/gftp/tool/network/newbake/dce/source/elf-loader ['make']. 

 execute: /home/gftp/tool/network/newbake/dce/source/elf-loader ['make', 'install', 'PREFIX=/home/gftp/tool/network/newbake/dce/build']. 

OK
 >> Building ns-3.23 -  execute: /home/gftp/tool/network/newbake/dce/source/ns-3.23 ['/home/gftp/tool/network/newbake/dce/source/ns-3.23/waf', 'configure', '--prefix=/home/gftp/tool/network/newbake/dce/build', '--enable-examples', '--enable-tests']. 

 execute: /home/gftp/tool/network/newbake/dce/source/ns-3.23 ['/home/gftp/tool/network/newbake/dce/source/ns-3.23/waf']. 

 execute: /home/gftp/tool/network/newbake/dce/source/ns-3.23 ['/home/gftp/tool/network/newbake/dce/source/ns-3.23/waf', 'install']. 

OK
 >> Building dce-linux-1.6 -  execute: /home/gftp/tool/network/newbake/dce/source/ns-3-dce ['/home/gftp/tool/network/newbake/dce/source/ns-3-dce/waf', 'configure', '--prefix=/home/gftp/tool/network/newbake/dce/build', '--with-ns3=/home/gftp/tool/network/newbake/dce/build', '--with-elf-loader=/home/gftp/tool/network/newbake/dce/build/lib', '--enable-kernel-stack=/home/gftp/tool/network/newbake/dce/source/ns-3-dce/../net-next-sim-2.6.36/arch']. 

 execute: /home/gftp/tool/network/newbake/dce/source/ns-3-dce ['/home/gftp/tool/network/newbake/dce/source/ns-3-dce/waf']. 

 execute: /home/gftp/tool/network/newbake/dce/source/ns-3-dce ['/home/gftp/tool/network/newbake/dce/source/ns-3-dce/waf', 'install']. 

OK
[root@gdc1000 dce]# 


你可能感兴趣的:(使用bake重新编译ns3, dce, quagga)