[llvm-bugs] [Bug 37668] New: Failed to build the latest LLVM 7.0 code on AARCH64 due to the _Float16 related issue

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 3 17:59:48 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37668

            Bug ID: 37668
           Summary: Failed to build the latest LLVM 7.0 code on AARCH64
                    due to the _Float16 related issue
           Product: Build scripts
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: myothers2014 at 126.com
                CC: llvm-bugs at lists.llvm.org

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.

-- 
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/20180604/23dd60b5/attachment.html>


More information about the llvm-bugs mailing list