OpenWrt Forum Archive

Topic: Building package fails

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

Dear All,
I'm new to this forum and if i had opened this topic in wrong place place correct me.

I have some problems with compiling. Building of tools and toolchain went fine, but build process brakes at building package uclibc++. I have already tried running make package/symlinks and make prereq but it didn't help.

make[3] -C feeds/https_svn.openwrt.org_openwrt_packages_/libs/uclibc++ compile

Here are details i get with running make with V=99

make[3]: Entering directory `/home/vlada/openzoo/current/openwrt/feeds/https_svn.openwrt.org_openwrt_packages_/libs/uclibc++'
install -d -m0755 /bin /home/vlada/openzoo/current/openwrt/staging_dir/arm/usr/include/uClibc++ /home/vlada/openzoo/current/openwrt/staging_dir/arm/usr/lib
install -m0755 /home/vlada/openzoo/current/openwrt/build_dir/arm/uClibc++-0.2.2/ipkg-install/usr/bin/g++-uc /bin/
install: cannot create regular file `/bin/g++-uc': Permission denied
make[3]: *** [/home/vlada/openzoo/current/openwrt/staging_dir/arm/stamp/.uclibc++_installed] Error 1
make[3]: Leaving directory `/home/vlada/openzoo/current/openwrt/feeds/https_svn.openwrt.org_openwrt_packages_/libs/uclibc++'
make[2]: *** [package/libs/uclibc++/compile] Error 2

Is this some bug in build scripts? Maybe someone knows a quick workaround for this ..

I don't how did you retrieve your openwrt source; however, I don't see any feeds/https_svn.openwrt.org_openwrt_packages_ directory on my build that was retrieved through the SVN trunk. As a matter of fact, I just tried to retrieve the source again on other computer and still didn't see such a directory. I have no problem to complete the build on the firmware + asterisk v1.4.11, except the asterisk build could not produce codec_gsm.so file (see my post here. I wonder if anyone knows this problem.

(Last edited by mazilo on 15 Feb 2008, 04:44)

As I understand, feeds folder is a part of package feeds system. New packages can be added by running script ./scripts/feeds packageName or you can add them all to openwrt with make package/symlinks.

My guess was that this feeds system was the best way get updated packages and their compile/install scripts. I guess  that this one for uclibc++ (g++-uc) is broken.

It looks like its trying to install g++-uc to my root /bin/

install -m0755 /home/.../openwrt/build_dir/arm/uClibc++-0.2.2/ipkg-install/usr/bin/g++-uc /bin/

Does anyone have idea where that file should really go?

(Last edited by milosevic81 on 15 Feb 2008, 10:43)

I have looked a bit into uClibc++ Makefile and it uses $(1) for staging dir and $(2) for host staging dir. I have inserted few echo lines, and it appears that $(2) is not set. So, this Makefile is just fine, i will look for the error in some other place..
Quite a nice exercise for learning how openwrt build system works big_smile

I am just curious how did you get your feeds directory filled with a https_svn.openwrt.org_openwrt_packages directory? AFAIC, a free SVN download/update doesn't have this directory and works from ground up with no problem.

mazilo wrote:

I am just curious how did you get your feeds directory filled with a https_svn.openwrt.org_openwrt_packages directory? AFAIC, a free SVN download/update doesn't have this directory and works from ground up with no problem.

Running "scripts/feeds update" creates it.

(as per BuildingKamikazeHowTo)

I did run the "scripts/feeds update" and it performs the update but no https_svn.openwrt.org_openwrt_packages directory. I am not sure if it makes any different because I started out doing this svn co https://svn.openwrt.org/openwrt/trunk/ to retrieve openwrt SVN trunk.

(Last edited by mazilo on 15 Feb 2008, 21:23)

Yes, now i have updated all Kamikaze files from svn and after cleaning up there is no more "https_svn.openwrt.org_openwrt_packages" folder in feeds, only actual package folders.

@tl71
Thnx, that solves it.

The discussion might have continued from here.