Errors: buildsystem for the OpenWrt

3801 views
Skip to first unread message

littlebilly

unread,
Apr 3, 2011, 8:52:10 AM4/3/11
to Bifferboard
When trying to build a an OpenWRT System as described in the README of
https://github.com/bifferos/openwrt

Ubuntu is running on my computer.

I have a problem with one error!

Checking 'non-root'... failed.

Build dependency: Please do not compile as root.

Prerequisite check failed. Use FORCE=1 to override.


1. make menuconfig is running well after inserting --> FORCE=1 in
Makefile line after TOPDIR:=

I still have this error for
$ make package/symlinks and
$ make

See print below.
Is there also a trick like for "make menuconfig" to put FORCE=1 in a
file?

Thanks in advance
Billy

root@GSam:~/BBowrtgit/openwrt# make
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'flex'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'patch'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'wget'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'non-root'... failed.

Build dependency: Please do not compile as root.

Prerequisite check failed. Use FORCE=1 to override.
make[2]: *** [tmp/.prereq-build] Error 1
make[1]: *** [prereq] Error 2
make: *** [world] Fehler 2



nicolas le falher

unread,
Apr 3, 2011, 9:25:38 AM4/3/11
to biffe...@googlegroups.com
Did you have run git with sudo ?

2011/4/3 littlebilly <vultur...@googlemail.com>:

> --
> To unsubscribe send email to bifferboard...@googlegroups.com
>

--

Nicolas Le Falher.

Andrew Scheller

unread,
Apr 3, 2011, 9:32:38 AM4/3/11
to biffe...@googlegroups.com
> I have a problem with  one error!
>
> Checking 'non-root'... failed.
>
> Build dependency: Please do not compile as root.
>
> Is there also a trick like for "make menuconfig" to put FORCE=1 in a
> file?

Urrm... what's wrong with logging out as root and logging in as a normal user??

Lurch

littlebilly

unread,
Apr 3, 2011, 9:43:54 AM4/3/11
to Bifferboard
When running with sudo I get the error as described in my first
message.

When running without sudo (as a normal user?)

I get

gsam@GSam:~/BBowrtgit/openwrt$ make
rm: cannot remove `/home/gsam/BBowrtgit/openwrt/tmp/info/.files-
packageinfo-8069': Permission denied
make[3]: *** No rule to make target `/home/gsam/BBowrtgit/openwrt/tmp/
info/.files-packageinfo-9253'. Stop.
cat: /home/gsam/BBowrtgit/openwrt/tmp/info/.files-packageinfo-9253: No
such file or directory
rm: cannot remove `/home/gsam/BBowrtgit/openwrt/tmp/info/.files-
packageinfo.stamp.4f18df856765d29015b4b07332bd4f5e': Permission denied
touch: cannot touch `/home/gsam/BBowrtgit/openwrt/tmp/info/.files-
packageinfo.stamp.d41d8cd98f00b204e9800998ecf8427e': Permission denied
touch: cannot touch `/home/gsam/BBowrtgit/openwrt/tmp/info/.files-
packageinfo.stamp': Permission denied
make[2]: *** [/home/gsam/BBowrtgit/openwrt/tmp/info/.files-
packageinfo.stamp] Error 1
make[1]: *** [prepare-tmpinfo] Error 2
make: *** [world] Fehler 2


nicolas le falher

unread,
Apr 3, 2011, 9:46:12 AM4/3/11
to biffe...@googlegroups.com

But you have download as root no ?
Relaunch git as normal user and try a make.

Stuart Hopkins

unread,
Apr 3, 2011, 9:48:59 AM4/3/11
to biffe...@googlegroups.com
Have you tried pulling the tree down again? As you ran it once as root,
it likely created the tmp folder with root permissions, so running it as
a normal user afterwards wouldn't work...

Stu

--

Regards

Stuart

littlebilly

unread,
Apr 3, 2011, 10:02:54 AM4/3/11
to Bifferboard
Thats it, relaunching git as normal user did the trick.

Thanks all for your quick response and your help.

Billy

On 3 Apr., 15:46, nicolas le falher <n.lefal...@gmail.com> wrote:
> But you have download as root no ?
> Relaunch git as normal user and try a make.

Erik Fargas

unread,
Dec 19, 2013, 9:12:07 PM12/19/13
to biffe...@googlegroups.com, vultur...@googlemail.com
also you can do: sudo chown -Rv your-non-root-user  /home/your-user/openwrt
it works for me
Reply all
Reply to author
Forward
0 new messages