<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 - Build of libcxx on ppc64le fails"
   href="https://bugs.llvm.org/show_bug.cgi?id=40671">40671</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Build of libcxx on ppc64le fails
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>itaru.kitayama@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Unable to build libcxx and libcxxabit on POWER8 fails:

$ cmake -DLLVM_ENABLE_PROJECTS="libcxx;libcxxabi" ../llvm
-- clang project is disabled
-- compiler-rt project is disabled
-- debuginfo-tests project is disabled
-- libclc project is disabled
-- libcxx project is enabled
-- libcxxabi project is enabled
-- libunwind project is disabled
-- lld project is disabled
-- lldb project is disabled
-- llgo project is disabled
-- llvm project is disabled
-- openmp project is disabled
-- parallel-libs project is disabled
-- polly project is disabled
-- pstl project is disabled
-- Native target architecture is PowerPC
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings enabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- LLVM host triple: powerpc64le-unknown-linux-gnu
-- LLVM default target triple: powerpc64le-unknown-linux-gnu
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Linker detection: GNU ld
-- Targeting AArch64
-- Targeting AMDGPU
-- Targeting ARM
-- Targeting BPF
-- Targeting Hexagon
-- Targeting Lanai
-- Targeting Mips
-- Targeting MSP430
-- Targeting NVPTX
-- Targeting PowerPC
-- Targeting Sparc
-- Targeting SystemZ
-- Targeting WebAssembly
-- Targeting X86
-- Targeting XCore
-- Linker detection: GNU ld
-- Linker detection: GNU ld
-- Linker detection: GNU ld
-- there is no pre-generated ABI list for the requested libc++ configuration.
check-cxx-abilist target is not supported
-- git Version: v0.0.0
-- Version: 0.0.0
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/projects/llvm-project/build
[kitayama1@juron1-adm build]$ ninja
[0/1] Re-running CMake...
-- clang project is disabled
-- compiler-rt project is disabled
-- debuginfo-tests project is disabled
-- libclc project is disabled
-- libcxx project is enabled
-- libcxxabi project is enabled
-- libunwind project is disabled
-- lld project is disabled
-- lldb project is disabled
-- llgo project is disabled
-- llvm project is disabled
-- openmp project is disabled
-- parallel-libs project is disabled
-- polly project is disabled
-- pstl project is disabled
-- Native target architecture is PowerPC
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings enabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- LLVM host triple: powerpc64le-unknown-linux-gnu
-- LLVM default target triple: powerpc64le-unknown-linux-gnu
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Linker detection: GNU ld
-- Targeting AArch64
-- Targeting AMDGPU
-- Targeting ARM
-- Targeting BPF
-- Targeting Hexagon
-- Targeting Lanai
-- Targeting Mips
-- Targeting MSP430
-- Targeting NVPTX
-- Targeting PowerPC
-- Targeting Sparc
-- Targeting SystemZ
-- Targeting WebAssembly
-- Targeting X86
-- Targeting XCore
-- Linker detection: GNU ld
-- Linker detection: GNU ld
-- Linker detection: GNU ld
-- there is no pre-generated ABI list for the requested libc++ configuration.
check-cxx-abilist target is not supported
-- git Version: v0.0.0
-- Version: 0.0.0
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/projects/llvm-project/build
[1/1825] Generating VCSRevision.h
-- Found Git: /usr/bin/git (found version "1.8.3.1")
[5/1825] Building CXX object
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/memory.cpp.o
FAILED: projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/memory.cpp.o
/gpfs/software/opt/gcc/7.2.0/bin/g++  -DNDEBUG -D_DEBUG -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/tmp/projects/llvm-project/libcxx/lib
-I/usr/include/libxml2 -Iinclude -I/tmp/projects/llvm-project/llvm/include
-Iprojects/libcxx/include/c++build -I/tmp/projects/llvm-project/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 -Wimplicit-fallthrough
-Wno-maybe-uninitialized -Wno-noexcept-type -Wdelete-non-virtual-dtor
-Wno-comment -fdiagnostics-color -g   -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/memory.cpp.o -MF
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/memory.cpp.o.d -o
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/memory.cpp.o -c
/tmp/projects/llvm-project/libcxx/src/memory.cpp
In file included from
/tmp/projects/llvm-project/libcxx/include/__mutex_base:14:0,
                 from /tmp/projects/llvm-project/libcxx/include/mutex:190,
                 from /tmp/projects/llvm-project/libcxx/src/memory.cpp:11:
