I am getting a similar error on 

   - Mac 10.3 
   - running *Parallels (VM)*
   - *with Ubuntu 16.04*  
   - AOSP code 
   - on SDD APFS (Case-sensitive)
   

I have applied the change listed in this thread:

AOSP $ edit build/tools/ijar/zip.cc

applied changes:

  // Ensure that any buffer overflow in JarStripper will result in
  // SIGSEGV or SIGBUS by over-allocating beyond the end of the file.
  size_t mmap_length = std::min(estimated_size + sysconf(_SC_PAGESIZE),
                                (u8) std::numeric_limits<size_t>::max());
  // to build Android on VM's shared folder, add MAP_ANONYMOUS
  void *zipdata_out = mmap(NULL, mmap_length, PROT_WRITE,
                           MAP_SHARED, fd_out, 0);
                           MAP_SHARED | MAP_ANONYMOUS, fd_out, 0);



but, I still get the error:

FAILED: out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.
jar.toc 
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 
prebuilts/build-tools/linux-x86/bin/ijar 
out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar 
out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc.tmp 
) && (if cmp -s 
out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc.tmp 
out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc ; 
then rm 
out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc.tmp 
; else mv 
out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc.tmp 
out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc ; 
fi )"
output_length=5262319
Unable to open output file out/target/common/obj/JAVA_LIBRARIES/
sdk_v9_intermediates/classes.jar.toc.tmp: Invalid argument
/bin/bash: line 1: 13492 Aborted                 (core dumped) ( 
ASAN_OPTIONS=detect_leaks=0 prebuilts/build-tools/linux-x86/bin/ijar out/
target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar out/target
/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jar.toc.tmp )
[  0% 14/82674] host C++: protoc-gen-javastream <= frameworks/base/tools/
streaming_proto/string_utils.cpp
ninja: build stopped: subcommand failed.
10:17:27 ninja failed with: exit status 1
#### failed to build some targets (03:28 (mm:ss)) ####



-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to