Skip to content

Build failure on Fedora 34 (GCC 11.2.1) #1

@Calinou

Description

@Calinou

I tried to build bcf8046 from source but am getting the following error. Build log:

❯ make clean && make -j1
rm -f shared/cube.h.gch engine/engine.h.gch game/game.h.gch shared/crypto.o shared/geom.o shared/glemu.o shared/stream.o shared/tools.o shared/zip.o engine/aa.o engine/bih.o engine/blend.o engine/client.o engine/command.o engine/console.o engine/dynlight.o engine/grass.o engine/light.o engine/main.o engine/material.o engine/menus.o engine/movie.o engine/normal.o engine/octa.o engine/octaedit.o engine/octarender.o engine/physics.o engine/pvs.o engine/rendergl.o engine/renderlights.o engine/rendermodel.o engine/renderparticles.o engine/rendersky.o engine/rendertext.o engine/renderva.o engine/server.o engine/serverbrowser.o engine/shader.o engine/sound.o engine/stain.o engine/texture.o engine/ui.o engine/water.o engine/world.o engine/worldio.o game/ai.o game/client.o game/entities.o game/game.o game/render.o game/scoreboard.o game/server.o game/waypoint.o game/weapon.o standalone/shared/cube.h.gch standalone/engine/engine.h.gch standalone/game/game.h.gch standalone/shared/crypto.o standalone/shared/stream.o standalone/shared/tools.o standalone/engine/command.o standalone/engine/server.o standalone/engine/worldio.o standalone/game/entities.o standalone/game/server.o standalone/engine/master.o tess_client tess_server tess_master
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags` -x c++-header -o shared/cube.h.gch.tmp shared/cube.h
mv shared/cube.h.gch.tmp shared/cube.h.gch
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/crypto.o shared/crypto.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/geom.o shared/geom.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/glemu.o shared/glemu.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/stream.o shared/stream.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/tools.o shared/tools.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o shared/zip.o shared/zip.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags` -x c++-header -o engine/engine.h.gch.tmp engine/engine.h
mv engine/engine.h.gch.tmp engine/engine.h.gch
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/aa.o engine/aa.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/bih.o engine/bih.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/blend.o engine/blend.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/client.o engine/client.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/command.o engine/command.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/console.o engine/console.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/dynlight.o engine/dynlight.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/grass.o engine/grass.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/light.o engine/light.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/main.o engine/main.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/material.o engine/material.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/menus.o engine/menus.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/movie.o engine/movie.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/normal.o engine/normal.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/octa.o engine/octa.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/octaedit.o engine/octaedit.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/octarender.o engine/octarender.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/physics.o engine/physics.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/pvs.o engine/pvs.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/rendergl.o engine/rendergl.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/renderlights.o engine/renderlights.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/rendermodel.o engine/rendermodel.cpp
In file included from engine/rendermodel.cpp:30:
engine/md3.h: In member function ‘virtual bool md3::md3meshgroup::load(const char*, float)’:
engine/md3.h:98:77: warning: ‘tri.md3triangle::vertexindices[0]’ may be used uninitialized [-Wmaybe-uninitialized]
   98 |                     loopk(3) m.tris[j].vert[k] = (ushort)tri.vertexindices[k];
      |                                                          ~~~~~~~~~~~~~~~~~~~^
engine/md3.h:95:33: note: ‘tri’ declared here
   95 |                     md3triangle tri;
      |                                 ^~~
engine/md3.h:98:77: warning: ‘tri.md3triangle::vertexindices[1]’ may be used uninitialized [-Wmaybe-uninitialized]
   98 |                     loopk(3) m.tris[j].vert[k] = (ushort)tri.vertexindices[k];
      |                                                          ~~~~~~~~~~~~~~~~~~~^
engine/md3.h:95:33: note: ‘tri’ declared here
   95 |                     md3triangle tri;
      |                                 ^~~
engine/md3.h:98:77: warning: ‘tri.md3triangle::vertexindices[2]’ may be used uninitialized [-Wmaybe-uninitialized]
   98 |                     loopk(3) m.tris[j].vert[k] = (ushort)tri.vertexindices[k];
      |                                                          ~~~~~~~~~~~~~~~~~~~^
engine/md3.h:95:33: note: ‘tri’ declared here
   95 |                     md3triangle tri;
      |                                 ^~~
engine/md3.h:115:91: warning: ‘v.md3vertex::vertex[2]’ may be used uninitialized [-Wmaybe-uninitialized]
  115 |                     m.verts[j].pos = vec(v.vertex[0]/64.0f, -v.vertex[1]/64.0f, v.vertex[2]/64.0f);
      |                                                                                 ~~~~~~~~~~^
engine/md3.h:111:31: note: ‘v’ declared here
  111 |                     md3vertex v;
      |                               ^
engine/md3.h:115:72: warning: ‘v.md3vertex::vertex[1]’ may be used uninitialized [-Wmaybe-uninitialized]
  115 |                     m.verts[j].pos = vec(v.vertex[0]/64.0f, -v.vertex[1]/64.0f, v.vertex[2]/64.0f);
      |                                                              ~~~~~~~~~~^
engine/md3.h:111:31: note: ‘v’ declared here
  111 |                     md3vertex v;
      |                               ^
engine/md3.h:115:52: warning: ‘v.md3vertex::vertex[0]’ may be used uninitialized [-Wmaybe-uninitialized]
  115 |                     m.verts[j].pos = vec(v.vertex[0]/64.0f, -v.vertex[1]/64.0f, v.vertex[2]/64.0f);
      |                                          ~~~~~~~~~~^
engine/md3.h:111:31: note: ‘v’ declared here
  111 |                     md3vertex v;
      |                               ^
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/renderparticles.o engine/renderparticles.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/rendersky.o engine/rendersky.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/rendertext.o engine/rendertext.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/renderva.o engine/renderva.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/server.o engine/server.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/serverbrowser.o engine/serverbrowser.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/shader.o engine/shader.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/sound.o engine/sound.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/stain.o engine/stain.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/texture.o engine/texture.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/ui.o engine/ui.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/water.o engine/water.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/world.o engine/world.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o engine/worldio.o engine/worldio.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags` -x c++-header -o game/game.h.gch.tmp game/game.h
mv game/game.h.gch.tmp game/game.h.gch
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o game/ai.o game/ai.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o game/client.o game/client.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o game/entities.o game/entities.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o game/game.o game/game.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o game/render.o game/render.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o game/scoreboard.o game/scoreboard.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o game/server.o game/server.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o game/waypoint.o game/waypoint.cpp
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags`   -c -o game/weapon.o game/weapon.cpp
game/weapon.cpp: In function ‘void game::shoot(gameent*, const vec&)’:
game/weapon.cpp:678:17: warning: variable ‘kickback’ set but not used [-Wunused-but-set-variable]
  678 |             vec kickback = vec(dir).mul(attacks[atk].kickamount*-2.5f);
      |                 ^~~~~~~~
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -o tess_client shared/crypto.o shared/geom.o shared/glemu.o shared/stream.o shared/tools.o shared/zip.o engine/aa.o engine/bih.o engine/blend.o engine/client.o engine/command.o engine/console.o engine/dynlight.o engine/grass.o engine/light.o engine/main.o engine/material.o engine/menus.o engine/movie.o engine/normal.o engine/octa.o engine/octaedit.o engine/octarender.o engine/physics.o engine/pvs.o engine/rendergl.o engine/renderlights.o engine/rendermodel.o engine/renderparticles.o engine/rendersky.o engine/rendertext.o engine/renderva.o engine/server.o engine/serverbrowser.o engine/shader.o engine/sound.o engine/stain.o engine/texture.o engine/ui.o engine/water.o engine/world.o engine/worldio.o game/ai.o game/client.o game/entities.o game/game.o game/render.o game/scoreboard.o game/server.o game/waypoint.o game/weapon.o -Lenet -lenet -L/usr/X11R6/lib -lX11 `sdl2-config --libs` -lSDL2_image -lSDL2_mixer -lz -lGL -lrt
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -DSTANDALONE -Istandalone/shared -Istandalone/engine -Istandalone/game -Ishared -Iengine -Igame -Ienet/include -x c++-header -o standalone/shared/cube.h.gch.tmp shared/cube.h
In file included from <command-line>:
/usr/include/stdc-predef.h:1: fatal error: cannot create precompiled header standalone/shared/cube.h.gch.tmp: No such file or directory
    1 | /* Copyright (C) 1991-2021 Free Software Foundation, Inc.
      | 
compilation terminated.
make: *** [Makefile:179: standalone/shared/cube.h.gch] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions