New issue
Advanced search Search tips

Issue 849654 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Chromium ffmpeg can not native build on loongson(mips64el).

Reported by wangqing...@loongson.cn, Jun 5 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3189.0 Safari/537.36

Steps to reproduce the problem:
1. ./chromium/scripts/build_ffmpeg.py linux mips64el

What is the expected behavior?
build success and generate config.h file.

What went wrong?
clang is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Traceback (most recent call last):
  File "./chromium/scripts/build_ffmpeg.py", line 917, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./chromium/scripts/build_ffmpeg.py", line 483, in main
    options=options)
  File "./chromium/scripts/build_ffmpeg.py", line 893, in ConfigureAndBuild
    configure_args)
  File "./chromium/scripts/build_ffmpeg.py", line 887, in do_build_ffmpeg
    options.config_only, branding, configure_flags)
  File "./chromium/scripts/build_ffmpeg.py", line 326, in BuildFFmpeg
    [os.path.join(FFMPEG_DIR, 'configure')] + configure_flags, cwd=config_dir)
  File "./chromium/scripts/build_ffmpeg.py", line 107, in PrintAndCheckCall
    subprocess.check_call(argv, *args, **kwargs)
  File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)

build.mips64el.linux/Chromium/ffbuild/config.log, error as follows:
clang --sysroot=/home/loongson/work/chromium-mips64/src/build/linux/debian_sid_mips64el-sysroot -EL -I/home/loongson/work/chromium-mips64/src/third_party/opus/src/include -march=mips64el -mcpu=mips64r2 --target=mips64el-linux-gnuabi64 -c -o /tmp/ffconf.zYilQ1jB/test.o /tmp/ffconf.zYilQ1jB/test.c
clang: warning: argument unused during compilation: '-I /home/loongson/work/chromium-mips64/src/third_party/opus/src/include'
clang -z notext --target=mips64el-linux-gnuabi64 -fuse-ld=lld --sysroot=/home/loongson/work/chromium-mips64/src/build/linux/debian_sid_mips64el-sysroot -EL -o /tmp/ffconf.zYilQ1jB/test /tmp/ffconf.zYilQ1jB/test.o
clang: error: invalid linker name in argument '-fuse-ld=lld'
C compiler test failed.

Did this work before? N/A 

Chrome version: lastest  Channel: n/a
OS Version: Fedora
Flash Version:
 

Comment 1 by kozy@chromium.org, Jun 5 2018

Components: -Platform>DevTools Build

Sign in to add a comment