Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#59631 - [binutils] CommandLine Error: Option 'asm-instrumentation' registered more than once!

Attached to Project: Arch Linux
Opened by Tassilo Horn (tsdh) - Monday, 13 August 2018, 06:46 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 13 August 2018, 17:46 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Since today I can't compile emacs (from git) anymore. "make" fails during an ar command:

rm -f libgnu.a
ar cr libgnu.a fcntl.o fsusage.o sig2str.o time_rz.o acl-errno-valid.o acl-internal.o get-permissions.o set-permissions.o allocator.o binary-io.o c-ctype.o c-strcasecmp.o c-strncasecmp.o careadlinkat.o close-stream.o count-leading-zeros.o count-one-bits.o count-trailing-zeros.o md5.o sha1.o sha256.o sha512.o dtoastr.o dtotimespec.o filemode.o filevercmp.o gettime.o nstrftime.o pipe2.o qcopy-acl.o stat-time.o tempname.o timespec.o timespec-add.o timespec-sub.o u64.o unistd.o utimens.o openat-die.o save-cwd.o
: CommandLine Error: Option 'asm-instrumentation' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
make[1]: *** [Makefile:103: libgnu.a] Error 1

This doesn't seem to be specific to emacs. I get the very same problem also for other programs, e.g.:

rm -f libsynctex.a
ar cru libsynctex.a libsynctex_a-synctex_parser.o libsynctex_a-synctex_parser_utils.o
ar: `u' modifier ignored since `D' is the default (see `U')
: CommandLine Error: Option 'asm-instrumentation' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
make[1]: *** [Makefile:420: libsynctex.a] Error 1
make[1]: Leaving directory '/home/hta/.emacs.d/elpa/pdf-tools-20180428.1527/build/server'
make: *** [Makefile:362: all] Error 2

In fact, it seems I get this error as soon as I create an archive containing at least two arbitrary object files, e.g., ar cr foobar.a file1.o file2.o.

So I suspect it's a problem with the `ar` command from the binutils package (version 2.31.1-3). And indeed, I've updated to this version just today. Last week, with the previous binutils version, I've had no problems when compiling emacs or other programs.

Additional info:
* core/binutils 2.31.1-3 (base-devel) [installed]
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 13 August 2018, 17:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  llvm-libs 6.0.1-3
Comment by Jonas Witschel (diabonas) - Monday, 13 August 2018, 10:54 GMT
Have you updated extra/llvm-libs to the latest version 6.0.1-3? That versions contains a fix (https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/llvm&id=bbe525c33c1f3ecda42f283c064af99f5457b035) that resolved the error you describe on my system.
Comment by Tassilo Horn (tsdh) - Monday, 13 August 2018, 13:20 GMT
Indeed, with the new version of extra/llvm-libs it works again! That version hasn't hit my pacman mirrors at the time I've opened this report.

Loading...