Re: [android-building] ERROR in building! clang.real: error: linker command failed with exit code 1

2017-10-25 Thread Colin Cross
There is a bad object in your ccache directory (specified with the
CCACHE_DIR environment variable), either look for 0 byte files in there and
remove them or wipe the whole thing.

On Wed, Oct 25, 2017 at 12:12 AM, Sanjay Shrestha 
wrote:

> [ 94% 77921/82366] target SharedLib: libldnhncr_32
> (/home/yaznas/validus/out/target/product/bullhead/obj_
> arm/SHARED_LIBRARIES/libldnhncr_intermediates/LINKED/libldnhncr.so)
> FAILED: /home/yaznas/validus/out/target/product/bullhead/obj_
> arm/SHARED_LIBRARIES/libldnhncr_intermediates/LINKED/libldnhncr.so
> /bin/bash -c "prebuilts/misc/linux-x86/ccache/ccache
> prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -nostdlib
> -Wl,-soname,libldnhncr.so -Wl,--gc-sections -shared
> /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/crtbegin_so.o
> /home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/
> libldnhncr_intermediates/EffectLoudnessEnhancer.o
> /home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/
> libldnhncr_intermediates/dsp/core/dynamic_range_compression.o
> -Wl,--whole-archive  -Wl,--no-whole-archive   /home/yaznas/validus/out/
> target/product/bullhead/obj_arm/STATIC_LIBRARIES/
> libunwind_llvm_intermediates/libunwind_llvm.a  /home/yaznas/validus/out/
> target/product/bullhead/obj_arm/STATIC_LIBRARIES/libcompiler_rt-extras_
> intermediates/libcompiler_rt-extras.a   /home/yaznas/validus/out/
> target/product/bullhead/obj_arm/STATIC_LIBRARIES/libatomic_intermediates/libatomic.a
> /home/yaznas/validus/out/target/product/bullhead/obj_
> arm/STATIC_LIBRARIES/libgcc_intermediates/libgcc.a -Wl,-z,noexecstack
> -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel
> -Wl,--fatal-warnings -Wl,--icf=safe -Wl,--hash-style=gnu
> -Wl,--no-undefined-version -Wl,--no-fix-cortex-a8   -target
> arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/
> arm-linux-androideabi-4.9/arm-linux-androideabi/bin
> -Wl,--exclude-libs,libunwind_llvm.a -Wl,--no-undefined
> /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libcutils.so
> /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/liblog.so
> /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libc++.so
> /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libdl.so
> /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libc.so
> /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libm.so -o
> /home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/
> libldnhncr_intermediates/LINKED/libldnhncr.so /home/yaznas/validus/out/
> target/product/bullhead/obj_arm/lib/crtend_so.o"
> prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld:
> error: /home/yaznas/validus/out/target/product/bullhead/obj_
> arm/SHARED_LIBRARIES/libldnhncr_intermediates/EffectLoudnessEnhancer.o:
> file is empty
> prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld:
> error: /home/yaznas/validus/out/target/product/bullhead/obj_
> arm/SHARED_LIBRARIES/libldnhncr_intermediates/dsp/core/dynamic_range_compression.o:
> file is empty
> clang.real: error: linker command failed with exit code 1 (use -v to see
> invocation)
> [ 94% 77922/82366] target SharedLib: libbundlewrapper_32
> (/home/yaznas/validus/out/target/product/bullhead/obj_
> arm/SHARED_LIBRARIES/libbundlewrapper_intermediates/LINKED/
> libbundlewrapper.so)
> [ 94% 77923/82366] target StaticExecutable: simpleperf_32
> (/home/yaznas/validus/out/target/product/bullhead/obj_
> arm/EXECUTABLES/simpleperf_intermediates/LINKED/simpleperf32)
> [ 94% 77924/82366] ld /home/yaznas/validus/out/soong/.intermediates/
> frameworks/compile/libbcc/bcinfo/libbcinfo/android_arm_
> armv7-a-neon_cortex-a53.a57_shared_core/libbcinfo.so
> [ 94% 77925/82366] ld /home/yaznas/validus/out/
> soong/.intermediates/external/llvm/libLLVM/android_arm64_
> armv8-a_cortex-a53_shared_core/libLLVM.so
> ninja: build stopped: subcommand failed.
> 12:39:57 ninja failed with: exit status 1
> make: *** [build/core/main.mk:21: run_soong_ui] Error 1
>
>
> This is the error im facing while trying to build for bullhead. Any
> solutions?
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this 

