Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid option to /usr/bin/ar #2272

Closed
tysegall opened this issue Aug 24, 2019 · 4 comments
Closed

Invalid option to /usr/bin/ar #2272

tysegall opened this issue Aug 24, 2019 · 4 comments
Assignees
Labels
Milestone

Comments

@tysegall
Copy link

Description of the problem

Building the HandbrakeCLI binary.

/usr/bin/ar doesn't like an option being passed to it, this is from the latest version in MASTER

HandBrake version (e.g., 1.0.0)

Latest from MASTER branch.

Operating system and version (e.g., Ubuntu 18.04 LTS, macOS 10.14 Mojave, Windows 10 1809)

Debian Sid (Unstable).

Error message text or screenshot

cd ./contrib/x265/x265_3.1.2/; /bin/rm -rf libx265.a
/bin/rm -f ./contrib/x265/.stamp.x265.build
touch contrib/x265/.stamp.x265.build
for a in ./contrib/x265/x265_3.1.2//8bit/libx265_main.a ./contrib/x265/x265_3.1.2//10bit/libx265_main10.a ./contrib/x265/x265_3.1.2//12bit/libx265_main12.a; do (/bin/rm -rf "$a"_o && /bin/mkdir -p "$a"_o && /usr/bin/ar x "$a" && mv .o "$a"_o && /usr/bin/ar cq contrib/x265/x265_3.1.2//libx265.a "$a"_o/.o); done
/usr/bin/ar s contrib/x265/x265_3.1.2//libx265.a
-s: invalid option -- 'n'
Usage: /usr/bin/ar [emulation options] [-]{dmpqrstx}[abcDfilMNoOPsSTuvV] [--plugin ] [member-name] [count] archive-file file...
/usr/bin/ar -M [<mri-script]
commands:
d - delete file(s) from the archive
m[ab] - move file(s) in the archive
p - print file(s) found in the archive
q[f] - quick append file(s) to the archive
r[ab][f][u] - replace existing or insert new file(s) into the archive
s - act as ranlib
t[O][v] - display contents of the archive
x[o] - extract file(s) from the archive
command specific modifiers:
[a] - put file(s) after [member-name]
[b] - put file(s) before [member-name] (same as [i])
[D] - use zero for timestamps and uids/gids (default)
[U] - use actual timestamps and uids/gids
[N] - use instance [count] of name
[f] - truncate inserted file names
[P] - use full path names when matching
[o] - preserve original dates
[O] - display offsets of files in the archive
[u] - only replace files that are newer than current archive contents
generic modifiers:
[c] - do not warn if the library had to be created
[s] - create an archive index (cf. ranlib)
[S] - do not build a symbol table
[T] - make a thin archive
[v] - be verbose
[V] - display the version number
@ - read options from
--target=BFDNAME - specify the target object format as BFDNAME
optional:
--plugin

- load the specified plugin
emulation options:
No emulation specific options
/usr/bin/ar: supported targets: elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 pei-i386 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big pe-x86-64 pe-bigobj-x86-64 pe-i386 srec symbolsrec verilog tekhex binary ihex plugin
make: *** [../contrib/x265/module.rules:5: contrib/x265/x265_3.1.2//libx265.a] Error 1
make: *** Deleting file 'contrib/x265/x265_3.1.2//libx265.a'

HandBrake Activity Log (see https://handbrake.fr/docs/en/latest/help/activity-log.html)

Please replace this text with the Activity log, or upload the log file to Github by dropping the file on this post.
Leave the ~ marks above and below.
@sr55
Copy link
Contributor

sr55 commented Aug 24, 2019

Looks like an incompatible verison of ar. What version does your system have?

@tysegall
Copy link
Author

~$ /usr/bin/ar --version
GNU ar (GNU Binutils for Debian) 2.32.51.20190821
Copyright (C) 2019 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.

@bradleysepos
Copy link
Contributor

Others recently reported this on Ubuntu 19.10. I'll look into what changed.

@bradleysepos bradleysepos self-assigned this Aug 25, 2019
@bradleysepos bradleysepos added this to the 1.3.0 milestone Aug 25, 2019
@bradleysepos
Copy link
Contributor

Should be fixed in the next nightly/snapshot.

What's weird about this one is the failing command is ar s .... No "n" option is used. Perhaps a bug in recent versions of ar. The fix is to use ranlib ... instead, which is equivalent to ar s ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants