Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Buiding error in Android 10 due to commit 07176f0 #28

Open
maurossi opened this issue Jul 10, 2022 · 10 comments
Open

Buiding error in Android 10 due to commit 07176f0 #28

maurossi opened this issue Jul 10, 2022 · 10 comments

Comments

@maurossi
Copy link
Contributor

Hi @rsglobal

After testing the build of gbm_gralloc starting from Android 9 to Android 12
I found that Android 10 is the only version affected by the following building error:

FAILED: 
build/make/core/base_rules.mk:526: error: overriding commands for target `out/target/product/x86_64/system/vendor/etc/vintf/manifest/gbm_gralloc_manifest.xml', previously defined at build/make/core/base_rules.mk:526
20:37:32 ckati failed with: exit status 1

#### failed to build some targets (02:00 (mm:ss)) ####

As a proposal, is it acceptable for everyone to use LOCAL_VINTF_FRAGMENTS := gbm_gralloc_manifest.xml for Android 11 and later?

@maurossi
Copy link
Contributor Author

Proposed patch in the attachment, tested and it works

0001-Use-manifest-fragment-with-Android-11-and-later.txt

@rsglobal
Copy link
Contributor

Hi @maurossi ,

Merging fragmented manifest here wasn't a good idea despite it was mine MR.
As for today I would prefer somainline approach: https://github.com/SoMainline/android-lights-hal/blob/aosp-12.0/lights.mk

@maurossi
Copy link
Contributor Author

Hi @rsglobal

Do you prefer to revert commit 07176f0 ?
Thanks for the feedback

@rsglobal
Copy link
Contributor

Yes, I think reverting it would be better option.

@maurossi
Copy link
Contributor Author

Thanks Roman,

@robherring could you please proceed with the revert of commit 07176f0 ?

Thank you

@robherring
Copy link
Owner

@maurossi Can you make a PR with the revert please.

@maurossi
Copy link
Contributor Author

Hello,

Pull Request #29 was created

@MarijnS95
Copy link

MarijnS95 commented Sep 19, 2022

Instead of plainly reverting it'd be great if an alternative easy-to-use solution could have been provided (like mine that you linked from the SoMainline repo above). I'm now greeted with:

checkvintf I 09-19 23:39:24   271   271 check_vintf.cpp:424] Skip checking unused HALs.
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554] files are incompatible: Device manifest and framework compatibility matrix are incompatible: HALs incompatible. Matrix level = 4. Manifest level = 4. The following requirements are not met:
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554] android.hardware.graphics.allocator:
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554]     required:
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554]         @2.0::IAllocator/default OR
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554]         @3.0::IAllocator/default OR
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554]         @4.0::IAllocator/default
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554]     provided:
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554] android.hardware.graphics.mapper:
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554]     required:
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554]         @2.1::IMapper/default OR
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554]         @3.0::IMapper/default OR
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554]         @4.0::IMapper/default
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554]     provided:
checkvintf E 09-19 23:39:24   271   271 check_vintf.cpp:554] : Success

As I had come to rely on gbm_gralloc providing its own manifest the way it's intended to.

@maurossi
Copy link
Contributor Author

Hi @MarijnS95

What Android version is producing the log?

Is there a way to allow building gbm_gralloc also in Android 7, 8, 9, 10 which are still active branches in android-x86 project?

@MarijnS95
Copy link

@maurossi This was Android 11.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants