龙芯开源社区

 找回密码
 注册新用户(newuser)
查看: 1714|回复: 4

请问2f笔记本gentoo下编译media-video/ffmpeg-2.8.6报错怎么办

[复制链接]
发表于 2016-5-21 20:21:57 | 显示全部楼层 |阅读模式
 * Package:    media-video/ffmpeg-2.8.6
 * Repository: gentoo
 * Maintainer: media-video@gentoo.org
 * USE:        X abi_mips_n32 alsa bzip2 elibc_glibc encode fftools_aviocat fftools_cws2fws fftools_ffescape fftools_ffeval fftools_ffhash fftools_fourcc2pixfmt fftools_graph2dot fftools_ismindex fftools_pktdumper fftools_qt-faststart fftools_sidxindex fftools_trasher gpl hardcoded-tables iconv kernel_linux mips mp3 network pic postproc threads twolame userland_GNU vorbis zlib
 * FEATURES:   preserve-libs sandbox userpriv usersandbox

mips64el-unknown-linux-gnu-gcc -I. -I/var/tmp/portage/media-video/ffmpeg-2.8.6/work/ffmpeg-2.8.6/ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe   -march=loongson2f -mhard-float -fno-expensive-optimizations -std=c99 -fomit-frame-pointer -fPIC -pthread -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -Wno-maybe-uninitialized   -c -o libavcodec/mips/blockdsp_mmi.o /var/tmp/portage/media-video/ffmpeg-2.8.6/work/ffmpeg-2.8.6/libavcodec/mips/blockdsp_mmi.c
{standard input}: Assembler messages:
{standard input}:26: Error: opcode not supported on this processor: loongson2f (mips3) `gssdlc1 $f2,7($9)'
{standard input}:27: Error: opcode not supported on this processor: loongson2f (mips3) `gssdrc1 $f2,0($9)'
{standard input}:28: Error: opcode not supported on this processor: loongson2f (mips3) `gssdlc1 $f2,15($9)'
{standard input}:29: Error: opcode not supported on this processor: loongson2f (mips3) `gssdrc1 $f2,8($9)'
{standard input}:58: Error: opcode not supported on this processor: loongson2f (mips3) `gssdlc1 $f2,7($9)'
{standard input}:59: Error: opcode not supported on this processor: loongson2f (mips3) `gssdrc1 $f2,0($9)'
{standard input}:83: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,0($4)'
{standard input}:84: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,16($4)'
{standard input}:85: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,32($4)'
{standard input}:86: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,48($4)'
{standard input}:87: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,64($4)'
{standard input}:88: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,80($4)'
{standard input}:89: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,96($4)'
{standard input}:90: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,112($4)'
{standard input}:111: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,0($4)'
{standard input}:112: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,16($4)'
{standard input}:113: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,32($4)'
{standard input}:114: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,48($4)'
{standard input}:115: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,64($4)'
{standard input}:116: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,80($4)'
{standard input}:117: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,96($4)'
{standard input}:118: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,112($4)'
{standard input}:119: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,128($4)'
{standard input}:120: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,144($4)'
{standard input}:121: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,160($4)'
{standard input}:122: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,176($4)'
{standard input}:123: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,192($4)'
{standard input}:124: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,208($4)'
{standard input}:125: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,224($4)'
{standard input}:126: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,240($4)'
{standard input}:127: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,256($4)'
{standard input}:128: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,272($4)'
{standard input}:129: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,288($4)'
{standard input}:130: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,304($4)'
{standard input}:131: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,320($4)'
{standard input}:132: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,336($4)'
{standard input}:133: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,352($4)'
{standard input}:134: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,368($4)'
{standard input}:135: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,384($4)'
{standard input}:136: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,400($4)'
{standard input}:137: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,416($4)'
{standard input}:138: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,432($4)'
{standard input}:139: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,448($4)'
{standard input}:140: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,464($4)'
{standard input}:141: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,480($4)'
{standard input}:142: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,496($4)'
{standard input}:143: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,512($4)'
{standard input}:144: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,528($4)'
{standard input}:145: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,544($4)'
{standard input}:146: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,560($4)'
{standard input}:147: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,576($4)'
{standard input}:148: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,592($4)'
{standard input}:149: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,608($4)'
{standard input}:150: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,624($4)'
{standard input}:151: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,640($4)'
{standard input}:152: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,656($4)'
{standard input}:153: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,672($4)'
{standard input}:154: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,688($4)'
{standard input}:155: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,704($4)'
{standard input}:156: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,720($4)'
{standard input}:157: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,736($4)'
{standard input}:158: Error: opcode not supported on this processor: loongson2f (mips3) `gssqc1 $f0,$f2,752($4)'
/var/tmp/portage/media-video/ffmpeg-2.8.6/work/ffmpeg-2.8.6/common.mak:57: recipe for target 'libavcodec/mips/blockdsp_mmi.o' failed
make: *** [libavcodec/mips/blockdsp_mmi.o] Error 1
* ERROR: media-video/ffmpeg-2.8.6::gentoo failed (compile phase):
*   emake failed
*
* If you need support, post the output of `emerge --info '=media-video/ffmpeg-2.8.6::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-2.8.6::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-2.8.6/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-2.8.6/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/ffmpeg-2.8.6/work/ffmpeg-2.8.6-abi_mips_n32.n32'
* S: '/var/tmp/portage/media-video/ffmpeg-2.8.6/work/ffmpeg-2.8.6'
 楼主| 发表于 2016-5-21 21:36:11 | 显示全部楼层
gssdlc1 这种指令 2f 支持吗? 为什么会报不支持的错误?

gsldlc1/gsldrc1、gssdlc1/gssdrc1:浮点单元访存通路。gs*指令为龙芯扩展指令,使用浮点寄存器来进行数据拷贝。
 楼主| 发表于 2016-6-28 22:18:25 | 显示全部楼层
修改了/usr/portage/media-video/ffmpeg/ffmpeg-2.8.7.ebuild
  1. if use encode ; then
  2.         ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )

  3.         # Licensing.
  4.         if use aac || use amrenc ; then
  5.             myconf+=( --enable-version3 )
  6.         fi
  7.         if use aacplus || use faac ; then
  8.             myconf+=( --enable-nonfree )
  9.         fi
  10.         myconf+=( --disable-mmi )
复制代码
增加了
  1. myconf+=( --disable-mmi )
复制代码

然后执行
  1. ebuild ffmpeg-2.8.7.ebuild manifest
复制代码
就可以使用emerge进行安装了



发表于 2016-6-29 10:26:16 | 显示全部楼层
好,解决就好。
发表于 2016-7-1 21:40:32 | 显示全部楼层
好厉害,赞一个

本版积分规则

小黑屋|手机版|Archiver|Lemote Inc.  

GMT+8, 2019-1-23 17:06 , Processed in 0.172610 second(s), 18 queries .

快速回复 返回顶部 返回列表