OpenWrt Forum Archive

Topic: Can't build 12.09

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

Hi,

I'm trying to  build the latest Version of 12.09. I get every time this error:

make[2]: Leaving directory `/OpenWrtBuildRoot/12.09'
make[1]: *** [/OpenWrtBuildRoot/12.09/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.tools_install_nnnnn] Error 2
make[1]: Leaving directory `/OpenWrtBuildRoot/12.09'
make: *** [world] Error 2

I've tried it on different systems with the same error...

I use the latest git version of 12.09.

Any advice?

Please show more of the log after doing "make V=s"
With you current message, it is not visible, which tool fails to compile.

(Last edited by tl71 on 25 Nov 2013, 10:43)

Please state which Linux Distribution you are running because one might be able to replicate your problem and compare your environment to a working one.

Hi,

the first test machine  is a VPS with Debian 7 (stable), 64Bit Intel CPU and 4Gb Ram. The second machine is a i3 Notebook with 8gb Ram and Debian 8 (testing) also 64Bit.

On both systems I have built several images with the ImageBuilder.

My last status is, that I can build a firmware with these steps:

1. make distclean
2. no feeds
3. make menuconfig -> set Target -> exit (save)
4. make defconfig -> no dependencies error
5. make prereq
6. make -j 3 -> no error, basic firmeware
7. NO CLEAN
8. make menuconfig
9. install feeds
10. choose packets
11. make -j 3
12. no error + desired firmware

I don't know why I need all these steps. If I try to skip the pre-build I get the error...

Hi,

I installed all the packages required according to http://wiki.openwrt.org/doc/howto/buildroot.exigence. Also, I follow nosp4mer's steps.
I have the same error.
I am using Ubuntu 13.10, and I can build OpenWrt 10.03 image on the same machine.

(Last edited by stone8936 on 9 Jan 2014, 10:36)

me too. Build chain seems seriously broken somehow...

make[7]: Nothing to be done for `install-exec-am'.
 /usr/bin/mkdir -p '/home/boris/openwrt.3g/trunk-aa/staging_dir/host/share/aclocal'
 /usr/bin/install -c -m 644 m4/bison-i18n.m4 '/home/boris/openwrt.3g/trunk-aa/staging_dir/host/share/aclocal'
make[7]: Leaving directory `/home/boris/openwrt.3g/trunk-aa/build_dir/host/bison-2.7'
make[6]: Leaving directory `/home/boris/openwrt.3g/trunk-aa/build_dir/host/bison-2.7'
make[5]: Leaving directory `/home/boris/openwrt.3g/trunk-aa/build_dir/host/bison-2.7'
make[4]: Leaving directory `/home/boris/openwrt.3g/trunk-aa/build_dir/host/bison-2.7'
mkdir -p /home/boris/openwrt.3g/trunk-aa/staging_dir/host/stamp
touch /home/boris/openwrt.3g/trunk-aa/staging_dir/host/stamp/.bison_installed
make[3]: Leaving directory `/home/boris/openwrt.3g/trunk-aa/tools/bison'
make[2]: Leaving directory `/home/boris/openwrt.3g/trunk-aa'
make[1]: *** [/home/boris/openwrt.3g/trunk-aa/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.tools_install_nnnnn] Error 2
make[1]: Leaving directory `/home/boris/openwrt.3g/trunk-aa'
make: *** [world] Error 2

None of the posted logs actually contains the error, you need to post more context, look for the first line containing *** and run without -j.

I'm having same problem building rev34686 for BT home hub 2.0 type B.
I'm asking ebilan, who compile this same version for this same router time ago (http://openwrt.ebilan.co.uk/viewtopic.php?f=4&t=4)
I'm using linux puppy precise 5.7.1 with devx installed.
I'm using a non-root in console.
Here you have my log:

# make V=s
make[1]: Entering directory `/root/spot/trunk'
make[2]: Entering directory `/root/spot/trunk'
+ mkdir -p /root/spot/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2
+ cd /root/spot/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2
+ mkdir -p bin lib include stamp
mkdir -p /root/spot/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/stamp
touch /root/spot/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/.prepared
+ mkdir -p /root/spot/trunk/staging_dir/host
+ cd /root/spot/trunk/staging_dir/host
+ mkdir -p bin lib include stamp
mkdir -p /root/spot/trunk/build_dir/host/stamp /root/spot/trunk/staging_dir/host/include/sys
install -m0644 /root/spot/trunk/tools/include/*.h /root/spot/trunk/staging_dir/host/include/
install -m0644 /root/spot/trunk/tools/include/sys/*.h /root/spot/trunk/staging_dir/host/include/sys/
ln -sf lib /root/spot/trunk/staging_dir/host/lib64
touch /root/spot/trunk/staging_dir/host/.prepared
make[3]: Entering directory `/root/spot/trunk/tools/m4'
make[3]: Leaving directory `/root/spot/trunk/tools/m4'
make[3]: Entering directory `/root/spot/trunk/tools/m4'
make[3]: Leaving directory `/root/spot/trunk/tools/m4'
make[3]: Entering directory `/root/spot/trunk/tools/sed'
make[3]: Leaving directory `/root/spot/trunk/tools/sed'
make[3]: Entering directory `/root/spot/trunk/tools/sed'
make[3]: Leaving directory `/root/spot/trunk/tools/sed'
make[3]: Entering directory `/root/spot/trunk/tools/libtool'
make[3]: Leaving directory `/root/spot/trunk/tools/libtool'
make[3]: Entering directory `/root/spot/trunk/tools/libtool'
make[3]: Leaving directory `/root/spot/trunk/tools/libtool'
make[3]: Entering directory `/root/spot/trunk/tools/autoconf'
make[3]: Leaving directory `/root/spot/trunk/tools/autoconf'
make[3]: Entering directory `/root/spot/trunk/tools/autoconf'
make[3]: Leaving directory `/root/spot/trunk/tools/autoconf'
make[3]: Entering directory `/root/spot/trunk/tools/pkg-config'
make[3]: Leaving directory `/root/spot/trunk/tools/pkg-config'
make[3]: Entering directory `/root/spot/trunk/tools/pkg-config'
make[3]: Leaving directory `/root/spot/trunk/tools/pkg-config'
make[3]: Entering directory `/root/spot/trunk/tools/xz'
make[3]: Leaving directory `/root/spot/trunk/tools/xz'
make[3]: Entering directory `/root/spot/trunk/tools/xz'
make[3]: Leaving directory `/root/spot/trunk/tools/xz'
make[3]: Entering directory `/root/spot/trunk/tools/automake'
make[3]: Leaving directory `/root/spot/trunk/tools/automake'
make[3]: Entering directory `/root/spot/trunk/tools/automake'
make[3]: Leaving directory `/root/spot/trunk/tools/automake'
make[3]: Entering directory `/root/spot/trunk/tools/gmp'
make[3]: Leaving directory `/root/spot/trunk/tools/gmp'
make[3]: Entering directory `/root/spot/trunk/tools/gmp'
make[3]: Leaving directory `/root/spot/trunk/tools/gmp'
make[3]: Entering directory `/root/spot/trunk/tools/mpfr'
make[3]: Leaving directory `/root/spot/trunk/tools/mpfr'
make[3]: Entering directory `/root/spot/trunk/tools/mpfr'
make[3]: Leaving directory `/root/spot/trunk/tools/mpfr'
make[3]: Entering directory `/root/spot/trunk/tools/mpc'
make[3]: Leaving directory `/root/spot/trunk/tools/mpc'
make[3]: Entering directory `/root/spot/trunk/tools/mpc'
make[3]: Leaving directory `/root/spot/trunk/tools/mpc'
make[3]: Entering directory `/root/spot/trunk/tools/libelf'
make[3]: Leaving directory `/root/spot/trunk/tools/libelf'
make[3]: Entering directory `/root/spot/trunk/tools/libelf'
make[3]: Leaving directory `/root/spot/trunk/tools/libelf'
make[3]: Entering directory `/root/spot/trunk/tools/flex'
make[3]: Leaving directory `/root/spot/trunk/tools/flex'
make[3]: Entering directory `/root/spot/trunk/tools/flex'
make[3]: Leaving directory `/root/spot/trunk/tools/flex'
make[3]: Entering directory `/root/spot/trunk/tools/bison'
make[3]: Leaving directory `/root/spot/trunk/tools/bison'
make[3]: Entering directory `/root/spot/trunk/tools/bison'
make[3]: Leaving directory `/root/spot/trunk/tools/bison'
make[3]: Entering directory `/root/spot/trunk/tools/mklibs'
make[3]: Leaving directory `/root/spot/trunk/tools/mklibs'
make[3]: Entering directory `/root/spot/trunk/tools/mklibs'
make[3]: Leaving directory `/root/spot/trunk/tools/mklibs'
make[3]: Entering directory `/root/spot/trunk/tools/sstrip'
make[3]: Leaving directory `/root/spot/trunk/tools/sstrip'
make[3]: Entering directory `/root/spot/trunk/tools/sstrip'
make[3]: Leaving directory `/root/spot/trunk/tools/sstrip'
make[3]: Entering directory `/root/spot/trunk/tools/ipkg-utils'
make -j1 -C /root/spot/trunk/build_dir/host/ipkg-utils-1.7  
make[4]: Entering directory `/root/spot/trunk/build_dir/host/ipkg-utils-1.7'
python setup.py build
/usr/lib/python2.7/distutils/distutils/dist.py:251: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
Traceback (most recent call last):
  File "setup.py", line 21, in <module>
    scripts = ['ipkg-compare-indexes', 'ipkg-make-index', 'ipkg-update-index']
  File "/usr/lib/python2.7/distutils/core.py", line 138, in setup
    ok = dist.parse_command_line()
  File "/usr/lib/python2.7/distutils/distutils/dist.py", line 467, in parse_command_line
    args = self._parse_command_opts(parser, args)
  File "/usr/lib/python2.7/distutils/distutils/dist.py", line 531, in _parse_command_opts
    "command class %s must subclass Command" % cmd_class
distutils.errors.DistutilsClassError: command class distutils.command.build.build must subclass Command
make[4]: *** [build] Error 1
make[4]: Leaving directory `/root/spot/trunk/build_dir/host/ipkg-utils-1.7'
make[3]: *** [/root/spot/trunk/build_dir/host/ipkg-utils-1.7/.built] Error 2
make[3]: Leaving directory `/root/spot/trunk/tools/ipkg-utils'
make[2]: *** [tools/ipkg-utils/compile] Error 2
make[2]: Leaving directory `/root/spot/trunk'
make[1]: *** [/root/spot/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.tools_install_nnnnn] Error 2
make[1]: Leaving directory `/root/spot/trunk'
make: *** [world] Error 2
# 

What's wrong?

Thank you

(Last edited by Reflected_God on 15 Jan 2014, 13:02)

Looks to me like the python stuff on the host system is too new.

I solved this problem finally.
It seems some packages are lost, on my laptop. I just install all the required packages for all versions of the systems, no matter which one I use.
A hint from http://foro.seguridadwireless.net/openw … 40/?imode.
And also, as jow said, some times make it without "-j 3". But some times I can build with "-j 3" also. It is little strange.

Could you please post which packages have you installed?

I didn't exactly check. But I use Ubuntu 13.10,
besides:
build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt xsltproc
which are mentioned in the official document, I also install all the required packs for 9.10, 12.04, 64bit, there may be some overlap among them:
sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext
sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl
sudo apt-get install gcc-multilib bison autoconf screen gcc g++ binutils patch bzip2 flex make gettext unzip libc6 git-core

I've checked all dependencies and I've all them installed.
The problem is almost the same.

make[4]: Entering directory `/root/spot/trunk/build_dir/host/ipkg-utils-1.7'
cc  -o ipkg-compare-versions ipkg-compare-versions.c
python setup.py build
/usr/lib/python2.7/distutils/distutils/dist.py:251: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
Traceback (most recent call last):
  File "setup.py", line 21, in <module>
    scripts = ['ipkg-compare-indexes', 'ipkg-make-index', 'ipkg-update-index']
  File "/usr/lib/python2.7/distutils/core.py", line 138, in setup
    ok = dist.parse_command_line()
  File "/usr/lib/python2.7/distutils/distutils/dist.py", line 467, in parse_command_line
    args = self._parse_command_opts(parser, args)
  File "/usr/lib/python2.7/distutils/distutils/dist.py", line 531, in _parse_command_opts
    "command class %s must subclass Command" % cmd_class
distutils.errors.DistutilsClassError: command class distutils.command.build.build must subclass Command
make[4]: *** [build] Error 1
make[4]: Leaving directory `/root/spot/trunk/build_dir/host/ipkg-utils-1.7'
make[3]: *** [/root/spot/trunk/build_dir/host/ipkg-utils-1.7/.built] Error 2
make[3]: Leaving directory `/root/spot/trunk/tools/ipkg-utils'
make[2]: *** [tools/ipkg-utils/compile] Error 2
make[2]: Leaving directory `/root/spot/trunk'
make[1]: *** [/root/spot/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.tools_install_nnnnn] Error 2
make[1]: Leaving directory `/root/spot/trunk'
make: *** [world] Error 2

Now I can see problems with ipkg or pyhton... Am I right?
How can I solve them?

(Last edited by Reflected_God on 16 Jan 2014, 11:38)

As I said, the python stuff on your system is likely too new. See if you can install a 2.4 or 2.6 version.

jow wrote:

As I said, the python stuff on your system is likely too new. See if you can install a 2.4 or 2.6 version.

You were absolutely right.
I've solved installing python 2.6.9 this way (as root):

wget http://www.python.org/ftp/python/2.6.9/Python-2.6.9.tgz
tar -xvf Python-2.6.9.tgz
cd Python-2.6.9
./configure
make
make altinstall
ln -sf /usr/loca/bin/python2.6 /usr/bin/python

Now I've my own compiled image of openwrt.

Thank you smile

(Last edited by Reflected_God on 23 Jan 2014, 09:46)

The discussion might have continued from here.