From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: strange build error today: "Renaming: Invalid argument" Date: Thu, 3 Aug 2017 13:57:48 -0700 Organization: UCLA Computer Science Department Message-ID: References: <87d18c8ju9.fsf@lifelogs.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1501793925 31043 195.159.176.226 (3 Aug 2017 20:58:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2017 20:58:45 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 03 22:58:41 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddNCT-0007Qm-HL for ged-emacs-devel@m.gmane.org; Thu, 03 Aug 2017 22:58:33 +0200 Original-Received: from localhost ([::1]:51418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddNCX-0003Oe-S6 for ged-emacs-devel@m.gmane.org; Thu, 03 Aug 2017 16:58:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddNBv-0003OP-Ej for emacs-devel@gnu.org; Thu, 03 Aug 2017 16:58:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddNBq-0005Zh-VT for emacs-devel@gnu.org; Thu, 03 Aug 2017 16:57:59 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39428) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ddNBq-0005Xt-LL for emacs-devel@gnu.org; Thu, 03 Aug 2017 16:57:54 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A7830160217 for ; Thu, 3 Aug 2017 13:57:52 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id vwEhumm9gQhJ for ; Thu, 3 Aug 2017 13:57:51 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 945B7160727 for ; Thu, 3 Aug 2017 13:57:51 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Ux0JfQkucH1v for ; Thu, 3 Aug 2017 13:57:51 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 78AC4160217 for ; Thu, 3 Aug 2017 13:57:51 -0700 (PDT) In-Reply-To: <87d18c8ju9.fsf@lifelogs.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217275 Archived-At: On 08/03/2017 01:41 PM, Ted Zlatanov wrote: > Renaming: Invalid argument, /home/tzz/source/emacs/emacs/lisp/net/tramp-loaddefs.el198334G4, /home/tzz/source/emacs/emacs/lisp/net/tramp-loaddefs.el What is the output of 'uname -a' on your host? And what kind of file system are you using? Also, can you see which system calls were invoked and why the rename failed? Please try this: strace -f -o /tmp/trace make and look near calls to 'renameat2' in /tmp/trace, especially syscalls that fail with errno == EINVAL. On my platform (Fedora 26 x86-64, with Linux kernel 4.11.11, ext4 file system), the relevant trace output looks like the following: 14983 faccessat(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el14983K04", F_OK) = -1 ENOENT (No such file or directory) 14983 uname({sysname="Linux", nodename="Penguin.CS.UCLA.EDU", ...}) = 0 14983 getpid() = 14983 14983 symlink("eggert@Penguin.CS.UCLA.EDU.14983:1501671282", "/home/eggert/src/gnu/emacs/static-checking/lisp/net/.#tramp-loaddefs.el14983K04") = 0 14983 open("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el14983K04", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 5 14983 write(5, ";;; tramp-loaddefs.el --- automa"..., 56329) = 56329 14983 close(5) = 0 14983 readlinkat(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/.#tramp-loaddefs.el14983K04", "eggert@Penguin.CS.UCLA.EDU.14983"..., 8193) = 43 14983 uname({sysname="Linux", nodename="Penguin.CS.UCLA.EDU", ...}) = 0 14983 getpid() = 14983 14983 unlink("/home/eggert/src/gnu/emacs/static-checking/lisp/net/.#tramp-loaddefs.el14983K04") = 0 14983 newfstatat(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", 0x7fff0a7bb1a0, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory) 14983 stat("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", 0x7fff0a7bb4a0) = -1 ENOENT (No such file or directory) 14983 renameat2(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el14983K04", AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", RENAME_NOREPLACE) = 0 14983 readlinkat(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/.#tramp-loaddefs.el", "eggert@Penguin.CS.UCLA.EDU.14983"..., 8193) = 43 14983 uname({sysname="Linux", nodename="Penguin.CS.UCLA.EDU", ...}) = 0 14983 getpid() = 14983 14983 unlink("/home/eggert/src/gnu/emacs/static-checking/lisp/net/.#tramp-loaddefs.el") = 0 14983 stat("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", {st_mode=S_IFREG|0644, st_size=56329, ...}) = 0 14983 getpid() = 14983 14983 faccessat(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el14983kCk", F_OK) = -1 ENOENT (No such file or directory) 14983 uname({sysname="Linux", nodename="Penguin.CS.UCLA.EDU", ...}) = 0 14983 getpid() = 14983 14983 symlink("eggert@Penguin.CS.UCLA.EDU.14983:1501671282", "/home/eggert/src/gnu/emacs/static-checking/lisp/net/.#tramp-loaddefs.el14983kCk") = 0 14983 open("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el14983kCk", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 5 14983 write(5, ";;; tramp-loaddefs.el --- automa"..., 56329) = 56329 14983 close(5) = 0 14983 readlinkat(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/.#tramp-loaddefs.el14983kCk", "eggert@Penguin.CS.UCLA.EDU.14983"..., 8193) = 43 14983 uname({sysname="Linux", nodename="Penguin.CS.UCLA.EDU", ...}) = 0 14983 getpid() = 14983 14983 unlink("/home/eggert/src/gnu/emacs/static-checking/lisp/net/.#tramp-loaddefs.el14983kCk") = 0 14983 newfstatat(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", {st_mode=S_IFREG|0644, st_size=56329, ...}, AT_SYMLINK_NOFOLLOW) = 0 14983 readlinkat(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", 0x7fff0a7ba9c0, 1024) = -1 EINVAL (Invalid argument) 14983 stat("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", {st_mode=S_IFREG|0644, st_size=56329, ...}) = 0 14983 getxattr("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", "system.posix_acl_access", 0x7fff0a7bad00, 132) = -1 ENODATA (No data available) 14983 stat("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", {st_mode=S_IFREG|0644, st_size=56329, ...}) = 0 14983 lgetxattr("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", "security.selinux", "unconfined_u:object_r:home_root_"..., 255) = 37 14983 access("/var/run/setrans/.setrans-unix", F_OK) = -1 ENOENT (No such file or directory) 14983 futex(0x7f3db77154b0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 14983 faccessat(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/", W_OK) = 0 14983 newfstatat(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", {st_mode=S_IFREG|0644, st_size=56329, ...}, AT_SYMLINK_NOFOLLOW) = 0 14983 geteuid() = 1000 14983 getegid() = 1000 14983 newfstatat(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 14983 geteuid() = 1000 14983 stat("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el~", {st_mode=S_IFREG|0644, st_size=56329, ...}) = 0 14983 renameat2(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el~", RENAME_NOREPLACE) = -1 EEXIST (File exists) 14983 rename("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el~") = 0 14983 stat("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", 0x7fff0a7bb2c0) = -1 ENOENT (No such file or directory) 14983 renameat2(AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el14983kCk", AT_FDCWD, "/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", RENAME_NOREPLACE) = 0 14983 stat("/home/eggert/src/gnu/emacs/static-checking/lisp/net/tramp-loaddefs.el", {st_mode=S_IFREG|0644, st_size=56329, ...}) = 0