Re: [v8-users] v8 linker issues for android build on Mac

2017-01-26 Thread Jochen Eisinger
it's blocked on the NDK we download not supporting Darwin, and that's a bit
outside of my scope to change myself, so no idea when it'll be available

On Wed, Jan 25, 2017 at 2:22 PM Mindy DelliCarpini 
wrote:

> Thoughts on when it might be supported?
>
> Or any prebuilts? I know you had been submitting patches in December to
> move this forward
>
> On Wed, Jan 25, 2017 at 5:04 AM, Jochen Eisinger 
> wrote:
>
> Using gn to build for android on mac is not yet supported, sorry (and I
> realize that the make based version is also no longer supported...) sorry
> about that :/
>
> On Wed, Jan 25, 2017 at 2:08 AM Mindy DelliCarpini 
> wrote:
>
>
>
> I built libv8_base, libv8_libbase,  these as full static libraries:
>
>
> args.gn:
>
> is_debug = false
>
> target_cpu = "arm"
>
> v8_target_cpu = "arm"
>
> target_os="android"
>
> v8_static_library = true
>
>
> Errors:
>
> ...android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
> error: jni/libpng.a: no archive symbol table (run ranlib)
>
>
> ...android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
> error: jni/libv8_libbase.a: no archive symbol table (run ranlib)
>
>
> ...android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
> error: jni/libv8_libplatform.a: no archive symbol table (run ranlib)
>
>
> Follow by a bunch of unsatisfied linker errors:
>
>
> jni/BoomListPackagesAndroid.cpp:124: error: undefined reference to
> 'v8::Object::Set(v8::Local, v8::Local)'
>
> jni/BoomListPackagesAndroid.cpp:125: error: undefined reference to
> 'v8::Object::Set(v8::Local, v8::Local)'
>
> jni/BoomListPackagesAndroid.cpp:126: error: undefined reference to
> 'v8::Object::Set(v8::Local, v8::Local)'
>
> jni/../../src/common/js/v8/BoomEngine.v8.cpp:31: error: undefined
> reference to 'v8::Isolate::GetCurrent()'
>
> 
>
>
> I'm building on MacOSX for Android; I would guess the linker errors are
> because of the no archive symbol table error at the top...
>
> How can I fix them?
>
>
>
>
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> 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 v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
>
> You received this message because you are subscribed to a topic in the
> Google Groups "v8-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/v8-users/vIn1RNWosjM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> v8-users+unsubscr...@googlegroups.com.
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> 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 v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[v8-users] Standard headers not found when building for android on Mac

2017-01-26 Thread gabe . sechan
I'm seeing a series of build errors in the form 

In file included from .././src/v8.h:8:0,

 from ../src/asmjs/asm-wasm-builder.cc:5:

.././include/v8.h:21:18: fatal error: memory: No such file or directory

 #include 

  ^

compilation terminated.

make[2]: *** 
[/Users/gabe/v8/v8/out/android_arm.release/obj.target/v8_base/src/asmjs/asm-wasm-builder.o]
 
Error 1

In file included from .././src/allocation.h:9:0,

 from .././src/assembler.h:38,

 from ../src/assembler.cc:35:

.././src/globals.h:11:19: fatal error: ostream: No such file or directory

 #include 

   ^

compilation terminated.

make[2]: *** 
[/Users/gabe/v8/v8/out/android_arm.release/obj.target/v8_base/src/assembler.o] 
Error 1

In file included from .././src/base/macros.h:10:0,

 from .././src/assert-scope.h:9,

 from ../src/assert-scope.cc:5:

.././src/base/logging.h:8:19: fatal error: cstring: No such file or 
directory

 #include 



My platform is a relatively new Mac, and I'm building for Android.  I'm 
following the instructions 
at https://github.com/v8/v8/wiki/D8%20on%20Android  from the wiki.  I was 
able to successfully make Mac binaries.  Any advice on how to fix this?

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] what compilers are supported?

2017-01-26 Thread Adam Skwersky
Thanks for the updates. A follow on - if I only need to write an nodeJS/JS 
add-on, but the addon calls into my libraries, can the libraries be at an 
older ABI?
In other words, can I build the add-on with a newer ABI and have it link 
into libraries at are at an older ABI?

My libraries are built with gcc 3.4. I want to use whatever gcc/ld/g++/c++ 
node/JS is using when compiling and linking the add-on.

Adam

On Wednesday, January 25, 2017 at 6:33:26 PM UTC-5, Ben Noordhuis wrote:
>
> On Wed, Jan 25, 2017 at 8:30 PM, Adam Skwersky  > wrote: 
> > I need to support older compilers, not newer ones. 
>
> That restricts you to V8 3.28 and older.  3.29 (from August 2014) 
> requires a C++11-capable compiler. 
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] v8 build issues for Android.

2017-01-26 Thread Dzung Tran
I used GN as you suggested, but it seems to build bunch of archive files 
*.a files.
I was hoping to get a libv8.so file.

Do you have instruction for that?

