Hi there,
I am having some trouble with v8 resulting libs. I compile on ubuntu linux 16.04 setting arm as target using gn.
The process works just ok, but when I try to link the 4 libs with my appon Mac, i get:
that
tmpfile64 is an undefined symbol reference. It is referenced from platform-posix.o on libplatform.
Any ideas about how to overcome this issue ?
I have tried creating that function myself FILE* tmpfile64(void);, creating a strong link between tmpfile64 and tmpfile functions but nothing seems to work.
Also, I crosscompile on linux, because gclient sync seems to install linux's NDK on my Mac laptop ?? Have not dig into this though. Probably a symlink to the correct darwin toolchain would work.
In case it helps, here's a rough description of the process needed to have v8 compiling:
install ia32 libraries support
execute v8/build/linux/sysroot_scripts/install-sysroot.py --arch arm
apt install binutils-arm-linux-gnueabihf
after compilation, two thin libraries are created, which i recreate with
ar -t <lib> | xargs ar rvs <newlib>
i also create two libraries for lib_base and lib_snapshot with:
ar rcsD <libname> v8_base/*.o
ar rcsD <libname> v8_snapshot/*.o
here's my
args.gn file:
is_debug = false
target_cpu = "arm"
v8_target_cpu = "arm"
v8_enable_i18n_support = false
v8_enable_inspector = true
I don't set float_abi. I assume default for the platform would be softfp.
Please, help.
Thanks.
- i