[v8-users] link to libv8_base.a: error adding symbols: File format not recognized
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! -- -- 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
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 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] Is it possible to turn off the interpreter (i.e. Ignition ) when running the v8
Yes, that's Turbofan; and yes, it's enabled by default. On Sun, Mar 25, 2018 at 11:27 PM 李弘毅 wrote: > Sorry, I have another little question: when running the latest v8, is that > "new optimizing compiler" (I guess that is Turbofan, right?) enabled by > default? > > 2018-03-24 9:31 GMT+08:00 Jakob Kummerow : > >> You cannot turn off the interpreter, nor build V8 without it. Without the >> interpreter, V8 would be unable to execute any JavaScript. >> >> V8 used to have a non-optimizing compiler and an optimizing compiler. Now >> it has an interpreter and a new optimizing compiler, replacing the former >> two. What hasn't changed is that all executed code still goes through the >> first stage of the pipeline first, and then is eventually optimized if it >> runs hot enough. >> >> So I think for your purposes, the fact that the non-optimizing compiler >> was replaced with an interpreter is an internal implementation detail that >> you don't need to care about. Just go ahead and run your benchmarks :-) >> >> >> On Fri, Mar 23, 2018 at 5:54 PM Howie Lee wrote: >> >>> Hi, everyone! >>> >>> I need to run some benchmarks on the v8 to test the performance of a DBT >>> (a dynamic binary translator). I am wondering how to turn off the >>> interpreter in the v8, or is it possible to build v8 without the >>> interpreter? Though I know that I can build the v8 5.5.x which does not >>> have the interpreter, yet my professor prefer to use the latest v8 by >>> turning off the interpreter. The very reason is that our dbt is written >>> when v8 doesn't have an interpreter and my professor would like to restore >>> the same environment to run benchmarks on our dbt again without degrading >>> the version of v8. Since we'd like to use our old dbt in another pro, we >>> are afraid the version of v8 will be a drawback to publishing a paper. >>> >>> Thanks a lot! >>> >>> -- >>> -- >>> 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/Gv6yrGkkLpA/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.
Re: [v8-users] Is it possible to turn off the interpreter (i.e. Ignition ) when running the v8
Thanks a lot!☺ 2018-03-27 2:38 GMT+08:00 Jakob Kummerow : > Yes, that's Turbofan; and yes, it's enabled by default. > > On Sun, Mar 25, 2018 at 11:27 PM 李弘毅 wrote: > >> Sorry, I have another little question: when running the latest v8, is >> that "new optimizing compiler" (I guess that is Turbofan, right?) >> enabled by default? >> >> 2018-03-24 9:31 GMT+08:00 Jakob Kummerow : >> >>> You cannot turn off the interpreter, nor build V8 without it. Without >>> the interpreter, V8 would be unable to execute any JavaScript. >>> >>> V8 used to have a non-optimizing compiler and an optimizing compiler. >>> Now it has an interpreter and a new optimizing compiler, replacing the >>> former two. What hasn't changed is that all executed code still goes >>> through the first stage of the pipeline first, and then is eventually >>> optimized if it runs hot enough. >>> >>> So I think for your purposes, the fact that the non-optimizing compiler >>> was replaced with an interpreter is an internal implementation detail that >>> you don't need to care about. Just go ahead and run your benchmarks :-) >>> >>> >>> On Fri, Mar 23, 2018 at 5:54 PM Howie Lee wrote: >>> Hi, everyone! I need to run some benchmarks on the v8 to test the performance of a DBT (a dynamic binary translator). I am wondering how to turn off the interpreter in the v8, or is it possible to build v8 without the interpreter? Though I know that I can build the v8 5.5.x which does not have the interpreter, yet my professor prefer to use the latest v8 by turning off the interpreter. The very reason is that our dbt is written when v8 doesn't have an interpreter and my professor would like to restore the same environment to run benchmarks on our dbt again without degrading the version of v8. Since we'd like to use our old dbt in another pro, we are afraid the version of v8 will be a drawback to publishing a paper. Thanks a lot! -- -- 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/Gv6yrGkkLpA/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 a topic in the > Google Groups "v8-users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/v8-users/Gv6yrGkkLpA/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.
Re: [v8-users] link to libv8_base.a: error adding symbols: File format not recognized
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.