Thank you for pointing out the makefile's bug.
The problem is $(local-intermediates-dir) should not
be used in makefiles's recipes.
LOCAL_MODULE/LOCAL_MODULE_CLASS is not
well-defined in the recipes.
2017-12-25 8:41 GMT+08:00 YoungJoon Lee <
get...@gmail.com>:
> I can build with this approach.
> Thank you very much.
>
> 2017-12-23 22:16 GMT+09:00 Mauro Rossi <
issor...@gmail.com>:
>>
>> The error is due to LOCAL_MODULE_CLASS not defines when
>> $(local-intermediates-dir) macro is expanded
>>
>> Even if LOCAL_MODULE_CLASS is defined at top level of Android.mk
>> there may conditions leading to not having it defined in the scripting
>> rules for $(busybox_autoconf_full_h):
>>
>> My distribution is Ubuntu 17.10 64bit, gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0,
>> java openjdk version "1.8.0_151"
>> and I never had this error with oreo-x86 build or nougat-x86 build
>>
>> Mauro
>>
>> Il giorno sabato 23 dicembre 2017 02:31:08 UTC+1, YoungJoon Lee ha
>> scritto:
>>>
>>> Thank you for your reply.
>>>
>>> It looks like some make file system is check result of exit status($@) of
>>> rm which is related to variables $BB_INTERMEDIATES.
>>>
>>> 'we're not seeing this build error with oreo-x86' you said. I think my
>>> build environment is strange. Now I will check bug report of related
>>> packages. Please let me know which package can be related to this issue, If
>>> you know. I will trying to check that package intensively.
>>>
>>> Thank you for your answer. Best regards.
>>>
>>> 2017년 12월 23일 토요일 오전 7시 11분 32초 UTC+9, Mauro Rossi 님의 말:
>>>>
>>>> Hi, we're not seeing this build error with oreo-x86,
>>>>
>>>> however you could try to avoid evaluating $(local-intermediates-dir)
>>>> macro at line 140,
>>>> by defining a variable BB_INTERMEDIATES to store
>>>> $(local-intermediates-dir) value.
Thanks to Mauro's patch but it's not a proper fix either.
I just realized the whole intermediates dir should not
be removed otherwise the import_includes in that dir
may be removed. It causes other issues.
I've pushed a proper fix.
Chih-Wei
Android-x86 project
http://www.android-x86.org