[android-building] Re: Emulator black screen after make -j16

2017-10-25 Thread Seth okthen
Which version of Android you use? Also which version of Ubuntu you use? 
Please let me know.

On Wednesday, 25 October 2017 10:05:48 UTC-5, aadi wrote:
>
> Hello, 
>
> I downloaded the source and ran . build/envsetup.sh and then lunch and 
> selected aosp-arm-eng. 
> After that make command was successful and then I ran emulator, it opened 
> but nothing happened, I waited for 20 mins. 
>
> I also installed latest Android studio and created AVD on x86 image of 
> oreo and from there it runs fine but AOSP doesn't seem to load the system 
> image in it. 
>
> Any help would be appreciated.

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


[android-building] Soong and cc_prebuilt_library_static?

2017-10-25 Thread Michael Lekman
Hi,

I have tried to use prebuilt static library with the new Soong build 
system, but the module that uses the prebuilt static lib fails to compile. 

cc_prebuilt_library_static {
name: "my_static_lib",
defaults: ["my-static-lib-defaults"],
compile_multilib: "both",
multilib: {
lib32: {
srcs: ["prebuilts/static-lib/lib/my_static_lib.a"],
},
lib64: {
srcs: ["prebuilts/static-lib/lib64/my_static_lib.a"],
},
},
}

For example use it from system.core/debuggerd.

// Core implementation, linked into libdebuggerd_handler and the dynamic 
linker.
cc_library_static {
name: "libdebuggerd_handler_core",
defaults: ["debuggerd_defaults"],
srcs: ["handler/debuggerd_handler.cpp"],

whole_static_libs: [
"libc_logging",
"libdebuggerd",
"my_static_lib",
],
include_dirs: ["vendor/lepe/my_static_lib/include"],
export_include_dirs: ["include"],
}


Build log:

FAILED: 
out/soong/.intermediates/system/core/debuggerd/crasher/static_crasher/android_arm64_armv8-a_core/static_crasher64
 

prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ 
out/soong/.intermediates/bionic/libc/crtbegin_static/android_arm64_armv8-a_core/crtbegin_static.o
 
@out/soong/.intermediates/system/core/debuggerd/crasher/static_crasher/android_arm64_armv8-a_core/static_crasher64.rsp
 
out/soong/.intermediates/system/core/debuggerd/libdebuggerd_handler/android_arm64_armv8-a_static_core/libdebuggerd_handler.a
 
out/soong/.intermediates/system/core/base/libbase/android_arm64_armv8-a_static_core/libbase.a
 
out/soong/.intermediates/system/core/liblog/liblog/android_arm64_armv8-a_static_core/liblog.a
 
out/soong/.intermediates/bionic/libc/seccomp/libseccomp_policy/android_arm64_armv8-a_static_core/libseccomp_policy.a
 
out/soong/.intermediates/external/libcxx/libc++_static/android_arm64_armv8-a_static_core/libc++_static.a
 
out/soong/.intermediates/bionic/libm/libm/android_arm64_armv8-a_static_core/libm.a
 
out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_static_core/libc.a
 
out/soong/.intermediates/bionic/libdl/libdl/android_arm64_armv8-a_static_core/libdl.a
 
-Wl,--start-group 
out/soong/.intermediates/bionic/libc/libc/android_arm64_armv8-a_static_core/libc.a
 
out/soong/.intermediates/external/compiler-rt/libcompiler_rt-extras/android_arm64_armv8-a_static_core/libcompiler_rt-extras.a
 
