Modify

Opened 3 years ago

Last modified 3 years ago

#17924 new defect

Error when compiling Openwrt with WRTNode

Reported by: jerryyang Owned by: developers
Priority: high Milestone:
Component: base system Version: Trunk
Keywords: Cc:

Description

I compile the OpenWRT through the following commands:

The OS is Ubuntu 14.04, and all updates patched.

$ mkdir openwrt
$ cd openwrt
$ svn co svn://svn.openwrt.org/openwrt/trunk -r r41508
$ cd trunk

$ cp feeds.conf.default feeds.conf
$ echo 'src-git wrtnode https://github.com/WRTnode/openwrt-packages.git' >> ./feeds.conf
$ ./scripts/feeds update -a
$ ./scripts/feeds install -a

$ wget --no-check-certificate https://raw.githubusercontent.com/WRTnode/openwrt-patches/master/R39786/wrtnode_standard.config
$ cp wrtnode_standard.config .config
$ make oldconfig

$ wget --no-check-certificate https://raw.githubusercontent.com/WRTnode/openwrt-patches/master/R41508/wrtnode_factory_firmware_dts.patch
$ patch -p1 < wrtnode_factory_firmware_dts.patch

$ make V=s

I got the Error Message mainly like the following(the log file attached):

make[5]: Entering directory `/home/openwrt/openwrt/trunk/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/fixincludes'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/openwrt/openwrt/trunk/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/fixincludes'
make[5]: Entering directory `/home/openwrt/openwrt/trunk/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/gcc'
build/genattrtab /home/openwrt/openwrt/trunk/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04/gcc/config/mips/mips.md insn-conditions.md \

-Atmp-attrtab.c -Dtmp-dfatab.c -Ltmp-latencytab.c

make[5]: * [s-attrtab] Killed
make[5]: Leaving directory `/home/openwrt/openwrt/trunk/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/gcc'
make[4]: * [all-gcc] Error 2
make[4]: Leaving directory `/home/openwrt/openwrt/trunk/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal'
make[3]:
* /home/openwrt/openwrt/trunk/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/.built Error 2
make[3]: Leaving directory `/home/openwrt/openwrt/trunk/toolchain/gcc/minimal'
make[2]: * [toolchain/gcc/minimal/compile] Error 2
make[2]: Leaving directory `/home/openwrt/openwrt/trunk'
make[1]:
* /home/openwrt/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install Error 2
make[1]: Leaving directory `/home/openwrt/openwrt/trunk'
make: * [world] Error 2

And I keep deleting all files and repeat the commands above almost 3~4 times, keep getting that error.

Attachments (1)

config.log (41.4 KB) - added by jerryyang 3 years ago.
config.log

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by jerryyang

config.log

comment:1 Changed 3 years ago by yousong

probably because you are running out of memory or hitting on some resource limit and oom-killer is triggered.

comment:2 Changed 3 years ago by anonymous

I have the same problem in Ubuntu 14.04.

Change GCC compiler Version to 4.6.x can get around this problem.

comment:3 Changed 3 years ago by anonymous

make[6]: Leaving directory `/home/ec2-user/source/openwrt/build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/libdecnumber'
make[6]: Entering directory `/home/ec2-user/source/openwrt/build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/gcc'
gcc -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o tree-mudflap.o i386-c.o glibc-c.o \

cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lstdc++ -L/home/ec2-user/source/openwrt/staging_dir/host/lib -L/home/ec2-user/source/openwrt/staging_dir/host/lib -L/home/ec2-user/source/openwrt/staging_dir/host/lib -lmpc -lmpfr -lgmp -rdynamic -ldl -lstdc++ -L../zlib -lz

collect2: error: ld returned 1 exit status
make[6]: * [cc1] Error 1
make[6]: Leaving directory `/home/ec2-user/source/openwrt/build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/gcc'
make[5]:
* [all-gcc] Error 2
make[5]: Leaving directory `/home/ec2-user/source/openwrt/build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final'
make[4]: * [all] Error 2
make[4]: Leaving directory `/home/ec2-user/source/openwrt/build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final'
make[3]:
* /home/ec2-user/source/openwrt/build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/.built Error 2
make[3]: Leaving directory `/home/ec2-user/source/openwrt/toolchain/gcc/final'
make[2]: * [toolchain/gcc/final/compile] Error 2
make[2]: Leaving directory `/home/ec2-user/source/openwrt'
make[1]:
* /home/ec2-user/source/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install Error 2
make[1]: Leaving directory `/home/ec2-user/source/openwrt'
make: * [world] Error 2

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.