[android-building] Re: Android 8.1 build error in ubuntu 14.04
Hello, Did you fix this issue? or any update? I just got the same compiling error as yours. However I got two very strange comparison result, I can build it on a Ubuntu-14.04.5 VMware but failed to do it on one bare metal Ubuntu-14.04.5 workstation. I can promise I do install these 2 Ubuntu ENV using the same installation iso. I also install the same dependencies or tools for example: ``` $ sudo apt-get install git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng $ sudo apt-get install python-wand python-crypto liblz4-tool ``` This means that in my current opinion, the software environment is the same except for hardware (VMware vs. Bare metal). I am very confused of this now. On Thursday, March 15, 2018 at 10:52:45 PM UTC+8, zeo...@naver.com wrote: > > 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: Fai
[android-building] Re: Android 8.1 build error in ubuntu 14.04
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 -
[android-building] Re: Android 8.1 build error in ubuntu 14.04
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 Gene
Re: [android-building] Re: Android 8.1 build error in ubuntu 14.04
Probably the filesystem issue with DT_UNKNOWN, fixed by https://android-review.googlesource.com/c/platform/system/tools/hidl/+/650080 On Thu, May 17, 2018, 7:31 AM Fish Zheng wrote: > Hello, >Did you fix this issue? or any update? >I just got the same compiling error as yours. > >However I got two very strange comparison result, I can build it on a > Ubuntu-14.04.5 VMware but failed to do it on one bare metal Ubuntu-14.04.5 > workstation. >I can promise I do install these 2 Ubuntu ENV using the same > installation iso. I also install the same dependencies or tools for example: > ``` >$ sudo apt-get install git ccache automake lzop bison gperf > build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib > python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev > squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng >$ sudo apt-get install python-wand python-crypto liblz4-tool > ``` >This means that in my current opinion, the software environment is the > same except for hardware (VMware vs. Bare metal). >I am very confused of this now. > > > On Thursday, March 15, 2018 at 10:52:45 PM UTC+8, zeo...@naver.com wrote: >> >> 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/int
Re: [android-building] Re: Android 8.1 build error in ubuntu 14.04
> This means that in my current opinion, the software environment is the same except for hardware (VMware vs. Bare metal). I don't recognize the above error, but this difference is strange. Is the source on the same type of filesystem in both cases? I know there have been issues with a few filesystems (iirc, ones that don't return extra file metadata during readdir, but require extra stat calls) - Dan On Thu, May 17, 2018, 7:31 AM Fish Zheng wrote: > Hello, >Did you fix this issue? or any update? >I just got the same compiling error as yours. > >However I got two very strange comparison result, I can build it on a > Ubuntu-14.04.5 VMware but failed to do it on one bare metal Ubuntu-14.04.5 > workstation. >I can promise I do install these 2 Ubuntu ENV using the same > installation iso. I also install the same dependencies or tools for example: > ``` >$ sudo apt-get install git ccache automake lzop bison gperf > build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib > python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev > squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng >$ sudo apt-get install python-wand python-crypto liblz4-tool > ``` >This means that in my current opinion, the software environment is the > same except for hardware (VMware vs. Bare metal). >I am very confused of this now. > > > On Thursday, March 15, 2018 at 10:52:45 PM UTC+8, zeo...@naver.com wrote: >> >> 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/ta
Re: [android-building] Re: Android 8.1 build error in ubuntu 14.04
Hello, Colin, and Dan You are right, it really related to the fs type. With your comments, I did 2 new testings, one is on ext3, and another is on ext4, both are successful. Back to my issue, I just noticed the hardware difference instead of file system. Actually my VMware Ubuntu uses ext4, however my bare metal Ubuntu uses xfs. So until now I can have a result: * I can build my code on ext3, ext4 partitions. * My failed case ralated to xfs -- though I still don't know the root cause, why the out/host/linux-x86/bin/hidl-gen will touch the file system's flag. I'll continue to observe this. THANKS for your professional hints. On Thursday, May 17, 2018 at 10:56:58 PM UTC+8, Dan Willemsen wrote: > > > This means that in my current opinion, the software environment is the > same except for hardware (VMware vs. Bare metal). > > I don't recognize the above error, but this difference is strange. Is the > source on the same type of filesystem in both cases? I know there have been > issues with a few filesystems (iirc, ones that don't return extra file > metadata during readdir, but require extra stat calls) > > - Dan > > On Thu, May 17, 2018, 7:31 AM Fish Zheng > > wrote: > >> Hello, >>Did you fix this issue? or any update? >>I just got the same compiling error as yours. >> >>However I got two very strange comparison result, I can build it on a >> Ubuntu-14.04.5 VMware but failed to do it on one bare metal Ubuntu-14.04.5 >> workstation. >>I can promise I do install these 2 Ubuntu ENV using the same >> installation iso. I also install the same dependencies or tools for example: >> ``` >>$ sudo apt-get install git ccache automake lzop bison gperf >> build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib >> python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev >> squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng >>$ sudo apt-get install python-wand python-crypto liblz4-tool >> ``` >>This means that in my current opinion, the software environment is the >> same except for hardware (VMware vs. Bare metal). >>I am very confused of this now. >> >> >> On Thursday, March 15, 2018 at 10:52:45 PM UTC+8, zeo...@naver.com wrote: >>> >>> 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 andro
Re: [android-building] Re: Android 8.1 build error in ubuntu 14.04
Facing the same issue. Any idea how to solve it? On Monday, May 21, 2018 at 11:02:47 AM UTC-4, Fish Zheng wrote: > > Hello, Colin, and Dan >You are right, it really related to the fs type. >With your comments, I did 2 new testings, one is on ext3, and > another is on ext4, both are successful. > >Back to my issue, I just noticed the hardware difference instead of > file system. >Actually my VMware Ubuntu uses ext4, however my bare metal Ubuntu > uses xfs. > >So until now I can have a result: >* I can build my code on ext3, ext4 partitions. >* My failed case ralated to xfs -- though I still don't know the > root cause, why the out/host/linux-x86/bin/hidl-gen will touch the file > system's flag. > > I'll continue to observe this. > > THANKS for your professional hints. > > On Thursday, May 17, 2018 at 10:56:58 PM UTC+8, Dan Willemsen wrote: >> >> > This means that in my current opinion, the software environment is the >> same except for hardware (VMware vs. Bare metal). >> >> I don't recognize the above error, but this difference is strange. Is the >> source on the same type of filesystem in both cases? I know there have been >> issues with a few filesystems (iirc, ones that don't return extra file >> metadata during readdir, but require extra stat calls) >> >> - Dan >> >> On Thu, May 17, 2018, 7:31 AM Fish Zheng wrote: >> >>> Hello, >>>Did you fix this issue? or any update? >>>I just got the same compiling error as yours. >>> >>>However I got two very strange comparison result, I can build it on a >>> Ubuntu-14.04.5 VMware but failed to do it on one bare metal Ubuntu-14.04.5 >>> workstation. >>>I can promise I do install these 2 Ubuntu ENV using the same >>> installation iso. I also install the same dependencies or tools for example: >>> ``` >>>$ sudo apt-get install git ccache automake lzop bison gperf >>> build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib >>> python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev >>> squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng >>>$ sudo apt-get install python-wand python-crypto liblz4-tool >>> ``` >>>This means that in my current opinion, the software environment is >>> the same except for hardware (VMware vs. Bare metal). >>>I am very confused of this now. >>> >>> >>> On Thursday, March 15, 2018 at 10:52:45 PM UTC+8, zeo...@naver.com >>> wrote: 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 /bi