Skip to content

Hammerhead build from aopp sources fails; policy_scan.cpp #10

Description

@error-try-again

The issue:
build/core/binary.mk:575: recipe for target '/home/user/WORKING/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp' failed
make: *** [/home/user/WORKING/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Aborted (core dumped)
make: *** Waiting for unfinished jobs....

The error I experienced happened right before the build crashed, I did some research on google and found a reference to a similar error: https://translate.google.com/translate?hl=en&sl=ru&u=https://4pda.ru/forum/index.php%3Fshowtopic%3D636604%26st%3D1580&prev=search

and here:
https://bbs.archlinux.org/viewtopic.php?id=201281

Steps I took to recreate:

  1. repo init -u git@github.com:aopp/android_platform.git -b px-0.1
  2. repo sync -f
  3. . build/envsetup.sh
  4. brunch
  5. aopp_hammerhead-user

Temporary solution:
moved /prebuilts/misc/linux-x86/flex/flex-2.5.39 from aosp hammerhead sources that I successfully built earlier to the directory aopp/prebuilts/misc/linux-x86/flex/.

and; export USE_HOST_LEX=yes

then; make all -j4 works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions