Hi Folks,

I'm working on getting V8 cross compiled for OS X and I can't make heads or 
tails of the build configuration. I'm running 4.5, which compiles fine for 
x86_64, but Android has been less than great.

First off, running:

make -B android_arm64.release -j12 V=1
>

I get the following error:

/bin/sh: 
> /Users/ben/src/v8/third_party/android_tools/ndk//toolchains/aarch64-linux-android-4.9/prebuilt/mac-x86_64/bin/*-gcc:
>  
> No such file or directory

gyp: Call to 
> '/Users/ben/src/v8/third_party/android_tools/ndk//toolchains/aarch64-linux-android-4.9/prebuilt/mac-x86_64/bin/*-gcc
>  
> -print-libgcc-file-name' returned exit status 127.


Huh, OK. The funny thing is - the prebuilt toolchains on mac use 'darwin' 
not 'mac' as the platform. I've looked at the various android NDKs and I 
can't find any that use mac (not to mention this is the one checked out by 
`gclient sync`). Looking in `build/standalone.gypi` where this is defined I 
see a few interesting things.

The android_toolchain uses `host_os` to determine the platform path, which 
will never work for mac since the prebuilt toolchains for mac use 'darwin' 
as the host type. Second, gclient-sync seems to only have checked out a 
linux prebuilt toolchain. I try to drop in a prebuilt darwin toolchain from 
the NDK and I get a bunch of errors about compiler flags such as "-arch" 
and "-fasm-blocks."

I'm beginning to think there's a serious case of build-rot here for OS X. 
Does anyone (Chrome team or otherwise) currently compile on OS X? I'm 
amidst booting up a vagrant linux box to see if the linux toolchain is any 
less broken.

Cheers,
Ben

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" 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