all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: emacs-devel@gnu.org
Subject: Re: strange build error today: "Renaming: Invalid argument"
Date: Thu, 3 Aug 2017 13:57:48 -0700	[thread overview]
Message-ID: <c5f122c8-0984-4c57-49bc-2f72dd20f9d8@cs.ucla.edu> (raw)
In-Reply-To: <87d18c8ju9.fsf@lifelogs.com>

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




  reply	other threads:[~2017-08-03 20:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-03 20:41 strange build error today: "Renaming: Invalid argument" Ted Zlatanov
2017-08-03 20:57 ` Paul Eggert [this message]
2017-08-03 23:21   ` Paul Eggert
2017-08-04 13:21     ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c5f122c8-0984-4c57-49bc-2f72dd20f9d8@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.