On Wednesday, January 25, 2017 at 5:10:34 AM UTC-8, Jochen Eisinger wrote:
>
> Building with gyp is no longer support (sorry about the outdated docs).
>
> You'll have to use gn and set target_os = "android" and target_cpu = "arm"
>
> hth
> -jochen
>
> On Tue, Jan 24, 2017 at 6:11 PM Dzung Tran  > wrote:
>
>> I followed the instructions on 
>> https://github.com/v8/v8/wiki/Building%20with%20Gyp
>>
>> and I get the error with linking at the end as in:
>>
>>   CXX(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/icuuc/third_party/icu/source/common/utrie2_builder.o
>>   CXX(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/icuuc/third_party/icu/source/common/utrie2.o
>>   CXX(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/icuuc/third_party/icu/source/common/utrie.o
>>   CXX(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/icuuc/third_party/icu/source/common/uts46.o
>>   CC(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/icuuc/third_party/icu/source/common/utypes.o
>>   CXX(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/icuuc/third_party/icu/source/common/uvector.o
>>   CXX(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/icuuc/third_party/icu/source/common/uvectr32.o
>>   CXX(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/icuuc/third_party/icu/source/common/uvectr64.o
>>   CC(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/icuuc/third_party/icu/source/common/wintz.o
>>   CC(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/icuuc/third_party/icu/source/stubdata/stubdata.o
>>   AR(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/third_party/icu/libicuuc.a
>>   AR(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/src/libv8_libsampler.a
>>   CXX(host) 
>> /home/parallels/v8/out/android_arm.release/obj.host/mksnapshot/src/snapshot/mksnapshot.o
>>   LINK(host) /home/parallels/v8/out/android_arm.release/mksnapshot
>> /home/parallels/v8/out/android_arm.release/obj.host/src/libv8_libplatform.a(/home/parallels/v8/out/android_arm.release/obj.host/v8_libplatform/src/libplatform/default-platform.o):../src/libplatform/default-platform.cc:function
>>  
>> v8::platform::CreateDefaultPlatform(int): error: undefined reference to 
>> 'v8::base::SysInfo::NumberOfProcessors()'
>> /home/parallels/v8/out/android_arm.release/obj.host/src/libv8_libplatform.a(/home/parallels/v8/out/android_arm.release/obj.host/v8_libplatform/src/libplatform/default-platform.o):../src/libplatform/default-platform.cc:function
>>  
>> v8::platform::DefaultPlatform::SetThreadPoolSize(int): error: undefined 
>> reference to 'v8::base::SysInfo::NumberOfProcessors()'
>> clang: error: linker command failed with exit code 1 (use -v to see 
>> invocation)
>> make[2]: *** [/home/parallels/v8/out/android_arm.release/mksnapshot] 
>> Error 1
>> make[2]: Leaving directory `/home/parallels/v8/out'
>> make[1]: *** [android_arm.release] Error 2
>> make[1]: Leaving directory `/home/parallels/v8'
>> make: *** [android_arm.release] Error 2
>>
>> Any help would be greatly appreciated.
>>
>> -- 
>> -- 
>> v8-users mailing list
>> v8-u...@googlegroups.com 
>> 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 v8-users+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] v8 linker issues for android build on Mac

2017-01-26 Thread Dzung Tran
How do you build one libv8.so file for Android? I am using Ubuntu. What 
would be the correct GN args? I can't seem to get a libv8.so. I am getting 
bunch of archive files.


On Thursday, January 26, 2017 at 6:42:42 AM UTC-8, Jochen Eisinger wrote:
>
> it's blocked on the NDK we download not supporting Darwin, and that's a 
> bit outside of my scope to change myself, so no idea when it'll be available
>
> On Wed, Jan 25, 2017 at 2:22 PM Mindy DelliCarpini  > wrote:
>
>> Thoughts on when it might be supported?
>>
>> Or any prebuilts? I know you had been submitting patches in December to 
>> move this forward
>>
>> On Wed, Jan 25, 2017 at 5:04 AM, Jochen Eisinger > > wrote:
>>
>>> Using gn to build for android on mac is not yet supported, sorry (and I 
>>> realize that the make based version is also no longer supported...) sorry 
>>> about that :/
>>>
>>> On Wed, Jan 25, 2017 at 2:08 AM Mindy DelliCarpini >> > wrote:
>>>


 I built libv8_base, libv8_libbase,  these as full static libraries:


 args.gn:

 is_debug = false

 target_cpu = "arm"

 v8_target_cpu = "arm"

 target_os="android"

 v8_static_library = true


 Errors:

 ...android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
  
 error: jni/libpng.a: no archive symbol table (run ranlib)


 ...android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
  
 error: jni/libv8_libbase.a: no archive symbol table (run ranlib)


 ...android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
  
 error: jni/libv8_libplatform.a: no archive symbol table (run ranlib)


 Follow by a bunch of unsatisfied linker errors:


 jni/BoomListPackagesAndroid.cpp:124: error: undefined reference to 
 'v8::Object::Set(v8::Local, v8::Local)'

 jni/BoomListPackagesAndroid.cpp:125: error: undefined reference to 
 'v8::Object::Set(v8::Local, v8::Local)'

 jni/BoomListPackagesAndroid.cpp:126: error: undefined reference to 
 'v8::Object::Set(v8::Local, v8::Local)'

 jni/../../src/common/js/v8/BoomEngine.v8.cpp:31: error: undefined 
 reference to 'v8::Isolate::GetCurrent()'

 


 I'm building on MacOSX for Android; I would guess the linker errors are 
 because of the no archive symbol table error at the top...

 How can I fix them?





 -- 
 -- 
 v8-users mailing list
 v8-u...@googlegroups.com 
 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 v8-users+u...@googlegroups.com .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>>> -- 
>>> v8-users mailing list
>>> v8-u...@googlegroups.com 
>>> http://groups.google.com/group/v8-users
>>> --- 
>>>
>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "v8-users" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/v8-users/vIn1RNWosjM/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> v8-users+u...@googlegroups.com .
>>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> -- 
>> v8-users mailing list
>> v8-u...@googlegroups.com 
>> 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 v8-users+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.