Unable to build libv8 on arm64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libv8-3.14 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Building the package libv8 fails on the arm64 architecture. Attempted to build on both Trusty and Vivid and have the same results.
lsb_release -a:
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
uname -a:
Linux tael 3.13.0-46-generic #77-Ubuntu SMP Mon Mar 2 18:27:27 UTC 2015 aarch64 aarch64 aarch64 GNU/Linux
Using dget command to re-build source from .dsc, It appears that arm64 is not defined as an architecture::
dget --allow-
Exit error is (full dpkg-buildpackage log attached):
make: Nothing to be done for `build'.
fakeroot debian/rules binary
make: Nothing to be done for `binary'.
dpkg-genchanges -b >../libv8-
dpkg-genchanges: error: cannot read files list file: No such file or directory
dpkg-buildpackage: error: dpkg-genchanges gave error exit status 2
After updating the control and rules files to include arm64 continues up until v8 fails to compile since it does not recognize the arm64 architecture, here's the last error, and attaching full error log.
In file included from ../src/ allocation. h:31:0,
from ../src/ allocation. cc:28: globals. h:102:2: error: #error Host architecture was not detected as supported by v8 globals. h:134:2: error: #error Target architecture arm is only supported on arm, ppc and ia32 host nodejs/ libv8-3. 14-3.14. 5.8/out/ arm.release/ obj.target/ preparser_ lib/src/ allocation. o] Error 1
../src/
#error Host architecture was not detected as supported by v8
^
../src/
#error Target architecture arm is only supported on arm, ppc and ia32 host
^
make[2]: *** [/var/tmp/
It appears that v8 has added arm64 in newer versions of V8 per this commit: https:/ /github. com/v8/ v8-git- mirror/ commit/ 8ef8f58bae44a9d b7d7b18780ef162 777ece019e
Updating the version of V8 to a newer one should fix this and I'll attempt to re-build the package with a newer version.