<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Failed to build the latest LLVM 7.0 code on AARCH64 due to the _Float16 related issue"
   href="https://bugs.llvm.org/show_bug.cgi?id=37668">37668</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Failed to build the latest LLVM 7.0 code on AARCH64 due to the _Float16 related issue
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Build scripts
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>cmake
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>myothers2014@126.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When tried to build the latest LLVM 7.0 code (master branch) on an ARM
development board with Debian 9 for AARCH64 installed and its processor is
Cortex-A53, it  always failed due to the following error:
...
2018-06-02 11:00:10 [652/3518] Building CXX object
lib/Testing/Support/CMakeFiles/LLVMTestingSupport.dir/Error.cpp.o
2018-06-02 11:00:10 [653/3518] Building CXX object
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o
2018-06-02 11:00:10 FAILED:
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o 
2018-06-02 11:00:10 /usr/bin/c++  -DNDEBUG -D_GNU_SOURCE
-D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Iprojects/libcxx/lib -I../projects/libcxx/lib -I/usr/include/libxml2 -Iinclude
-I../include -Iprojects/libcxx/include/c++build -I../projects/libcxx/include
-fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers  -Wno-long-long -Wno-maybe-uninitialized
-Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections
-fdata-sections -O3    -DLIBCXX_BUILDING_LIBCXXABI -std=c++11 -nostdinc++
-fvisibility-inlines-hidden -Wall -Wextra -W -Wwrite-strings
-Wno-unused-parameter -Wno-long-long -Werror=return-type -Wno-literal-suffix
-Wno-c++14-compat -Wno-noexcept-type -Wno-error -fPIC -MD -MT
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o -MF
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o.d -o
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o -c
../projects/libcxx/src/algorithm.cpp
2018-06-02 11:00:10 In file included from
../projects/libcxx/include/algorithm:641:0,
2018-06-02 11:00:10                  from
../projects/libcxx/src/algorithm.cpp:10:
2018-06-02 11:00:10 ../projects/libcxx/include/type_traits:740:56: error:
‘_Float16’ was not declared in this scope
2018-06-02 11:00:10  template <>          struct
__libcpp_is_floating_point<_Float16>    : public true_type {};
2018-06-02 11:00:10                                                        
^~~~~~~~
2018-06-02 11:00:10 ../projects/libcxx/include/type_traits:740:56: note:
suggested alternative: ‘float’
2018-06-02 11:00:10  template <>          struct
__libcpp_is_floating_point<_Float16>    : public true_type {};
2018-06-02 11:00:10                                                        
^~~~~~~~
2018-06-02 11:00:10                                                        
float
2018-06-02 11:00:10 ../projects/libcxx/include/type_traits:740:64: error:
template argument 1 is invalid
2018-06-02 11:00:10  template <>          struct
__libcpp_is_floating_point<_Float16>    : public true_type {};
2018-06-02 11:00:10                                                            
    ^
2018-06-02 11:00:12 [654/3518] Building CXX object
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/any.cpp.o
2018-06-02 11:00:12 FAILED:
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/any.cpp.o 
2018-06-02 11:00:12 /usr/bin/c++  -DNDEBUG -D_GNU_SOURCE
-D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Iprojects/libcxx/lib -I../projects/libcxx/lib -I/usr/include/libxml2 -Iinclude
-I../include -Iprojects/libcxx/include/c++build -I../projects/libcxx/include
-fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers  -Wno-long-long -Wno-maybe-uninitialized
-Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections
-fdata-sections -O3    -DLIBCXX_BUILDING_LIBCXXABI -std=c++11 -nostdinc++
-fvisibility-inlines-hidden -Wall -Wextra -W -Wwrite-strings
-Wno-unused-parameter -Wno-long-long -Werror=return-type -Wno-literal-suffix
-Wno-c++14-compat -Wno-noexcept-type -Wno-error -fPIC -MD -MT
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/any.cpp.o -MF
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/any.cpp.o.d -o
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/any.cpp.o -c
../projects/libcxx/src/any.cpp
2018-06-02 11:00:12 In file included from
../projects/libcxx/include/memory:653:0,
2018-06-02 11:00:12                  from ../projects/libcxx/include/any:85,
2018-06-02 11:00:12                  from ../projects/libcxx/src/any.cpp:10:
2018-06-02 11:00:12 ../projects/libcxx/include/type_traits:740:56: error:
‘_Float16’ was not declared in this scope
2018-06-02 11:00:12  template <>          struct
__libcpp_is_floating_point<_Float16>    : public true_type {};
2018-06-02 11:00:12                                                        
^~~~~~~~
2018-06-02 11:00:12 ../projects/libcxx/include/type_traits:740:56: note:
suggested alternative: ‘float’
2018-06-02 11:00:12  template <>          struct
__libcpp_is_floating_point<_Float16>    : public true_type {};
2018-06-02 11:00:12                                                        
^~~~~~~~
2018-06-02 11:00:12                                                        
float
2018-06-02 11:00:12 ../projects/libcxx/include/type_traits:740:64: error:
template argument 1 is invalid
2018-06-02 11:00:12  template <>          struct
__libcpp_is_floating_point<_Float16>    : public true_type {};
2018-06-02 11:00:12                                                            
    ^
2018-06-02 11:00:21 [655/3518] Building CXX object
lib/WindowsManifest/CMakeFiles/LLVMWindowsManifest.dir/WindowsManifestMerger.cpp.o
...

By the way, cmake/ninja with gcc 7.3.0-19 were used for building it.</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>