read

While installing codecs for vivaldi browser I got stuck for a while on following issue. yaourt -S vivaldi-beta-codecs-ffmpeg fails during execution of clang++ -Xassembler --version -x assembler -c /dev/null with following stacktrace:

clang-3.8: error: unsupported argument '--version' to option 'Xassembler'
compiler_version.py failed to execute: clang++ -Xassembler --version -x assembler -c /dev/null
Command 'clang++ -Xassembler --version -x assembler -c /dev/null' returned non-zero exit status 1
Exception: Failed to extract compiler version for args: ['target', 'assembler']
Traceback (most recent call last):
...
fmpeg-codecs/src/chromium-48.0.2564.109/tools/gyp/pylib/gyp/input.py", line 1221, in ProcessVariablesAndConditionsInDict
  File "/tmp/yaourt-tmp/aur-vivaldi-beta-ffmpeg-codecs/src/chromium-48.0.2564.109/build/compiler_version.py", line 122, in DoMain
      raise Exception("Failed to extract compiler version for args: %s" % args)
      Exception: Failed to extract compiler version for args: ['target', 'assembler']

      ==> ERROR: A failure occurred in build().

Solution

The problem is that your local clang is messing up the chromium build. To resolve this unset your local clang toolchain using:

unset CC
unset CXX
yaourt -S vivaldi-beta-codecs-ffmpeg
Blog Logo

Jirka Kulovany


Published

Image

Jirka Kulovany

Occasional blog posts

Back to Overview