Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error Linux #87

Open
username227 opened this issue Nov 29, 2024 · 1 comment
Open

Build error Linux #87

username227 opened this issue Nov 29, 2024 · 1 comment

Comments

@username227
Copy link

Hi, I 'm getting a build error trying to build on Arch. This is the output from the end of the build process:

[100%] Building CXX object rpcsx/CMakeFiles/rpcsx.dir/ipmi.cpp.o
/home/jerry/rpcsx/rpcsx/main.cpp: In function ‘orbis::SysResult launchDaemon(orbis::Thread*, std::string, std::vector<std::__cxx11::basic_string<char> >, std::vector<std::__cxx11::basic_string<char> >, orbis::AppInfo)’:
/home/jerry/rpcsx/rpcsx/main.cpp:785:22: error: no match for ‘operator=’ (operand types are ‘orbis::AppInfoEx’ and ‘orbis::AppInfo’)
  785 |   process->appInfo = appInfo;
      |                      ^~~~~~~
In file included from /home/jerry/rpcsx/orbis-kernel/include/orbis/thread/Process.hpp:12,
                 from /home/jerry/rpcsx/rpcsx/ipmi.hpp:3,
                 from /home/jerry/rpcsx/rpcsx/main.cpp:8:
/home/jerry/rpcsx/orbis-kernel/include/orbis/AppInfo.hpp:23:8: note: candidate: ‘constexpr orbis::AppInfoEx& orbis::AppInfoEx::operator=(const orbis::AppInfoEx&)’
   23 | struct AppInfoEx : AppInfo {
      |        ^~~~~~~~~
/home/jerry/rpcsx/orbis-kernel/include/orbis/AppInfo.hpp:23:8: note:   no known conversion for argument 1 from ‘orbis::AppInfo’ to ‘const orbis::AppInfoEx&’
/home/jerry/rpcsx/orbis-kernel/include/orbis/AppInfo.hpp:23:8: note: candidate: ‘constexpr orbis::AppInfoEx& orbis::AppInfoEx::operator=(orbis::AppInfoEx&&)’
/home/jerry/rpcsx/orbis-kernel/include/orbis/AppInfo.hpp:23:8: note:   no known conversion for argument 1 from ‘orbis::AppInfo’ to ‘orbis::AppInfoEx&&’
/home/jerry/rpcsx/rpcsx/main.cpp: In function ‘int main(int, const char**)’:
/home/jerry/rpcsx/rpcsx/main.cpp:1040:3: error: no match for ‘operator=’ (operand types are ‘orbis::AppInfoEx’ and ‘<brace-enclosed initializer list>’)
 1040 |   };
      |   ^
/home/jerry/rpcsx/orbis-kernel/include/orbis/AppInfo.hpp:23:8: note: candidate: ‘constexpr orbis::AppInfoEx& orbis::AppInfoEx::operator=(const orbis::AppInfoEx&)’
   23 | struct AppInfoEx : AppInfo {
      |        ^~~~~~~~~
/home/jerry/rpcsx/orbis-kernel/include/orbis/AppInfo.hpp:23:8: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const orbis::AppInfoEx&’
/home/jerry/rpcsx/orbis-kernel/include/orbis/AppInfo.hpp:23:8: note: candidate: ‘constexpr orbis::AppInfoEx& orbis::AppInfoEx::operator=(orbis::AppInfoEx&&)’
/home/jerry/rpcsx/orbis-kernel/include/orbis/AppInfo.hpp:23:8: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘orbis::AppInfoEx&&’
/home/jerry/rpcsx/rpcsx/ops.cpp: In function ‘orbis::SysResult {anonymous}::thr_kill(orbis::Thread*, orbis::slong, orbis::sint)’:
/home/jerry/rpcsx/rpcsx/ops.cpp:628:47: warning: ignoring return value of ‘std::lock_guard<_Mutex>::lock_guard(mutex_type&) [with _Mutex = orbis::utils::shared_mutex; mutex_type = orbis::utils::shared_mutex]’, declared with attribute ‘nodiscard’ [-Wunused-result]
  628 |   auto t = (std::lock_guard(thread->tproc->mtx),
      |                                               ^
In file included from /usr/include/c++/14.2.1/bits/atomic_wait.h:51,
                 from /usr/include/c++/14.2.1/bits/atomic_base.h:42,
                 from /usr/include/c++/14.2.1/atomic:50,
                 from /home/jerry/rpcsx/orbis-kernel/include/orbis/utils/Rc.hpp:3,
                 from /home/jerry/rpcsx/orbis-kernel/include/orbis/thread/ProcessOps.hpp:6,
                 from /home/jerry/rpcsx/rpcsx/ops.hpp:3,
                 from /home/jerry/rpcsx/rpcsx/ops.cpp:1:
/usr/include/c++/14.2.1/bits/std_mutex.h:249:16: note: declared here
  249 |       explicit lock_guard(mutex_type& __m) : _M_device(__m)
      |                ^~~~~~~~~~
make[2]: *** [rpcsx/CMakeFiles/rpcsx.dir/build.make:835: rpcsx/CMakeFiles/rpcsx.dir/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:3667: rpcsx/CMakeFiles/rpcsx.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
@potgieterbt
Copy link

Hey
I believe this is a known problem, I don't think the most recent commit compiles for anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants