awesomeWM / awesome

awesome window manager
https://awesomewm.org/
GNU General Public License v2.0
6.39k stars 597 forks source link

Doesn't build with or without lgi #3741

Closed RpxdYTX closed 1 year ago

RpxdYTX commented 1 year ago

Output of awesome --version:

It isn't even installed

How to reproduce the issue:

Clone the repo, get the build dependencies, and just try to do make package on a Pop! OS 22.04 system.

Actual result:

Running make -j$(nproc) package returns:

Running make package in build…
[  0%] Running tests/examples/text/awful/keygrabber/allowed_keys.lua (via tests/examples/text/template.lua)
[  0%] Running tests/examples/text/root/fake_string.lua (via tests/examples/text/template.lua)
[  0%] Built target run-tests-examples-text-root-fake_string.lua
[  0%] Built target run-tests-examples-text-awful-keygrabber-allowed_keys.lua
[  0%] Running tests/examples/text/awful/keygrabber/alttab.lua (via tests/examples/text/template.lua)
[  1%] Running tests/examples/text/awful/keygrabber/autostart.lua (via tests/examples/text/template.lua)
[  1%] Built target run-tests-examples-text-awful-keygrabber-alttab.lua
[  1%] Built target run-tests-examples-text-awful-keygrabber-autostart.lua
[  1%] Running tests/examples/text/awful/keygrabber/release_key.lua (via tests/examples/text/template.lua)
[  1%] Running tests/examples/text/awful/keygrabber/release_keys.lua (via tests/examples/text/template.lua)
[  1%] Built target run-tests-examples-text-awful-keygrabber-release_key.lua
[  1%] Built target run-tests-examples-text-awful-keygrabber-release_keys.lua
[  2%] Running tests/examples/text/awful/keygrabber/root_keybindings.lua (via tests/examples/text/template.lua)
[  2%] Running tests/examples/text/awful/keygrabber/timeout.lua (via tests/examples/text/template.lua)
[  2%] Built target run-tests-examples-text-awful-keygrabber-root_keybindings.lua
[  2%] Built target run-tests-examples-text-awful-keygrabber-timeout.lua
[  2%] Running tests/examples/text/awful/keygrabber/vimode.lua (via tests/examples/text/template.lua)
[  3%] Running tests/examples/text/gears/object/properties.lua (via tests/examples/text/template.lua)
[  3%] Built target run-tests-examples-text-awful-keygrabber-vimode.lua
[  3%] Running tests/examples/text/gears/object/signal.lua (via tests/examples/text/template.lua)
[  3%] Built target run-tests-examples-text-gears-object-properties.lua
[  3%] Running tests/examples/text/gears/sort/topological.lua (via tests/examples/text/template.lua)
[  3%] Built target run-tests-examples-text-gears-object-signal.lua
[  4%] Running tests/examples/text/root/fake_click.lua (via tests/examples/text/template.lua)
[  4%] Built target run-tests-examples-text-gears-sort-topological.lua
[  5%] Built target lgi-check
[  5%] Built target run-tests-examples-text-root-fake_click.lua
[  5%] Built target version_stamp
[  5%] Built target generated_sources
[ 17%] Built target man
[ 22%] Built target generated_icons
[ 23%] Built target test-gravity
[ 84%] Built target generate-examples
[ 84%] Checking for LGI...
Building for Lua 5.4.
Error: [string "print(string.format('Building for %s.', jit a..."]:2: module 'lgi.version' not found:
    no field package.preload['lgi.version']
    no file '/usr/local/share/lua/5.4/lgi/version.lua'
    no file '/usr/local/share/lua/5.4/lgi/version/init.lua'
    no file '/usr/local/lib/lua/5.4/lgi/version.lua'
    no file '/usr/local/lib/lua/5.4/lgi/version/init.lua'
    no file '/usr/share/lua/5.4/lgi/version.lua'
    no file '/usr/share/lua/5.4/lgi/version/init.lua'
    no file './lgi/version.lua'
    no file './lgi/version/init.lua'
    no file '/usr/local/lib/lua/5.4/lgi/version.so'
    no file '/usr/lib/x86_64-linux-gnu/lua/5.4/lgi/version.so'
    no file '/usr/lib/lua/5.4/lgi/version.so'
    no file '/usr/local/lib/lua/5.4/loadall.so'
    no file './lgi/version.so'
    no file '/usr/local/lib/lua/5.4/lgi.so'
    no file '/usr/lib/x86_64-linux-gnu/lua/5.4/lgi.so'
    no file '/usr/lib/lua/5.4/lgi.so'
    no file '/usr/local/lib/lua/5.4/loadall.so'
    no file './lgi.so'

       WARNING
       =======

 The lgi check failed.
 Awesome needs lgi to run.
 Add AWESOME_IGNORE_LGI=1 to your environment to continue.

