Re: [android-building] Soong errors while compiling.

2017-09-10 Thread Colin Cross
The cause should be somewhere above in the form:
warning:  does not match between Make and Soong:

On Sat, Sep 9, 2017 at 5:36 AM, Januszek  wrote:

> Hello, I am trying to build Android 8.0. After I ran brunch I saw the
> following errors:
>
> error: Soong variable check failed.
> 14:18:09 ckati failed with: exit status 1
> build/core/main.mk:21: target 'run_soong_ui' recipe for target
> 'run_soong_ui' failed
> make: *** [run_soong_ui] Error 1
>
> Anyone Can help? I can't find solution.
>
> --
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


[android-building] Soong errors while compiling.

2017-09-10 Thread Januszek
Hello, I am trying to build Android 8.0. After I ran brunch I saw the 
following errors: 

error: Soong variable check failed.
14:18:09 ckati failed with: exit status 1
build/core/main.mk:21: target 'run_soong_ui' recipe for target 
'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

Anyone Can help? I can't find solution. 

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


[android-building] Re: Mac os error in make -j8

2017-09-10 Thread aadi


This time this command ran successfuly :

make -j8 && echo second full make succeeded | tee -a /tmp/log


Warning: The kernel may continue to use old or deleted partitions.

You should reboot or remove the drive.

The operation has completed successfully.


 build completed successfully (01:36:48 (hh:mm:ss)) 


second full make succeeded



And 


cat /tmp/log

adityas-Mac-Pro:android aditya$ cat /tmp/log

second make nothing succeeded

full make succeeded

second full make succeeded

test complete


Every test was successful 


And I wanted to build otatools for making my device tree but I guess I’ll 
try it on linux 


On Saturday, September 9, 2017 at 1:44:19 AM UTC+5:30, jeffry...@google.com 
wrote:
>
> You can check how many files are currently open before running the Android 
> build to see if that's the cause. You can check that by doing
>
> lsof | wc -l
>
> You could also run this to clarify under which circumstances it fails:
>
> rm -f /tmp/log
> echo starting test | tee -a /tmp/log
> echo initial number of previously open files in system: `lsof | wc -l` | 
> tee -a /tmp/log
> make -j8 nothing && echo make nothing with existing state succeeded | tee 
> -a /tmp/log
> rm -rf out && make -j8 nothing && echo make nothing with empty out 
> succeeded | tee -a /tmp/log
> make -j8 nothing && echo second make nothing succeeded | tee -a /tmp/log
> make -j8 && echo full make succeeded | tee -a /tmp/log
> make -j8 && echo second full make succeeded | tee -a /tmp/log
> echo test complete | tee -a /tmp/log
> echo results are
> cat /tmp/log
>
> My guess is that even `rm -rf out && make -j nothing` fails, but the above 
> should clarify.
>
> Unfortunately enabling ota_tools isn't going to work on its own because it 
> depends on some things that aren't supported on Mac. That's probably 
> sufficiently unrelated to warrant a new discussion thread at least. You'll 
> probably want to elaborate on what you'd like it for.
>
> On Friday, September 8, 2017 at 8:30:11 AM UTC-7, aadi wrote:
>>
>> I deleted everything and reinstalled my Mac and re synced everything
>>
>>
>> Now when I run - mv out/.module_paths /tmp && make -j8 nothing && make 
>> -j8 nothing && make -j8
>>
>>
>> It says :
>>
>> mv: rename out/.module_paths to /tmp/.module_paths: No such file or 
>> directory
>>
>>
>> And repo status -j8 shows :
>>
>>
>> adityas-Mac-Pro:android aditya$ repo status -j8
>>
>> *project build/make/ *(*** NO BRANCH ***)
>>
>>  -- .DS_Store
>>
>>
>> And yes I previously changed build_ota_package := false to true
>>
>>
>> My lunch command was asp_arm_eng
>>
>>
>>
>> On Thursday, September 7, 2017 at 2:38:10 AM UTC+5:30, 
>> jeffry...@google.com wrote:
>>>
>>> Hmm it hasn’t failed yet on my system so I’ll need some more help 
>>> reproducing it.
>>>
>>>
>>> When you run
>>>
>>> mv out/.module_paths /tmp && make -j8 nothing && make -j8 nothing && 
>>> make -j8
>>>
>>>
>>> , does it do any successful builds, or is it the first `make -j8 
>>> nothing` that fails?
>>>
>>>
>>> Some more things we can double check:
>>>
>>>
>>> What does `repo status -j8` say - does it indicate any changes?
>>>
>>> Also, if you do
>>>
>>>
>>> cd .repo/manifests && git status
>>>
>>>
>>> which version does it give? For me it gives 
>>> 31babfb21d81098c3c3e60008074db7aef8b91f3
>>>
>>>
>>> For the part about the otatools, did you do anything special to enable 
>>> it?
>>>
>>> Inside build/core/Makefile , there is some text that says
>>>
>>>
>>> ifeq ($(BUILD_OS),darwin)
>>>
>>> build_ota_package := false
>>>
>>> endif
>>>
>>>
>>> so on a Mac the error is supposed to be
>>>
>>>
>>> ninja: error: unknown target 'otatools', did you mean 'tools'?
>>>
>>> 13:58:34 ninja failed with: exit status 
>>>
>>>
>>> What was your lunch command (for example `lunch aosp_arm-eng`)?
>>>
>>> On Wednesday, September 6, 2017 at 10:08:56 AM UTC-7, aadi wrote:

 when i run the command mv out/.module_paths /tmp && make -j8 nothing && 
 make -j8 nothing && make -j8

 same error comes on the screen

 and i did

 hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 
 150g ~/android.dmg && hdiutil attach ~/android.dmg -mountpoint 
 /Volumes/android


 and when i run make -j8 otatools it shows me error :


 ninja: error: 'out/host/darwin-x86/bin/make_f2fs', needed by 
 'otatools', missing and no known rule to make it








 On Wednesday, September 6, 2017 at 12:12:50 AM UTC+5:30, 
 jeffry...@google.com wrote:
>
> Hey thanks for reporting this.
>
>
> I’ll see if I can reproduce it. What did you do for setting up a 
> case-sensitive filesystem on the Mac - was it 
>
>
> hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 
> 40g ~/android.dmg && hdiutil attach ~/android.dmg -mountpoint 
> /Volumes/android
>
>
> (from