/tmp/projects/llvm-project/libcxx/include/chrono: In function 'void
std::__1::this_thread::sleep_for(const std::__1::chrono::duration<_Rep,
_Period>&)':
/tmp/projects/llvm-project/libcxx/include/thread:437:73:   in constexpr
expansion of 'std::__1::chrono::duration<long
double>(std::__1::chrono::duration<long long int, std::__1::ratio<1,
1000000000> >::max(), 0)'
/tmp/projects/llvm-project/libcxx/include/chrono:1063:64:   in constexpr
expansion of 'std::__1::chrono::duration_cast<std::__1::chrono::duration<long
double>, long long int, std::__1::ratio<1, 1000000000> >(__d)'
/tmp/projects/llvm-project/libcxx/include/chrono:915:67:   in constexpr
expansion of 'std::__1::chrono::__duration_cast<std::__1::chrono::duration<long
long int, std::__1::ratio<1, 1000000000> >, std::__1::chrono::duration<long
double>, std::__1::ratio<1, 1000000000>, true,
false>().std::__1::chrono::__duration_cast<std::__1::chrono::duration<long long
int, std::__1::ratio<1, 1000000000> >, std::__1::chrono::duration<long double>,
std::__1::ratio<1, 1000000000>, true, false>::operator()(__fd)'
/tmp/projects/llvm-project/libcxx/include/chrono:876:59: error:
'(9.223372036854775807e+18 / 1.0e+9)' is not a constant expression
                            static_cast<_Ct>(__fd.count()) /
static_cast<_Ct>(_Period::den)));
                           
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6/1825] Building CXX object
projects/libcxx/lib.../cxx_objects.dir/__/src/condition_variable.cpp.o
FAILED:
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/condition_variable.cpp.o
/gpfs/software/opt/gcc/7.2.0/bin/g++  -DNDEBUG -D_DEBUG -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/tmp/projects/llvm-project/libcxx/lib
-I/usr/include/libxml2 -Iinclude -I/tmp/projects/llvm-project/llvm/include
-Iprojects/libcxx/include/c++build -I/tmp/projects/llvm-project/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 -Wimplicit-fallthrough
-Wno-maybe-uninitialized -Wno-noexcept-type -Wdelete-non-virtual-dtor
-Wno-comment -fdiagnostics-color -g   -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/condition_variable.cpp.o
-MF
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/condition_variable.cpp.o.d
-o
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/condition_variable.cpp.o
-c /tmp/projects/llvm-project/libcxx/src/condition_variable.cpp
In file included from
/tmp/projects/llvm-project/libcxx/include/__mutex_base:14:0,
                 from
/tmp/projects/llvm-project/libcxx/include/condition_variable:110,
                 from
/tmp/projects/llvm-project/libcxx/src/condition_variable.cpp:13:
/tmp/projects/llvm-project/libcxx/include/chrono: In function 'void
std::__1::this_thread::sleep_for(const std::__1::chrono::duration<_Rep,
_Period>&)':
/tmp/projects/llvm-project/libcxx/include/thread:437:73:   in constexpr
expansion of 'std::__1::chrono::duration<long
double>(std::__1::chrono::duration<long long int, std::__1::ratio<1,
1000000000> >::max(), 0)'
/tmp/projects/llvm-project/libcxx/include/chrono:1063:64:   in constexpr
expansion of 'std::__1::chrono::duration_cast<std::__1::chrono::duration<long
double>, long long int, std::__1::ratio<1, 1000000000> >(__d)'
/tmp/projects/llvm-project/libcxx/include/chrono:915:67:   in constexpr
expansion of 'std::__1::chrono::__duration_cast<std::__1::chrono::duration<long
long int, std::__1::ratio<1, 1000000000> >, std::__1::chrono::duration<long
double>, std::__1::ratio<1, 1000000000>, true,
false>().std::__1::chrono::__duration_cast<std::__1::chrono::duration<long long
int, std::__1::ratio<1, 1000000000> >, std::__1::chrono::duration<long double>,
std::__1::ratio<1, 1000000000>, true, false>::operator()(__fd)'
/tmp/projects/llvm-project/libcxx/include/chrono:876:59: error:
'(9.223372036854775807e+18 / 1.0e+9)' is not a constant expression
                            static_cast<_Ct>(__fd.count()) /
static_cast<_Ct>(_Period::den)));
                           
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[7/1825] Building CXX object
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/future.cpp.o
FAILED: projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/future.cpp.o
/gpfs/software/opt/gcc/7.2.0/bin/g++  -DNDEBUG -D_DEBUG -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/tmp/projects/llvm-project/libcxx/lib
-I/usr/include/libxml2 -Iinclude -I/tmp/projects/llvm-project/llvm/include
-Iprojects/libcxx/include/c++build -I/tmp/projects/llvm-project/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 -Wimplicit-fallthrough
-Wno-maybe-uninitialized -Wno-noexcept-type -Wdelete-non-virtual-dtor
-Wno-comment -fdiagnostics-color -g   -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/future.cpp.o -MF
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/future.cpp.o.d -o
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/future.cpp.o -c
/tmp/projects/llvm-project/libcxx/src/future.cpp
In file included from /tmp/projects/llvm-project/libcxx/include/future:367:0,
                 from /tmp/projects/llvm-project/libcxx/src/future.cpp:13:
/tmp/projects/llvm-project/libcxx/include/chrono: In function 'void
std::__1::this_thread::sleep_for(const std::__1::chrono::duration<_Rep,
_Period>&)':
/tmp/projects/llvm-project/libcxx/include/thread:437:73:   in constexpr
expansion of 'std::__1::chrono::duration<long
double>(std::__1::chrono::duration<long long int, std::__1::ratio<1,
1000000000> >::max(), 0)'
/tmp/projects/llvm-project/libcxx/include/chrono:1063:64:   in constexpr
expansion of 'std::__1::chrono::duration_cast<std::__1::chrono::duration<long
double>, long long int, std::__1::ratio<1, 1000000000> >(__d)'
/tmp/projects/llvm-project/libcxx/include/chrono:915:67:   in constexpr
expansion of 'std::__1::chrono::__duration_cast<std::__1::chrono::duration<long
long int, std::__1::ratio<1, 1000000000> >, std::__1::chrono::duration<long
double>, std::__1::ratio<1, 1000000000>, true,
false>().std::__1::chrono::__duration_cast<std::__1::chrono::duration<long long
int, std::__1::ratio<1, 1000000000> >, std::__1::chrono::duration<long double>,
std::__1::ratio<1, 1000000000>, true, false>::operator()(__fd)'
/tmp/projects/llvm-project/libcxx/include/chrono:876:59: error:
'(9.223372036854775807e+18 / 1.0e+9)' is not a constant expression
                            static_cast<_Ct>(__fd.count()) /
static_cast<_Ct>(_Period::den)));
                           
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/projects/llvm-project/libcxx/include/stdexcept:45:0,
                 from
/tmp/projects/llvm-project/libcxx/include/system_error:147,
                 from /tmp/projects/llvm-project/libcxx/include/future:365,
                 from /tmp/projects/llvm-project/libcxx/src/future.cpp:13:
/tmp/projects/llvm-project/libcxx/include/exception: At global scope:
/tmp/projects/llvm-project/libcxx/include/exception:167:1: warning:
always_inline function might not be inlinable [-Wattributes]
 make_exception_ptr(_Ep __e) _NOEXCEPT
 ^~~~~~~~~~~~~~~~~~
[9/1825] Building CXX object
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/thread.cpp.o
FAILED: projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/thread.cpp.o
/gpfs/software/opt/gcc/7.2.0/bin/g++  -DNDEBUG -D_DEBUG -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/tmp/projects/llvm-project/libcxx/lib
-I/usr/include/libxml2 -Iinclude -I/tmp/projects/llvm-project/llvm/include
-Iprojects/libcxx/include/c++build -I/tmp/projects/llvm-project/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 -Wimplicit-fallthrough
-Wno-maybe-uninitialized -Wno-noexcept-type -Wdelete-non-virtual-dtor
-Wno-comment -fdiagnostics-color -g   -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/thread.cpp.o -MF
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/thread.cpp.o.d -o
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/thread.cpp.o -c
/tmp/projects/llvm-project/libcxx/src/thread.cpp
In file included from /tmp/projects/llvm-project/libcxx/include/thread:95:0,
                 from /tmp/projects/llvm-project/libcxx/src/thread.cpp:12:
/tmp/projects/llvm-project/libcxx/include/chrono: In function 'void
std::__1::this_thread::sleep_for(const std::__1::chrono::duration<_Rep,
_Period>&)':
/tmp/projects/llvm-project/libcxx/include/thread:437:73:   in constexpr
expansion of 'std::__1::chrono::duration<long
double>(std::__1::chrono::duration<long long int, std::__1::ratio<1,
1000000000> >::max(), 0)'
/tmp/projects/llvm-project/libcxx/include/chrono:1063:64:   in constexpr
expansion of 'std::__1::chrono::duration_cast<std::__1::chrono::duration<long
double>, long long int, std::__1::ratio<1, 1000000000> >(__d)'
/tmp/projects/llvm-project/libcxx/include/chrono:915:67:   in constexpr
expansion of 'std::__1::chrono::__duration_cast<std::__1::chrono::duration<long
long int, std::__1::ratio<1, 1000000000> >, std::__1::chrono::duration<long
double>, std::__1::ratio<1, 1000000000>, true,
false>().std::__1::chrono::__duration_cast<std::__1::chrono::duration<long long
int, std::__1::ratio<1, 1000000000> >, std::__1::chrono::duration<long double>,
std::__1::ratio<1, 1000000000>, true, false>::operator()(__fd)'
/tmp/projects/llvm-project/libcxx/include/chrono:876:59: error:
'(9.223372036854775807e+18 / 1.0e+9)' is not a constant expression
                            static_cast<_Ct>(__fd.count()) /
static_cast<_Ct>(_Period::den)));
                           
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[39/1825] Building CXX object
utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelEmitter.cpp.o
ninja: build stopped: subcommand failed.</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>