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

Can't compile from master #964

Open
roland-5 opened this issue Jan 6, 2025 · 3 comments
Open

Can't compile from master #964

roland-5 opened this issue Jan 6, 2025 · 3 comments

Comments

@roland-5
Copy link

roland-5 commented Jan 6, 2025

I tried to compile from master from newest commit f9ca463 but I got error.
Arch Linux
From AUR https://aur.archlinux.org/packages/rbdoom3-bfg-git

Compile error:
https://gist.github.com/roland-5/b1976fef9ac6c8c6a1b860af96f8c320

@ericwomer
Copy link

Compile for me on Fedora 41 system info on master branch up to commit 67987ab

@roland-5
Copy link
Author

roland-5 commented Jan 9, 2025

From version of GCC you have?

@roland-5
Copy link
Author

roland-5 commented Jan 9, 2025

I tried again, and had the same error:

[100%] Building CXX object CMakeFiles/RBDoom3BFG.dir/renderer/NVRHI/BufferObject_NVRHI.cpp.o
[100%] Building CXX object CMakeFiles/RBDoom3BFG.dir/renderer/NVRHI/Framebuffer_NVRHI.cpp.o
[100%] Building CXX object CMakeFiles/RBDoom3BFG.dir/renderer/NVRHI/Image_NVRHI.cpp.o
cc1plus: warning: /home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/idlib/precompiled.h.gch: created with 'none' debug info, but used with 'dwarf-2' [-Winvalid-pch]
cc1plus: warning: /home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/idlib/precompiled.h.gch: created with 'none' debug info, but used with 'dwarf-2' [-Winvalid-pch]
cc1plus: warning: /home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/idlib/precompiled.h.gch: created with 'none' debug info, but used with 'dwarf-2' [-Winvalid-pch]
[100%] Building CXX object CMakeFiles/RBDoom3BFG.dir/renderer/NVRHI/RenderBackend_NVRHI.cpp.o
cc1plus: warning: /home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/idlib/precompiled.h.gch: created with 'none' debug info, but used with 'dwarf-2' [-Winvalid-pch]
[100%] Building CXX object CMakeFiles/RBDoom3BFG.dir/renderer/NVRHI/RenderDebug_NVRHI.cpp.o
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp: In function ‘const char* Posix_Cwd()’:
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp:753:15: warning: ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  753 |         getcwd( cwd, sizeof( cwd ) - 1 );
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp: In function ‘void tty_Del()’:
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp:1145:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1145 |         write( STDOUT_FILENO, &key, 1 );
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp:1147:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1147 |         write( STDOUT_FILENO, &key, 1 );
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp:1149:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1149 |         write( STDOUT_FILENO, &key, 1 );
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp: In function ‘void tty_Left()’:
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp:1155:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1155 |         write( STDOUT_FILENO, &key, 1 );
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp: In function ‘void tty_Right()’:
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp:1161:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1161 |         write( STDOUT_FILENO, &key, 1 );
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp:1162:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1162 |         write( STDOUT_FILENO, "[C", 2 );
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp: In function ‘void tty_Show()’:
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp:1210:30: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1210 |                         write( STDOUT_FILENO, buf, strlen( buf ) );
      |                         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp: In function ‘char* Posix_ConsoleInput()’:
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/posix/posix_main.cpp:1275:46: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1275 |                                         write( STDOUT_FILENO, &key, 1 );
      |                                         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: /home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/idlib/precompiled.h.gch: created with 'none' debug info, but used with 'dwarf-2' [-Winvalid-pch]
[100%] Building CXX object CMakeFiles/RBDoom3BFG.dir/renderer/NVRHI/RenderProgs_NVRHI.cpp.o
cc1plus: warning: /home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/idlib/precompiled.h.gch: created with 'none' debug info, but used with 'dwarf-2' [-Winvalid-pch]
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/DeviceManager_VK.cpp: In member function ‘virtual bool DeviceManager_VK::CreateDeviceAndSwapChain()’:
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/DeviceManager_VK.cpp:1274:26: error: ‘DynamicLoader’ in namespace ‘vk’ does not name a type; did you mean ‘DynamicState’?
 1274 |         static const vk::DynamicLoader dl;
      |                          ^~~~~~~~~~~~~
      |                          DynamicState
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/DeviceManager_VK.cpp:1276:33: error: ‘dl’ was not declared in this scope
 1276 |         vkGetInstanceProcAddr = dl.getProcAddress<PFN_vkGetInstanceProcAddr>( "vkGetInstanceProcAddr" );
      |                                 ^~
/home/roland/.cache/paru/clone/rbdoom3-bfg-git/src/rbdoom3-bfg-git/neo/sys/DeviceManager_VK.cpp:1276:76: error: expected primary-expression before ‘>’ token
 1276 |         vkGetInstanceProcAddr = dl.getProcAddress<PFN_vkGetInstanceProcAddr>( "vkGetInstanceProcAddr" );
      |                                                                            ^
make[2]: *** [CMakeFiles/RBDoom3BFG.dir/build.make:6575: CMakeFiles/RBDoom3BFG.dir/sys/DeviceManager_VK.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:283: CMakeFiles/RBDoom3BFG.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'rbdoom3-bfg-git-r2027.a51833e4-1':
checking dependencies...

Package (2)              Old Version  Net Change

directx-shader-compiler  1.8.2407-1   -38.58 MiB
rapidjson                1.1.0-6       -0.62 MiB

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