emacs-devel
[Top][All Lists]
Advanced

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

Re: strange build error today: "Renaming: Invalid argument"


From: Paul Eggert
Subject: Re: strange build error today: "Renaming: Invalid argument"
Date: Thu, 3 Aug 2017 13:57:48 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

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("address@hidden: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", "address@hidden"..., 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", "address@hidden"..., 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("address@hidden: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", "address@hidden"..., 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 via email to

[Prev in Thread] Current Thread [Next in Thread]