Hi all,
I'm facing some problems trying to build OpenWrt trunk.
First of all, even if I'm quite sure that I've followed the right procedure, to be 100% sure, I will write down here what I've done to set up the buildroot:
$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt-get install sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk git git-core ccache gcc-multilib flex gettext libssl-dev xsltproc quilt libxml-parser-perl python3.4-dev qemu-utils
$ svn co svn://svn.openwrt.org/openwrt/trunk
$ cd trunk
$ ./scripts/feeds update -a
$ ./scripts/feeds install -a
$ make menuconfig
$ make defconfig
$ make kernel_menuconfig
$ make kernel_oldconfig
$ make prereq
then running
$ make -j 7
I get:
mirko@PC-Mirko:~$ cd /home/mirko/Desktop/trunk/
mirko@PC-Mirko:~/Desktop/trunk$ make -j 7
Checking 'rsync'... ok.
make[1] world
make[2] tools/install
make[2] package/cleanup
make[3] -C tools/patch-image compile
make[3] -C tools/make-ext4fs compile
make[3] -C tools/patch compile
make[3] -C tools/sstrip compile
make[3] -C tools/flock compile
make[3] -C tools/firmware-utils compile
make[3] -C tools/patch install
make[3] -C tools/sed compile
make[3] -C tools/m4 compile
make[3] -C tools/xz compile
make[3] -C tools/yaffs2 compile
make[3] -C tools/cmake compile
make[3] -C tools/scons compile
make[3] -C tools/lzma compile
make[3] -C tools/sed install
make[3] -C tools/m4 install
make[3] -C tools/xz install
make[3] -C tools/pkg-config compile
make[3] -C tools/sstrip install
make[3] -C tools/mkimage compile
make[3] -C tools/patch-image install
make[3] -C tools/yaffs2 install
make[3] -C tools/flock install
make[3] -C tools/squashfs4 compile
make[3] -C tools/autoconf compile
make[3] -C tools/pkg-config install
make[3] -C tools/make-ext4fs install
make[3] -C tools/autoconf install
make[3] -C tools/automake compile
make[3] -C tools/missing-macros compile
make[3] -C tools/automake install
make[3] -C tools/missing-macros install
make[3] -C tools/libtool compile
make[3] -C tools/libtool install
make[3] -C tools/gmp compile
make[3] -C tools/libelf compile
make[3] -C tools/flex compile
make[3] -C tools/mklibs compile
make[3] -C tools/e2fsprogs compile
make[3] -C tools/firmware-utils install
make[3] -C tools/mm-macros compile
make[3] -C tools/scons install
make[3] -C tools/gengetopt compile
make[3] -C tools/patchelf compile
make[3] -C tools/lzma install
make[3] -C tools/squashfs4 install
make[3] -C tools/libelf install
make[3] -C tools/flex install
make[3] -C tools/mklibs install
make[3] -C tools/mkimage install
make[3] -C tools/mm-macros install
make[3] -C tools/bison compile
make[3] -C tools/bison install
make[3] -C tools/findutils compile
make[3] -C tools/bc compile
make[3] -C tools/patchelf install
make[3] -C tools/findutils install
make[3] -C tools/quilt compile
make[3] -C tools/padjffs2 compile
make[3] -C tools/quilt install
make[3] -C tools/padjffs2 install
make[3] -C tools/bc install
make[3] -C tools/e2fsprogs install
make[3] -C tools/mtd-utils compile
make[3] -C tools/qemu compile
make[3] -C tools/gengetopt install
make[3] -C tools/gmp install
make[3] -C tools/mpfr compile
make[3] -C tools/mtd-utils install
make[3] -C tools/qemu install
make[3] -C tools/mpfr install
make[3] -C tools/mpc compile
make[3] -C tools/mpc install
make[3] -C tools/cmake install
make[2] toolchain/install
make[3] -C toolchain/gdb prepare
make[3] -C toolchain/gcc/minimal prepare
make[3] -C toolchain/binutils prepare
make[3] -C toolchain/kernel-headers prepare
make[3] -C toolchain/uClibc/headers prepare
make[3] -C toolchain/kernel-headers compile
make[3] -C toolchain/uClibc prepare
make[3] -C toolchain/uClibc/utils prepare
make[3] -C toolchain/binutils compile
make[3] -C toolchain/gdb compile
make[3] -C toolchain/binutils install
make[3] -C toolchain/gcc/minimal compile
make[3] -C toolchain/gcc/initial prepare
make[3] -C toolchain/gcc/final prepare
make[3] -C toolchain/gdb install
make[3] -C toolchain/gcc/minimal install
make[3] -C toolchain/kernel-headers install
make[3] -C toolchain/uClibc/headers compile
make[3] -C toolchain/uClibc/headers install
make[3] -C toolchain/gcc/initial compile
make[3] -C toolchain/gcc/initial install
make[3] -C toolchain/uClibc compile
make[3] -C toolchain/uClibc install
make[3] -C toolchain/gcc/final compile
make[3] -C toolchain/gcc/final install
make[3] -C toolchain/uClibc/utils compile
make[3] -C toolchain/uClibc/utils install
make[2] target/compile
make[3] -C target/linux compile
make -r world: build failed. Please re-run make with -j1 V=s to see what's going on
/home/mirko/Desktop/trunk/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 1
mirko@PC-Mirko:~/Desktop/trunk$
I've uploaded here the log folder (and also diffconfig, buildroot .config, kernel buildroot .config), in which under
/logs/target/linux
into compile.txt I can see that the log reports a problem with LKMs:
...
virtio-scsi support (SCSI_VIRTIO) [N/m/?] (NEW) aborted!
Console input/output is redirected. Run 'make oldconfig' to update configuration.
scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
make[7]: *** [silentoldconfig] Error 1
Makefile:543: recipe for target 'silentoldconfig' failed
make[6]: *** [silentoldconfig] Error 2
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.
Makefile:1161: recipe for target 'modules' failed
make[5]: *** [modules] Error 1
Makefile:22: recipe for target '/home/mirko/Desktop/trunk/build_dir/target-x86_64_uClibc-0.9.33.2/linux-x86_64/linux-4.0.4/.modules' failed
make[4]: *** [/home/mirko/Desktop/trunk/build_dir/target-x86_64_uClibc-0.9.33.2/linux-x86_64/linux-4.0.4/.modules] Error 2
Makefile:13: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
Now I've tried to understand where I've done something wrong but I didn't solve anything, running:
make kernel_menuconfig
I see loadable module support enabled!!!
So as you can see I'm stuck... if someone would be so kind to give me an hand, any help will be really appreciated.
Thanks to everyone in advance.
(Last edited by mirko_47 on 13 Jun 2015, 17:01)