请问linux中关于make过程中的错误

hhholmes 2018-01-29 11:02:24
我刚因为实习开始接触linux,用的centos6.5,想要安装freeswitch,用的官网的方法,链接如下https://freeswitch.org/confluence/display/FREESWITCH/CentOS+6 。途中提示gcc版本不够高,又更新到了gcc4.8.5,编译如下没有报错,
FreeSWITCH configuration --------------------------

Locations:

prefix: /usr/local/freeswitch
exec_prefix: /usr/local/freeswitch
bindir: ${exec_prefix}/bin
confdir: /usr/local/freeswitch/conf
libdir: ${exec_prefix}/lib
datadir: /usr/local/freeswitch
localstatedir: /usr/local/freeswitch
includedir: /usr/local/freeswitch/include/freeswitch

certsdir: /usr/local/freeswitch/certs
dbdir: /usr/local/freeswitch/db
grammardir: /usr/local/freeswitch/grammar
htdocsdir: /usr/local/freeswitch/htdocs
fontsdir: /usr/local/freeswitch/fonts
logfiledir: /usr/local/freeswitch/log
modulesdir: /usr/local/freeswitch/mod
pkgconfigdir: ${exec_prefix}/lib/pkgconfig
recordingsdir: /usr/local/freeswitch/recordings
imagesdir: /usr/local/freeswitch/images
runtimedir: /usr/local/freeswitch/run
scriptdir: /usr/local/freeswitch/scripts
soundsdir: /usr/local/freeswitch/sounds
storagedir: /usr/local/freeswitch/storage
cachedir: /usr/local/freeswitch/cache
make过程中报错如下,好像是在检索文件的途中报错
[CC] vpx_dsp/x86/vpx_subpixel_8t_intrin_avx2.c.o
/tmp/cc4ruFxm.s: Assembler messages:
/tmp/cc4ruFxm.s:225: Error: no such instruction: `vinserti128 $1,%xmm2,%ymm2,%ymm2'
/tmp/cc4ruFxm.s:232: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:238: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:244: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:250: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:286: Error: no such instruction: `vinserti128 $0x1,%xmm5,%ymm4,%ymm4'
/tmp/cc4ruFxm.s:293: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:299: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:305: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:310: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:317: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:323: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:330: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:337: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:343: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:357: Error: suffix or operands invalid for `vpminsw'
/tmp/cc4ruFxm.s:364: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:371: Error: suffix or operands invalid for `vpmaxsw'
/tmp/cc4ruFxm.s:378: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:391: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:397: Error: suffix or operands invalid for `vpsraw'
/tmp/cc4ruFxm.s:405: Error: no such instruction: `vinserti128 $0x1,%xmm15,%ymm4,%ymm4'
/tmp/cc4ruFxm.s:412: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:418: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:425: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:431: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:438: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:445: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:451: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:458: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:464: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:471: Error: suffix or operands invalid for `vpminsw'
/tmp/cc4ruFxm.s:478: Error: suffix or operands invalid for `vpmaxsw'
/tmp/cc4ruFxm.s:485: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:491: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:497: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:504: Error: suffix or operands invalid for `vpsraw'
/tmp/cc4ruFxm.s:511: Error: suffix or operands invalid for `vpackuswb'
/tmp/cc4ruFxm.s:525: Error: no such instruction: `vextracti128 $0x1,%ymm4,%xmm4'
/tmp/cc4ruFxm.s:1138: Error: no such instruction: `vinserti128 $1,%xmm4,%ymm4,%ymm4'
/tmp/cc4ruFxm.s:1152: Error: no such instruction: `vinserti128 $0x1,%xmm1,%ymm8,%ymm12'
/tmp/cc4ruFxm.s:1167: Error: no such instruction: `vinserti128 $0x1,%xmm15,%ymm1,%ymm1'
/tmp/cc4ruFxm.s:1179: Error: no such instruction: `vinserti128 $0x1,%xmm7,%ymm15,%ymm15'
/tmp/cc4ruFxm.s:1185: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:1204: Error: no such instruction: `vinserti128 $0x1,%xmm6,%ymm7,%ymm6'
/tmp/cc4ruFxm.s:1209: Error: no such instruction: `vinserti128 $0x1,%xmm0,%ymm11,%ymm11'
/tmp/cc4ruFxm.s:1214: Error: no such instruction: `vinserti128 $0x1,%xmm8,%ymm0,%ymm0'
/tmp/cc4ruFxm.s:1220: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:1226: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:1233: Error: suffix or operands invalid for `vpunpcklbw'
/tmp/cc4ruFxm.s:1239: Error: suffix or operands invalid for `vpunpckhbw'
/tmp/cc4ruFxm.s:1245: Error: suffix or operands invalid for `vpunpcklbw'
/tmp/cc4ruFxm.s:1251: Error: suffix or operands invalid for `vpunpckhbw'
/tmp/cc4ruFxm.s:1263: Error: suffix or operands invalid for `vpunpcklbw'
/tmp/cc4ruFxm.s:1274: Error: suffix or operands invalid for `vpunpckhbw'
/tmp/cc4ruFxm.s:1286: Error: suffix or operands invalid for `vpshufb'
/tmp/cc4ruFxm.s:1356: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:1362: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:1367: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:1383: Error: no such instruction: `vinserti128 $0x1,%xmm0,%ymm13,%ymm11'
/tmp/cc4ruFxm.s:1399: Error: no such instruction: `vinserti128 $0x1,%xmm1,%ymm0,%ymm1'
/tmp/cc4ruFxm.s:1406: Error: suffix or operands invalid for `vpunpcklbw'
/tmp/cc4ruFxm.s:1413: Error: suffix or operands invalid for `vpunpckhbw'
/tmp/cc4ruFxm.s:1420: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:1427: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:1433: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:1439: Error: suffix or operands invalid for `vpminsw'
/tmp/cc4ruFxm.s:1445: Error: suffix or operands invalid for `vpmaxsw'
/tmp/cc4ruFxm.s:1451: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:1457: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:1463: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:1468: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:1473: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:1479: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:1484: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc4ruFxm.s:1490: Error: suffix or operands invalid for `vpsraw'
/tmp/cc4ruFxm.s:1496: Error: suffix or operands invalid for `vpminsw'
/tmp/cc4ruFxm.s:1502: Error: suffix or operands invalid for `vpmaxsw'
/tmp/cc4ruFxm.s:1508: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:1513: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:1518: Error: suffix or operands invalid for `vpaddsw'
/tmp/cc4ruFxm.s:1524: Error: suffix or operands invalid for `vpsraw'
/tmp/cc4ruFxm.s:1530: Error: suffix or operands invalid for `vpackuswb'
/tmp/cc4ruFxm.s:1556: Error: no such instruction: `vextracti128 $0x1,%ymm12,%xmm12'
make[2]: *** [vpx_dsp/x86/vpx_subpixel_8t_intrin_avx2.c.o] Error 1
make[1]: *** [.DEFAULT] Error 2
make[1]: Leaving directory `/usr/src/freeswitch/libs/libvpx'
make: *** [libs/libvpx/libvpx.a] Error 2
是libvpx版本不对吗,也试过不编译avx2,应该怎么解决,现在只会一点皮毛,网上找了好久也没有,希望大佬们能帮帮我
...全文
1006 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
weiweihu712 2018-01-31
  • 打赏
  • 举报
回复 1
不用编译这么麻烦,直接yum安装。 rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-0.noarch.rpm yum install freeswitch-config-vanilla yum install sox freeswitch-sounds* 请参考这里 https://freeswitch.org/confluence/display/FREESWITCH/Installation
make是在1977年在贝尔实验室(Bell Labs)研发的 Unix系统的一款依赖关系检查工具程序(Utility software)。make的应用非常广泛,它被用来构建 C、C++ 、Pascal  Fortran 等项目,自动化构建生成可执行文件或者库文件。make通过读取Makefile文件以自动化建构软件, 它会根据依赖文件的修改时间进行判断。确定一个target的依赖关系,然后把生成这个target的相关命令传给shell去执行。GNU make 和大多数版本的 make 之间最重要的区别是 GNU make 是自由软件,常和GNU编译系统一起被使用,是大多数GNU Linux安装的一部分。GNU makemakefile 具有许多强大的功能,超出了其他 make 版本的功能,它还可以重新生成、使用、然后删除不需要保存的间文件。GNU make 还有一些非常方便的简单功能。例如,选项“假装源文件文件没有更改,即使它已更改。当您向头文件添加新宏时,这非常有用。大多数版本的 make 都会假设它们必须重新编译所有使用头文件的源文件,但是如果您知道对头文件的更改不需要重新编译 GNU make 为您提供了一种避免重新编译的方法-o file 。 黄强老师针对零编程基础的同学,精心打磨make核心知识点,帮助你快速掌握Linux编程make的构建!适用人群: 零基础、新手、想快速学习Linux下C、C++编程的童鞋!

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