make[3]: *** [CMakeFiles/lgi-check-run.dir/build.make:71: CMakeFiles/lgi-check-run] Error 1
make[2]: *** [CMakeFiles/Makefile2:551: CMakeFiles/lgi-check-run.dir/all] Error 2
make[1]: *** [Makefile:156: all] Error 2
make: *** [Makefile:45: package] Error 2

Running with AWESOME_IGNORE_LGI=1 returns:

Running make package in build…
[  0%] Running tests/examples/text/root/fake_string.lua (via tests/examples/text/template.lua)
[  0%] Running tests/examples/text/awful/keygrabber/allowed_keys.lua (via tests/examples/text/template.lua)
[  0%] Built target run-tests-examples-text-root-fake_string.lua
[  0%] Built target run-tests-examples-text-awful-keygrabber-allowed_keys.lua
[  0%] Running tests/examples/text/awful/keygrabber/alttab.lua (via tests/examples/text/template.lua)
[  1%] Running tests/examples/text/awful/keygrabber/autostart.lua (via tests/examples/text/template.lua)
[  1%] Built target run-tests-examples-text-awful-keygrabber-alttab.lua
[  1%] Built target run-tests-examples-text-awful-keygrabber-autostart.lua
[  1%] Running tests/examples/text/awful/keygrabber/release_key.lua (via tests/examples/text/template.lua)
[  1%] Running tests/examples/text/awful/keygrabber/release_keys.lua (via tests/examples/text/template.lua)
[  1%] Built target run-tests-examples-text-awful-keygrabber-release_key.lua
[  1%] Built target run-tests-examples-text-awful-keygrabber-release_keys.lua
[  2%] Running tests/examples/text/awful/keygrabber/root_keybindings.lua (via tests/examples/text/template.lua)
[  2%] Running tests/examples/text/awful/keygrabber/timeout.lua (via tests/examples/text/template.lua)
[  2%] Built target run-tests-examples-text-awful-keygrabber-timeout.lua
[  2%] Built target run-tests-examples-text-awful-keygrabber-root_keybindings.lua
[  3%] Running tests/examples/text/awful/keygrabber/vimode.lua (via tests/examples/text/template.lua)
[  3%] Running tests/examples/text/gears/object/properties.lua (via tests/examples/text/template.lua)
[  3%] Built target run-tests-examples-text-awful-keygrabber-vimode.lua
[  3%] Built target run-tests-examples-text-gears-object-properties.lua
[  3%] Running tests/examples/text/gears/object/signal.lua (via tests/examples/text/template.lua)
[  3%] Running tests/examples/text/gears/sort/topological.lua (via tests/examples/text/template.lua)
[  3%] Built target run-tests-examples-text-gears-sort-topological.lua
[  3%] Built target run-tests-examples-text-gears-object-signal.lua
[  4%] Running tests/examples/text/root/fake_click.lua (via tests/examples/text/template.lua)
[  5%] Built target lgi-check
[  5%] Built target version_stamp
[  5%] Built target run-tests-examples-text-root-fake_click.lua
[  5%] Built target generated_sources
[ 17%] Built target man
[ 22%] Built target generated_icons
[ 23%] Built target test-gravity
[ 84%] Checking for LGI...
[ 84%] Built target generate-examples
Building for Lua 5.4.
Error: [string "print(string.format('Building for %s.', jit a..."]:2: module 'lgi.version' not found:
    no field package.preload['lgi.version']
    no file '/usr/local/share/lua/5.4/lgi/version.lua'
    no file '/usr/local/share/lua/5.4/lgi/version/init.lua'
    no file '/usr/local/lib/lua/5.4/lgi/version.lua'
    no file '/usr/local/lib/lua/5.4/lgi/version/init.lua'
    no file '/usr/share/lua/5.4/lgi/version.lua'
    no file '/usr/share/lua/5.4/lgi/version/init.lua'
    no file './lgi/version.lua'
    no file './lgi/version/init.lua'
    no file '/usr/local/lib/lua/5.4/lgi/version.so'
    no file '/usr/lib/x86_64-linux-gnu/lua/5.4/lgi/version.so'
    no file '/usr/lib/lua/5.4/lgi/version.so'
    no file '/usr/local/lib/lua/5.4/loadall.so'
    no file './lgi/version.so'
    no file '/usr/local/lib/lua/5.4/lgi.so'
    no file '/usr/lib/x86_64-linux-gnu/lua/5.4/lgi.so'
    no file '/usr/lib/lua/5.4/lgi.so'
    no file '/usr/local/lib/lua/5.4/loadall.so'
    no file './lgi.so'

       WARNING
       =======

 The lgi check failed.
 Awesome needs lgi to run.
 Add AWESOME_IGNORE_LGI=1 to your environment to continue.

[ 84%] Built target lgi-check-run
[ 84%] Built target setup_directories
[ 85%] Built target generate_awesomerc
[ 85%] Generating API documentation
[ 86%] Linking C executable awesome
Error: no suitable Lua interpreter found
Error: supported versions are: 5.2 5.1
make[3]: *** [CMakeFiles/ldoc.dir/build.make:265: doc/index.html] Error 1
make[2]: *** [CMakeFiles/Makefile2:738: CMakeFiles/ldoc.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xrdb.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xrdb.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xrdb.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/common/luaclass.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/common/luaclass.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/banning.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/common/lualib.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/common/lualib.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/common/luaobject.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/banning.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/banning.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/banning.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/banning.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/banning.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/color.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/color.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/color.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/dbus.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/dbus.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/dbus.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/draw.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/draw.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/draw.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/event.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/event.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/event.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/event.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/event.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/event.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/ewmh.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/ewmh.c.o: CMakeFiles/awesome.dir/event.c.o: tag_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/ewmh.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/ewmh.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/ewmh.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/ewmh.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/ewmh.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/keygrabber.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/keygrabber.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/keygrabber.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/luaa.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/luaa.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/luaa.c.o: CMakeFiles/awesome.dir/event.c.o: tag_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/luaa.c.o: CMakeFiles/awesome.dir/event.c.o: drawin_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/luaa.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/luaa.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/luaa.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/luaa.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/mouse.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/mouse.c.o: CMakeFiles/awesome.dir/event.c.o: drawin_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/mouse.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/mouse.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/mouse.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/mouse.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/mouse.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/mousegrabber.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/mousegrabber.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/mousegrabber.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/property.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/property.c.o: CMakeFiles/awesome.dir/event.c.o: drawin_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/property.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/property.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/property.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/property.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/property.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/root.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/root.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/root.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/root.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/selection.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/selection.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/selection.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/spawn.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/spawn.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/spawn.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/spawn.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/spawn.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/spawn.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/stack.c.o: CMakeFiles/awesome.dir/event.c.o: drawin_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/stack.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/stack.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/stack.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/stack.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/stack.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/stack.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/strut.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/strut.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/systray.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/systray.c.o: CMakeFiles/awesome.dir/event.c.o: drawin_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/systray.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/systray.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/systray.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/systray.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xwindow.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xwindow.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xwindow.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xwindow.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xkb.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xkb.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xkb.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xkb.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xkb.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/xkb.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/button.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/button.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/button.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/button.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/client.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/client.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/client.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/client.c.o: CMakeFiles/awesome.dir/event.c.o: tag_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/client.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/client.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/client.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/drawable.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/drawable.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/drawable.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/drawin.c.o: CMakeFiles/awesome.dir/event.c.o: drawin_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/drawin.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/drawin.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/drawin.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/drawin.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/drawin.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/drawin.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/key.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/key.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/key.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/screen.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/screen.c.o: CMakeFiles/awesome.dir/event.c.o: drawin_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/screen.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/screen.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/screen.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/screen.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/screen.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/tag.c.o: CMakeFiles/awesome.dir/event.c.o: tag_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/tag.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/tag.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/tag.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/tag.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/tag.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/tag.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/window.c.o: CMakeFiles/awesome.dir/awesome.c.o: window_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/window.c.o: CMakeFiles/awesome.dir/awesome.c.o: client_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/window.c.o: CMakeFiles/awesome.dir/awesome.c.o: button_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/window.c.o: CMakeFiles/awesome.dir/awesome.c.o: key_class
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/window.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
mold: error: duplicate symbol: CMakeFiles/awesome.dir/objects/window.c.o: CMakeFiles/awesome.dir/awesome.c.o: lualib_dofunction_on_error
mold: error: duplicate symbol: CMakeFiles/awesome.dir/common/luaobject.c.o: CMakeFiles/awesome.dir/awesome.c.o: global_signals
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/awesome.dir/build.make:725: awesome] Error 1
make[2]: *** [CMakeFiles/Makefile2:632: CMakeFiles/awesome.dir/all] Error 2
make[1]: *** [Makefile:156: all] Error 2
make: *** [Makefile:45: package] Error 2

