failing to build powerpc crosscompiler due to thread.cc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am failing to build a x86_64-pc-linux-gnu -> powerpc-unknown-linux-gnu crosscompiler since r230182.
Is my system outdated, or is the problem in thread.cc?

Index: /repo/gcc-trunk/libstdc++-v3/src/c++11/thread.cc
===================================================================
--- /repo/gcc-trunk/libstdc++-v3/src/c++11/thread.cc    (revision 230182)
+++ /repo/gcc-trunk/libstdc++-v3/src/c++11/thread.cc    (revision 230183)
@@ -221,7 +221,8 @@
        static_cast<std::time_t>(__s.count()),
        static_cast<long>(__ns.count())
       };
-    ::nanosleep(&__ts, 0);
+    while (::nanosleep(&__ts, &__ts) == -1 && errno == EINTR)
+      { }
 #elif defined(_GLIBCXX_HAVE_SLEEP)
 # ifdef _GLIBCXX_HAVE_USLEEP
     ::sleep(__s.count());


$ xgcc -v
Using built-in specs.
COLLECT_GCC=/repo/build-trunk-230184-checking-yes-rtl-df-nographite-powerpc/./gcc/xgcc
Target: powerpc-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=powerpc-unknown-linux-gnu --with-ld=/usr/bin/powerpc-unknown-linux-gnu-ld --with-as=/usr/bin/powerpc-unknown-linux-gnu-as --with-sysroot=/chroot/powerpc --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-230184-checking-yes-rtl-df-nographite-powerpc : (reconfigured) /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=powerpc-unknown-linux-gnu --with-ld=/usr/bin/powerpc-unknown-linux-gnu-ld --with-as=/usr/bin/powerpc-unknown-linux-gnu-as --with-sysroot=/chroot/powerpc --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-230184-checking-yes-rtl-df-nographite-powerpc
Thread model: posix
gcc version 6.0.0 20151111 (experimental) (GCC)


The error is:
In file included from /repo/gcc-trunk/libstdc++-v3/src/c++11/thread.cc:27:0:
/repo/build-trunk-230184-checking-yes-rtl-df-nographite-powerpc/powerpc-unknown-linux-gnu/nof/libstdc++-v3/include/thread: In function 'void std::this_thread::sleep_for(const std::chrono::duration<_Rep1, _Period1>&)':
/repo/build-trunk-230184-checking-yes-rtl-df-nographite-powerpc/powerpc-unknown-linux-gnu/nof/libstdc++-v3/include/thread:300:44: error: 'errno' was not declared in this scope
  while (::nanosleep(&__ts, &__ts) == -1 && errno == EINTR)
                                            ^

/repo/build-trunk-230184-checking-yes-rtl-df-nographite-powerpc/powerpc-unknown-linux-gnu/nof/libstdc++-v3/include/thread:300:53: error: 'EINTR' was not declared in this scope
  while (::nanosleep(&__ts, &__ts) == -1 && errno == EINTR)


Thanks,
Zdenek



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux