帮忙看centos 7源码安装maplayer报错信息!

shizongger 发布于 2016/12/23 20:19
阅读 207
收藏 0

【Gopher China万字分享】华为云的Go语言云原生实战经验!>>>

我在centos下面源码安装mplayer视频播放器,按照这个教程来的,http://blog.csdn.net/u010048823/article/details/51292544 ,已经下载好了一个源码包,两个皮肤,一个解码器,在./config的时候出错了,报错代码如下:

[root@shizongger MPlayer-1.3.0]# ./configure 
Checking for ffmpeg/libavcodec/allcodecs.c ... found 
Checking for ffmpeg/libavformat/allformats.c ... found 
Checking for ffmpeg/libavfilter/allfilters.c ... found 
Checking for cc version ... 4.8.5 
Checking for working compiler ... yes
Detected operating system: Linux
Detected host architecture: x86_64
Checking for cross compilation ... no 
Checking for host cc ... cc 
Checking for CPU vendor ... GenuineIntel (6:42:7) 
Checking for CPU type ...  Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz 
Checking for kernel support of mmx ... yes 
Checking for kernel support of mmxext ... yes 
Checking for kernel support of sse ... yes 
Checking for kernel support of sse2 ... yes 
Checking for kernel support of sse3 ... yes 
Checking for kernel support of ssse3 ... yes 
Checking for kernel support of sse4_1 ... yes 
Checking for kernel support of sse4_2 ... yes 
Checking for kernel support of avx ... yes 
Checking for kernel support of cmov ... yes 
Checking for mtrr support ... yes 
Checking for GCC & CPU optimization abilities ... native 
Checking for byte order ... little-endian 
Checking for extern symbol prefix ...  
Checking for assembler support of -pipe option ... yes 
Checking for relocatable binary ... yes (fast PIC)
Checking for PIC ... yes 
Checking for .align is a power of two ... no 
Checking for ebx availability ... yes 
Checking for yasm ... 
Error: yasm not found, use --yasm='' if you really want to compile without

Check "config.log" if you do not understand why it failed.
按照提示,为用cat命令查看了config.log日志中的信息:

[root@shizongger MPlayer-1.3.0]# cat config.log 
configuration:

============ Checking for ffmpeg/libavcodec/allcodecs.c ============
Result is: found 
##########################################

============ Checking for ffmpeg/libavformat/allformats.c ============
Result is: found 
##########################################

============ Checking for ffmpeg/libavfilter/allfilters.c ============
Result is: found 
##########################################

============ Checking for cc version ============
Result is: 4.8.5 
##########################################



#if !(defined(__MINGW32__))
#error condition not true: defined(__MINGW32__)
#endif
int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  
/tmp/mplayer-configure-18137-8829/tmp.c:3:2: error: #error condition not true: defined(__MINGW32__)
 #error condition not true: defined(__MINGW32__)
  ^


============ Checking for working compiler ============

int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  



int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp -lm 



