Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8732499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:27:06+00:00 2026-06-13T09:27:06+00:00

I am currently compiling Android Linaro build 11.11 (staging-panda) for pandaboard. In the build

  • 0

I am currently compiling Android Linaro build 11.11 (staging-panda) for pandaboard.

In the build process, Android compiles some tools with the host gcc compiler. On my Linux Mint 12 (Ubuntu-11.10 based), I have gcc-4.6 installed by default.

I built Android, everything runs fine, pandaboard booted, but then starting any application will lead to segmentation fault (signal 11 in logcat).

I then learned that Linaro built this release with gcc-4.5, not 4.6 version. I installed it using apt-get. I removed out/ directory and rebuild Android entirely.

The compilation runs fine, but the linker insults me:

g++-4.5 -Wl,-rpath-link=out/target/product/pandaboard/obj/lib -Wl,-rpath,\$ORIGIN/../lib -Lout/host/linux-x86/obj/lib   -Wl,--no-undefined   -m32          out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o     -Wl,--whole-archive   -Wl,--no-whole-archive  out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a   -o out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp 
g++-4.5 -Wl,-rpath-link=out/target/product/pandaboard/obj/lib -Wl,-rpath,\$ORIGIN/../lib -Lout/host/linux-x86/obj/lib   -Wl,--no-undefined   -m32          out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs.o     -Wl,--whole-archive   -Wl,--no-whole-archive     -o out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs 
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.5.4/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.5.4/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.5.4/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.5.4/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status

The linker grabs the 64bit libraries of gcc-4.5, although it probably for 32bit version. So far, here are the things I tried, without success:

  1. re-do the package installation following these instructions
  2. sudo ldconfig
  3. reboot my machine
  4. I looked into removing gcc-4.6 to get only gcc-4.5 on my machine.
    But synaptic showed so many dependencies needed to be uninstalled,
    that I didn’t make that step 🙂

Finally I’ve been told to install gcc-4.5-multilib and g++-4.5-multilib. It worked, and the build got further. I start the panda, still the apps (eg com.android.launcher) fails to launch. I know this is an assumption, but I think that this segfault is somehow linked to the compiler.

My questions are simple:

  1. Is com.android.launcher cross-compiled or compiled with host 32bit
    compiler? What keyword should I look for to find the associated command in the build log?
  2. How can I debug this segmentation fault? In particular, I am looking
    for starting com.android.launcher with the “am” command.
  3. Will strace provide valuable information for this issue?

Thanks heaps.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:27:07+00:00Added an answer on June 13, 2026 at 9:27 am

    Use gdb. Requirements:

    # is the target shell, although being root is not mandatory
    $ is the host shell

    1. The app must be compiled in debug mode
      LOCAL_CFLAGS += -g
    2. start gdbserver on the target:
      # gdbserver :5039 </system/bin/executable>
      (or)
      # gdbserver :5039 --attach <pid>
    3. forward tcp port to adb connection:
      $ adb forward tcp:5039 tcp:5039
    4. start gdbclient on the host:
      $ gdbclient :5039 <executable>

    If you struggle with gdbclient, check build/envsetup.sh where the function is defined:
    $ type gdbclient
    Adding the verbose -v option might be of some help. Also if your executable is not in system/bin, you’ll definitely need to modify build/envsetup.sh as it is hard-coded.

    Some more information can be found here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

currently I'm fixing some issues regarding to small outputted dll (I'm using Ribosome build
I am writing/maintaining some heavily templated code in c++. I am currently compiling it
I'm working on re-compiling some Pro*C code that no one currently at my company
I just updated to the latest Android SDK Tools, r12. Now compiling of my
I am currently creating an application for compiling multiple java projects in one go
I'm currently developing an iPhone application, and when it comes to compiling, I have
I am currently writing a C++ template expression library and comparing some instantiations with
I'm currently compiling a static library for iOS, let's call it libMySDK.a. I copy
Currently, while compiling a C program which uses pthread library function I have to
I'm currently trying to use CMake for cross-compiling. However, CMake seems to ignore the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.