x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Android Build Fails for x86 Target

This appears to stem from the way the PhysX libs are compiled for x86 on Android.

  UnrealBuildTool: C:/UE4/UnrealEngine/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib/Android/x86/libPhysX3PROFILE.a(NpPhysics.cpp.o):NpPhysics.cpp:function physx::NpPhysics::createInstance(unsigned int, physx::PxFoundation&, physx::PxTolerancesScale const&, b
 MainFrameActions: Packaging (Android (ETC1)): ool, physx::PxProfileZoneManager*): error: undefined reference to '__stack_chk_fail_local'
 MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool: C:/UE4/UnrealEngine/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib/Android/x86/libPhysX3PROFILE.a(NpScene.cpp.o):NpScene.cpp:function void physx::shdfnd::sort<void*, physx::shdfnd::Less<void*>, physx::shdfnd::ReflectionAllocator<physx::Cm::Block<unsigned char, 256u> > >(void**, unsigned int, physx::shdfnd::Less<void*> const&, physx::shdfnd::ReflectionAllocator<physx::Cm::Block<unsigned char, 256u> > const&) [clone .isra.537]: error: undefined reference to '__stack_chk_fail_local'
 MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool: C:/UE4/UnrealEngine/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib/Android/x86/libPhysX3PROFILE.a(NpScene.cpp.o):NpScene.cpp:function void physx::shdfnd::sort<void*, physx::shdfnd::Less<void*>, physx::shdfnd::ReflectionAllocator<physx::Cm::Block<unsigned char, 384u> > >(void**, unsigned int, physx::shdfnd::Less<void*> const&, physx::shdfnd::ReflectionAllocator<physx::Cm::Block<unsigned char, 384u> > const&) [clone .isra.540]: error: undefined reference to '__stack_chk_fail_local'
 MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool: C:/UE4/UnrealEngine/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib/Android/x86/libPhysX3PROFILE.a(NpScene.cpp.o):NpScene.cpp:function void physx::shdfnd::sort<void*, physx::shdfnd::Less<void*>, physx::shdfnd::ReflectionAllocator<physx::Cm::B
 MainFrameActions: Packaging (Android (ETC1)): lock<unsigned char, 128u> > >(void**, unsigned int, physx::shdfnd::Less<void*> const&, physx::shdfnd::ReflectionAllocator<physx::Cm::Block<unsigned char, 128u> > const&) [clone .isra.534]: error: undefined reference to '__stack_chk_fail_local'
 MainFrameActions: Packaging (Android (ETC1)): UnrealBuildTool: clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
Product Version: UE 4.8
Tags:
more ▼

asked Jun 17 '15 at 06:21 PM in Packaging & Deployment

avatar image

ddiakopoulos
1 1 1 3

avatar image wittlief ♦♦ STAFF Jun 26 '15 at 08:51 PM

hi ddiakopoulos,

Can you attach the entirety of your failed build output logs to this thread as a txt file?

Thanks!

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

I have exactly the same issue on 4.8.3 from git. Got it while trying to make an x86 Android build on Mac OS 10.10.5 with Xcode 6.4, Android ndk-r10c. Have tried adding -fstack-protector/-fno-stack-protector to AndroidToolChain.cs and rebuilding the UBT. That didn't help at all.

more ▼

answered Aug 16 '15 at 06:15 PM

avatar image

rachmiroff
31 3 5

avatar image rachmiroff Aug 17 '15 at 12:37 PM

For debugging I've added a dirty workaround with a dummy __stack_chk_fail_local in my game module and -z muldefs linker flag in AndroidToolChain.cs for x86 (don't forget to rebuild the UBT). There're also multiple undefined reference errors for the GearVR plugin on x86 Android. Disabling the plugin helps to build the project.

avatar image Samantha Sutton ♦♦ STAFF Aug 24 '15 at 02:34 PM

Since you added in the work around and have disabled the plugin, are you still having trouble building? If so, please provide your full logs as a .txt file in order for us to assist you further.

Thanks!

avatar image rachmiroff Aug 31 '15 at 06:25 AM

With a dummy __stack_chk_fail_local and disabled plugin I was able to build my project and deploy to a device. It works fine.

(comments are locked)
10|2000 characters needed characters left

hi ddiakopoulos,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance. Thank you.

more ▼

answered Jul 01 '15 at 02:31 PM

avatar image ufna Mar 06 '18 at 01:57 PM

UE 4.18.3 has the same issue but with Google Play library

avatar image bakjos Mar 22 '18 at 08:45 PM

It's still happening on UE 4.19, I've solved this error downgrading the Google Play Games Services to the 2.1 Version replacing the android folder inside Engine\Source\ThirdParty\GooglePlay\gpg-cpp-sdk.v2.3\gpg-cpp-sdk

avatar image SimonParadis Feb 22 '19 at 02:31 PM

It seems to be my problem too. https://answers.unrealengine.com/questions/870444/view.html

What version do you download for UE Source 4.21.2?

(comments are locked)
10|2000 characters needed characters left

this is still an issue in 8.4.3 git

more ▼

answered Aug 16 '15 at 12:06 PM

avatar image

CloVeCaT
26 2 3

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question