I integrated the patch mentioned by Colin and it is workable for me. 
Android 8.1 is building successfully on Ubuntu 18.04.

On Wednesday, March 20, 2019 at 11:49:21 PM UTC+8, Bastien Chanot wrote:
>
> Same issue here, i got the error ERROR: Could not parse 
> android.hidl.base[...]
> I'm building on an Ubuntu 18.10, with ext4 filesystem type.
>
> Anyone have a solution ?
>
> Here is fulll log :
>
> [  0% 1/61244] target Generated: framework <= 
> system/libhidl/transport/base/1.0/IBase.hal
> FAILED: 
> out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hidl/base/V1_0/IBase.java
>  
>
> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
> out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates
>  
> -Ljava -randroid.hidl:system/libhidl/transport android.hidl.base@1.0::IBase"
> ERROR: Could not parse android.hidl.base@1.0::IBase. Aborting.
> [  0% 2/61244] target Generated: framework <= 
> system/libhidl/transport/base/1.0/types.hal
> FAILED: 
> out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hidl/base/V1_0/DebugInfo.java
>  
>
> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
> out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates
>  
> -Ljava -randroid.hidl:system/libhidl/transport 
> android.hidl.base@1.0::types.DebugInfo"
> ERROR: Could not parse android.hidl.base@1.0::types.DebugInfo. Aborting.
> [  0% 3/61244] target Generated: framework <= 
> hardware/interfaces/cas/1.0/types.hal
> FAILED: 
> out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/HidlCasPluginDescriptor.java
>  
>
> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
> out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates
>  
> -Ljava -randroid.hardware:hardware/interfaces 
> -randroid.hidl:system/libhidl/transport 
> android.hardware.cas@1.0::types.HidlCasPluginDescriptor"
> ERROR: Could not parse 
> android.hardware.cas@1.0::types.HidlCasPluginDescriptor. Aborting.
> [  0% 4/61244] target Generated: framework <= 
> hardware/interfaces/cas/1.0/types.hal
> FAILED: 
> out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/Status.java
>  
>
> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
> out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates
>  
> -Ljava -randroid.hardware:hardware/interfaces 
> -randroid.hidl:system/libhidl/transport 
> android.hardware.cas@1.0::types.Status"
> ERROR: Could not parse android.hardware.cas@1.0::types.Status. Aborting.
> ninja: build stopped: subcommand failed.
> 16:19:59 ninja failed with: exit status 1
>
> Le jeudi 15 mars 2018 15:52:45 UTC+1, zeo...@naver.com a écrit :
>>
>> Hi
>> When i try to build AOSP O(8.1.0), i got this error. 
>> Can anyone help me on this?
>>
>> [  0% 9/47545] target Generated: android.hardware.usb-V1.1-java <= 
>> hardware/interfaces/usb/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates/android/hardware/usb/V1_1/PortStatus_1_1.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.usb@1.1::types.PortStatus_1_1"
>> ERROR: Failed to lookup type 'PortMode' at 
>> hardware/interfaces/usb/1.1/types.hal:22.21-28
>> ERROR: Failed to lookup type 'PortStatus' at 
>> hardware/interfaces/usb/1.1/types.hal:45.5-14
>> ERROR: Failed to lookup type 'PortMode_1_1' at 
>> hardware/interfaces/usb/1.1/types.hal:51.14-25
>> ERROR: Failed to lookup type 'PortMode_1_1' at 
>> hardware/interfaces/usb/1.1/types.hal:56.5-16
>> ERROR: Could not parse android.hardware.usb@1.1::types.PortStatus_1_1. 
>> Aborting.
>> [  0% 10/47545] target Generated: android.hardware.usb-V1.1-java <= 
>> hardware/interfaces/usb/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates/android/hardware/usb/V1_1/PortMode_1_1.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.usb@1.1::types.PortMode_1_1"
>> ERROR: Failed to lookup type 'PortMode' at 
>> hardware/interfaces/usb/1.1/types.hal:22.21-28
>> ERROR: Failed to lookup type 'PortStatus' at 
>> hardware/interfaces/usb/1.1/types.hal:45.5-14
>> ERROR: Failed to lookup type 'PortMode_1_1' at 
>> hardware/interfaces/usb/1.1/types.hal:51.14-25
>> ERROR: Failed to lookup type 'PortMode_1_1' at 
>> hardware/interfaces/usb/1.1/types.hal:56.5-16
>> ERROR: Could not parse android.hardware.usb@1.1::types.PortMode_1_1. 
>> Aborting.
>> [  0% 11/47545] target Generated: android.hardware.usb-V1.1-java <= 
>> hardware/interfaces/usb/1.1/IUsb.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates/android/hardware/usb/V1_1/IUsb.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport android.hardware.usb@1.1::IUsb"
>> ERROR: Failed to lookup type 'PortMode' at 
>> hardware/interfaces/usb/1.1/types.hal:22.21-28
>> ERROR: Failed to lookup type 'PortStatus' at 
>> hardware/interfaces/usb/1.1/types.hal:45.5-14
>> ERROR: Failed to lookup type 'PortMode_1_1' at 
>> hardware/interfaces/usb/1.1/types.hal:51.14-25
>> ERROR: Failed to lookup type 'PortMode_1_1' at 
>> hardware/interfaces/usb/1.1/types.hal:56.5-16
>> ERROR: Failed to lookup type 'android.hardware.usb@1.0::IUsb' at 
>> hardware/interfaces/usb/1.1/IUsb.hal:21.24-53
>> ERROR: Could not parse android.hardware.usb@1.1::IUsb. Aborting.
>> [  0% 12/47545] target Generated: android.hardware.usb-V1.1-java <= 
>> hardware/interfaces/usb/1.1/IUsbCallback.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates/android/hardware/usb/V1_1/IUsbCallback.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.usb@1.1::IUsbCallback"
>> ERROR: Failed to lookup type 'PortMode' at 
>> hardware/interfaces/usb/1.1/types.hal:22.21-28
>> ERROR: Failed to lookup type 'PortStatus' at 
>> hardware/interfaces/usb/1.1/types.hal:45.5-14
>> ERROR: Failed to lookup type 'PortMode_1_1' at 
>> hardware/interfaces/usb/1.1/types.hal:51.14-25
>> ERROR: Failed to lookup type 'PortMode_1_1' at 
>> hardware/interfaces/usb/1.1/types.hal:56.5-16
>> ERROR: Failed to lookup type '@1.0::IUsbCallback' at 
>> hardware/interfaces/usb/1.1/IUsbCallback.hal:26.32-49
>> ERROR: Could not parse android.hardware.usb@1.1::IUsbCallback. Aborting.
>> [  0% 13/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/EutranBands.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.EutranBands"
>> hidl-gen E 03-15 15:31:42 26721 26721 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse android.hardware.radio@1.1::types.EutranBands. 
>> Aborting.
>> [  0% 14/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/GeranBands.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.GeranBands"
>> hidl-gen E 03-15 15:31:42 26720 26720 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse android.hardware.radio@1.1::types.GeranBands. 
>> Aborting.
>> [  0% 15/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/CardPowerState.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.CardPowerState"
>> hidl-gen E 03-15 15:31:42 26723 26723 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse android.hardware.radio@1.1::types.CardPowerState. 
>> Aborting.
>> [  0% 16/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/ImsiEncryptionInfo.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.ImsiEncryptionInfo"
>> hidl-gen E 03-15 15:31:42 26722 26722 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse 
>> android.hardware.radio@1.1::types.ImsiEncryptionInfo. Aborting.
>> [  0% 17/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/KeepaliveType.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.KeepaliveType"
>> hidl-gen E 03-15 15:31:42 26727 26727 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse android.hardware.radio@1.1::types.KeepaliveType. 
>> Aborting.
>> [  0% 18/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/RadioAccessSpecifier.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.RadioAccessSpecifier"
>> hidl-gen E 03-15 15:31:42 26731 26731 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse 
>> android.hardware.radio@1.1::types.RadioAccessSpecifier. Aborting.
>> [  0% 19/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/RadioAccessNetworks.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.RadioAccessNetworks"
>> hidl-gen E 03-15 15:31:42 26730 26730 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse 
>> android.hardware.radio@1.1::types.RadioAccessNetworks. Aborting.
>> [  0% 20/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/KeepaliveRequest.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.KeepaliveRequest"
>> hidl-gen E 03-15 15:31:42 26724 26724 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse 
>> android.hardware.radio@1.1::types.KeepaliveRequest. Aborting.
>> [  0% 21/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/KeepaliveStatusCode.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.KeepaliveStatusCode"
>> hidl-gen E 03-15 15:31:42 26726 26726 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse 
>> android.hardware.radio@1.1::types.KeepaliveStatusCode. Aborting.
>> [  0% 22/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/KeepaliveStatus.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.KeepaliveStatus"
>> hidl-gen E 03-15 15:31:42 26725 26725 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse android.hardware.radio@1.1::types.KeepaliveStatus. 
>> Aborting.
>> [  0% 23/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/NetworkScanResult.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.NetworkScanResult"
>> hidl-gen E 03-15 15:31:42 26729 26729 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse 
>> android.hardware.radio@1.1::types.NetworkScanResult. Aborting.
>> [  0% 24/47545] target Generated: android.hardware.radio-V1.1-java-static 
>> <= hardware/interfaces/radio/1.1/types.hal
>> FAILED: 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates/android/hardware/radio/V1_1/NetworkScanRequest.java
>> /bin/bash -c "out/host/linux-x86/bin/hidl-gen -o 
>> out/target/common/gen/JAVA_LIBRARIES/android.hardware.radio-V1.1-java-static_intermediates
>>  
>> -Ljava -randroid.hardware:hardware/interfaces 
>> -randroid.hidl:system/libhidl/transport 
>> android.hardware.radio@1.1::types.NetworkScanRequest"
>> hidl-gen E 03-15 15:31:42 26728 26728 Coordinator.cpp:529] 
>> android.hardware.radio@1.1 doesn't pass minor version uprev requirement. 
>> Requires at least one interface to extend an interface with the same name 
>> from android.hardware.radio@1.0.
>> ERROR: Could not parse 
>> android.hardware.radio@1.1::types.NetworkScanRequest. Aborting.
>> ninja: build stopped: subcommand failed.
>> 15:31:43 ninja failed with: exit status 1
>>
>> #### failed to build some targets (10 seconds) ####
>>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/7f1897bb-8a36-49c4-9a39-9c45793d91e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to