Tool to Control Fan - fanctl
#51
So I tried to repeat everything again. Maybe you could provide some input on this error.

luarocks build  https://raw.githubusercontent.com/tuxd3v...0.rockspec
Cloning into 'ats'...
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 15 (delta 1), reused 6 (delta 0), pack-reused 0
Receiving objects: 100% (15/15), 85.48 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Warning: variable CFLAGS was not passed in build_variables
gcc -c -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3  -o src/ats.o src/ats.c
gcc -shared -Wl,-soname,ats.so.0 -llua5.3  -o ats.so.0.2 src/ats.o
systemctl status ats
● ats.service - ATS - Active Thermal Service
   Loaded: loaded (/lib/systemd/system/ats.service; enabled; vendor preset: enabled)   Active: activating (auto-restart) (Result: exit-code) since Mon 2018-10-22 20:03:42 MST; 1s ago
  Process: 4927 ExecStart=/usr/sbin/ats (code=exited, status=1/FAILURE)
 Main PID: 4927 (code=exited, status=1/FAILURE)

Also

ats --test
lua: /usr/sbin/ats:18: module 'ats' not found:
no field package.preload['ats']
no file '/usr/local/share/lua/5.3/ats.lua'
no file '/usr/local/share/lua/5.3/ats/init.lua'
no file '/usr/local/lib/lua/5.3/ats.lua'
no file '/usr/local/lib/lua/5.3/ats/init.lua'
no file '/usr/share/lua/5.3/ats.lua'
no file '/usr/share/lua/5.3/ats/init.lua'
no file './ats.lua'
no file './ats/init.lua'
no file '/usr/local/lib/lua/5.3/ats.so'
no file '/usr/lib/arm-linux-gnueabihf/lua/5.3/ats.so'
no file '/usr/lib/lua/5.3/ats.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './ats.so'
stack traceback:
[C]: in function 'require'
/usr/sbin/ats:18: in main chunk
[C]: in ?

I really appreciate all your help.
  Reply
#52
(10-22-2018, 09:10 PM)O1Hitman1O Wrote: So I tried to repeat everything again. Maybe you could provide some input on this error.

Hello O1Hitman1O,
No problem..

Warning: variable CFLAGS was not passed in build_variables
Its a warning saying that Lua rockspec file(the address+ rockspecfile you used to build),
Don't have any information about the gcc flags to use during compilation process..
That is normal, because that logic was put into Makefile, and not into the rockspec...in that way it allows you to do all steps manually( if you want to )..

The problem was in the path.. for ats.so.0.2

But I don't understand why it used a different path..
Any way..I updated Makefile, to a better target detection..
The master repo seems to be now OK, on GitHub..

You should now be able to install.
  Reply
#53
Everything is working now. Thank you.
  Reply
#54
(10-23-2018, 12:38 AM)O1Hitman1O Wrote: Everything is working now. Thank you.

Hello O1Hitman1O,

you welcome,
nice to hear that you succeeded, and thanks for the assistance in debugging, that way, ats install procedure is more capable..


regards
  Reply
#55
I am trying to follow your guide
but when I input


Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-0.1-6.rockspec


I got:


Error loading file: [string "/etc/luarocks/config.lua"]:6: unexpected symbol near '.'

also what is the exact apt - get install for the kernel 4.4.162 witch is the latest version I believe.
  Reply
#56
Hello, can you help me with this error?

Cloning into 'ats'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 16 (delta 1), reused 5 (delta 0), pack-reused 0
Receiving objects: 100% (16/16), 95.89 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Warning: variable CFLAGS was not passed in build_variables
gcc -c -march=armv8-a+simd+crypto+crc -mtune=cortex-a72.cortex-a53 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o src/ats.o src/ats.c
gcc: error: unrecognized argument in option '-march=armv8-a+simd+crypto+crc'
gcc: note: valid arguments to '-march=' are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6kz armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc armv8.1-a armv8.1-a+crc iwmmxt iwmmxt2 native
Makefile:36: recipe for target 'src/ats.o' failed
make: *** [src/ats.o] Error 1

Error: Build error: Failed building.
  Reply
#57
(11-10-2018, 03:32 AM)dreadbv Wrote: Hello, can you help me with this error?

Cloning into 'ats'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 16 (delta 1), reused 5 (delta 0), pack-reused 0
Receiving objects: 100% (16/16), 95.89 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Warning: variable CFLAGS was not passed in build_variables
gcc -c -march=armv8-a+simd+crypto+crc -mtune=cortex-a72.cortex-a53 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3  -o src/ats.o src/ats.c
gcc: error: unrecognized argument in option '-march=armv8-a+simd+crypto+crc'
gcc: note: valid arguments to '-march=' are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6kz armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc armv8.1-a armv8.1-a+crc iwmmxt iwmmxt2 native
Makefile:36: recipe for target 'src/ats.o' failed
make: *** [src/ats.o] Error 1

Error: Build error: Failed building.

Hello ,
Can you post the result if this command?
Code:
gcc -v

This should be related to a older version of gcc.
In Fact for now I could drop some flags, so that you would be able to compile.

It would be nice to know, your gcc version with the command above.
  Reply
#58
(11-10-2018, 02:46 AM)Girbur Wrote: I am trying to follow your guide
but when I input


Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-0.1-6.rockspec


I got:


Error loading file: [string "/etc/luarocks/config.lua"]:6: unexpected symbol near '.'

also what is the exact apt - get install for the kernel 4.4.162 witch is the latest version I believe.

Hello Girbur,
its something you typed in  "/etc/luarocks/config.lua"(  probably in the process of copy & paste) [Image: wink.png]

do this:
edit file /etc/luarocks/config.lua,
and delete this section:
Code:
variables = {
   UNISTD_INCDIR   = "/usr/include",
   STAT_INCDIR     = "/usr/include/$( gcc -dumpmachine )",
   TYPES_INCDIR    = "/usr/include/$( gcc -dumpmachine )",
   LUALIB_INCDIR   = "/usr/include/lua5.3",
   LAUXLIB_INCDIR  = "/usr/include/lua5.3",
   LUA_INCDIR      = "/usr/include/lua5.3",
   LUA53_LIBDIR    = "/usr/lib/$( gcc -dumpmachine )"
}

Then, try Again..
I advise you to install the master-0 version( its more updated, than v0.1.6, and its stable ).

For that, type only this( after delete the section above ):
Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec

Does you Succeded?

Regards
  Reply
#59
(11-10-2018, 08:44 PM)tuxd3v Wrote:
(11-10-2018, 02:46 AM)Girbur Wrote: I am trying to follow your guide
but when I input


Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-0.1-6.rockspec


I got:


Error loading file: [string "/etc/luarocks/config.lua"]:6: unexpected symbol near '.'

also what is the exact apt - get install for the kernel 4.4.162 witch is the latest version I believe.

Hello Girbur,
its something you typed in  "/etc/luarocks/config.lua"(  probably in the process of copy & paste) [Image: wink.png]

do this:
edit file /etc/luarocks/config.lua,
and delete this section:
Code:
variables = {
   UNISTD_INCDIR   = "/usr/include",
   STAT_INCDIR     = "/usr/include/$( gcc -dumpmachine )",
   TYPES_INCDIR    = "/usr/include/$( gcc -dumpmachine )",
   LUALIB_INCDIR   = "/usr/include/lua5.3",
   LAUXLIB_INCDIR  = "/usr/include/lua5.3",
   LUA_INCDIR      = "/usr/include/lua5.3",
   LUA53_LIBDIR    = "/usr/lib/$( gcc -dumpmachine )"
}

Then, try Again..
I advise you to install the master-0 version( its more updated, than v0.1.6, and its stable ).

For that, type only this( after delete the section above ):
Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec

Does you Succeded?

Regards

Oh yes 2 question I had
Code:
/sys/class/hwmon/hwmon0/pwm1 set at 100 what should I put as reset value since the tools is controling it again how to install
the latest version of the kernel

root@rockpro64:~# systemctl status ats
● ats.service - ATS - Active Thermal Service
   Loaded: loaded (/lib/systemd/system/ats.service; enabled; vendor preset: enab
led)
   Active: active (running) since Sat 2018-11-10 21:20:27 PST; 2min 3
7s ago
 Main PID: 1172 (lua)
    Tasks: 1 (limit: 4915)
   Memory: 296.0K
      CPU: 12ms
   CGroup: /system.slice/ats.service
           └─1172 lua /usr/local/sbin/ats

Nov 10 21:20:27 rockpro64 systemd[1]: Started ATS - Active Thermal Service.
root@rockpro64:~# ^C
root@rockpro64:~#
  Reply
#60
(11-10-2018, 09:37 AM)tuxd3v Wrote:
(11-10-2018, 03:32 AM)dreadbv Wrote: Hello, can you help me with this error?

Cloning into 'ats'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 16 (delta 1), reused 5 (delta 0), pack-reused 0
Receiving objects: 100% (16/16), 95.89 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Warning: variable CFLAGS was not passed in build_variables
gcc -c -march=armv8-a+simd+crypto+crc -mtune=cortex-a72.cortex-a53 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3  -o src/ats.o src/ats.c
gcc: error: unrecognized argument in option '-march=armv8-a+simd+crypto+crc'
gcc: note: valid arguments to '-march=' are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6kz armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc armv8.1-a armv8.1-a+crc iwmmxt iwmmxt2 native
Makefile:36: recipe for target 'src/ats.o' failed
make: *** [src/ats.o] Error 1

Error: Build error: Failed building.

Hello ,
Can you post the result if this command?
Code:
gcc -v

This should be related to a older version of gcc.
In Fact for now I could drop some flags, so that you would be able to compile.

It would be nice to know, your gcc version with the command above.

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/6/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PWM Fan Control Python Script superbox 0 1,309 02-04-2022, 10:02 PM
Last Post: superbox

Forum Jump:


Users browsing this thread: 1 Guest(s)