aopp / android_build

20 stars 10 forks source link

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

Open error-try-again opened 6 years ago

error-try-again commented 6 years ago

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 5) brunch 6) 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_HOSTLEX=yes

then; make all -j4 works

zoro34 commented 6 years ago

Nexus 6p work ?

14 Ağu 2018 Sal 20:16 tarihinde lordcactus notifications@github.com şunu yazdı:

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 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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aopp/android_build/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/AbSBkdDdLLVD9R3wxAxhd9Rth_YsOvkkks5uQwYGgaJpZM4V81ru .

error-try-again commented 6 years ago

I attempted to build this from sources on hammerhead or the nexus 5. I haven't attempted to build for nexus 6p/shamu yet.

zoro34 commented 6 years ago

I'm waiting for you to run for nexus 6p maybe create a nexus6p rom for me

18 Ağu 2018 Cmt 04:49 tarihinde lordcactus notifications@github.com şunu yazdı:

I attempted to build this from sources on hammerhead or the nexus 5. I haven't attempted to build for nexus 6p/shamu yet.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aopp/android_build/issues/10#issuecomment-414024372, or mute the thread https://github.com/notifications/unsubscribe-auth/AbSBkWC4TfuhnNE-8GuulWDifl0EOsHfks5uR3KhgaJpZM4V81ru .

error-try-again commented 6 years ago

I'll update you if I can get it working. After fixing the issue I reported ^^, I ran into another bug https://github.com/aopp/android_platform/issues/10 which I haven't found a solution for yet.

surbiks commented 3 years ago

use export LC_ALL=C solved my same problem in omni rom compile time