clustc / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

Can't compile for Android under Mac OS #629

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create Android NDK Project
2. Add google breakpad support
3. Try to compile
or
1. Use sample app from google breakpad svn
2. Try to compile

PS. Used NDK_TOOLCHAIN - clang (This is mandatory for our project)

What is the expected output? What do you see instead?
Lib won't compile at all. Logs below:

bash-3.2$ ndk-build
[armeabi] Compile++ thumb: test_google_breakpad <= test_breakpad.cpp
In file included from 
/Users/mikhailsh/Projects/TestProject/google-breakpad/android/sample_app/jni/tes
t_breakpad.cpp:32:
In file included from 
/Users/mikhailsh/Projects/TestProject/google-breakpad/android/sample_app/jni/../
../google_breakpad/../../src/client/linux/handler/exception_handler.h:36:
In file included from /usr/include/sys/ucontext.h:35:
/usr/include/machine/_mcontext.h:31:2: error: architecture not supported
#error architecture not supported
 ^
In file included from 
/Users/mikhailsh/Projects/TestProject/google-breakpad/android/sample_app/jni/tes
t_breakpad.cpp:32:
In file included from 
/Users/mikhailsh/Projects/TestProject/google-breakpad/android/sample_app/jni/../
../google_breakpad/../../src/client/linux/handler/exception_handler.h:36:
In file included from /usr/include/sys/ucontext.h:36:
/usr/include/sys/_types/_sigaltstack.h:36:1: error: redefinition of 
'sigaltstack'
_STRUCT_SIGALTSTACK
^
/usr/include/sys/_types/_sigaltstack.h:34:36: note: expanded from macro 
'_STRUCT_SIGALTSTACK'
#define _STRUCT_SIGALTSTACK     struct sigaltstack
                                       ^
/Users/mikhailsh/Applications/android/ndk/platforms/android-3/arch-arm/usr/inclu
de/asm/signal.h:97:16: note: previous definition is here
typedef struct sigaltstack {
               ^
In file included from 
/Users/mikhailsh/Projects/TestProject/google-breakpad/android/sample_app/jni/tes
t_breakpad.cpp:32:
In file included from 
/Users/mikhailsh/Projects/TestProject/google-breakpad/android/sample_app/jni/../
../google_breakpad/../../src/client/linux/handler/exception_handler.h:36:
In file included from /usr/include/sys/ucontext.h:37:
/usr/include/sys/_types/_ucontext.h:37:2: error: unknown type name 
'__darwin_sigset_t'
        __darwin_sigset_t       uc_sigmask;     /* signal mask used by this context */
        ^
/usr/include/sys/_types/_ucontext.h:40:2: error: unknown type name 
'__darwin_size_t'; did you mean '__kernel_size_t'?
        __darwin_size_t         uc_mcsize;      /* size of the machine context passed in */
        ^
/Users/mikhailsh/Applications/android/ndk/platforms/android-3/arch-arm/usr/inclu
de/asm/posix_types.h:23:22: note: '__kernel_size_t' declared here
typedef unsigned int __kernel_size_t;

What version of the product are you using? On what operating system?
Mac OS 10.10.1, latest google_breakpad from trunk

Please provide any additional information below.

Original issue reported on code.google.com by mikhai...@zeptolab.com on 26 Jan 2015 at 4:06