Android build is broken.

Post Reply
bugiii
Posts: 13
Joined: Thu Feb 27, 2020 3:04 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Android build is broken.

Post by bugiii » Fri Apr 24, 2020 12:36 pm

I newly constructed a repo and tried to build cleanly.

However, it does not compile due to the revision problem of `android_hardware_libhardware` and `odroidThnigs`.

odroidThnigs is checked out as HEAD, tag: g12_9.0.0_64_20200422, tag: g12_9.0.0_64_20200413, tag: g12_9.0.0_20200422, tag: g12_9.0.0_20200413, origin/master, m/s922_9.0.0_64_master.

android_hardware_libhardware is checked out as HEAD, tag: s922_9.0.0_64_20200318, tag: s922_9.0.0_20200318, tag: s922_9.0.0_20200305, tag: g12_9.0.0_64_20200401, tag: g12_9.0.0_20200401, origin/s922_9.0.0_master, m/s922_9.0.0_64_master.

In my opinion, it seems that the revision of n2 needs to be updated with the contents of 0422 of g12 in libhardware.

bugiii
Posts: 13
Joined: Thu Feb 27, 2020 3:04 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Android build is broken.

Post by bugiii » Fri Apr 24, 2020 2:46 pm

I checked out by March 30th and tried to build it, but no problem.

Code: Select all

repo forall -c 'git checkout `git rev-list -n1 --before="2020-03-30" HEAD`'

Luke.go
Posts: 482
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 43 times
Been thanked: 40 times
Contact:

Re: Android build is broken.

Post by Luke.go » Fri Apr 24, 2020 5:28 pm

Please check history of git on the libhardware. :)
https://github.com/codewalkerster/andro ... 0.0_master

bugiii
Posts: 13
Joined: Thu Feb 27, 2020 3:04 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Android build is broken.

Post by bugiii » Fri Apr 24, 2020 6:32 pm

The head of the othing for N2 is set at g12 0422, but the head of libhardware is written as the previous one.
Because othings depend on libhardware, a compilation error occurs that cannot refer to the newly added uart related member.

sungwon.pino
Posts: 2
Joined: Sat Apr 25, 2020 12:23 am
languages_spoken: english korean
ODROIDs: odroid-n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Android build is broken.

Post by sungwon.pino » Sat Apr 25, 2020 12:31 am

I'm newbie here and start fullbuild android at Aprit 24th, and I get some below error log.
How can I mend it ?

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

vendor/hardkernel/interfaces/odroidthings/1.0/default/OdroidThings.cpp:231:14: error: no member named 'uart_ops' in 'hardware::hardkernel::odroidthings::things_device'
mDevice->uart_ops.open(idx);
~~~~~~~ ^
vendor/hardkernel/interfaces/odroidthings/1.0/default/OdroidThings.cpp:236:14: error: no member named 'uart_ops' in 'hardware::hardkernel::odroidthings::things_device'
mDevice->uart_ops.close(idx);
~~~~~~~ ^
vendor/hardkernel/interfaces/odroidthings/1.0/default/OdroidThings.cpp:241:21: error: no member named 'uart_ops' in 'hardware::hardkernel::odroidthings::things_device'
return mDevice->uart_ops.flush(idx, direction);
~~~~~~~ ^
vendor/hardkernel/interfaces/odroidthings/1.0/default/OdroidThings.cpp:245:21: error: no member named 'uart_ops' in 'hardware::hardkernel::odroidthings::things_device'
return mDevice->uart_ops.sendBreak(idx, duration);
~~~~~~~ ^
vendor/hardkernel/interfaces/odroidthings/1.0/default/OdroidThings.cpp:249:21: error: no member named 'uart_ops' in 'hardware::hardkernel::odroidthings::things_device'
return mDevice->uart_ops.setBaudrate(idx, rate);
~~~~~~~ ^
vendor/hardkernel/interfaces/odroidthings/1.0/default/OdroidThings.cpp:253:21: error: no member named 'uart_ops' in 'hardware::hardkernel::odroidthings::things_device'
return mDevice->uart_ops.setDataSize(idx, size);
~~~~~~~ ^
vendor/hardkernel/interfaces/odroidthings/1.0/default/OdroidThings.cpp:257:21: error: no member named 'uart_ops' in 'hardware::hardkernel::odroidthings::things_device'
return mDevice->uart_ops.setHardwareFlowControl(idx, mode);
~~~~~~~ ^
vendor/hardkernel/interfaces/odroidthings/1.0/default/OdroidThings.cpp:261:21: error: no member named 'uart_ops' in 'hardware::hardkernel::odroidthings::things_device'
return mDevice->uart_ops.setParity(idx, mode);
~~~~~~~ ^
vendor/hardkernel/interfaces/odroidthings/1.0/default/OdroidThings.cpp:265:21: error: no member named 'uart_ops' in 'hardware::hardkernel::odroidthings::things_device'
return mDevice->uart_ops.setStopBits(idx, bits);
~~~~~~~ ^
vendor/hardkernel/interfaces/odroidthings/1.0/default/OdroidThings.cpp:270:44: error: no member named 'uart_ops' in 'hardware::hardkernel::odroidthings::things_device'
std::vector<uint8_t> buffer = mDevice->uart_ops.read(idx, length);
~~~~~~~ ^
vendor/hardkernel/interfaces/odroidthings/1.0/default/OdroidThings.cpp:286:21: error: no member named 'uart_ops' in 'hardware::hardkernel::odroidthings::things_device'
return mDevice->uart_ops.write(idx, buffer, length);
~~~~~~~ ^
11 errors generated.
[ 90% 99415/109527] //frameworks/base:framework d8 [common]
ninja: build stopped: subcommand failed.
23:31:23 ninja failed with: exit status 1

#### failed to build some targets (02:49:21 (hh:mm:ss)) ####

bugiii
Posts: 13
Joined: Thu Feb 27, 2020 3:04 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Android build is broken.

Post by bugiii » Sat Apr 25, 2020 6:14 am

bugiii wrote:
Fri Apr 24, 2020 2:46 pm
I checked out by March 30th and tried to build it, but no problem.

Code: Select all

repo forall -c 'git checkout `git rev-list -n1 --before="2020-03-30" HEAD`'
and

Code: Select all

make
It's a temporary solution. Perhaps if hardkernel confirms the problem, they will solve it.
But until it's solved, we need to build by the previous revision in the same way as above to be successful.

User avatar
voodik
Posts: 1810
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 35 times
Been thanked: 202 times
Contact:

Re: Android build is broken.

Post by voodik » Sat Apr 25, 2020 8:08 am

Code: Select all

repo sync hardware/libhardware
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

bugiii
Posts: 13
Joined: Thu Feb 27, 2020 3:04 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Android build is broken.

Post by bugiii » Sat Apr 25, 2020 8:47 am

voodik wrote:
Sat Apr 25, 2020 8:08 am

Code: Select all

repo sync hardware/libhardware
This is a revision conflict between two repositories in a dependent relationship and cannot be resolved in this way.
Please apply the new revision to libhardware for n2.

User avatar
codewalker
Posts: 924
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 32 times
Been thanked: 55 times
Contact:

Re: Android build is broken.

Post by codewalker » Mon May 11, 2020 11:18 am

I'm going to try to download sources and to build Android.
Let you know the result soon.

User avatar
codewalker
Posts: 924
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 32 times
Been thanked: 55 times
Contact:

Re: Android build is broken.

Post by codewalker » Mon May 11, 2020 4:06 pm

I've finished to build.
There was no problem to download code and to build.

artur_mengsk
Posts: 2
Joined: Thu May 21, 2020 11:05 pm
languages_spoken: english, russian, ukrainian
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Android build is broken.

Post by artur_mengsk » Thu May 21, 2020 11:20 pm

Hi folks,

indeed the build is broken and I've created a pull request to fix it.

https://github.com/codewalkerster/andro ... are/pull/1

Luke.go
Posts: 482
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 43 times
Been thanked: 40 times
Contact:

Re: Android build is broken.

Post by Luke.go » Fri May 22, 2020 11:30 am

artur_mengsk wrote:
Thu May 21, 2020 11:20 pm
Hi folks,

indeed the build is broken and I've created a pull request to fix it.

https://github.com/codewalkerster/andro ... are/pull/1
Please change the building branches from s922_9.0.0_master to g12_9.0.0_master. :)

artur_mengsk
Posts: 2
Joined: Thu May 21, 2020 11:05 pm
languages_spoken: english, russian, ukrainian
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Android build is broken.

Post by artur_mengsk » Fri May 22, 2020 7:00 pm

Luke.go wrote:
Fri May 22, 2020 11:30 am
artur_mengsk wrote:
Thu May 21, 2020 11:20 pm
Hi folks,

indeed the build is broken and I've created a pull request to fix it.

https://github.com/codewalkerster/andro ... are/pull/1
Please change the building branches from s922_9.0.0_master to g12_9.0.0_master. :)
https://wiki.odroid.com/odroid-n2/softw ... ng_android

Should it be like:
repo init -u https://github.com/hardkernel/android.git -b g12_9.0.0_master ?

User avatar
secuflag
Posts: 104
Joined: Sun Jun 16, 2019 12:12 am
languages_spoken: English, Italian
ODROIDs: N2 - C4
Location: Switzerland
Has thanked: 20 times
Been thanked: 55 times
Contact:

Re: Android build is broken.

Post by secuflag » Fri May 22, 2020 11:05 pm

@artur_mengsk: Yes, g12_9.0.0_master (Android 32 bit) or g12_9.0.0_64_master (Android 64 bit) .
These users thanked the author secuflag for the post:
Luke.go (Mon May 25, 2020 9:00 am)
If you like my work feel free to contribute to buy me some beers. ;)

bugiii
Posts: 13
Joined: Thu Feb 27, 2020 3:04 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Android build is broken.

Post by bugiii » Wed May 27, 2020 9:43 am

I think you should have indicated on the android build wiki page that you have changed from s922 branch to g12 branch. After looking at wiki history, I knew that the branch had changed. I also want to note the fact that N2 and C4 share the same branch and that they are separated from the lunch command.

There is no problem if I build with the current g12 branch in sync.

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest