[LEDE-DEV] python3 compile error
Xue Liu
xue.liu at dks-koeln.de
Tue Jan 31 02:27:44 PST 2017
Hello,
Today I start a fresh new build for Clearfog Pro on Ubuntu 16.04. I got
a error message from python3 as
make[2]: Entering directory
'/home/lx/clearfog/octu-lede/feeds/packages/lang/python3'
CFLAGS="-Os -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -fno-caller-saves
-fno-plt -fhonour-copts -Wno-error=unused-but-set-variable
-Wno-error=unused-result -mfloat-abi=hard -iremap
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0:Python-3.6.0
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include/fortify
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include
" CXXFLAGS="-Os -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -fno-caller-saves
-fno-plt -fhonour-copts -Wno-error=unused-but-set-variable
-Wno-error=unused-result -mfloat-abi=hard -iremap
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0:Python-3.6.0
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include/fortify
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include
"
LDFLAGS="-L/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/lib
-L/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/lib
-L/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/usr/lib
-L/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/lib
-znow -zrelro
-L/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0"
make -C
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/.
AR="arm-openwrt-linux-muslgnueabi-gcc-ar"
AS="arm-openwrt-linux-muslgnueabi-gcc -c -Os -pipe -mcpu=cortex-a9
-mfpu=vfpv3-d16 -fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-mfloat-abi=hard -iremap
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0:Python-3.6.0
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro" LD=arm-openwrt-linux-muslgnueabi-ld
NM="arm-openwrt-linux-muslgnueabi-gcc-nm"
CC="arm-openwrt-linux-muslgnueabi-gcc"
GCC="arm-openwrt-linux-muslgnueabi-gcc"
CXX="arm-openwrt-linux-muslgnueabi-g++"
RANLIB="arm-openwrt-linux-muslgnueabi-gcc-ranlib"
STRIP=arm-openwrt-linux-muslgnueabi-strip
OBJCOPY=arm-openwrt-linux-muslgnueabi-objcopy
OBJDUMP=arm-openwrt-linux-muslgnueabi-objdump
SIZE=arm-openwrt-linux-muslgnueabi-size
CROSS="arm-openwrt-linux-muslgnueabi-" ARCH="arm" CROSS_COMPILE=yes
LD="arm-openwrt-linux-muslgnueabi-gcc" PGEN=pgen3 ;
make[3]: Entering directory
'/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0'
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building '_curses' extension
arm-openwrt-linux-muslgnueabi-gcc -fPIC -Wno-unused-result
-Wsign-compare -DNDEBUG -Os -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16
-fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-mfloat-abi=hard -iremap
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0:Python-3.6.0
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -Os -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16
-fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-mfloat-abi=hard -iremap
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0:Python-3.6.0
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -Os -pipe -mcpu=cortex-a9
-mfpu=vfpv3-d16 -fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-mfloat-abi=hard -iremap
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0:Python-3.6.0
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include/fortify
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include
-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter
-Wno-missing-field-initializers -DHAVE_NCURSESW=1
-I/usr/include/ncursesw -I./Include -I.
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include/fortify
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Include
-I/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0
-c
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_cursesmodule.c
-o
build/temp.linux2-3.6/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_cursesmodule.o
cc1: note: someone does not honour COPTS correctly, passed 3 times
In file included from ./Include/py_curses.h:50:0,
from
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_cursesmodule.c:113:
/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/unctrl.h:60:38:
error: conflicting types for 'unctrl'
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*,
chtype);
^
In file included from /usr/include/ncursesw/curses.h:2012:0,
from ./Include/py_curses.h:50,
from
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_cursesmodule.c:113:
/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/unctrl.h:57:38:
note: previous declaration of 'unctrl' was here
NCURSES_EXPORT(NCURSES_CONST char *) unctrl (chtype);
^
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_cursesmodule.c:
In function 'PyCurses_UnCtrl':
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_cursesmodule.c:3083:38:
warning: passing argument 1 of 'unctrl' makes pointer from integer
without a cast [-Wint-conversion]
return PyBytes_FromString(unctrl(ch));
^
In file included from ./Include/py_curses.h:50:0,
from
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_cursesmodule.c:113:
/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/unctrl.h:60:38:
note: expected 'SCREEN * {aka struct screen *}' but argument is of type
'chtype {aka long unsigned int}'
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*,
chtype);
^
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_cursesmodule.c:3083:31:
error: too few arguments to function 'unctrl'
return PyBytes_FromString(unctrl(ch));
^
In file included from ./Include/py_curses.h:50:0,
from
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_cursesmodule.c:113:
/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/unctrl.h:60:38:
note: declared here
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*,
chtype);
^
building '_curses_panel' extension
arm-openwrt-linux-muslgnueabi-gcc -fPIC -Wno-unused-result
-Wsign-compare -DNDEBUG -Os -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16
-fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-mfloat-abi=hard -iremap
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0:Python-3.6.0
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -Os -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16
-fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-mfloat-abi=hard -iremap
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0:Python-3.6.0
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -Os -pipe -mcpu=cortex-a9
-mfpu=vfpv3-d16 -fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-mfloat-abi=hard -iremap
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0:Python-3.6.0
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include/fortify
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include
-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter
-Wno-missing-field-initializers -DHAVE_NCURSESW=1
-I/usr/include/ncursesw -I./Include -I.
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include/fortify
-I/home/lx/clearfog/octu-lede/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include
-I/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include
-I/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Include
-I/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0
-c
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_curses_panel.c
-o
build/temp.linux2-3.6/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_curses_panel.o
cc1: note: someone does not honour COPTS correctly, passed 3 times
In file included from ./Include/py_curses.h:50:0,
from
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_curses_panel.c:15:
/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/unctrl.h:60:38:
error: conflicting types for 'unctrl'
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*,
chtype);
^
In file included from /usr/include/ncursesw/curses.h:2012:0,
from ./Include/py_curses.h:50,
from
/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/Modules/_curses_panel.c:15:
/home/lx/clearfog/octu-lede/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/unctrl.h:57:38:
note: previous declaration of 'unctrl' was here
NCURSES_EXPORT(NCURSES_CONST char *) unctrl (chtype);
^
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_tkinter nis
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.
The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
atexit pwd time
zlib
Failed to build these modules:
_curses _curses_panel
Makefile:617: recipe for target 'sharedmods' failed
make[3]: *** [sharedmods] Error 1
make[3]: Leaving directory
'/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0'
Makefile:286: recipe for target
'/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/.built'
failed
make[2]: ***
[/home/lx/clearfog/octu-lede/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/Python-3.6.0/.built]
Error 2
make[2]: Leaving directory
'/home/lx/clearfog/octu-lede/feeds/packages/lang/python3'
package/Makefile:106: recipe for target
'package/feeds/packages/python3/compile' failed
make[1]: *** [package/feeds/packages/python3/compile] Error 2
make[1]: Leaving directory '/home/lx/clearfog/octu-lede'
/home/lx/clearfog/octu-lede/include/toplevel.mk:197: recipe for target
'package/python3/compile' failed
make: *** [package/python3/compile] Error 2
how to fix it ?
--
M.Sci.
Embedded Software Entwicklung
DKS Dienstleistungsgesellschaft
für Kommunikationsanlagen des
Stadt- und Regionalverkehrs mbH
Robert-Perthel-Str. 79
D-50739 Köln
Fon: +49 221 954442-43
Fax: +49 221 954442-23
E-Mail: xue.liu at dks-koeln.de
Web: www.dks-koeln.de
Geschäftsführung: Christian Döring, Ralf Kochs
Aufsichtsratsvorsitzender: Jörn Schwarze
Sitz der Gesellschaft: Köln
Registergericht: Köln, HRB 4521
UST-IDNr: DE154089761
Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen können Betriebs- oder Geschäftsgeheimnisse, dem Anwaltsgeheimnis unterliegende oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist Ihnen der Status dieser E-Mail bekannt. Bitte benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und löschen Sie diese E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso dürfen Sie diese E-Mail oder ihre Anlagen nicht kopieren oder an Dritte weitergeben. Vielen Dank!
Important note: This e-mail and any attachment are confidential and may contain trade secrets and may well also be legally privileged or otherwise protected from disclosure. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this e-mail and any attachment from your system. If you are not the intended recipient please understand that you must not copy this e-mail or any attachment or disclose the contents to any other person. Thank you for your cooperation.
More information about the Lede-dev
mailing list