Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738832 - games-fps/quake2-icculus-0.16.1-r1 : src/.../g_local.h: fatal error: bits/nan.h: No such file or directory
Summary: games-fps/quake2-icculus-0.16.1-r1 : src/.../g_local.h: fatal error: bits/nan...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-24 15:55 UTC by Toralf Förster
Modified: 2021-04-09 08:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.87 KB, text/plain)
2020-08-24 15:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,109.01 KB, text/plain)
2020-08-24 15:55 UTC, Toralf Förster
Details
environment (environment,105.49 KB, text/plain)
2020-08-24 15:55 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.70 KB, application/x-bzip)
2020-08-24 15:55 UTC, Toralf Förster
Details
games-fps:quake2-icculus-0.16.1-r1:20200824-094654.log (games-fps:quake2-icculus-0.16.1-r1:20200824-094654.log,656.75 KB, text/plain)
2020-08-24 15:55 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,78.09 KB, application/x-bzip)
2020-08-24 15:55 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-08-24 15:55:21 UTC
x86_64-pc-linux-gnu-gcc -Wall -pipe -Dstricmp=strcasecmp -DHAVE_IPV6 -DDEFAULT_BASEDIR=\"/usr/share/games/quake2\" -DDEFAULT_LIBDIR=\"/usr/games/lib64/quake2-icculus\" -DC_ONLY -O2 -pipe -march=native -fno-diagnostics-color  -falign-functions=32:25:16 -DLINUX_VERSION=\"3.21+r0.16\" -fPIC -o releasex86_64/rogue/dm_ball.o -c src/rogue/dm_ball.c
In file included from src/rogue/dm_ball.c:5:
src/rogue/g_local.h:25:10: fatal error: bits/nan.h: No such file or directory
   25 | #include <bits/nan.h>
      |          ^~~~~~~~~~~~
compilation terminated.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-libressl_abi32+64-20200821-231953

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 10.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon Aug 24 09:05:36 AM UTC 2020
/var/db/repos/libressl	Mon Aug 10 09:13:35 AM UTC 2020

emerge -qpvO games-fps/quake2-icculus
[ebuild  N    ] games-fps/quake2-icculus-0.16.1-r1  USE="ipv6 rogue xatrix -X -aalib -alsa -cdinstall -dedicated -demo -joystick -opengl -qmax -sdl"
Comment 1 Toralf Förster gentoo-dev 2020-08-24 15:55:23 UTC
Created attachment 656474 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-08-24 15:55:25 UTC
Created attachment 656476 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-08-24 15:55:27 UTC
Created attachment 656478 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-08-24 15:55:28 UTC
Created attachment 656480 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-08-24 15:55:30 UTC
Created attachment 656482 [details]
games-fps:quake2-icculus-0.16.1-r1:20200824-094654.log
Comment 6 Toralf Förster gentoo-dev 2020-08-24 15:55:32 UTC
Created attachment 656484 [details]
temp.tbz2
Comment 7 Jeremy Stent 2021-04-08 23:28:11 UTC
It appears as if we need to change line 25 of src/rogue/g_local.h to #include math.h instead of bits/nan.h
Doing so allowed my to finish the compile.  I found this by reading nan.h on a different architecture, where it says to use math.h instead of including nan.h directly.