[Mesa-dev] [Bug 91591] rounding.h:102:2: error: #error "Unsupported or undefined LONG_BIT"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Aug 9 13:59:26 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=91591

--- Comment #4 from Alexander von Gluck <kallisti5 at unixzen.com> ---
LONG_BIT really isn't standard at all. It isn't defined here on ArchLinux nor
is it defined on Haiku.

I've seen mentions of doing the following:
  CHAR_BIT * sizeof(long)


  Archiving build/haiku-x86_64-debug/gallium/auxiliary/libgallium.a ...
In file included from src/mesa/main/macros.h:36:0,
                 from src/util/register_allocate.c:77:
src/util/rounding.h: In function '_mesa_lroundevenf':
src/util/rounding.h:102:2: error: #error "Unsupported or undefined LONG_BIT"
 #error "Unsupported or undefined LONG_BIT"
  ^
src/util/rounding.h:107:1: warning: no return statement in function returning
non-void [-Wreturn-type]
 }
 ^
src/util/rounding.h: In function '_mesa_lroundeven':
src/util/rounding.h:122:2: error: #error "Unsupported or undefined LONG_BIT"
 #error "Unsupported or undefined LONG_BIT"
  ^
src/util/rounding.h:127:1: warning: no return statement in function returning
non-void [-Wreturn-type]
 }
 ^
  Compiling src/util/strtod.c ...
scons: *** [build/haiku-x86_64-debug/util/register_allocate.os] Error 1
  Generating build/haiku-x86_64-debug/util/format_srgb.c ...
  Indexing build/haiku-x86_64-debug/gallium/auxiliary/libgallium.a ...
scons: building terminated because of errors.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150809/d7d820a4/attachment.html>


More information about the mesa-dev mailing list