[libcxx-commits] [libcxx] [libc++][modules] Rewrite the modulemap to have fewer top-level modules (PR #107638)

Helena Kotas via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 27 13:16:54 PDT 2024


hekota wrote:

Hello @ldionne, me and @tex3d are seeing PR build failures in libc++ since yesterday. Could this be related to your change?

https://github.com/llvm/llvm-project/pull/110187
https://github.com/llvm/llvm-project/pull/110079

```
FAIL: llvm-libc++-shared.cfg.in :: std/thread/futures/futures.shared_future/get.pass.cpp (7633 of 9745)
******************** TEST 'llvm-libc++-shared.cfg.in :: std/thread/futures/futures.shared_future/get.pass.cpp' FAILED ********************
```
```
# .---command stderr------------
--
  | # \| In module 'std' imported from /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-f4kc6-1/llvm-project/github-pull-requests/libcxx/test/std/thread/futures/futures.shared_future/get.pass.cpp:20:
  | # \| /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-f4kc6-1/llvm-project/github-pull-requests/build-runtimes/libcxx/test-suite-install/include/c++/v1/__chrono/duration.h:90:101: error: no type named 'type' in 'std::common_type<long double, long double, long>'
  | # \|    90 \|     typedef typename common_type<typename _ToDuration::rep, typename _FromDuration::rep, intmax_t>::type _Ct;
  | # \|       \|             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
  | # \| /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-f4kc6-1/llvm-project/github-pull-requests/build-runtimes/libcxx/test-suite-install/include/c++/v1/__chrono/duration.h:107:10: note: in instantiation of member function 'std::chrono::__duration_cast<std::chrono::duration<long double>, std::chrono::duration<long double, std::ratio<1, 1000>>>::operator()' requested here
  | # \|   107 \|   return __duration_cast<duration<_Rep, _Period>, _ToDuration>()(__fd);
  | # \|       \|          ^
  | # \| /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-f4kc6-1/llvm-project/github-pull-requests/build-runtimes/libcxx/test-suite-install/include/c++/v1/__chrono/duration.h:220:24: note: in instantiation of function template specialization 'std::chrono::duration_cast<std::chrono::duration<long double, std::ratio<1, 1000>>, long double, std::ratio<1>, 0>' requested here
  | # \|   220 \|       : __rep_(chrono::duration_cast<duration>(__d).count()) {}
  | # \|       \|                        ^
  | # \| /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-f4kc6-1/llvm-project/github-pull-requests/build-runtimes/libcxx/test-suite-install/include/c++/v1/__chrono/duration.h:385:33: note: in instantiation of function template specialization 'std::chrono::duration<long double, std::ratio<1, 1000>>::duration<long double, std::ratio<1>, 0>' requested here
  | # \|   385 \|   return _Ct(__lhs).count() <=> _Ct(__rhs).count();
  | # \|       \|                                 ^
  | # \| /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-f4kc6-1/llvm-project/github-pull-requests/build-runtimes/libcxx/test-suite-install/include/c++/v1/__thread/this_thread.h:45:13: note: in instantiation of function template specialization 'std::chrono::operator<=><long long, std::ratio<1, 1000>, long double, std::ratio<1>>' requested here
  | # \|    45 \|     if (__d < __max) {
  | # \|       \|             ^
  | # \| /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-f4kc6-1/llvm-project/github-pull-requests/libcxx/test/std/thread/futures/futures.shared_future/get.pass.cpp:28:23: note: in instantiation of function template specialization 'std::this_thread::sleep_for<long long, std::ratio<1, 1000>>' requested here
  | # \|    28 \|     std::this_thread::sleep_for(std::chrono::milliseconds(500));
  | # \|       \|                       ^
  | # \| 1 error generated.
  | # `-----------------------------
  | # error: command failed with exit status: 1

```

https://github.com/llvm/llvm-project/pull/107638


More information about the libcxx-commits mailing list