AOSP sepolicy_tests_intermediates/sepolicy_tests error on building using MAC Catalina

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

AOSP sepolicy_tests_intermediates/sepolicy_tests error on building using MAC Catalina

Dr. Dhanyu Eshaka
After updating MAC OSX to 10.15.1 (Catalina) I get the following errors on sepolicy.

The target build device is Pixel 3a XL ( android-10.0.0_r10

I need to resolve this ASAP. Any help would be appreciated.

[ 77% 78861/101937] build out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests

FAILED: out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests

/bin/bash -c "(out/host/darwin-x86/bin/sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib  -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts  -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts  -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy ) && (touch out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests )"

/bin/bash: line 1:  8780 Segmentation fault: 11  ( out/host/darwin-x86/bin/sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy )

06:54:50 ninja failed with: exit status 1

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/3abf0458-046d-4e69-8faf-fa483941e10b%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: AOSP sepolicy_tests_intermediates/sepolicy_tests error on building using MAC Catalina

Jianwu Gao
Hi 
I got same errors,not fixed yet
Have you fix this issue?

Dr. Dhanyu Eshaka <[hidden email]> 于2019年11月18日周一 上午1:23写道:
After updating MAC OSX to 10.15.1 (Catalina) I get the following errors on sepolicy.

The target build device is Pixel 3a XL ( android-10.0.0_r10

I need to resolve this ASAP. Any help would be appreciated.

[ 77% 78861/101937] build out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests

FAILED: out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests

/bin/bash -c "(out/host/darwin-x86/bin/sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib  -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts  -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts  -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy ) && (touch out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests )"

/bin/bash: line 1:  8780 Segmentation fault: 11  ( out/host/darwin-x86/bin/sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy )

06:54:50 ninja failed with: exit status 1

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/3abf0458-046d-4e69-8faf-fa483941e10b%40googlegroups.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAPDXgOt0NEhCmrn501JCpWyA8bWiPiQOkrUA1MQmcycdkNpAug%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: AOSP sepolicy_tests_intermediates/sepolicy_tests error on building using MAC Catalina

Dr. Dhanyu Eshaka
No moved back to Mojave ..... MAC OSX 10.14   
I think those errors has to do with Python compatibility issue or libsepolwrap.dylib conflict with Catalina 

Please let me know if you fix this. I am curious to know

- Dhanyu



On Fri, Nov 22, 2019 at 7:11 AM Jianwu Gao <[hidden email]> wrote:
Hi 
I got same errors,not fixed yet
Have you fix this issue?

Dr. Dhanyu Eshaka <[hidden email]> 于2019年11月18日周一 上午1:23写道:
After updating MAC OSX to 10.15.1 (Catalina) I get the following errors on sepolicy.

The target build device is Pixel 3a XL ( android-10.0.0_r10

I need to resolve this ASAP. Any help would be appreciated.

[ 77% 78861/101937] build out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests

FAILED: out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests

/bin/bash -c "(out/host/darwin-x86/bin/sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib  -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts  -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts  -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy ) && (touch out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests )"

/bin/bash: line 1:  8780 Segmentation fault: 11  ( out/host/darwin-x86/bin/sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy )

06:54:50 ninja failed with: exit status 1

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/3abf0458-046d-4e69-8faf-fa483941e10b%40googlegroups.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAPDXgOt0NEhCmrn501JCpWyA8bWiPiQOkrUA1MQmcycdkNpAug%40mail.gmail.com.


--
~Life is beautiful~

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAC7DM53A8gw-4t-Lf5zTs-yrc_mJudoOv1ZPs7kq-z8Zvp3e8A%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: AOSP sepolicy_tests_intermediates/sepolicy_tests error on building using MAC Catalina

Dan Willemsen-2
If you're trying to build android 10 (and not master), your best bet would be to run a VM with Linux in order to build -- it very well may be a faster build, and it will be a lot closer to what actually ships. The Mac build works well enough for development, but it's not as complete as the Linux build, and tends to require older Mac versions (the Mac version that was out when the Android version was being developed -- in this case, Android 10 should work fine with 10.14, but not 10.15).

It looks like it's crashing because libc++ is being embedded twice into the process (once as a shared library, then statically in the dlopened libsepolwrap.so). I've got a fix here: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1173528

- Dan

On Sat, Nov 23, 2019 at 6:15 PM Dr. Dhanyu Eshaka <[hidden email]> wrote:
No moved back to Mojave ..... MAC OSX 10.14   
I think those errors has to do with Python compatibility issue or libsepolwrap.dylib conflict with Catalina 

Please let me know if you fix this. I am curious to know

- Dhanyu



On Fri, Nov 22, 2019 at 7:11 AM Jianwu Gao <[hidden email]> wrote:
Hi 
I got same errors,not fixed yet
Have you fix this issue?

Dr. Dhanyu Eshaka <[hidden email]> 于2019年11月18日周一 上午1:23写道:
After updating MAC OSX to 10.15.1 (Catalina) I get the following errors on sepolicy.

The target build device is Pixel 3a XL ( android-10.0.0_r10

I need to resolve this ASAP. Any help would be appreciated.

[ 77% 78861/101937] build out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests

FAILED: out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests

/bin/bash -c "(out/host/darwin-x86/bin/sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib  -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts  -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts  -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy ) && (touch out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests )"

/bin/bash: line 1:  8780 Segmentation fault: 11  ( out/host/darwin-x86/bin/sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy )

06:54:50 ninja failed with: exit status 1

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/3abf0458-046d-4e69-8faf-fa483941e10b%40googlegroups.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAPDXgOt0NEhCmrn501JCpWyA8bWiPiQOkrUA1MQmcycdkNpAug%40mail.gmail.com.


--
~Life is beautiful~

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAC7DM53A8gw-4t-Lf5zTs-yrc_mJudoOv1ZPs7kq-z8Zvp3e8A%40mail.gmail.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CALQgHd%3DWYrzesgtLBeboNXPw8xNXBGCP%3DpqVzxLkLcPHvWFoVA%40mail.gmail.com.