Status: Untriaged
Owner: ----

New issue 4337 by [email protected]: Failure to build Android shared library in OSX
https://code.google.com/p/v8/issues/detail?id=4337

Version: 4.6.39
OS: OSX 10.10.4
Architecture: Android ARM

What steps will reproduce the problem?

1. Follow instructions in https://code.google.com/p/v8-wiki/wiki/D8OnAndroid to get the specified version of the source code.

2. Run the following command on Terminal:

make android_arm.debug -j16 GYPFLAGS="-Dandroid_ndk_root=/Users/myusername/Library/Android/sdk/ndk-bundle -Dhost_os=darwin -Dlibrary=shared"

3. Wait for the compilation results.

What is the expected output?

A build of libv8_base.so in the /out folder of the project.

What do you see instead?

Several error messages generated while compiling, for example:

CXX(host) /Users/heribertodelgado/Projects/v8/out/android_arm.debug/obj.host/v8_base/src/accessors.o
In file included from ../src/accessors.cc:5:
In file included from .././src/v8.h:29:
.././include/v8.h:20:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^
CXX(host) /Users/heribertodelgado/Projects/v8/out/android_arm.debug/obj.host/v8_base/src/allocation.o
In file included from ../src/allocation.cc:5:
In file included from .././src/allocation.h:8:
In file included from .././src/globals.h:11:
In file included from /Users/heribertodelgado/Projects/v8/third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/ostream:138: In file included from /Users/heribertodelgado/Projects/v8/third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/ios:215: /Users/heribertodelgado/Projects/v8/third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/iosfwd:90:10: fatal error:
      'wchar.h' file not found
#include <wchar.h>  // for mbstate_t
         ^
CXX(host) /Users/heribertodelgado/Projects/v8/out/android_arm.debug/obj.host/v8_base/src/allocation-site-scopes.o
In file included from ../src/allocation-site-scopes.cc:5:
In file included from .././src/allocation-site-scopes.h:8:
In file included from .././src/ast.h:8:
In file included from .././src/v8.h:29:
.././include/v8.h:20:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^
CXX(host) /Users/heribertodelgado/Projects/v8/out/android_arm.debug/obj.host/v8_base/src/allocation-tracker.o
In file included from ../src/allocation-tracker.cc:5:
In file included from .././src/v8.h:29:
.././include/v8.h:20:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^
CXX(host) /Users/heribertodelgado/Projects/v8/out/android_arm.debug/obj.host/v8_base/src/api.o
In file included from ../src/api.cc:5:
In file included from .././src/api.h:8:
In file included from .././src/v8.h:29:
.././include/v8.h:20:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^
CXX(host) /Users/heribertodelgado/Projects/v8/out/android_arm.debug/obj.host/v8_base/src/api-natives.o
In file included from ../src/api-natives.cc:5:
In file included from .././src/api-natives.h:8:
In file included from .././src/handles.h:8:
In file included from .././src/objects.h:8:
/Users/heribertodelgado/Projects/v8/third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/iosfwd:90:10: fatal error:
      'wchar.h' file not found
#include <wchar.h>  // for mbstate_t
         ^
1 error generated.


The log reveals that there is a "target" compilation step, and then a "host" step. The errors appear in the "host" step.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to