[LLVMbugs] [Bug 19366] New: [3.4] no futimes/futimens on solaris (use futimesat instead?)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 7 22:58:06 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19366

            Bug ID: 19366
           Summary: [3.4] no futimes/futimens on solaris (use futimesat
                    instead?)
           Product: Build scripts
           Version: 3.4
          Hardware: Sun
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: autoconf
          Assignee: unassignedbugs at nondot.org
          Reporter: FBergemann at web.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

On Solaris 10 (sparcv9) i get following compilation problem:
In file included from
/data/FBergemann/SRC2/llvm-release_34/lib/Support/Path.cpp:1035:0:
/data/FBergemann/SRC2/llvm-release_34/lib/Support/Unix/Path.inc:540:2: error:
#error Missing futimes() and futimens()
 #error Missing futimes() and futimens()
  ^

I could at least continue compilation for using futimesat(...) instead - hacked
this way:

#if defined(HAVE_FUTIMENS)
  timespec Times[2];
  Times[0].tv_sec = Time.toPosixTime();
  Times[0].tv_nsec = 0;
  Times[1] = Times[0];
  if (::futimens(FD, Times))
#elif defined(HAVE_FUTIMES)
  timeval Times[2];
  Times[0].tv_sec = Time.toPosixTime();
  Times[0].tv_usec = 0;
  Times[1] = Times[0];
  if (::futimes(FD, Times))
#else
  timeval Times[2];
  Times[0].tv_sec = Time.toPosixTime();
  Times[0].tv_usec = 0;
  Times[1] = Times[0];
  if (::futimesat(FD, NULL, Times))
#endif

Can you check, if you can incorporate futimesat(...) option into the build
procedure?

- thanks!

best regards,
Frank

-- 
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/20140408/673a8cc7/attachment.html>


More information about the llvm-bugs mailing list