<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I ran into this earlier in the week on
      the current Solaris development builds and I think that one of my
      co-workers was going to file a bug on it.  Basically, Solaris
      doesn't have an endian.h, so you have to patch
      include/llvm/Support/Host.h to define BYTE_ORDER as it would on
      linux and some other platforms.<br>
      <br>
      --- llvm-3.3.src/include/llvm/Support/Host.h.orig    Mon Apr 15
      15:13:59 2013<br>
      +++ llvm-3.3.src/include/llvm/Support/Host.h    Wed Jun 19
      11:03:01 2013<br>
      @@ -18,6 +18,21 @@<br>
       <br>
       #if defined(__linux__)<br>
       #include <endian.h><br>
      +#elif defined(__sun) && defined(__SVR4)<br>
      +#  ifndef BYTE_ORDER<br>
      +#   define LITTLE_ENDIAN 1234<br>
      +#   define BIG_ENDIAN    4321<br>
      +<br>
      +#   if defined(__sun) && defined(__SVR4)<br>
      +#    include <sys/isa_defs.h><br>
      +#    ifdef _LITTLE_ENDIAN<br>
      +#     define BYTE_ORDER LITTLE_ENDIAN<br>
      +#    endif<br>
      +#    ifdef _BIG_ENDIAN<br>
      +#     define BYTE_ORDER BIG_ENDIAN<br>
      +#    endif<br>
      +#   endif /* sun */<br>
      +#  endif /* BYTE_ORDER */<br>
       #else<br>
       #ifndef LLVM_ON_WIN32<br>
       #include <machine/endian.h><br>
      <br>
          -Norm<br>
      <br>
      <br>
      <br>
      On 06/21/13 06:00 PM, Jorge Rodrigues wrote:<br>
    </div>
    <blockquote
cite="mid:CALvSa=RHS1a+MGiR4NYZmBqKo2-pB7M8e1oiGOLaRWFb+Zsn_Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div> </div>
        <div>I run configure in a build folder using </div>
        <div> </div>
        <div>CC=gcc CXX=g++  ../configure
          --prefix=/project/scratch/packages2/clang  \<br>
            --enable-targets=host --enable-shared</div>
        <div>
           </div>
        <div>The configure runs fine but when I type make I get the
          error:</div>
        <div> </div>
        <div>make[1]: Entering directory
          `/project/scratch/tmp/llvm-3.3/build/lib/Support'<br>
          llvm[1]: Compiling APFloat.cpp for Release+Asserts build<br>
          In file included from
          /project/scratch/tmp/llvm-3.3/include/llvm/ADT/Hashing.h:50:0,<br>
                           from
          /project/scratch/tmp/llvm-3.3/lib/Support/APFloat.cpp:18:<br>
          /project/scratch/tmp/llvm-3.3/include/llvm/Support/Host.h:23:28:
          fatal error: machine/endian.h: No such file or directory<br>
           #include <machine/endian.h><br>
                                      ^<br>
          compilation terminated.<br>
          /project/packages/sun/5.10/x86/gnu/bin/rm: cannot remove
          `/project/scratch/tmp/llvm-3.3/build/lib/Support/Release+Asserts/APFloat.d.tmp':
          No such file or directory<br>
          make[1]: ***
          [/project/scratch/tmp/llvm-3.3/build/lib/Support/Release+Asserts/APFloat.o]
          Error 1<br>
          make[1]: Leaving directory
          `/project/scratch/tmp/llvm-3.3/build/lib/Support'<br>
          make: *** [all] Error 1<br>
        </div>
        <div>
           </div>
        <div>Any idea how I can solve this? Thanks.</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>