crud icon indicating copy to clipboard operation
crud copied to clipboard

Failed to install dependencies on ARM

Open mRrvz opened this issue 3 years ago • 4 comments

Trying to ./deps.sh on ARM:

Installing http://rocks.tarantool.org/luatest-0.5.4-1.all.rock

luatest 0.5.4-1 is now installed in /mnt/mmc-SD64G_0x016e52ea-part1/crud/.rocks (license: MIT)

Installing http://rocks.tarantool.org/luacheck-0.25.0-1.rockspec

Cloning into 'luacheck'...
remote: Enumerating objects: 6143, done.
remote: Total 6143 (delta 0), reused 0 (delta 0), pack-reused 6143
Receiving objects: 100% (6143/6143), 2.18 MiB | 4.41 MiB/s, done.
Resolving deltas: 100% (4029/4029), done.
Note: switching to 'ec42b3d5a44ec3b9419bab0c6955d64d3feb0f02'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Failed to set locale to C.UTF-8
luacheck 0.25.0-1 is now installed in /mnt/mmc-SD64G_0x016e52ea-part1/crud/.rocks (license: MIT)

Failed to set locale to C.UTF-8
Failed to set locale to C.UTF-8
Failed to set locale to C.UTF-8
Installing http://rocks.tarantool.org/luacov-0.13.0-1.rockspec

Cloning into 'luacov'...
remote: Enumerating objects: 78, done.
remote: Counting objects: 100% (78/78), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 78 (delta 13), reused 49 (delta 9), pack-reused 0
Receiving objects: 100% (78/78), 56.82 KiB | 239.00 KiB/s, done.
Resolving deltas: 100% (13/13), done.
Note: switching to '637c48d59f722050d718d0c398f655bc7fe1707a'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Failed to set locale to C.UTF-8
luacov 0.13.0-1 is now installed in /mnt/mmc-SD64G_0x016e52ea-part1/crud/.rocks (license: MIT)

Failed to set locale to C.UTF-8
Failed to set locale to C.UTF-8
Failed to set locale to C.UTF-8

Cloning into 'cluacov'...
remote: Enumerating objects: 65, done.
remote: Total 65 (delta 0), reused 0 (delta 0), pack-reused 65
Receiving objects: 100% (65/65), 39.87 KiB | 474.00 KiB/s, done.
Resolving deltas: 100% (26/26), done.
gcc -O2 -fPIC -I/usr/local/include/tarantool -c src/cluacov/deepactivelines.c -o src/cluacov/deepactivelines.o
In file included from src/cluacov/lj2/lj_obj.h:14,
                 from src/cluacov/deepactivelines.c:19:
src/cluacov/lj2/lj_arch.h:55:2: error: #error "No support for this architecture (yet)"
   55 | #error "No support for this architecture (yet)"
      |  ^~~~~
src/cluacov/lj2/lj_arch.h:294:2: error: #error "No target architecture defined"
  294 | #error "No target architecture defined"
      |  ^~~~~

Error: Build error: Failed compiling object src/cluacov/deepactivelines.o

By deleting this line, it's okay: https://github.com/tarantool/crud/blob/f0445eaf53fa1ac279673f4c4b0ac95c007241f3/deps.sh#L9

$ uname -a
Linux ARM-FLEX 5.13.12-1-MANJARO-ARM #1 SMP Wed Aug 18 07:36:58 UTC 2021 aarch64 GNU/Linux

mRrvz avatar Sep 06 '21 20:09 mRrvz

I'll highlight that those are testing / development dependencies.

User's dependencies are there:

https://github.com/tarantool/crud/blob/f0445eaf53fa1ac279673f4c4b0ac95c007241f3/crud-scm-1.rockspec#L8-L13

Totktonada avatar Sep 07 '21 06:09 Totktonada

The reason is the following snippet:

https://github.com/luarocks/cluacov/blob/2a1178a535727acad7bf358b6bcffd9ac139aad4/src/cluacov/lj2/lj_arch.h#L40-L56

If we'll look at actual LuaJIT, now it has ARM64 branch:

https://github.com/LuaJIT/LuaJIT/blob/8ff09d9f5ad5b037926be2a50dc32b681c5e7597/src/lj_arch.h#L54-L70

One may file issue or propose a PR to https://github.com/luarocks/cluacov.

Totktonada avatar Sep 07 '21 06:09 Totktonada

I notified the module maintainers about the problem, see https://github.com/luarocks/cluacov/issues/3.

Totktonada avatar Apr 03 '22 22:04 Totktonada

Blocked by https://github.com/luarocks/cluacov/issues/3

DifferentialOrange avatar Jun 14 '23 07:06 DifferentialOrange

Solved in https://github.com/luarocks/cluacov. Let's replace the rockspec URI.

https://github.com/tarantool/crud/blob/75b4076cd6eb08cd56a60f9d16e2063a7b63daa3/deps.sh#L19

mpeterv -> luarocks

Totktonada avatar May 15 '24 14:05 Totktonada