[LLVMbugs] [Bug 17243] New: not everybody has endian.h

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Sep 14 11:25:31 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17243

            Bug ID: 17243
           Summary: not everybody has endian.h
           Product: new-bugs
           Version: unspecified
          Hardware: All
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: norm.jacobs at oracle.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11196
  --> http://llvm.org/bugs/attachment.cgi?id=11196&action=edit
patch to check for endian.h

While trying to build LLVM on Solaris, I ran into the following:

+ gmake
llvm[0]: Constructing LLVMBuild project information.
gmake[1]: Entering directory `/builds/jacobs/f/lib/Support'
llvm[1]: Compiling APFloat.cpp for Release build
In file included from /builds/jacobs/f/include/llvm/ADT/Hashing.h:50:0,
                 from APFloat.cpp:18:
/builds/jacobs/f/include/llvm/Support/Host.h:23:28: fatal error:
machine/endian.h: No such file or directory
compilation terminated.
rm: /builds/jacobs/f/lib/Support/Release/APFloat.d.tmp: No such file or
directory
gmake[1]: *** [/builds/jacobs/f/lib/Support/Release/APFloat.o] Error 1
gmake[1]: Leaving directory `/builds/jacobs/f/lib/Support'
gmake: *** [all] Error 1

This is because Solaris doesn't have an endian.h to include.  The closest it
has is sys/isa_defs.h.  To work around this, I updated configure.ac include
checks for endian.h, machine/endian.h, and sys/isa_defs.h.  Then I updated
Host.h to use the corresponding HAVE_* macros to determine which header to
include.  When sys/isa_defs.h is included, the missing macros are added too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130914/6fccf4a9/attachment.html>


More information about the llvm-bugs mailing list