【已解决】 报错:/obj32/EXECUTABLES/oatdump_intermediates/oatdump.o
一直搜不到解决办法,是我姿势不对吗, 跟着教程走的
build/core/binary.mk:620: recipe for target 'out/host/linux-x86/obj32/EXECUTABLES/dex2oat_intermediates/dex2oat.o' failed
In file included from art/dex2oat/dex2oat.cc:59:0:
art/compiler/oat_writer.h: In member function 'bool art::OatWriter::CodeOffsetsKeyComparator::operator()(const art::CompiledMethod*, const art::CompiledMethod*) const':
art/compiler/oat_writer.h:310:16: error: 'const class art::CompiledMethod' has no member named 'GetQuickCode'
art/compiler/oat_writer.h:310:39: error: 'const class art::CompiledMethod' has no member named 'GetQuickCode'
art/compiler/oat_writer.h:311:21: error: 'const class art::CompiledMethod' has no member named 'GetQuickCode'
art/compiler/oat_writer.h:311:43: error: 'const class art::CompiledMethod' has no member named 'GetQuickCode'
art/compiler/oat_writer.h:314:11: error: 'const class art::CompiledMethod' has no member named 'GetMappingTable'
art/compiler/oat_writer.h:314:11: error: 'const class art::CompiledMethod' has no member named 'GetMappingTable'
art/compiler/oat_writer.h:315:22: error: 'const class art::CompiledMethod' has no member named 'GetMappingTable'
art/compiler/oat_writer.h:315:48: error: 'const class art::CompiledMethod' has no member named 'GetMappingTable'
art/compiler/oat_writer.h:317:11: error: 'const class art::CompiledMethod' has no member named 'GetVmapTable'
art/compiler/oat_writer.h:317:11: error: 'const class art::CompiledMethod' has no member named 'GetVmapTable'
art/compiler/oat_writer.h:318:22: error: 'const class art::CompiledMethod' has no member named 'GetVmapTable'
art/compiler/oat_writer.h:318:45: error: 'const class art::CompiledMethod' has no member named 'GetVmapTable'
art/compiler/oat_writer.h:320:11: error: 'const class art::CompiledMethod' has no member named 'GetGcMap'
art/compiler/oat_writer.h:320:11: error: 'const class art::CompiledMethod' has no member named 'GetGcMap'
art/compiler/oat_writer.h:321:22: error: 'const class art::CompiledMethod' has no member named 'GetGcMap'
art/compiler/oat_writer.h:321:41: error: 'const class art::CompiledMethod' has no member named 'GetGcMap'
build/core/binary.mk:620: recipe for target 'out/host/linux-x86/obj32/EXECUTABLES/patchoat_intermediates/patchoat.o' failed
make: *** [out/host/linux-x86/obj32/EXECUTABLES/patchoat_intermediates/patchoat.o] Error 1
art/runtime/entrypoints/entrypoint_utils.h: At global scope:
art/runtime/entrypoints/entrypoint_utils.h:50:44: error: 'art::mirror::Class* art::CheckClassInitializedForObjectAlloc(art::mirror::Class*, art::Thread*, bool*)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:146:33: error: 'art::mirror::ArtField* art::FindFieldFast(uint32_t, art::mirror::ArtMethod*, art::FindFieldType, size_t)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:152:34: error: 'art::mirror::ArtMethod* art::FindMethodFast(uint32_t, art::mirror::Object*, art::mirror::ArtMethod*, bool, art::InvokeType)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:158:30: error: 'art::mirror::Class* art::ResolveVerifyAndClinit(uint32_t, art::mirror::ArtMethod*, art::Thread*, bool, bool)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:166:31: error: 'art::mirror::String* art::ResolveStringFromCode(art::mirror::ArtMethod*, uint32_t)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:171:20: error: 'void art::UnlockJniSynchronizedMethod(jobject, art::Thread*)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:177:20: error: 'void art::CheckSuspend(art::Thread*)' declared 'static' but never defined [-Werror=unused-function]
cc1plus: all warnings being treated as errors
build/core/binary.mk:620: recipe for target 'out/host/linux-x86/obj32/EXECUTABLES/oatdump_intermediates/oatdump.o' failed
make: *** [out/host/linux-x86/obj32/EXECUTABLES/oatdump_intermediates/oatdump.o] Error 1
art/runtime/./elf.h: At global scope:
art/runtime/./elf.h:63:12: error: 'ELFMAG0' defined but not used [-Werror=unused-variable]
art/runtime/./elf.h:64:12: error: 'ELFMAG1' defined but not used [-Werror=unused-variable]
art/runtime/./elf.h:65:12: error: 'ELFMAG2' defined but not used [-Werror=unused-variable]
art/runtime/./elf.h:66:12: error: 'ELFMAG3' defined but not used [-Werror=unused-variable]
art/runtime/entrypoints/entrypoint_utils.h:50:44: error: 'art::mirror::Class* art::CheckClassInitializedForObjectAlloc(art::mirror::Class*, art::Thread*, bool*)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:146:33: error: 'art::mirror::ArtField* art::FindFieldFast(uint32_t, art::mirror::ArtMethod*, art::FindFieldType, size_t)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:152:34: error: 'art::mirror::ArtMethod* art::FindMethodFast(uint32_t, art::mirror::Object*, art::mirror::ArtMethod*, bool, art::InvokeType)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:158:30: error: 'art::mirror::Class* art::ResolveVerifyAndClinit(uint32_t, art::mirror::ArtMethod*, art::Thread*, bool, bool)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:166:31: error: 'art::mirror::String* art::ResolveStringFromCode(art::mirror::ArtMethod*, uint32_t)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:171:20: error: 'void art::UnlockJniSynchronizedMethod(jobject, art::Thread*)' declared 'static' but never defined [-Werror=unused-function]
art/runtime/entrypoints/entrypoint_utils.h:177:20: error: 'void art::CheckSuspend(art::Thread*)' declared 'static' but never defined [-Werror=unused-function]
cc1plus: all warnings being treated as errors
build/core/binary.mk:620: recipe for target 'out/host/linux-x86/obj32/EXECUTABLES/dex2oat_intermediates/dex2oat.o' failed
make: *** [out/host/linux-x86/obj32/EXECUTABLES/dex2oat_intermediates/dex2oat.o] Error 1
make: *** wait: No child processes. Stop.
#### make failed to build some targets (01:39 (mm:ss)) ####
已解决,删了虚拟机重新跟教程走,虽然有其它报错,但是都能搜到解决
要不,关了odex优化试试
help me 大佬们