1

I've been trying to compile AOSP for Xperia Z3+/Z4 D6533 (kitakami-ivy, ivy-dsds). After deleting sony-oss and moving toolbox to the out/target/.../utilities/toybox, I finally got the build to compile. That is, until this:

[ 28% 14657/50913] build out/target/product/ivy/root/init.real

FAILED: /bin/bash -c "(cp out/target/product/ivy/utilities/tooybox out/target/product/ivy/root/sbin/toybox_init) && (cp out/target/product/ivy/utilities/keycheck out/target/product/ivy/root/sbin/keycheck) && (cp out/target/product/ivy/utilities/init_sony out/target/product/ivy/root/sbin/init_sony) && (if [ ! -L out/target/product//ivy/root/init ]; the echo \"/init out/target/product/ivy/root/init isn't a symlink\"; mv out/target/product/ivy/root/init out/target/product/ivy/root/init.real; ln -s sbin/init_sony/target/product/ivy/root/init; else echo \"/init out/target/product/ivy/root/init is already a symlink\"; fi )"

After that, Jack starts and build/core/ninja.mk:148 stops build with error 1. I'm out of ideas as this issue has never been seen on the web before. Any help? Thanks in advance!

Extra details in case it's necessary: Ubuntu 16.04.1 LTS (Gnome instead of Unity), kernel 4.4.0.57 OpenJDK 8 Update 111

user166493
  • 11
  • 3
  • What is the error message from this command? That should give you a hint what's wrong. The error message might be above this line. – Marek Pola Jan 12 '17 at 17:46
  • I don't understand what it's saying though. It won't copy a bunch of files, and at the same time it did not echo the symlink message. So what is wrong here? – user166493 Jan 13 '17 at 00:13
  • Run "make" with one thread only, then you'll see the error message more close to the fail message. If the copy command fails, there must be an error message e.g. "file not found" or "permission denied" etc. – Marek Pola Jan 14 '17 at 14:46
  • cp: omitting directory 'out/target/product/ivy/utilities/toybox' – user166493 Jan 17 '17 at 05:23
  • In the first cp, it says "tooybox" and not "toybox". Why? – Marek Pola Jan 18 '17 at 17:03
  • I typed it out on my laptop instead of copy-paste since my desktop was running something at the time. x) – user166493 Jan 18 '17 at 18:32
  • As you may know, the cp command without parameter "-r" only copies regular files, not directories. "Omitting directory" means exactly that. Just an idea. Good luck! – Marek Pola Jan 19 '17 at 09:11
  • Sony fixed it in a patch. I guess they fixed the cp -r issue then. Thanks for your help! :) – user166493 Jan 20 '17 at 00:31

0 Answers0