tuxd3v / ats

91 stars 12 forks source link

Doesn't play well with Manjaro and lua 5.4 #34

Open Taurolyon opened 1 year ago

Taurolyon commented 1 year ago
[jay@rockpro64 ~]$ sudo luarocks build  https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
Cloning into 'ats'...
remote: Enumerating objects: 2159, done.
remote: Counting objects: 100% (77/77), done.
remote: Compressing objects: 100% (53/53), done.
remote: Total 2159 (delta 30), reused 57 (delta 21), pack-reused 2082
Receiving objects: 100% (2159/2159), 740.61 KiB | 4.38 MiB/s, done.
Resolving deltas: 100% (1293/1293), done.

ats master-0 depends on lua >= 5.3 (5.4-1 provided by VM)
Warning: variable CFLAGS was not passed in build_variables
egrep: warning: egrep is obsolescent; using grep -E
** PLATFORM = linux  **
** OS       = 64Bits **
** ARCH     = Lua 5.4 Please install Lua >=5.3 **
** TUNE     = Lua 5.4 Please install Lua >=5.3 **
gcc -c -march=Lua 5.4 Please install Lua >=5.3 -mtune=Lua 5.4 Please install Lua >=5.3 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3  -o debug.o src/debug.c
cc1: error: unknown value ‘lua’ for ‘-march’
cc1: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a armv8.6-a armv8.7-a armv8.8-a armv8-r armv9-a native
cc1: error: unknown value ‘lua’ for ‘-mtune’
cc1: note: valid arguments are: cortex-a34 cortex-a35 cortex-a53 cortex-a57 cortex-a72 cortex-a73 thunderx thunderxt88p1 thunderxt88 octeontx octeontx81 octeontx83 thunderxt81 thunderxt83 ampere1 emag xgene1 falkor qdf24xx exynos-m1 phecda thunderx2t99p1 vulcan thunderx2t99 cortex-a55 cortex-a75 cortex-a76 cortex-a76ae cortex-a77 cortex-a78 cortex-a78ae cortex-a78c cortex-a65 cortex-a65ae cortex-x1 ares neoverse-n1 neoverse-e1 octeontx2 octeontx2t98 octeontx2t96 octeontx2t93 octeontx2f95 octeontx2f95n octeontx2f95mm a64fx tsv110 thunderx3t110 zeus neoverse-v1 neoverse-512tvb saphira cortex-a57.cortex-a53 cortex-a72.cortex-a53 cortex-a73.cortex-a35 cortex-a73.cortex-a53 cortex-a75.cortex-a55 cortex-a76.cortex-a55 cortex-r82 cortex-a510 cortex-a710 cortex-x2 neoverse-n2 demeter generic
make: *** [Makefile:191: debug.o] Error 1

Error: Build error: Failed building.
[jay@rockpro64 ~]$ ls /usr/include/lua*
-rw-r--r-- 1 root  21K Dec 27 10:41 /usr/include/luaconf.h
-rw-r--r-- 1 root  16K Dec 27 10:41 /usr/include/lua.h
-rw-r--r-- 1 root  191 Dec 27 10:41 /usr/include/lua.hpp
-rw-r--r-- 1 root 1.1K Dec 27 10:41 /usr/include/lualib.h

/usr/include/lua5.3:
total 100K
drwxr-xr-x   2 root 4.0K Jan 19 18:54 .
drwxr-xr-x 315 root  32K Jan 19 19:32 ..
-rw-r--r--   1 root 8.5K Sep 30  2020 lauxlib.h
-rw-r--r--   1 root  22K Sep 30  2020 luaconf.h
-rw-r--r--   1 root  15K Sep 30  2020 lua.h
-rw-r--r--   1 root  191 Sep 30  2020 lua.hpp
-rw-r--r--   1 root 1.3K Sep 30  2020 lualib.h

/usr/include/luajit-2.1:
total 84K
drwxr-xr-x   2 root 4.0K Jan 13 07:07 .
drwxr-xr-x 315 root  32K Jan 19 19:32 ..
-rw-r--r--   1 root 5.9K Dec 17 02:25 lauxlib.h
-rw-r--r--   1 root 4.5K Dec 17 02:25 luaconf.h
-rw-r--r--   1 root  13K Dec 17 02:25 lua.h
-rw-r--r--   1 root  135 Dec 17 02:25 lua.hpp
-rw-r--r--   1 root 3.0K Dec 17 02:25 luajit.h
-rw-r--r--   1 root 1.2K Dec 17 02:25 lualib.h

I do have lua53 installed from the AUR, and both lua5.3 and 5.4 are installed.

[jay@rockpro64 ~]$ lua5.4 -v
Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio
[jay@rockpro64 ~]$ lua5.3 -v
Lua 5.3.6  Copyright (C) 1994-2020 Lua.org, PUC-Rio
tuxd3v commented 1 year ago

Hello Taurolyon,

check what is the default lua version,

ls -l /usr/bin/lua

If that way doesn´t work, maybe a way of solve it, is removing lua
5.4, then try to install,

You can also, install it manually.

,

What is the OS  you are using?

Best regards

tux

----- Mensagem de Taurolyon @.***> ---------

Data: Sat, 21 Jan 2023 14:09:54 -0800

De: Taurolyon @.***>

