testsuite/testsuite_hooks.cc is compiled as part of the libstdc++ build itself,
rather than just for testing. I have a build problem there that therefore stops
the whole gcc build....

On line 233 ish there is:
  int
  try_mkfifo (const char* filename, mode_t mode)
  {
#if defined (_NEWLIB_VERSION) || defined (__MINGW32_VERSION)
    /* Newlib and MinGW32 do not have mkfifo.  */
    exit(0);
#else
    return mkfifo(filename, mode);
#endif
  }

However I am using an OS that does not have mkfifo, and is not newlib-based
(various system headers copied into the appropriate sys-include location). This
test should instead be done by autoconf, probably by just 
AC_CHECK_FUNCS(mkfifo) somewhere, but I'm not sure exactly what's best in a
cross-compiled situation.

I can prepare a patch against gcc 3.4.3 if I have a little guidance, or it may
be easier just to fix by someone more knowledgable in this area.

-- 
           Summary: testsuite_hooks.cc doesn't test for mkfifo
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jifl-bugzilla at jifvik dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-unknown-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19781

Reply via email to