out/soong/.intermediates/build/soong/libatomic/android_arm64_armv8-a_static_core/libatomic.a
 
out/soong/.intermediates/build/soong/libgcc/android_arm64_armv8-a_static_core/libgcc.a
 
-Wl,--end-group 
out/soong/.intermediates/bionic/libc/crtend_android/android_arm64_armv8-a_core/obj/bionic/libc/arch-common/bionic/crtend.o
 
-o 
out/soong/.intermediates/system/core/debuggerd/crasher/static_crasher/android_arm64_armv8-a_core/static_crasher64
 
-target aarch64-linux-android 
-Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin
 
-Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now 
-Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings 
-Wl,-maarch64linux -Wl,--hash-style=gnu -Wl,--fix-cortex-a53-843419 
-fuse-ld=gold -Wl,--icf=safe -Wl,--no-undefined-version  -static -nostdlib 
-Bstatic -Wl,--gc-sections
system/core/debuggerd/handler/debuggerd_handler.cpp:376: error: undefined 
reference to 'MY_STATIC_LIB::do_something(void)'
clang.real: error: linker command failed with exit code 1 (use -v to see 
invocation)

my_static_lib.a is not included when compiling. I had to replace it with 
cc_library_static 
and add the source files.

Is not cc_prebuilt_library_static supported?

/Michael

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


[android-building] ERROR in building! clang.real: error: linker command failed with exit code 1

2017-10-25 Thread Sanjay Shrestha
[ 94% 77921/82366] target SharedLib: libldnhncr_32 
(/home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libldnhncr_intermediates/LINKED/libldnhncr.so)
FAILED: 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libldnhncr_intermediates/LINKED/libldnhncr.so
 
/bin/bash -c "prebuilts/misc/linux-x86/ccache/ccache 
prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -nostdlib 
-Wl,-soname,libldnhncr.so -Wl,--gc-sections -shared 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/crtbegin_so.o 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libldnhncr_intermediates/EffectLoudnessEnhancer.o
 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libldnhncr_intermediates/dsp/core/dynamic_range_compression.o
 
-Wl,--whole-archive  -Wl,--no-whole-archive  
 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/STATIC_LIBRARIES/libunwind_llvm_intermediates/libunwind_llvm.a
  
/home/yaznas/validus/out/target/product/bullhead/obj_arm/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a
  
 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/STATIC_LIBRARIES/libatomic_intermediates/libatomic.a
 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/STATIC_LIBRARIES/libgcc_intermediates/libgcc.a
 
-Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 
-Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--icf=safe 
-Wl,--hash-style=gnu -Wl,--no-undefined-version -Wl,--no-fix-cortex-a8  
 -target arm-linux-androideabi 
-Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin
 
-Wl,--exclude-libs,libunwind_llvm.a -Wl,--no-undefined 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libcutils.so 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/liblog.so 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libc++.so 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libdl.so 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libc.so 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libm.so -o 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libldnhncr_intermediates/LINKED/libldnhncr.so
 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/crtend_so.o"
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld:
 
error: 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libldnhncr_intermediates/EffectLoudnessEnhancer.o:
 
file is empty
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld:
 
error: 
/home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libldnhncr_intermediates/dsp/core/dynamic_range_compression.o:
 
file is empty
clang.real: error: linker command failed with exit code 1 (use -v to see 
invocation)
[ 94% 77922/82366] target SharedLib: libbundlewrapper_32 
(/home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libbundlewrapper_intermediates/LINKED/libbundlewrapper.so)
[ 94% 77923/82366] target StaticExecutable: simpleperf_32 
(/home/yaznas/validus/out/target/product/bullhead/obj_arm/EXECUTABLES/simpleperf_intermediates/LINKED/simpleperf32)
[ 94% 77924/82366] ld 
/home/yaznas/validus/out/soong/.intermediates/frameworks/compile/libbcc/bcinfo/libbcinfo/android_arm_armv7-a-neon_cortex-a53.a57_shared_core/libbcinfo.so
[ 94% 77925/82366] ld 
/home/yaznas/validus/out/soong/.intermediates/external/llvm/libLLVM/android_arm64_armv8-a_cortex-a53_shared_core/libLLVM.so
ninja: build stopped: subcommand failed.
12:39:57 ninja failed with: exit status 1
make: *** [build/core/main.mk:21: run_soong_ui] Error 1


