Public bug reported:

android/build/core/combo/TARGET_linux-x86.mk defines the default set of
CFLAGS used by the build, and "-fstack-protector" is one of them.

Unfortunately the build fails if this option is enabled, with the following 
error:
target StaticExecutable: recovery 
(/home/rsalveti/projects/phablet/android/build/phablet/out/target/product/generic_x86/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery)
bootable/recovery/recovery.c:305: error: undefined reference to 
'__stack_chk_fail_local'
bootable/recovery/recovery.c:367: error: undefined reference to 
'__stack_chk_fail_local'
bootable/recovery/recovery.c:458: error: undefined reference to 
'__stack_chk_fail_local'
bootable/recovery/recovery.c:271: error: undefined reference to 
'__stack_chk_fail_local'

As a workaround, this flag was disabled in the android package (needs to
be reverted once this bug is fixed).

** Affects: gcc-i686-linux-android (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1302799

Title:
  Android build fails if -fstack-protector is used in
  TARGET_GLOBAL_CFLAGS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-i686-linux-android/+bug/1302799/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to