int main(void) {
    int test[(int)sizeof(char *)-7];
    return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


============ Checking for cross compilation ============

int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: no 
##########################################

============ Checking for host cc ============
Result is: cc 
##########################################

============ Checking for CPU vendor ============
Result is: GenuineIntel (6:42:7) 
##########################################

============ Checking for CPU type ============
Result is:  Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz 
##########################################

============ Checking for kernel support of mmx ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("emms":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of mmxext ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("sfence":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of sse ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("xorps %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of sse2 ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("xorpd %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of sse3 ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("addsubps %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of ssse3 ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("pabsd %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of sse4_1 ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("pmaxsb %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of sse4_2 ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("pcmpgtq %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of avx ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("vpabsw %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of cmov ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("cmovb %%eax,  %%ebx":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for mtrr support ============
Result is: yes 
##########################################

============ Checking for GCC & CPU optimization abilities ============

int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp -march=native -lm


Result is: native 
##########################################

============ Checking for byte order ============

short ascii_name[] = {
  'M' << 8 | 'P', 'l' << 8 | 'a', 'y' << 8 | 'e', 'r' << 8 | 'B',
  'i' << 8 | 'g', 'E' << 8 | 'n', 'd' << 8 | 'i', 'a' << 8 | 'n', 0 };
int main(void) { return (long)ascii_name; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: little-endian 
##########################################

============ Checking for extern symbol prefix ============

int ff_extern;

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp -c -lm


Result is:  
##########################################

============ Checking for assembler support of -pipe option ============

int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp -pipe -I. -lm


Result is: yes 
##########################################


#include <features.h>
#if !(defined __GLIBC__)
#error condition not true: defined __GLIBC__
#endif
int main(void) { return 0; }

cc -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Werror-implicit-function-declaration -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp  -lm



int main(void) { return 0; }

cc -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -fno-tree-vectorize -lm



int main(void) { return 0; }

cc -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -Wundef -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -std=gnu99 -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -Wdeclaration-after-statement -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -Wno-pointer-sign -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -Wdisabled-optimization -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -Wmissing-prototypes -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -Wstrict-prototypes -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -fno-asynchronous-unwind-tables -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -mno-omit-leaf-frame-pointer -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -MMD -MP -lm


============ Checking for relocatable binary ============

int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -fpie -pie -lm


Result is: yes (fast PIC)
##########################################

============ Checking for PIC ============


#if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
#error condition not true: defined(__PIC__) || defined(__pic__) || defined(PIC)
#endif
int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c  -fpie   -ffast-math -fpie -pie   -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################


int main(void) { __asm__ volatile ("mov (%eax), %eax"); return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c  -fpie -DPIC   -ffast-math -fpie -pie   -o /tmp/mplayer-configure-18137-8829/tmp  -lm


============ Checking for .align is a power of two ============

int main(void) { __asm__ volatile (".align 3"); return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c  -fpie -DPIC   -ffast-math -fpie -pie   -o /tmp/mplayer-configure-18137-8829/tmp  -lm
/tmp/mplayer-configure-18137-8829/tmp.c: Assembler messages:
/tmp/mplayer-configure-18137-8829/tmp.c:1: Error: alignment not a power of 2


Result is: no 
##########################################

============ Checking for ebx availability ============

int main(void) {
    int x;
    __asm__ volatile(
        "xor %0, %0"
        :"=b"(x)
        // just adding ebx to clobber list seems unreliable with some
        // compilers, e.g. Haiku's gcc 2.95
    );
    // and the above check does not work for OSX 64 bit...
    __asm__ volatile("":::"%ebx");
    return 0;
}

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c  -fpie -DPIC   -ffast-math -fpie -pie   -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for yasm ============

pextrd [eax], xmm0, 1

yasm -f elf  -DPIC -m amd64 -o /tmp/mplayer-configure-18137-8829/tmp /tmp/mplayer-configure-18137-8829/tmp.S 
./configure: line 186: yasm: command not found



pextrd [eax], xmm0, 1

yasm -f elf64  -DPIC -o /tmp/mplayer-configure-18137-8829/tmp /tmp/mplayer-configure-18137-8829/tmp.S 
./configure: line 186: yasm: command not found


[root@shizongger MPlayer-1.3.0]# cat config.log |more
configuration:

============ Checking for ffmpeg/libavcodec/allcodecs.c ============
Result is: found 
##########################################

============ Checking for ffmpeg/libavformat/allformats.c ============
Result is: found 
##########################################

============ Checking for ffmpeg/libavfilter/allfilters.c ============
Result is: found 
##########################################

============ Checking for cc version ============
Result is: 4.8.5 
##########################################



#if !(defined(__MINGW32__))
#error condition not true: defined(__MINGW32__)
#endif
int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  
/tmp/mplayer-configure-18137-8829/tmp.c:3:2: error: #error condition not true: defined(__MINGW32__)
 #error condition not true: defined(__MINGW32__)
  ^


============ Checking for working compiler ============

int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  



int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp -lm 



int main(void) {
    int test[(int)sizeof(char *)-7];
    return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


============ Checking for cross compilation ============

int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: no 
##########################################

============ Checking for host cc ============
Result is: cc 
##########################################

============ Checking for CPU vendor ============
Result is: GenuineIntel (6:42:7) 
##########################################

============ Checking for CPU type ============
Result is:  Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz 
##########################################

============ Checking for kernel support of mmx ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("emms":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of mmxext ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("sfence":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of sse ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("xorps %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of sse2 ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("xorpd %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of sse3 ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("addsubps %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of ssse3 ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("pabsd %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of sse4_1 ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("pmaxsb %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of sse4_2 ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("pcmpgtq %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of avx ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("vpabsw %%xmm0, %%xmm0":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for kernel support of cmov ============

#include <stdlib.h>
#include <signal.h>
static void catch(int sig) { exit(1); }
int main(void) {
  signal(SIGILL, catch);
  __asm__ volatile ("cmovb %%eax,  %%ebx":::"memory"); return 0;
}

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for mtrr support ============
Result is: yes 
##########################################

============ Checking for GCC & CPU optimization abilities ============

int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp -march=native -lm


Result is: native 
##########################################

============ Checking for byte order ============

short ascii_name[] = {
  'M' << 8 | 'P', 'l' << 8 | 'a', 'y' << 8 | 'e', 'r' << 8 | 'B',
  'i' << 8 | 'g', 'E' << 8 | 'n', 'd' << 8 | 'i', 'a' << 8 | 'n', 0 };
int main(void) { return (long)ascii_name; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: little-endian 
##########################################

============ Checking for extern symbol prefix ============

int ff_extern;

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp -c -lm


Result is:  
##########################################

============ Checking for assembler support of -pipe option ============

int main(void) { return 0; }

cc    /tmp/mplayer-configure-18137-8829/tmp.c      -o /tmp/mplayer-configure-18137-8829/tmp -pipe -I. -lm


Result is: yes 
##########################################


#include <features.h>
#if !(defined __GLIBC__)
#error condition not true: defined __GLIBC__
#endif
int main(void) { return 0; }

cc -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Werror-implicit-function-declaration -D_ISOC99_SOURCE
 -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/
mplayer-configure-18137-8829/tmp  -lm



int main(void) { return 0; }

cc -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Werror-implicit-function-declaration -D_POSIX_C_SOURC
E=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer /tmp/mplayer-configu
re-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -fno-tree-vectorize -lm



int main(void) { return 0; }

cc -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Werror-implicit-function-declaration -D_POSIX_C_SOURC
E=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize 
/tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -Wundef -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Werror-implicit-function-declaration -D_POSIX
_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-ve
ctorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -std=gnu99 -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -std=gnu99 -Werror-implicit-function-declarati
on -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -
fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -Wdeclaration-after-statement -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wdeclaration-after-statement -std=gnu99 -Werr
or-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffa
st-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -Wn
o-pointer-sign -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wno-pointer-sign -Wdeclaration-after-statemen
t -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune
=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-
18137-8829/tmp -Wdisabled-optimization -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wdisabled-optimization -Wno-pointer-sign -Wde
claration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg 
-O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o
 /tmp/mplayer-configure-18137-8829/tmp -Wmissing-prototypes -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wmissing-prototypes -Wdisabled-optimization -
Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99
_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-18137-8829/tmp.
c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -Wstrict-prototypes -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdis
abled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_
SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-confi
gure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -fno-asynchronous-unwind-tables -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdis
abled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_
SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-
unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -mno-omit-leaf-frame-pointer -lm



int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdis
abled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_
SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-
unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -MMD -MP -lm


============ Checking for relocatable binary ============

int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdis
abled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_
SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-
unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c    -ffast-math   -o /tmp/mplayer-configure-18137-8829/tmp -fpie -pie -lm


Result is: yes (fast PIC)
##########################################

============ Checking for PIC ============


#if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
#error condition not true: defined(__PIC__) || defined(__pic__) || defined(PIC)
#endif
int main(void) { return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdis
abled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_
SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-
unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c  -fpie   -ffast-math -fpie -pie   -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################


int main(void) { __asm__ volatile ("mov (%eax), %eax"); return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdis
abled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_
SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-
unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c  -fpie -DPIC   -ffast-math -fpie -pie   -o /tmp/mplayer-configure-18137-8829/tmp  -lm


============ Checking for .align is a power of two ============

int main(void) { __asm__ volatile (".align 3"); return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdis
abled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_
SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-
unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c  -fpie -DPIC   -ffast-math -fpie -pie   -o /tmp/mplayer-configure-18137-8829/tmp  -lm
/tmp/mplayer-configure-18137-8829/tmp.c: Assembler messages:
/tmp/mplayer-configure-18137-8829/tmp.c:1: Error: alignment not a power of 2


Result is: no 
##########################################

============ Checking for ebx availability ============

int main(void) {
    int x;
    __asm__ volatile(
        "xor %0, %0"
        :"=b"(x)
        // just adding ebx to clobber list seems unreliable with some
        // compilers, e.g. Haiku's gcc 2.95
    );
    // and the above check does not work for OSX 64 bit...
    __asm__ volatile("":::"%ebx");
    return 0;
}

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdis
abled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_
SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-
unwind-tables /tmp/mplayer-configure-18137-8829/tmp.c  -fpie -DPIC   -ffast-math -fpie -pie   -o /tmp/mplayer-configure-18137-8829/tmp  -lm


Result is: yes 
##########################################

============ Checking for yasm ============

pextrd [eax], xmm0, 1

yasm -f elf  -DPIC -m amd64 -o /tmp/mplayer-configure-18137-8829/tmp /tmp/mplayer-configure-18137-8829/tmp.S 
./configure: line 186: yasm: command not found



pextrd [eax], xmm0, 1

yasm -f elf64  -DPIC -o /tmp/mplayer-configure-18137-8829/tmp /tmp/mplayer-configure-18137-8829/tmp.S 
./configure: line 186: yasm: command not found



加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部