Go Down

Topic: gcc on linino? (Read 16179 times) previous topic - next topic

sonnyyu

#15
May 02, 2014, 09:25 am Last Edit: May 02, 2014, 09:43 am by sonnyyu Reason: 1
output of:

Code: [Select]
nano feeds.conf.default

you have 4 CPU cores, use this command will speed up:

Code: [Select]
DL_FOLDER=~/DOWNLOAD MAKE_JOBS=5 ./build.sh

output of :

Quote
free


http://forum.arduino.cc/index.php?topic=235489.msg1699935#msg1699935

if you use ssl to get source like me then:

"feeds.conf.default"  need update, you might need start over again. But this time with MAKE_JOBS=5.

SPlatten

free:
Code: [Select]

simon@ubuntu:~/OpenWrt-yun$ free
             total       used       free     shared    buffers     cached
Mem:       4041044    1894244    2146800      10680     286452     791220
-/+ buffers/cache:     816572    3224472
Swap:      4192252          0    4192252


Contents of feeds.conf.default:
Code: [Select]

DL_FOLDER=/DOWNLOAD MAKE_JOBS=5 ./build.sh
#src-git packages git@github.com:arduino/openwrt-packages-yun.git
src-git packages https://github.com/arduino/openwrt-packages-yun.git
src-svn xwrt http://x-wrt.googlecode.com/svn/trunk/package
src-svn luci http://svn.luci.subsignal.org/luci/branches/luci-0.11/contrib/package
src-git routing git://github.com/openwrt-routing/packages.git;for-12.09.x
#src-svn phone svn://svn.openwrt.org/openwrt/feeds/phone
#src-svn efl svn://svn.openwrt.org/openwrt/feeds/efl
#src-svn xorg svn://svn.openwrt.org/openwrt/feeds/xorg
#src-svn desktop svn://svn.openwrt.org/openwrt/feeds/desktop
#src-svn xfce svn://svn.openwrt.org/openwrt/feeds/xfce
#src-svn lxde svn://svn.openwrt.org/openwrt/feeds/lxde
#src-link custom /usr/src/openwrt/custom-feed

Kind Regards,
Sy

sonnyyu

Code: [Select]
DL_FOLDER=/DOWNLOAD MAKE_JOBS=5 ./build.sh
in "feeds.conf.default" ?

SPlatten

It is now, I added it before the last post.
Kind Regards,
Sy

sonnyyu

Code: [Select]
checking for gpgme-config... failed
configure: error: GPGME 1.0.0 or later needed


It means package of GPGME is not fed.  You might need  start  over.

Code: [Select]
            total       used       free     shared    buffers     cached
Mem:       4041044    1894244    2146800      10680     286452     791220


47%  memory has been used.


reboot  before start over or:

Code: [Select]
free && sync && echo 3 > /proc/sys/vm/drop_caches && free

sonnyyu


Code: [Select]
DL_FOLDER=/DOWNLOAD MAKE_JOBS=5 ./build.sh
in "feeds.conf.default" ?


remove it please.

SPlatten

I've removed the entry from "feeds.conf.default"

When I try to execute:
free && sync && echo 3 > /proc/sys/vm/drop_caches && free

I get permission denied on drop_caches.
Kind Regards,
Sy

sonnyyu

#22
May 02, 2014, 10:00 am Last Edit: May 02, 2014, 10:06 am by sonnyyu Reason: 1
I mean "start over":

Code: [Select]
rm -rf  /home/simon/OpenWrt-yun

but this time use:

Code: [Select]
DL_FOLDER=/DOWNLOAD MAKE_JOBS=5 ./build.sh

It will take 1/4 of time.

"feeds.conf.default" must updated before run above  command.


sonnyyu


I've removed the entry from "feeds.conf.default"

When I try to execute:
free && sync && echo 3 > /proc/sys/vm/drop_caches && free

I get permission denied on drop_caches.


Code: [Select]
sudo free && sync && echo 3 > /proc/sys/vm/drop_caches && free

SPlatten

Tried that too:
Code: [Select]

simon@ubuntu:~$ sudo free && sync && echo 3 > /proc/sys/vm/drop_caches && free
[sudo] password for simon:
             total       used       free     shared    buffers     cached
Mem:       4041044    2021568    2019476      10632     322784     835392
-/+ buffers/cache:     863392    3177652
Swap:      4192252          0    4192252
bash: /proc/sys/vm/drop_caches: Permission denied


Kind Regards,
Sy

sonnyyu

Code: [Select]
su
free && sync && echo 3 > /proc/sys/vm/drop_caches && free
su simon


I normally open two sessions  one logon as root and one is sonnyyu.

SPlatten

Started over, rebuilding all now.
Kind Regards,
Sy

SPlatten

Different error this time:
Code: [Select]

--> Package/libfuse/install enter
install -d -m0755 /home/simon/OpenWrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-libfuse/usr/lib
cp -fpR /home/simon/OpenWrt-yun/build_dir/linux-ar71xx_generic/fuse-2.9.0/ipkg-install/usr/lib/*.so.* /home/simon/OpenWrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-libfuse/usr/lib/
--> Package/libfuse/install leave
SHELL= /home/simon/OpenWrt-yun/staging_dir/host/bin/flock /home/simon/OpenWrt-yun/tmp/.root-copy.flock -c 'cp -fpR /home/simon/OpenWrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-libfuse/. /home/simon/OpenWrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/'
rm -rf /home/simon/OpenWrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-libfuse
touch /home/simon/OpenWrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/stamp/.libfuse_installed
make[3]: Leaving directory `/home/simon/OpenWrt-yun/package/fuse'
make[2]: Leaving directory `/home/simon/OpenWrt-yun'
make[1]: *** [/home/simon/OpenWrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/simon/OpenWrt-yun'
make: *** [world] Error 2
Kind Regards,
Sy

SPlatten

Re-started it with:
Code: [Select]

MAKE_JOBS=5 nice -n 10 make -j $MAKE_JOBS V=s


Seems to be progressing ok.
Kind Regards,
Sy

SPlatten

Stopped again, now trying:
nice -n 10 nohup make -j 1 V=s &

Kind Regards,
Sy

Go Up