Closed FabioLolix closed 10 months ago
I can't open issues at https://github.com/thermitegod/spacefm
The issue with building spacefm from git master is
Found ninja-1.11.1 at /usr/sbin/ninja
ninja: Entering directory `build'
[2/91] Precompiling header ../pch/cxx_pch.hxx
In file included from ../pch/cxx_pch.hxx:75:
/usr/include/ztd/ztd.hxx:23:2: warning: #warning ZTD_VERSION is not set, using version '1' [-Wcpp]
23 | #warning ZTD_VERSION is not set, using version '1'
| ^~~~~~~
[69/91] Compiling C++ object spacefm.p/src_ptk_ptk-file-browser.cxx.o
../src/ptk/ptk-file-browser.cxx: In member function 'const std::filesystem::__cxx11::path& navigation_history_data::path(ptk::file_browser::chdir_mode) const':
../src/ptk/ptk-file-browser.cxx:276:1: warning: control reaches end of non-void function [-Wreturn-type]
276 | }
| ^
[91/91] Linking target spacefm
FAILED: spacefm
c++ -o spacefm spacefm.p/src_about.cxx.o spacefm.p/src_autosave.cxx.o spacefm.p/src_bookmarks.cxx.o spacefm.p/src_file-search.cxx.o spacefm.p/src_ipc.cxx.o spacefm.p/src_ipc-command.cxx.o spacefm.p/src_main.cxx.o spacefm.p/src_main-window.cxx.o spacefm.p/src_preference-dialog.cxx.o spacefm.p/src_program-timer.cxx.o spacefm.p/src_scripts.cxx.o spacefm.p/src_settings.cxx.o spacefm.p/src_single-instance.cxx.o spacefm.p/src_terminal-handlers.cxx.o spacefm.p/src_types.cxx.o spacefm.p/src_utils.cxx.o spacefm.p/src_compat_gtk4-porting.cxx.o spacefm.p/src_compat_type-conversion.cxx.o spacefm.p/src_commandline_commandline.cxx.o spacefm.p/src_commandline_socket.cxx.o spacefm.p/src_commandline_socket_subcommands.cxx.o spacefm.p/src_commandline_socket_get_subcommands.cxx.o spacefm.p/src_commandline_socket_get-task_subcommands.cxx.o spacefm.p/src_commandline_socket_run-task_subcommands.cxx.o spacefm.p/src_commandline_socket_set_subcommands.cxx.o spacefm.p/src_commandline_socket_set-task_subcommands.cxx.o spacefm.p/src_xset_xset.cxx.o spacefm.p/src_xset_xset-context-menu.cxx.o spacefm.p/src_xset_xset-custom.cxx.o spacefm.p/src_xset_xset-defaults.cxx.o spacefm.p/src_xset_xset-design.cxx.o spacefm.p/src_xset_xset-design-clipboard.cxx.o spacefm.p/src_xset_xset-dialog.cxx.o spacefm.p/src_xset_xset-keyboard.cxx.o spacefm.p/src_xset_xset-lookup.cxx.o spacefm.p/src_xset_xset-misc.cxx.o spacefm.p/src_xset_xset-toolbar.cxx.o spacefm.p/src_settings_app.cxx.o spacefm.p/src_settings_config-load.cxx.o spacefm.p/src_settings_config-save.cxx.o spacefm.p/src_settings_upgrade_config-upgrade.cxx.o spacefm.p/src_utils_memory.cxx.o spacefm.p/src_mime-type_mime-action.cxx.o spacefm.p/src_mime-type_mime-type.cxx.o spacefm.p/src_mime-type_chrome_mime-utils.cxx.o spacefm.p/src_ptk_ptk-app-chooser.cxx.o spacefm.p/src_ptk_ptk-archiver.cxx.o spacefm.p/src_ptk_ptk-bookmark-view.cxx.o spacefm.p/src_ptk_ptk-clipboard.cxx.o spacefm.p/src_ptk_ptk-dialog.cxx.o spacefm.p/src_ptk_ptk-dir-tree.cxx.o spacefm.p/src_ptk_ptk-dir-tree-view.cxx.o spacefm.p/src_ptk_ptk-file-actions-misc.cxx.o spacefm.p/src_ptk_ptk-file-actions-open.cxx.o spacefm.p/src_ptk_ptk-file-actions-paste.cxx.o spacefm.p/src_ptk_ptk-file-actions-rename.cxx.o spacefm.p/src_ptk_ptk-file-browser.cxx.o spacefm.p/src_ptk_ptk-file-list.cxx.o spacefm.p/src_ptk_ptk-file-menu.cxx.o spacefm.p/src_ptk_ptk-file-properties.cxx.o spacefm.p/src_ptk_ptk-file-task.cxx.o spacefm.p/src_ptk_ptk-keyboard.cxx.o spacefm.p/src_ptk_ptk-location-view.cxx.o spacefm.p/src_ptk_ptk-path-entry.cxx.o spacefm.p/src_ptk_ptk-task-view.cxx.o spacefm.p/src_ptk_ptk-utils.cxx.o spacefm.p/src_ptk_natsort_strnatcmp.c.o spacefm.p/src_vfs_vfs-app-desktop.cxx.o spacefm.p/src_vfs_vfs-async-task.cxx.o spacefm.p/src_vfs_vfs-async-thread.cxx.o spacefm.p/src_vfs_vfs-device.cxx.o spacefm.p/src_vfs_vfs-dir.cxx.o spacefm.p/src_vfs_vfs-file.cxx.o spacefm.p/src_vfs_vfs-file-task.cxx.o spacefm.p/src_vfs_vfs-mime-type.cxx.o spacefm.p/src_vfs_vfs-mime-monitor.cxx.o spacefm.p/src_vfs_vfs-monitor.cxx.o spacefm.p/src_vfs_vfs-thumbnailer.cxx.o spacefm.p/src_vfs_vfs-time.cxx.o spacefm.p/src_vfs_vfs-trash-can.cxx.o spacefm.p/src_vfs_vfs-user-dirs.cxx.o spacefm.p/src_vfs_vfs-utils.cxx.o spacefm.p/src_vfs_vfs-volume.cxx.o spacefm.p/src_vfs_libudevpp_udev.cxx.o spacefm.p/src_vfs_libudevpp_udev_device.cxx.o spacefm.p/src_vfs_libudevpp_udev_enumerate.cxx.o spacefm.p/src_vfs_libudevpp_udev_monitor.cxx.o spacefm.p/src_vfs_linux_procfs.cxx.o spacefm.p/src_vfs_linux_sysfs.cxx.o -flto -Wl,--as-needed -Wl,--no-undefined -pie -Wl,--as-needed -Wl,-z,noexecstack -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -Wl,--start-group /usr/lib/libgtkmm-3.0.so /usr/lib/libatkmm-1.6.so /usr/lib/libgdkmm-3.0.so /usr/lib/libgiomm-2.4.so /usr/lib/libgtk-3.so /usr/lib/libgdk-3.so /usr/lib/libz.so /usr/lib/libatk-1.0.so /usr/lib/libcairo-gobject.so /usr/lib/libgio-2.0.so /usr/lib/libpangomm-1.4.so /usr/lib/libglibmm-2.4.so /usr/lib/libcairomm-1.0.so /usr/lib/libsigc-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libharfbuzz.so /usr/lib/libcairo.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libexo-2.so /usr/lib/libxfce4util.so /usr/lib/libspdlog.so -pthread /usr/lib/libfmt.so /usr/lib/libsigc-3.0.so /usr/lib/libpugixml.so /usr/lib/libzmq.so -lzmqpp /usr/lib/libudev.so /usr/lib/libffmpegthumbnailer.so /usr/lib/libssl.so /usr/lib/libcrypto.so -Wl,--end-group
/usr/sbin/ld: /tmp/cca5pPZr.ltrans0.ltrans.o: in function `void spdlog::logger::log_<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(spdlog::source_loc, spdlog::level::level_enum, std::basic_string_view<char, std::char_traits<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)':
<artificial>:(.text+0x345b): undefined reference to `spdlog::details::log_msg::log_msg(spdlog::source_loc, std::basic_string_view<char, std::char_traits<char> >, spdlog::level::level_enum, std::basic_string_view<char, std::char_traits<char> >)'
/usr/sbin/ld: /tmp/cca5pPZr.ltrans8.ltrans.o: in function `void spdlog::logger::log<char [23]>(spdlog::level::level_enum, char const (&) [23])':
<artificial>:(.text+0xba5): undefined reference to `spdlog::details::log_msg::log_msg(spdlog::source_loc, std::basic_string_view<char, std::char_traits<char> >, spdlog::level::level_enum, std::basic_string_view<char, std::char_traits<char> >)'
/usr/sbin/ld: /tmp/cca5pPZr.ltrans8.ltrans.o: in function `on_new_window_activate(_GtkMenuItem*, void*)':
<artificial>:(.text+0x3e4f): undefined reference to `spdlog::details::log_msg::log_msg(spdlog::source_loc, std::basic_string_view<char, std::char_traits<char> >, spdlog::level::level_enum, std::basic_string_view<char, std::char_traits<char> >)'
/usr/sbin/ld: /tmp/cca5pPZr.ltrans10.ltrans.o: in function `void ztd::logger::error<std::basic_string_view<char, std::char_traits<char> > const&>(std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > const&)':
<artificial>:(.text+0xb61): undefined reference to `spdlog::details::log_msg::log_msg(spdlog::source_loc, std::basic_string_view<char, std::char_traits<char> >, spdlog::level::level_enum, std::basic_string_view<char, std::char_traits<char> >)'
/usr/sbin/ld: /tmp/cca5pPZr.ltrans17.ltrans.o: in function `void ztd::logger::warn<char [56]>(char const (&) [56])':
<artificial>:(.text+0x2880): undefined reference to `spdlog::details::log_msg::log_msg(spdlog::source_loc, std::basic_string_view<char, std::char_traits<char> >, spdlog::level::level_enum, std::basic_string_view<char, std::char_traits<char> >)'
/usr/sbin/ld: /tmp/cca5pPZr.ltrans19.ltrans.o:<artificial>:(.text+0x1b40): more undefined references to `spdlog::details::log_msg::log_msg(spdlog::source_loc, std::basic_string_view<char, std::char_traits<char> >, spdlog::level::level_enum, std::basic_string_view<char, std::char_traits<char> >)' follow
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
There is also a problem with spacefm v2.1.0, it no longer launch, this has been reported too
From https://aur.archlinux.org/packages/spacefm-thermitegod#comment-948441
(spacefm:16442): SpaceFM-WARNING **: 10:36:43.975: could not create socket /run/spacefm-theeast:0.socket
COMMAND=/bin/bash -c "cd /home/theeast/.config/spacefm && git add session && git commit -m 'Session File' 1>/dev/null"
spacefm: No such property from XGetWindowProperty() _NET_CURRENT_DESKTOP
Segmentation fault
From my machine instead
$ LANG=C spacefm
(spacefm:840896): SpaceFM-WARNING **: 20:46:12.245: could not create socket /run/spacefm-fabio:0.socket
COMMAND=/bin/bash -c "cd /home/fabio/.config/spacefm && git add session && git commit -m 'Session File' 1>/dev/null"
(spacefm:840896): SpaceFM-WARNING **: 20:46:12.255: No root settings found in /etc/spacefm/ Setting a root editor in Preferences should remove this warning on startup. Otherwise commands run as root may present a security risk.
special mount changed: gvfsd-fuse (0:50) on /run/user/1000/gvfs
special mount changed: portal (0:53) on /run/user/1000/doc
Errore di segmentazione (core dump creato)
Thanks for your time
Still exists issue with build spacefm:
-Wdate-time -D_FORTIFY_SOURCE=2 -isystem /usr/include/mit-krb5 -DSPDLOG_SHARED_LIB -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -pthread -MD -MQ spacefm.p/cxx_pch.hxx.gch -MF spacefm.p/cxx_pch.hxx.gch.d -o spacefm.p/cxx_pch.hxx.gch -c ../pch/cxx_pch.hxx
In file included from ../pch/cxx_pch.hxx:75:
/usr/include/ztd/ztd.hxx:23:2: warning: #warning ZTD_VERSION is not set, using version '1' [-Wcpp]
23 | #warning ZTD_VERSION is not set, using version '1'
| ^~~~~~~
In file included from ../pch/cxx_pch.hxx:76:
/usr/include/ztd/ztd_logger.hxx: In static member function ‘static void ztd::{anonymous}::log_manager::initialize(spdlog::level::level_enum, const std::filesystem::__cxx11::path&)’:
/usr/include/ztd/ztd_logger.hxx:76:51: error: ‘ztd::logger’ has not been declared
76 | std::make_shared<spdlog::logger>(ztd::logger::detail::manager::domain, sinks.cbegin(), sinks.cend());
| ^~~~~~
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j2 -v returned exit code 1
Hello @thermitegod, I'm the AUR pkgbuild maintainer of your software ztd-git, spacefm-thermitegod-git, spacefm-thermitegod
ztd
is packaged separately from spacefm and tests are builded and performed, recently have been reported a build issuesthe issue is in building the tests; however spacefm from the last commit have the same problem at first sight
lto and pie are enabled but disabling them change nothing
spdlog is at v1.12.0, GGC is at v13.2.1
Need more info?