Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got build error wit buildToolsVersion "19.0.1" #22

Closed
alexnavarro opened this issue Apr 12, 2014 · 5 comments
Closed

I got build error wit buildToolsVersion "19.0.1" #22

alexnavarro opened this issue Apr 12, 2014 · 5 comments

Comments

@alexnavarro
Copy link

Hi,

I have to change the buildToolsVersion of stackblur to "19.0.3" to build success. Any body have idea why its doesn't work with "19.0.1".

Thanks.

@kikoso
Copy link
Owner

kikoso commented Apr 12, 2014

Hello @alexnavarro ,

Can you provide any details about the error message you get?

@alexnavarro
Copy link
Author

Its prompt

:submodules:android-stackblur:StackBlur:compileReleaseRenderscript

E/bcc ( 3121): Failed to load bitcode from path /Applications/Android
Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/armeabi-v7a/libclcore.bc!
(No such file or directory)

E/bcc ( 3122): Failed to load bitcode from path /Applications/Android
Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/mips/libclcore.bc!
(No such file or directory)

E/bcc ( 3122): Failed to load Renderscript library
'/Applications/Android
Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/mips/libclcore.bc' to
link!

E/bcc ( 3123): Failed to load bitcode from path /Applications/Android
Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/x86/libclcore.bc! (No
such file or directory)

E/bcc ( 3122): Failed to link script
'/Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/rs/release/obj/mips/blur.o'
with Renderscript runtime!

E/bcc ( 3121): Failed to load Renderscript library
'/Applications/Android
Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/armeabi-v7a/libclcore.bc'
to link!

Failed to compile script!

E/bcc ( 3123): Failed to load Renderscript library
'/Applications/Android
Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/x86/libclcore.bc' to
link!

E/bcc ( 3121): Failed to link script
'/Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/rs/release/obj/armeabi-v7a/blur.o'
with Renderscript runtime!

E/bcc ( 3123): Failed to link script
'/Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/rs/release/obj/x86/blur.o'
with Renderscript runtime!

Failed to compile script!

Failed to compile script!

:submodules:android-stackblur:StackBlur:compileReleaseRenderscript FAILED

FAILURE: Build failed with an exception.

  • What went wrong:

Execution failed for task
':submodules:android-stackblur:StackBlur:compileReleaseRenderscript'.

com.android.ide.common.internal.LoggedErrorException: Failed to run
command:

/Applications/Android Studio.app/sdk/build-tools/19.0.1/bcc_compat -O3 -o
/Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/rs/release/obj/mips/blur.o
-fPIC -shared -rt-path /Applications/Android
Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/mips/libclcore.bc
-mtriple mipsel-unknown-linux
/Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/res/rs/release/raw/blur.bc

Error Code:

1

Output:

E/bcc ( 3122): Failed to load bitcode from path /Applications/Android
Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/mips/libclcore.bc!
(No such file or directory)

E/bcc ( 3122): Failed to load Renderscript library
'/Applications/Android
Studio.app/sdk/build-tools/19.0.1/renderscript/lib/bc/mips/libclcore.bc' to
link!

E/bcc ( 3122): Failed to link script
'/Users/alexandrenavarro/git/compshop-android/submodules/android-stackblur/StackBlur/build/rs/release/obj/mips/blur.o'
with Renderscript runtime!

Failed to compile script!

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output.

BUILD FAILED

After I changed the buildToolsVersion to "19.0.3" in the stackblur its
works.

Cheers.

Alexandre.

On Sat, Apr 12, 2014 at 5:54 PM, Enrique López Mañas <
notifications@github.com> wrote:

Hello @alexnavarro https://github.com/alexnavarro ,

Can you provide any details about the error message you get?

Reply to this email directly or view it on GitHubhttps://github.com//issues/22#issuecomment-40291530
.

@Olaman
Copy link

Olaman commented Apr 21, 2014

I got the erros when import this lib in gradle.

Error:Execution failed for task ':StackBlur:compileReleaseRenderscript'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4.2\bcc_compat.exe -O3 -o E:\OpenSource\test\MyApplication3\StackBlur\build\rs\release\obj\mips\blur.o -fPIC -shared -rt-path C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4.2\renderscript\lib\bc\mips\libclcore.bc -mtriple mipsel-unknown-linux E:\OpenSource\test\MyApplication3\StackBlur\build\res\rs\release\raw\blur.bc
Error Code:
1
Output:
E/bcc ( 5324): Failed to load bitcode from path C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4.2\renderscript\lib\bc\mips\libclcore.bc! (系统找不到指定的路径。)
E/bcc ( 5324): Failed to load Renderscript library 'C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4.2\renderscript\lib\bc\mips\libclcore.bc' to link!
E/bcc ( 5324): Failed to link script 'E:\OpenSource\test\MyApplication3\StackBlur\build\rs\release\obj\mips\blur.o' with Renderscript runtime!
Failed to compile script!

@spirosoik
Copy link

I have the same issue! Any news for this?

@kikoso
Copy link
Owner

kikoso commented Apr 24, 2014

Hello,

Seems that from 19.0.1 there has been several releases of the Build Tools regarding RenderScript. You can see the release log here:

http://developer.android.com/tools/revisions/build-tools.html

My recommendation at this point is to use the last version of the build tools, keeping in mind that 19.0.x versions have problems with NDK and RenderScript.

@kikoso kikoso closed this as completed Apr 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants