Page 1 of 1

Compiling openwrt - error

Posted: Tue Nov 25, 2014 7:23 am
by Kampi
Hello,

I want compile a new openwrt, using this Guide:

http://vonger.cn/?p=1585

But I got the error

make -r world: build failed. Please re-run make with V=s to see what's going on
make: *** [world] Fehler 1

Has anybody an idea what is wrong?

Re: Compiling openwrt - error

Posted: Tue Nov 25, 2014 2:05 pm
by darksoul
Try to build like this: make V=s
You will get log where you have errors.

Re: Compiling openwrt - error

Posted: Tue Nov 25, 2014 2:16 pm
by Kampi
Hello,

found the misstake. I have compiled it with

make -j 4

again and now I got no errors.

Re: Compiling openwrt - error

Posted: Tue Nov 25, 2014 7:09 pm
by Ton
Following that tutorial I had two problems:

g++ is needed, but not installed. Do you need to do
sudo apt-get install build-essentials
to get that?

Secondly, I get an error:
/reset.c:90:3: error: implicit declaration of function 'mdelay'

I think the file is in:
/home/ton/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.14.18/arch/mips/ralink

I can add #include <linux/delay.h> to reset.c, but from the tutorial I expect the thing to compile without errors?

Re: Compiling openwrt - error

Posted: Wed Nov 26, 2014 7:34 pm
by charliex
it should compile without errors, i just pulled the main git tree and compiled it.

-j 4 shouldn't fix errors, all that does is run parallel steps in the makefile where it can.

Re: Compiling openwrt - error

Posted: Wed Nov 26, 2014 10:27 pm
by Peter H
It took me a couple of days to get OpenWRT to build, just because one of the GIT repos it needed was inaccessible. You don't say what the original error was, but if it was a network access problem, it might just fix itself after a few hours or days.

Re: Compiling openwrt - error

Posted: Thu Nov 27, 2014 5:28 pm
by Ton
Yes, mine is compiling ok now. probably a hickup somewhere