<html>
    <head>
      <base href="https://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 --- - <cmath>: C++11 templates disabled (?) on sunos"
   href="https://llvm.org/bugs/show_bug.cgi?id=28506">28506</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td><cmath>: C++11 templates disabled (?) on sunos
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mgorny@gentoo.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm attempting to build new LLVM using current nightly pathCC (w/ libcxx
backend) on openindiana. I'm getting the following error:

/root/mgorny-test/enzo-suite/ekopath/psllvm/lib/DebugInfo/Symbolize/DIPrinter.cpp:52:41:
error: 
      call to 'log10' is ambiguous
  size_t MaxLineNumberWidth = std::ceil(std::log10(LastLine));
                                        ^~~~~~~~~~
/usr/include/iso/math_iso.h:81:15: note: candidate function
extern double log10 __P((double));
              ^
/usr/include/iso/math_iso.h:179:15: note: candidate function
        inline float log10(float __X) { return __log10f(__X); }
                     ^
/usr/include/iso/math_iso.h:209:21: note: candidate function
        inline long double log10(long double __X) { return __log10l(__X); }
                           ^
1 error generated.


It seems that LLVM has started relying on the C++11 integral definition of
log10(). However, the one provided in libcxx is #ifndef'ed for __sun__. I guess
this happens because system math.h is including iso/math_iso.h which has some
C++ definitions aside the usual C functions. Sadly, those definitions lack
support for C++11.</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>