简体   繁体   English

在AOSP 4.3源代码上构建的aosp_x86-eng失败,错误为__strlen_chk

[英]aosp_x86-eng build on AOSP 4.3 source code is failing with error __strlen_chk

I am trying to build the x86 image on AOSP 4.3 source code. 我正在尝试在AOSP 4.3源代码上构建x86映像。 followed below steps: 遵循以下步骤:

  • source build/envsetup.sh 源代码build / envsetup.sh
  • lunch ( selected aosp_x86-eng) 午餐(选择aosp_x86-eng)
  • make -j4 使-j4

It gives below error. 它给出以下错误。

bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'
bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'
bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'
bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'

Question: 题:

  1. It the steps for building x86 in AOSP 4.3 is correct? 在AOSP 4.3中构建x86的步骤是否正确?
  2. How we can fix the above error. 我们如何解决以上错误。

I've solved it when building libcurl. 我在构建libcurl时解决了它。 The key idea is setting D_FORTIFY_SOURCE=0 in flags to disable checks, as mentioned in the source code . 关键思想是在标志中设置D_FORTIFY_SOURCE=0以禁用检查,如源代码中所述

LOCAL_STATIC_LIBRARIES + = libc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM