Poky-Pyro Python需要fp模型吗?

时间:2017-09-26 18:15:19

标签: python gcc intel bitbake

我正在尝试使用poky-pyro 2.3.1(相应的Intel-corei7-64 bsp)构建core-image-minimal,并在Debian Jessie上构建。我还没有定制它所以它只是通用的最小图像。除了python之外,其他所有内容都会交叉编译,这会给我带来这些错误:

| x86_64-poky-linux-gcc  -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 --sysroot=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot -c -fno-strict-aliasing -fp-model strict  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1=/usr/src/debug/python/2.7.13-r1 -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot-native= -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot=  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1=/usr/src/debug/python/2.7.13-r1 -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot-native= -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot=   -I. -IInclude -I../Python-2.7.13/Include  -fPIC -DPy_BUILD_CORE -o Modules/python.o ../Python-2.7.13/Modules/python.c
| x86_64-poky-linux-gcc  -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 --sysroot=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot -c -fno-strict-aliasing -fp-model strict  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1=/usr/src/debug/python/2.7.13-r1 -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot-native= -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot=  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1=/usr/src/debug/python/2.7.13-r1 -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot-native= -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot=   -I. -IInclude -I../Python-2.7.13/Include  -fPIC -DPy_BUILD_CORE -o Parser/acceler.o ../Python-2.7.13/Parser/acceler.c
| ERROR: oe_runmake failed
| x86_64-poky-linux-gcc  -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 --sysroot=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot -c -fno-strict-aliasing -fp-model strict  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1=/usr/src/debug/python/2.7.13-r1 -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot-native= -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot=  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1=/usr/src/debug/python/2.7.13-r1 -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot-native= -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot=   -I. -IInclude -I../Python-2.7.13/Include  -fPIC -DPy_BUILD_CORE -o Parser/grammar1.o ../Python-2.7.13/Parser/grammar1.c
| x86_64-poky-linux-gcc  -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 --sysroot=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot -c -fno-strict-aliasing -fp-model strict  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1=/usr/src/debug/python/2.7.13-r1 -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot-native= -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot=  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1=/usr/src/debug/python/2.7.13-r1 -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot-native= -fdebug-prefix-map=/home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/recipe-sysroot=   -I. -IInclude -I../Python-2.7.13/Include  -fPIC -DPy_BUILD_CORE -o Parser/listnode.o ../Python-2.7.13/Parser/listnode.c
| x86_64-poky-linux-gcc: error: strict: No such file or directory
| x86_64-poky-linux-gcc: error: strict: No such file or directory
| x86_64-poky-linux-gcc: error: strict: No such file or directory
| x86_64-poky-linux-gcc: error: unrecognized command line option '-fp-model'
| Makefile:694: recipe for target 'Modules/python.o' failed
| make: *** [Modules/python.o] Error 1
| make: *** Waiting for unfinished jobs....
| x86_64-poky-linux-gcc: error: unrecognized command line option '-fp-model'
| x86_64-poky-linux-gcc: error: strict: No such file or directory
| Makefile:1373: recipe for target 'Parser/grammar1.o' failed
| make: *** [Parser/grammar1.o] Error 1
| x86_64-poky-linux-gcc: error: unrecognized command line option '-fp-model'
| Makefile:1373: recipe for target 'Parser/listnode.o' failed
| make: *** [Parser/listnode.o] Error 1
| x86_64-poky-linux-gcc: error: unrecognized command line option '-fp-model'
| Makefile:1373: recipe for target 'Parser/acceler.o' failed
| make: *** [Parser/acceler.o] Error 1
| ERROR: Function failed: do_compile (log file is located at /home/intel_build/tmp/work/corei7-64-poky-linux/python/2.7.13-r1/temp/log.do_compile.11642)

对于python 2和3都会发生这种情况。我稍微阅读了它,似乎fp-model选项适用于intel c编译器icc。我错过了哪个gcc库,或者我只需要用gcc等效替换fp模型?

0 个答案:

没有答案