Toybrick

编译安卓固件失败

大白

新手上路

积分
15
楼主
发表于 2019-6-25 10:04:53    查看: 6251|回复: 3 | [复制链接]    打印 | 只看该作者
root@ubuntu:/home/work# make -j12
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=rk3399pro
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-142-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM8.190305.001
OUT_DIR=out
============================================
ninja: no work to do.
[1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build  -t -b out/soong -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp
fatal error: runtime: out of memory

runtime stack:
runtime.throw(0x80cf94, 0x16)
        prebuilts/go/linux-x86/src/runtime/panic.go:596 +0x95
runtime.sysMap(0xc4d3010000, 0x46c30000, 0xa0f300, 0xa26cb8)
        prebuilts/go/linux-x86/src/runtime/mem_linux.go:216 +0x1d0
runtime.(*mheap).sysAlloc(0xa0eb20, 0x46c30000, 0x0)
        prebuilts/go/linux-x86/src/runtime/malloc.go:428 +0x374
runtime.(*mheap).grow(0xa0eb20, 0x23614, 0x0)
        prebuilts/go/linux-x86/src/runtime/mheap.go:774 +0x62
runtime.(*mheap).allocSpanLocked(0xa0eb20, 0x23614, 0x7f7f2b672260)
        prebuilts/go/linux-x86/src/runtime/mheap.go:678 +0x44f
runtime.(*mheap).alloc_m(0xa0eb20, 0x23614, 0x100000000, 0xffffffffffffffff)
        prebuilts/go/linux-x86/src/runtime/mheap.go:562 +0xe2
runtime.(*mheap).alloc.func1()
        prebuilts/go/linux-x86/src/runtime/mheap.go:627 +0x4b
runtime.systemstack(0xc4204e3f10)
        prebuilts/go/linux-x86/src/runtime/asm_amd64.s:343 +0xab
runtime.(*mheap).alloc(0xa0eb20, 0x23614, 0x10100000000, 0x423082)
        prebuilts/go/linux-x86/src/runtime/mheap.go:628 +0xa0
runtime.largeAlloc(0x46c2624a, 0x451401, 0xc487c78000)
        prebuilts/go/linux-x86/src/runtime/malloc.go:795 +0x93
runtime.mallocgc.func1()
        prebuilts/go/linux-x86/src/runtime/malloc.go:690 +0x3e
runtime.systemstack(0xc420027300)
        prebuilts/go/linux-x86/src/runtime/asm_amd64.s:327 +0x79
runtime.mstart()
        prebuilts/go/linux-x86/src/runtime/proc.go:1132

goroutine 1 [running]:
runtime.systemstack_switch()
        prebuilts/go/linux-x86/src/runtime/asm_amd64.s:281 fp=0xc4204a3410 sp=0xc4204a3408
runtime.mallocgc(0x46c2624a, 0x7793a0, 0xc420365701, 0xc487c76340)
        prebuilts/go/linux-x86/src/runtime/malloc.go:691 +0x930 fp=0xc4204a34b0 sp=0xc4204a3410
runtime.makeslice(0x7793a0, 0x46c2624a, 0x46c2624a, 0x441657, 0x34398539fc8, 0x0)
        prebuilts/go/linux-x86/src/runtime/slice.go:54 +0x7b fp=0xc4204a3500 sp=0xc4204a34b0
bytes.makeSlice(0x46c2624a, 0x0, 0x0, 0x0)
        prebuilts/go/linux-x86/src/bytes/buffer.go:201 +0x77 fp=0xc4204a3540 sp=0xc4204a3500
bytes.(*Buffer).grow(0xc4505f3b90, 0x9c, 0x1)
        prebuilts/go/linux-x86/src/bytes/buffer.go:109 +0x177 fp=0xc4204a3590 sp=0xc4204a3540
bytes.(*Buffer).WriteString(0xc4505f3b90, 0xc46d52b040, 0x9c, 0x7f7f2bbe6100, 0xc4505f3b90, 0x1)
        prebuilts/go/linux-x86/src/bytes/buffer.go:146 +0x41 fp=0xc4204a35c0 sp=0xc4204a3590
io.WriteString(0x9ea7a0, 0xc4505f3b90, 0xc46d52b040, 0x9c, 0x9c, 0x0, 0x0)
        prebuilts/go/linux-x86/src/io/io.go:289 +0x76 fp=0xc4204a3608 sp=0xc4204a35c0
github.com/google/blueprint.(*ninjaWriterWithWrap).writeString(0xc4204a36c0, 0xc46d52b040, 0x9c, 0xc487c76301)
        /home/work/build/blueprint/ninja_writer.go:238 +0x8b fp=0xc4204a3658 sp=0xc4204a3608
github.com/google/blueprint.(*ninjaWriterWithWrap).WriteStringWithSpace(0xc4204a36c0, 0xc46d52b040, 0x9c)
        /home/work/build/blueprint/ninja_writer.go:247 +0x44 fp=0xc4204a3688 sp=0xc4204a3658
github.com/google/blueprint.(*ninjaWriter).Build(0xc426ee8400, 0x0, 0x0, 0xc487c762a6, 0x7, 0xc487c76310, 0x1, 0x1, 0xa25ed8, 0x0, ...)
        /home/work/build/blueprint/ninja_writer.go:157 +0x21c fp=0xc4204a36f8 sp=0xc4204a3688
github.com/google/blueprint.(*buildDef).WriteTo(0xc46d59e480, 0xc426ee8400, 0xc47f716cc0, 0xc487c1e7e0, 0x90)
        /home/work/build/blueprint/ninja_defs.go:375 +0x3aa fp=0xc4204a3ac8 sp=0xc4204a36f8
github.com/google/blueprint.(*Context).writeLocalBuildActions(0xc420104280, 0xc426ee8400, 0xc434c18120, 0x0, 0x0)
        /home/work/build/blueprint/context.go:3152 +0x2bc fp=0xc4204a3b60 sp=0xc4204a3ac8
github.com/google/blueprint.(*Context).writeAllModuleActions(0xc420104280, 0xc426ee8400, 0x0, 0x0)
        /home/work/build/blueprint/context.go:3036 +0x923 fp=0xc4204a3d10 sp=0xc4204a3b60
github.com/google/blueprint.(*Context).WriteBuildFile(0xc420104280, 0x9ea7a0, 0xc4505f3b90, 0x863, 0xc47f726000)
        /home/work/build/blueprint/context.go:2712 +0x19a fp=0xc4204a3d48 sp=0xc4204a3d10
github.com/google/blueprint/bootstrap.Main(0xc420104280, 0x7f8960, 0xc42007c580, 0xc42070df58, 0x2, 0x2)
        /home/work/build/blueprint/bootstrap/command.go:150 +0x73e fp=0xc4204a3ed0 sp=0xc4204a3d48
main.main()
        /home/work/build/soong/cmd/soong_build/main.go:48 +0x235 fp=0xc4204a3f88 sp=0xc4204a3ed0
runtime.main()
        prebuilts/go/linux-x86/src/runtime/proc.go:185 +0x20a fp=0xc4204a3fe0 sp=0xc4204a3f88
runtime.goexit()
        prebuilts/go/linux-x86/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc4204a3fe8 sp=0xc4204a3fe0
ninja: build stopped: subcommand failed.
18:57:29 soong failed with: exit status 1

#### failed to build some targets (11:13 (mm:ss)) ####

root@ubuntu:/home/work#



求大神帮忙看下


回复

使用道具 举报

jefferyzhang

版主

积分
12953
沙发
发表于 2019-6-25 10:13:32 | 只看该作者
fatal error: runtime: out of memory
你电脑配置太差了
回复

使用道具 举报

大白

新手上路

积分
15
板凳
 楼主| 发表于 2019-6-25 11:08:08 | 只看该作者
jefferyzhang 发表于 2019-6-25 10:13
fatal error: runtime: out of memory
你电脑配置太差了

你好,这是在虚拟机上跑的,这得需要啥配置
回复

使用道具 举报

大白

新手上路

积分
15
地板
 楼主| 发表于 2019-6-25 11:36:02 | 只看该作者
jefferyzhang 发表于 2019-6-25 10:13
fatal error: runtime: out of memory
你电脑配置太差了

不好意思,是我虚拟机给的内存太小了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表