Project

General

Profile

Actions

Bug #1170

closed

warning: "alloca" redefined

Added by Alex A. over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
libcrystax
Target version:
Start date:
12/03/2015
Due date:
% Done:

100%

Estimated time:
CPU Architecture:
arm, arm64, mips, mips64, x86, x86_64
Host OS:
OS X
Toolchain:
clang-3.5, clang-3.6, gcc-4.8, gcc-4.9
Android version:
CrystaX NDK Version:

Description

In my code I have included after , which causes the following warning to be produced:

[x86] Compile++ : test <= test.cpp
/opt/crystax-ndk-10.2.1/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-g++ -MMD -MP -MF ./obj/local/x86/objs/test//test.o.d -ffunction-sections -funwind-tables -no-canonical-prefixes -fstack-protector-strong -fno-exceptions -fno-rtti -O2 -g -DNDEBUG -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -I/opt/crystax-ndk-10.2.1/sources/cxx-stl/gnu-libstdc++/4.9/include -I/opt/crystax-ndk-10.2.1/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/include -I/opt/crystax-ndk-10.2.1/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -Ijni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security -fexceptions -frtti -std=gnu++11 -c -I/opt/crystax-ndk-10.2.1/sources/crystax/include -I/opt/crystax-ndk-10.2.1/platforms/android-9/arch-x86/usr/include jni/../test.cpp -o ./obj/local/x86/objs/test//test.o
In file included from jni/../test.cpp:4:0:
/opt/crystax-ndk-10.2.1/platforms/android-9/arch-x86/usr/include/alloca.h:31:0: warning: "alloca" redefined
#define alloca(size) __builtin_alloca(size)
^
In file included from /opt/crystax-ndk-10.2.1/platforms/android-9/arch-x86/usr/include/stdlib.h:45:0,
from /opt/crystax-ndk-10.2.1/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:72,
from /opt/crystax-ndk-10.2.1/sources/cxx-stl/gnu-libstdc++/4.9/include/ext/string_conversions.h:41,
from /opt/crystax-ndk-10.2.1/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/basic_string.h:2850,
from /opt/crystax-ndk-10.2.1/sources/cxx-stl/gnu-libstdc++/4.9/include/string:52,
from /opt/crystax-ndk-10.2.1/sources/cxx-stl/gnu-libstdc++/4.9/include/stdexcept:39,
from /opt/crystax-ndk-10.2.1/sources/cxx-stl/gnu-libstdc++/4.9/include/array:38,
from /opt/crystax-ndk-10.2.1/sources/cxx-stl/gnu-libstdc++/4.9/include/tuple:39,
from /opt/crystax-ndk-10.2.1/sources/cxx-stl/gnu-libstdc++/4.9/include/functional:55,
from jni/../test.cpp:1:
/opt/crystax-ndk-10.2.1/platforms/android-9/arch-x86/usr/include/crystax/freebsd/include/mangled-stdlib.h:243:0: note: this is the location of the previous definition
#define alloca(sz) __builtin_alloca(sz)
^

I've created a very basic scenario to reproduce warning: https://github.com/cawka/crystax-ndk-alloca.h-bug

I'm working with CrystaX-10.2.1.

Actions #1

Updated by Alex A. over 8 years ago

I have also tried latest ndk from https://dl.crystax.net/ndk/darwin/756/

Actions #2

Updated by Dmitry M. over 8 years ago

  • Category set to libcrystax
  • Assignee set to Dmitry M.
  • Priority changed from Normal to High
  • Target version set to 10.3.0
Actions #3

Updated by Dmitry M. over 8 years ago

  • Status changed from Open to In Progress
Actions #4

Updated by Dmitry M. over 8 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF