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 master fails, ‘YQ2_OSTYPE’ undeclared #41

Open
Eonfge opened this issue Feb 14, 2024 · 0 comments
Open

Build master fails, ‘YQ2_OSTYPE’ undeclared #41

Eonfge opened this issue Feb 14, 2024 · 0 comments

Comments

@Eonfge
Copy link

Eonfge commented Feb 14, 2024

FAILED: CMakeFiles/game.dir/src/savegame/savegame.c.o 
/usr/bin/cc -DYQ2ARCH=\"x86_64\" -DYQ2OSTYPE=\"Linux\" -Dgame_EXPORTS  -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -Wall -fno-strict-aliasing -fwrapv -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/game.dir/src/savegame/savegame.c.o -MF CMakeFiles/game.dir/src/savegame/savegame.c.o.d -o CMakeFiles/game.dir/src/savegame/savegame.c.o -c /run/build/zaero/src/savegame/savegame.c
/run/build/zaero/src/savegame/savegame.c:65:2: error: #error YQ2_OSTYPE should be defined by the build system
   65 | #error YQ2_OSTYPE should be defined by the build system
      |  ^~~~~
/run/build/zaero/src/savegame/savegame.c:69:2: error: #error YQ2_ARCH should be defined by the build system
   69 | #error YQ2_ARCH should be defined by the build system
      |  ^~~~~
/run/build/zaero/src/savegame/savegame.c: In function ‘WriteGame’:
/run/build/zaero/src/savegame/savegame.c:774:26: error: ‘YQ2_OSTYPE’ undeclared (first use in this function); did you mean ‘YQ2OSTYPE’?
  774 |         Q_strlcpy(sv.os, YQ2_OSTYPE, sizeof(sv.os) - 1);
      |                          ^~~~~~~~~~
      |                          YQ2OSTYPE
/run/build/zaero/src/savegame/savegame.c:774:26: note: each undeclared identifier is reported only once for each function it appears in
/run/build/zaero/src/savegame/savegame.c:775:28: error: ‘YQ2_ARCH’ undeclared (first use in this function); did you mean ‘YQ2ARCH’?
  775 |         Q_strlcpy(sv.arch, YQ2_ARCH, sizeof(sv.arch));
      |                            ^~~~~~~~
      |                            YQ2ARCH
/run/build/zaero/src/savegame/savegame.c: In function ‘ReadGame’:
/run/build/zaero/src/savegame/savegame.c:877:40: error: ‘YQ2_OSTYPE’ undeclared (first use in this function); did you mean ‘YQ2OSTYPE’?
  877 |                 else if (strcmp(sv.os, YQ2_OSTYPE) != 0)
      |                                        ^~~~~~~~~~
      |                                        YQ2OSTYPE
/run/build/zaero/src/savegame/savegame.c:882:42: error: ‘YQ2_ARCH’ undeclared (first use in this function); did you mean ‘YQ2ARCH’?
  882 |                 else if (strcmp(sv.arch, YQ2_ARCH) != 0)
      |                                          ^~~~~~~~
      |                                          YQ2ARCH

Full build log is here:

https://buildbot.flathub.org/#/builders/37/builds/12308/steps/7/logs/stdio

@Eonfge Eonfge changed the title Build master, ‘YQ2_OSTYPE’ undeclared Build master fails, ‘YQ2_OSTYPE’ undeclared Feb 14, 2024
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

1 participant