“build hikey960 error”的版本间的差异

来自个人维基
跳转至: 导航搜索
第2行: 第2行:
  
 
Log:
 
Log:
dex2oatd E 09-23 23:04:07 174391 174391 dex2oat.cc:2234] Cannot lock profiles: Failed to lock file 'out/soong/hikey960/dex_bootjars/boot.prof': Bad file descriptor
+
dex2oatd E 09-23 23:04:07 174391 174391 dex2oat.cc:2234] Cannot lock profiles: Failed to lock file 'out/soong/hikey960/dex_bootjars/boot.prof': Bad file descriptor
dex2oatd E 09-23 23:04:07 174391 174391 dex2oat.cc:2842] Failed to process profile file
+
dex2oatd E 09-23 23:04:07 174391 174391 dex2oat.cc:2842] Failed to process profile file ERROR: Dex2oat failed to compile a boot image.It is likely that the boot classpath is inconsistent.Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors.
ERROR: Dex2oat failed to compile a boot image.It is likely that the boot classpath is inconsistent.Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors.
+
  
 
Cause:
 
Cause:
第11行: 第10行:
 
   ...
 
   ...
 
     if (profile_file_fd_ != -1) {
 
     if (profile_file_fd_ != -1) {
       profile_file = LockedFile::DupOf(profile_file_fd_, "profile",
+
       profile_file = LockedFile::DupOf(profile_file_fd_, "profile", true /* read_only_mode */, &error);
                                      true /* read_only_mode */, &error);
+
 
     } else if (profile_file_ != "") {
 
     } else if (profile_file_ != "") {
 
       profile_file = LockedFile::Open(profile_file_.c_str(), O_RDONLY, true, &error);
 
       profile_file = LockedFile::Open(profile_file_.c_str(), O_RDONLY, true, &error);

2019年9月24日 (二) 09:40的版本

Host:

Log:

dex2oatd E 09-23 23:04:07 174391 174391 dex2oat.cc:2234] Cannot lock profiles: Failed to lock file 'out/soong/hikey960/dex_bootjars/boot.prof': Bad file descriptor
dex2oatd E 09-23 23:04:07 174391 174391 dex2oat.cc:2842] Failed to process profile file ERROR: Dex2oat failed to compile a boot image.It is likely that the boot classpath is inconsistent.Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors.

Cause:

 bool LoadProfile() {
   ...
    if (profile_file_fd_ != -1) {
      profile_file = LockedFile::DupOf(profile_file_fd_, "profile", true /* read_only_mode */, &error);
    } else if (profile_file_ != "") {
      profile_file = LockedFile::Open(profile_file_.c_str(), O_RDONLY, true, &error);
    }
    // Return early if we're unable to obtain a lock on the profile.
    if (profile_file.get() == nullptr) {
      LOG(ERROR) << "Cannot lock profiles: " << error;
      return false;
    }
 }