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

  • Home
  • SEARCH
  • 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 8261535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:26:32+00:00 2026-06-08T03:26:32+00:00

I’m trying to use the NDK toolchain to build some native library I have

  • 0

I’m trying to use the NDK toolchain to build some native library I have for ARM.
I’m also using the ARMv7 NEON intrinsics in part of my code. Unfortunately I get the
following type of error in several places in my code:

internal compiler error: in write_builtin_type, at cp/mangle.c:1855

The error seems to be triggered by using the float32_t type defined in the
arm_neon.h – e.g. I get the compiler crash when using a std::vector<float32_t>.

For Android ARM the single precision floating point type is a typedef for an
internal compiler builtin type whereas for Linaro Linux for example is just a typedef
of the C/C++ float – see arm_neon.h in the case of both compilers(I can build the same
sources with the Linaro Linux toolchain without any problem).

I also found an old post in the android NDK Google group that seems to describe the same problem but unfortunately it did not present any solution:
Some old post describing the same compiler crash

Does anyone have any hint on how to overcome the above problem?
Is there any special reason a builtin compiler type is used and not the normal float as in the case of the Linaro toolchain for example?
If I replace the typedef would I cause unwanted/undefined behavior?
Does anyone know if the toolchain included in the NDK based on the CodeSourcery toolchain, because the CS one is really buggy and the code base we have breaks it in many ways(just as info so that I know I have to definitely change the toolchain)?

I’m using:

  • Android NDK version r8

  • NDK toolchain gcc (GCC) 4.4.3 – stripped outside the NDK as advised in the NDK documentation

Update:

Found this other SO question that illustrates pretty much the same issue … the scary thing is that it’s from 2010.

Update 2:

Replacing the typedef is not an option as it will break completely the NEON intrinsics functionality. All the floating point intrinsics rely on builtin compiler functions which expect the __builtin_neon_sf(the typedef for float32_t) type as their parameter(s).

  • 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-08T03:26:35+00:00Added an answer on June 8, 2026 at 3:26 am

    This is a compiler bug. I’ve opened one new issue in the Android project bug tracker.

    Unfortunately to overcome it I had to rewrite the whole portion of code which was causing it.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
We're building an app, our first using Rails 3, and we're having to build
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I have thousands of HTML files to process using Groovy/Java and I need to
I am trying to loop through a bunch of documents I have to put
I have some data like this: 1 2 3 4 5 9 2 6
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
Basically, what I'm trying to create is a page of div tags, each has

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.