Changing the linker to GNU's gold didn't hange the errors.

Expected result:

It should build the application into a .deb package that should be installable.

actionless commented 1 year ago

get the build dependencies,

module 'lgi.version' not found:

RpxdYTX commented 1 year ago
sudo nala install lua-lgi
lua-lgi is already at the latest version 0.9.2-3
Nothing for Nala to do.

Installing lua-lgi-dev didn't change anything, and i did the sudo apt build-dep awesome snippet from the README

actionless commented 1 year ago
Building for Lua 5.4.
Error: [string "print(string.format('Building for %s.', jit a..."]:2: module 'lgi.version' not found:
    no field package.preload['lgi.version']
    no file '/usr/local/share/lua/5.4/lgi/version.lua'
    no file '/usr/local/share/lua/5.4/lgi/version/init.lua'
    no file '/usr/local/lib/lua/5.4/lgi/version.lua'
    no file '/usr/local/lib/lua/5.4/lgi/version/init.lua'
    no file '/usr/share/lua/5.4/lgi/version.lua'
    no file '/usr/share/lua/5.4/lgi/version/init.lua'
    no file './lgi/version.lua'
    no file './lgi/version/init.lua'
    no file '/usr/local/lib/lua/5.4/lgi/version.so'
    no file '/usr/lib/x86_64-linux-gnu/lua/5.4/lgi/version.so'
    no file '/usr/lib/lua/5.4/lgi/version.so'
    no file '/usr/local/lib/lua/5.4/loadall.so'
    no file './lgi/version.so'
    no file '/usr/local/lib/lua/5.4/lgi.so'
    no file '/usr/lib/x86_64-linux-gnu/lua/5.4/lgi.so'
    no file '/usr/lib/lua/5.4/lgi.so'
    no file '/usr/local/lib/lua/5.4/loadall.so'
    no file './lgi.so'
sclu1034 commented 1 year ago

LGI has not yet cut a release that includes Lua 5.4 compatibility. Therefore, distribution packages usually don't include that either.

You will have to build and install LGI from source first.

actionless commented 1 year ago

or build awesome against lua version for which you have your lgi-git installed