Assunto: [tuxd3v/ats] Doesn't play well with Manjaro and lua 5.4 (Issue #34)

Para: tuxd3v/ats @.***>

Cc: Subscribed @.***>

@. ~]$ sudo luarocks build
https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
Cloning into 'ats'... remote: Enumerating objects: 2159, done.
remote: Counting objects: 100% (77/77), done. remote: Compressing
objects: 100% (53/53), done. remote: Total 2159 (delta 30), reused
57 (delta 21), pack-reused 2082 Receiving objects: 100%
(2159/2159), 740.61 KiB | 4.38 MiB/s, done. Resolving deltas: 100%
(1293/1293), done. ats master-0 depends on lua >= 5.3 (5.4-1
provided by VM) Warning: variable CFLAGS was not passed in
build_variables egrep: warning: egrep is obsolescent; using grep -E
PLATFORM = linux OS = 64Bits ARCH = Lua
5.4 Please install Lua >=5.3
TUNE = Lua 5.4 Please
install Lua >=5.3
gcc -c -march=Lua 5.4 Please install Lua >=5.3
-mtune=Lua 5.4 Please install Lua >=5.3 -fPIC -Wall -Werror -O3 -g
-I/usr/include/lua5.3 -o debug.o src/debug.c cc1: error: unknown
value ‘lua’ for ‘-march’ cc1: note: valid arguments are: armv8-a
armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a armv8.6-a
armv8.7-a armv8.8-a armv8-r armv9-a native cc1: error: unknown
value ‘lua’ for ‘-mtune’ cc1: note: valid arguments are: cortex-a34
cortex-a35 cortex-a53 cortex-a57 cortex-a72 cortex-a73 thunderx
thunderxt88p1 thunderxt88 octeontx octeontx81 octeontx83 thunderxt81
thunderxt83 ampere1 emag xgene1 falkor qdf24xx exynos-m1 phecda
thunderx2t99p1 vulcan thunderx2t99 cortex-a55 cortex-a75 cortex-a76
cortex-a76ae cortex-a77 cortex-a78 cortex-a78ae cortex-a78c
cortex-a65 cortex-a65ae cortex-x1 ares neoverse-n1 neoverse-e1
octeontx2 octeontx2t98 octeontx2t96 octeontx2t93 octeontx2f95
octeontx2f95n octeontx2f95mm a64fx tsv110 thunderx3t110 zeus
neoverse-v1 neoverse-512tvb saphira cortex-a57.cortex-a53
cortex-a72.cortex-a53 cortex-a73.cortex-a35 cortex-a73.cortex-a53
cortex-a75.cortex-a55 cortex-a76.cortex-a55 cortex-r82 cortex-a510
cortex-a710 cortex-x2 neoverse-n2 demeter generic make:

[Makefile:191: debug.o] Error 1 Error: Build error: Failed
building. @.** ~]$ ls /usr/include/lua -rw-r--r-- 1 root 21K Dec
27 10:41 /usr/include/luaconf.h -rw-r--r-- 1 root 16K Dec 27 10:41
/usr/include/lua.h -rw-r--r-- 1 root 191 Dec 27 10:41
/usr/include/lua.hpp -rw-r--r-- 1 root 1.1K Dec 27 10:41
/usr/include/lualib.h /usr/include/lua5.3: total 100K
drwxr-xr-x 2 root 4.0K Jan 19 18:54 . drwxr-xr-x 315 root 32K
Jan 19 19:32 .. -rw-r--r-- 1 root 8.5K Sep 30 2020 lauxlib.h
-rw-r--r-- 1 root 22K Sep 30 2020 luaconf.h -rw-r--r-- 1 root
15K Sep 30 2020 lua.h -rw-r--r-- 1 root 191 Sep 30 2020
lua.hpp -rw-r--r-- 1 root 1.3K Sep 30 2020 lualib.h
/usr/include/luajit-2.1: total 84K drwxr-xr-x 2 root 4.0K Jan 13
07:07 . drwxr-xr-x 315 root 32K Jan 19 19:32 .. -rw-r--r-- 1
root 5.9K Dec 17 02:25 lauxlib.h -rw-r--r-- 1 root 4.5K Dec 17
02:25 luaconf.h -rw-r--r-- 1 root 13K Dec 17 02:25 lua.h
-rw-r--r-- 1 root 135 Dec 17 02:25 lua.hpp -rw-r--r-- 1 root
3.0K Dec 17 02:25 luajit.h -rw-r--r-- 1 root 1.2K Dec 17 02:25
lualib.h

I do have lua53 installed from the AUR, and both lua5.3 and 5.4 are
installed.

@. ~]$ lua5.4 -v Lua 5.4.4 Copyright (C) 1994-2022
Lua.org, PUC-Rio
@. ~]$ lua5.3 -v Lua 5.3.6 Copyright
(C) 1994-2020 Lua.org, PUC-Rio

Reply to this email directly, view it on GitHub[1], or unsubscribe[2].

You are receiving this because you are subscribed to this
thread.Message ID: @.***>

----- Fim da mensagem de Taurolyon @.***> -----

Ligações:

[1] https://github.com/tuxd3v/ats/issues/34 [2]
https://github.com/notifications/unsubscribe-auth/ABPFUJ76UJWHLOMWGIVL6QTWTRNDFANCNFSM6AAAAAAUCTW32E