[v8-users] using source maps in v8 in native addon in nodejs.

2018-03-27 Thread fkpkot
Hi,
I'm getting errors during v8 compilation in a script file which is created 
by concatenating two script files.
Since the errors appear during compilation of the third file, i'd like to 
trace the issue to the correct file.
I've created a source map to map the error to the correct line and it's 
being used when the error is during runtime but i can't seem to find a way 
to use it during compilation.
has anyone found a way?

thanks ahead,
Fima.

-- 
-- 
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] link to libv8_base.a: error adding symbols: File format not recognized

2018-03-27 Thread Todd Wong
Thanks, Ben.

I've solved this by disable cfi and lto (is_cfi=false use_thin_lto=false).

And google deleted 2 replies from me, I don't why.

On Mon, Mar 26, 2018 at 6:40 PM, Ben Noordhuis  wrote:

> On Mon, Mar 26, 2018 at 11:12 AM,   wrote:
> > gn gen out/release --args='is_debug=false is_official_build=true
> > v8_static_library=true'
> >
> > ninja -C out/release
> >
> > This will generate the static libraries. But when I try to link with it,
> it
> > says:
> >
> > /path/to/libv8_base.a: error adding symbols: File format not recognized
> >
> > if I objdump this libv8_base.a file, a lot of "objdump: x.o: File
> format
> > not recognized" are gotten.
> > and if I "file .o", it output ".o: LLVM IR bitcode"
> >
> > Please help!
>
> It sounds like you need to use llvm-ar rather than the ar(1) from GNU
> binutils.
>
> Preempting the question of how to do that with ninja: I don't know.
> Fix your PATH or hack the `ar = ...` rule in build.ninja?
>
> --
> --
> 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/MAJwyq2WEQQ/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.