OpenWrt Forum Archive

Topic: can't build Python anymore (openwrt-trunk)

The content of this topic has been archived on 9 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi folks, I've just recently bumped into this issue a couple of day ago when compiling the trunk repo :

touch /home/<USER>/temp/OpenWRT_trunk/build_dir/host/Python-2.7.3/.preparedb541fa39d6e7db511134ee9771153a0d
make -C /home/<USER>/temp/OpenWRT_trunk/build_dir/host/Python-2.7.3 distclean
make[4]: Entering directory `/home/<USER>/temp/OpenWRT_trunk/build_dir/host/Python-2.7.3'
make[4]: *** No rule to make target `distclean'.  Stop.
make[4]: Leaving directory `/home/<USER>/temp/OpenWRT_trunk/build_dir/host/Python-2.7.3'
make[3]: [/home/<USER>/temp/OpenWRT_trunk/build_dir/host/Python-2.7.3/.configured] Error 2 (ignored)
(cd /home/<USER>/temp/OpenWRT_trunk/build_dir/host/Python-2.7.3; autoreconf --force --install || exit 0)
aclocal.real: warning: autoconf input should be named 'configure.ac', not 'configure.in'
(cd /home/arturo/temp/OpenWRT_trunk/build_dir/host/Python-2.7.3; rm -rf config.cache; CONFIG_SITE= OPT="-O2 -I/home/<USER>/temp/OpenWRT_trunk/staging_dir/host/include -I/home/<USER>/temp/OpenWRT_trunk/staging_dir/host/usr/include" ./configure LDFLAGS=-L/home/<USER>/temp/OpenWRT_trunk/staging_dir/host/lib -L/home/<USER>/temp/OpenWRT_trunk/staging_dir/host/usr/lib --without-cxx-main --with-threads --prefix=/home/<USER>/temp/OpenWRT_trunk/staging_dir/host; )
configure: error: unrecognized option: `-L/home/<USER>/temp/OpenWRT_trunk/staging_dir/host/usr/lib'
Try `./configure --help' for more information
make[3]: *** [/home/<USER>/temp/OpenWRT_trunk/build_dir/host/Python-2.7.3/.configured] Error 1
make[3]: Leaving directory `/home/<USER>/temp/OpenWRT_trunk/package/linino/python'
make[2]: *** [package/linino/python/host/compile] Error 2
make[2]: Leaving directory `/home/<USER>/temp/OpenWRT_trunk'
make[1]: *** [/home/<USER>/temp/OpenWRT_trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/<USER>/temp/OpenWRT_trunk'
make: *** [world] Error 2

Apparently, it seems that the error is given in the configure process and I can't figure out what to modify in the Makefile
to properly build the package :

configure: error: unrecognized option: `-L/home/<USER>/temp/OpenWRT_trunk/staging_dir/host/usr/lib'

which is a repetition of the previous set LDFLAGS. Can someone take a look at the Makefile please ?

(Last edited by arty.net on 16 Feb 2015, 18:37)

May I ask: What is your system / Linux distribution ?

Ubuntu 14.04 LTS Server Edition

(Last edited by arty.net on 16 Feb 2015, 15:44)

The discussion might have continued from here.