[Android 10] AOSP LibFuzzer example (soong) build problems.

284 views
Skip to first unread message

jrw

unread,
Mar 26, 2020, 7:47:25 PM3/26/20
to Android Building
Hello,

(i also postet this in the libfuzzer google group but maybe you guys might be able to help)

i'm trying to implement a fuzzer described in [1].
When i follow the directions and try to compile the fuzzer,
i get the Error that soong does not know the module reference "cc_fuzz" which is listed in [2] as valid module.
i tried to add the missing file "fuzz.go" [3] file to the folder "android/platform/build/soong/cc/"
and added fuzz.go to the soong's folders "Android.bp" but did also result in errors.
Did i miss a crucial step or is there a reason this file is gone?
Is it recommended using the old build system or am i copying a deprecated file?

i'm using branch "android-10.0.0_r30" (Pixel 2XL)


Thanks for any help!

Hannes


Dan Willemsen

unread,
Mar 26, 2020, 9:05:08 PM3/26/20
to Android Building
That page expects that you're using AOSP master, not 10.0.0_r30, which did not yet have support for cc_fuzz (it had some support in Make instead, but I know the fuzzing tooling as been changing over time, so I don't know if there are other things on that page that may work differently as well.

The [2] module reference you're using is also coming from master, which is why cc_fuzz is showing up as valid. You can get the equivalent docs locally that are specific to your checkout by running `m soong_docs` and browsing to out/soong/docs/soong_build.html (which shouldn't include cc_fuzz).

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@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-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/cd25a98c-b5e4-4e0d-a68a-d33b394085e9%40googlegroups.com.

jrw

unread,
Mar 28, 2020, 11:36:13 AM3/28/20
to Android Building
Thanks for your response Dan,

i switched to the master branch and it's working now.
Thanks a lot !

Hannes
Reply all
Reply to author
Forward
0 new messages