This is the error im facing while trying to build for bullhead. Any 
solutions?

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


[android-building] Emulator black screen after make -j16

2017-10-25 Thread aadi
Hello, 

I downloaded the source and ran . build/envsetup.sh and then lunch and selected 
aosp-arm-eng.
After that make command was successful and then I ran emulator, it opened but 
nothing happened, I waited for 20 mins.

I also installed latest Android studio and created AVD on x86 image of oreo and 
from there it runs fine but AOSP doesn't seem to load the system image in it.

Any help would be appreciated.

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


[android-building] Re: AOSP 8 build - Jack internal unknown error 415

2017-10-25 Thread ezio84
This fixes the error too:
https://android.googlesource.com/platform/prebuilts/sdk/+/f54a24109b1ac7f114b13895b44fbeb692a5de02

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


[android-building] How to build and run support7Demos

2017-10-25 Thread 龚泽龙
 How to build and run support7Demos 

I clone the https://android.googlesource.com/platform/frameworks/support/ repo 
and try to run the support demos. 

/Users/gongzelong/Android/githubrepo/support 

[core] 
repositoryformatversion = 0 
filemode = true 
bare = false 
logallrefupdates = true 
ignorecase = true 
precomposeunicode = true 
[remote "origin"] 
url = https://android.googlesource.com/platform/frameworks/support/ 
fetch = +refs/heads/*:refs/remotes/origin/* 
[branch "master"] 
remote = origin 
merge = refs/heads/master 
".git/config" 13L, 331C 

I import the project: 
/Users/gongzelong/Android/githubrepo/support/samples/Support7Demos 

When I build the project, it fails with the following log. 

Error:Could not find com.android.tools.build:gradle:3.0.0-alpha9. 
Searched in the following locations: 

file:/Users/gongzelong/Android/prebuilts/gradle-plugin/com/android/tools/build/gradle/3.0.0-alpha9/gradle-3.0.0-alpha9.pom
 


file:/Users/gongzelong/Android/prebuilts/gradle-plugin/com/android/tools/build/gradle/3.0.0-alpha9/gradle-3.0.0-alpha9.jar
 


file:/Users/gongzelong/Android/prebuilts/tools/common/m2/repository/com/android/tools/build/gradle/3.0.0-alpha9/gradle-3.0.0-alpha9.pom
 


file:/Users/gongzelong/Android/prebuilts/tools/common/m2/repository/com/android/tools/build/gradle/3.0.0-alpha9/gradle-3.0.0-alpha9.jar
 


file:/Users/gongzelong/Android/prebuilts/tools/common/m2/internal/com/android/tools/build/gradle/3.0.0-alpha9/gradle-3.0.0-alpha9.pom
 


file:/Users/gongzelong/Android/prebuilts/tools/common/m2/internal/com/android/tools/build/gradle/3.0.0-alpha9/gradle-3.0.0-alpha9.jar
 


file:/Users/gongzelong/Android/prebuilts/maven_repo/android/com/android/tools/build/gradle/3.0.0-alpha9/gradle-3.0.0-alpha9.pom
 


file:/Users/gongzelong/Android/prebuilts/maven_repo/android/com/android/tools/build/gradle/3.0.0-alpha9/gradle-3.0.0-alpha9.jar
 

Required by: 
project : 


I searched a lot and still do not know why. 

https://stackoverflow.com/questions/33293283/cannot-build-support7demos-on-recent-android-studio-install-on-windows

Do not know what this post means. 

Any help is appreciated. 

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