<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - not everybody has endian.h"
   href="http://llvm.org/bugs/show_bug.cgi?id=17243">17243</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>not everybody has endian.h
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Solaris
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>norm.jacobs@oracle.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11196" name="attach_11196" title="patch to check for endian.h">attachment 11196</a> <a href="attachment.cgi?id=11196&action=edit" title="patch to check for endian.h">[details]</a></span>
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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>