Homework

#1 五角数

def getPentagonalNumber(n):
    sum = 0
    for i in range(1,101):
        con = (i*(3*i-1))/2
        print(con,end=' ')
        sum += 1
        if sum%10 == 0:
            print('\n')


getPentagonalNumber(101)


#2求一个整数各个数字的和

def sumDigits(n):
    ge = n % 10
    c = 0
    for i in range(len(str(n))):
        bai = n // (10*(10**i))%10
        c += bai

    sum = ge + c
    print(sum)    

def start():
    n = int(input('请输入一个数字:'))
    sumDigits(n)
start()


#3对三个数排序

def displaySortedNumbers(num1,num2,num3):
    list = [num1,num2,num3]
    num = sorted(list)
    print('The sorted numbers are {}'.format(num))


def start():
    num1 = float(input('请输入第一个数:'))
    num2 = float(input('请输入第二个数:'))
    num3 = float(input('请输入第三个数:')) 
    displaySortedNumbers(num1,num2,num3)
start()


#4计算未来投资

from prettytable import PrettyTable
list = []
def futureInvestmentValue(inAmount,rate,years):
    for i in range(1,years + 1):
        futureInvestment = inAmount + ((1 +rate) ** (12 * i))
        list.append([i,futureInvestment])
        table = PrettyTable(['year','Future Value'])
        for row in list:
            table.add_row(row)
            print(table)
if __name__ == "__main__":
    inAmount = int(input("请输入投资额:"))
    rate = float(input("请输入百分比格式的年利率:")) / 12
    futureInvestmentValue(inAmount,rate,years = 30)


#5

def printChars():
    for i in range(73,91):
        print(chr(i),end=" ")
        if i%9==0:
            print("\n")
printChars()


#6

def numberOfDaysInAYear(year):
    for count in range(year,year+11):
        if count % 4 == 0 and count % 100 != 0 or count % 400 == 0:
            print("{}年有366天".format(count))
        else:
            print("{}年有365天".format(count))
numberOfDaysInAYear(2010)


#7

def distance(x1,y1,x2,y2):
    distance = ((x2-x1)**2 + (y2-y1)**2)**0.5
    print ("这两点间的距离是:%f"%distance)
distance(1,4,4,2)


#8

from prettytable import PrettyTable
def mei(p):
    c = []
    b = []
    for p in range(2,32):
        if p>1:
            for i in range(2,p):
                if (p % i) == 0:
#print(p,"不是质数")
#print(i,"乘于",p//i,"是",p)
                    break
                else:
#print(p,"是质数")
                    d = 2**(p-1)
                    c.append([p,d])
                    for x in c:
                        if x not in b:
                            b.append(x)
                            table = PrettyTable(['p','2**(p-1)'])
                            for row in b:
                                table.add_row(row)
                                print(table)
mei(5)
class Rectangle(object):
    def __init__(self,width=1,height=2):
        self.width = width
        self.height = height

    def getArea(self):
        return self.width*self.height
        

    def getPerimeter(self):
        return (self.width+self.height)*2

def main():
    rectangle = Rectangle(4,40)
    print('宽是>>',rectangle.width)
    print('高是>>',rectangle.height)
    print('面积是>>',rectangle.getArea())
    print('周长是>>',rectangle.getPerimeter())
    print('---------------------------------')
    tom = Rectangle(3.5,35.7)
    print('宽是>>',tom.width)
    print('高是>>',tom.height)
    print('面积是>>',tom.getArea())
    print('周长是>>',tom.getPerimeter())
    
if __name__ == "__main__":
    main()
      


#2
class Account(object):
    def __init__(self,id=0,balance=100,annuallnteresterRate=0):
        self._id = id
        self._balance = balance
        self._annuallnteresterRate = annuallnteresterRate
    @property
    def id(self):
        return self._id
    @id.setter
    def id(self,new_id):
        self._id = new_id
    
    @property
    def balance(self):
        return self._balance

    @balance.setter
    def balance(self,new_balance):
        self._balance = new_balance

    @property
    def annuallnteresterRate(self):
        return self._annuallnteresterRate

    @annuallnteresterRate.setter
    def annuallnteresterRate(self,new_annuallnteresterRate):
        self._annuallnteresterRate = new_annuallnteresterRate

    def MonthlyIInterestRate(self,new_id,new_balance,new_annuallnteresterRate):
        return new_annuallnteresterRate /12
        

    def MonthlyInterest(self,new_id,new_balance,new_annuallnteresterRate):

        return new_balance*new_annuallnteresterRate/12

    def withdraw(self,new_id,new_balance,new_annuallnteresterRate):
        print('取出金额为:')

    def deposit(self,new_id,new_balance,new_annuallnteresterRate):
        print('充进金额为:')
        
def main():
    tom = Account()
    tom.id = 1122
    tom.balance = 20000
    tom.annuallnteresterRate = 0.45
    tom.withdraw = 2500
    tom.deposit = 3000
    print('此账号id是>>',tom.id)
    a = tom.balance -tom.withdraw+tom.deposit
    print('余额是>>',a)
    tom.MonthlyIInterestRate = tom.annuallnteresterRate/12
    print('月利率是>>',tom.MonthlyIInterestRate)
    tom.MonthlyInterest = a*tom.MonthlyIInterestRate
    print('月利息是>>',tom.MonthlyInterest)
        
if __name__ == "__main__":
    main()
$ make package/ubus_ipc_crc/compile V=99 make[1]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/toolchain' if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libpthread" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/toolchain' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libjson-c' if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install.clean; fi; echo "libjson-c" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libjson-c' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/utils/lua' if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean; fi; echo "liblua" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean; fi; echo "lua" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/utils/lua' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libubox' if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libubox" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libblobmsg-json" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "jshn" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libjson-script" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libubox' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/system/ubus' if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "libubus" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "libubus-lua" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "ubus" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "ubusd" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/system/ubus' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/ubus_ipc_crc' mkdir -p /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc cp -fpR ./src/* /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ touch /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.prepared_17edf9e0d8c7e2d69ed91b923871c7b2 rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/stamp/.ubus_ipc_crc_installed (cd /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/./; if [ -x ./configure ]; then find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.guess | xargs -r chmod u+w; find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.guess | xargs -r -n1 cp --remove-destination /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/scripts/config.guess; find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.sub | xargs -r chmod u+w; find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.sub | xargs -r -n1 cp --remove-destination /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/scripts/config.sub; AR="arm-openwrt-linux-uclibcgnueabi-gcc-ar" AS="arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard" LD=arm-openwrt-linux-uclibcgnueabi-ld NM="arm-openwrt-linux-uclibcgnueabi-gcc-nm" CC="arm-openwrt-linux-uclibcgnueabi-gcc" GCC="arm-openwrt-linux-uclibcgnueabi-gcc" CXX="arm-openwrt-linux-uclibcgnueabi-g++" RANLIB="arm-openwrt-linux-uclibcgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-uclibcgnueabi-strip OBJCOPY=arm-openwrt-linux-uclibcgnueabi-objcopy OBJDUMP=arm-openwrt-linux-uclibcgnueabi-objdump SIZE=arm-openwrt-linux-uclibcgnueabi-size CFLAGS="-Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard " CXXFLAGS="-Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard " CPPFLAGS="-I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/include -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/include -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/include " LDFLAGS="-L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib " ./configure --target=arm-openwrt-linux --host=arm-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; ) rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.configured_* touch /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.configured_yyy arm-openwrt-linux-uclibcgnueabi-gcc -Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -std=c99 -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubus -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubox /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/crc32.c -o /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib -lubus -lubox -lm /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c:79:5: warning: implicit declaration of function 'UBUS_OBJECT' [-Wimplicit-function-declaration] UBUS_OBJECT("data_service", &hello_obj_type, hello_methods, ARRAY_SIZE(hello_methods)); ^ /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c:79:5: error: invalid initializer Makefile:48: recipe for target '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.built' failed make[2]: *** [/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.built] Error 1 make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/ubus_ipc_crc' package/Makefile:191: recipe for target 'package/ubus_ipc_crc/compile' failed make[1]: *** [package/ubus_ipc_crc/compile] Error 2 make[1]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1' /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/include/toplevel.mk:181: recipe for target 'package/ubus_ipc_crc/compile' failed make: *** [package/ubus_ipc_crc/compile] Error 2 shihaopeng@shihaopeng-virtual-machine11:~/Desktop/CODE/homework3/openwrt-15.05.1$ cat /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target -arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubus/libubus.h cat: /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubus/libubus.h: No such file or directory shihaopeng@shihaopeng-virtual-machine11:~/Desktop/CODE/homework3/openwrt-15.05.1$ make package/ubus_ipc_crc/compile V=99 make[1]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/toolchain' if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libpthread" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/toolchain' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libjson-c' if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install.clean; fi; echo "libjson-c" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libjson-c' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/utils/lua' if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean; fi; echo "liblua" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean; fi; echo "lua" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/utils/lua' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libubox' if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libubox" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libblobmsg-json" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "jshn" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libjson-script" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libubox' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/system/ubus' if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "libubus" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "libubus-lua" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "ubus" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "ubusd" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/system/ubus' make[2]: Entering directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/ubus_ipc_crc' mkdir -p /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc cp -fpR ./src/* /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ touch /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.prepared_17edf9e0d8c7e2d69ed91b923871c7b2 rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/stamp/.ubus_ipc_crc_installed (cd /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/./; if [ -x ./configure ]; then find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.guess | xargs -r chmod u+w; find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.guess | xargs -r -n1 cp --remove-destination /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/scripts/config.guess; find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.sub | xargs -r chmod u+w; find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.sub | xargs -r -n1 cp --remove-destination /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/scripts/config.sub; AR="arm-openwrt-linux-uclibcgnueabi-gcc-ar" AS="arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard" LD=arm-openwrt-linux-uclibcgnueabi-ld NM="arm-openwrt-linux-uclibcgnueabi-gcc-nm" CC="arm-openwrt-linux-uclibcgnueabi-gcc" GCC="arm-openwrt-linux-uclibcgnueabi-gcc" CXX="arm-openwrt-linux-uclibcgnueabi-g++" RANLIB="arm-openwrt-linux-uclibcgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-uclibcgnueabi-strip OBJCOPY=arm-openwrt-linux-uclibcgnueabi-objcopy OBJDUMP=arm-openwrt-linux-uclibcgnueabi-objdump SIZE=arm-openwrt-linux-uclibcgnueabi-size CFLAGS="-Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard " CXXFLAGS="-Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard " CPPFLAGS="-I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/include -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/include -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/include " LDFLAGS="-L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib " ./configure --target=arm-openwrt-linux --host=arm-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; ) rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.configured_* touch /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.configured_yyy arm-openwrt-linux-uclibcgnueabi-gcc -Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -std=c99 -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubus -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubox /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/crc32.c -o /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib -lubus -lubox -lm /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c:84:5: warning: braces around scalar initializer [enabled by default] .id = { 0 }, ^ /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c:84:5: warning: (near initialization for 'hello_obj.id') [enabled by default] /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c:85:5: warning: braces around scalar initializer [enabled by default] .path = { 0 }, ^ /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c:85:5: warning: (near initialization for 'hello_obj.path') [enabled by default] arm-openwrt-linux-uclibcgnueabi-gcc -Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -std=c99 -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubus -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubox /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/a_client.c /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/crc32.c -o /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/a_client -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib -lubus -lubox -lm touch /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.built mkdir -p /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/bin/realview/packages /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ipkg-realview/ubus_ipc_crc/CONTROL /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo install -d -m0755 /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ipkg-realview/ubus_ipc_crc/usr/bin install -m0755 /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ipkg-realview/ubus_ipc_crc/usr/bin/ install -m0755 /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/a_client /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ipkg-realview/ubus_ipc_crc/usr/bin/ find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ipkg-realview/ubus_ipc_crc -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf export CROSS="arm-openwrt-linux-uclibcgnueabi-" NO_RENAME=1 ; NM="arm-openwrt-linux-uclibcgnueabi-nm" STRIP="/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/host/bin/sstrip" STRIP_KMOD="/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/scripts/strip-kmod.sh" PATCHELF="/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/host/bin/patchelf" /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/scripts/rstrip.sh /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ipkg-realview/ubus_ipc_crc rstrip.sh: /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ipkg-realview/ubus_ipc_crc/usr/bin/b_server: executable rstrip.sh: /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ipkg-realview/ubus_ipc_crc/usr/bin/a_client: executable (cd /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ipkg-realview/ubus_ipc_crc/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm; ) install -d -m0755 /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/bin/realview/packages/base /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/scripts/ipkg-build -c -o 0 -g 0 /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ipkg-realview/ubus_ipc_crc /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/bin/realview/packages/base Packaged contents of /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ipkg-realview/ubus_ipc_crc into /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/bin/realview/packages/base/ubus_ipc_crc_1_realview.ipk rm -rf /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-ubus_ipc_crc mkdir -p /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/stamp /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-ubus_ipc_crc install -d -m0755 /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-ubus_ipc_crc/usr/bin install -m0755 /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-ubus_ipc_crc/usr/bin/ install -m0755 /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/a_client /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-ubus_ipc_crc/usr/bin/ SHELL= /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/host/bin/flock /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/tmp/.root-copy.flock -c 'cp -fpR /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-ubus_ipc_crc/. /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/' rm -rf /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-ubus_ipc_crc touch /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/stamp/.ubus_ipc_crc_installed if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus_ipc_crc.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus_ipc_crc.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus_ipc_crc.default.install.clean; fi; echo "ubus_ipc_crc" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus_ipc_crc.default.install make[2]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/ubus_ipc_crc' make[1]: Leaving directory '/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1'
最新发布
08-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值