nikwrt / snake-os

Automatically exported from code.google.com/p/snake-os
0 stars 0 forks source link

Compilation: make of rootfs fails #169

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
try making rootfs under ubuntu 11.4 from current svn version

Please provide any additional information below.

Output is as follows:

if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map -b 
/home/simon/snake/snake-os-read-only/rootfs/target -r 2.6.16-gazineu; fi
make[1]: Verlasse Verzeichnis 
'/home/simon/snake/snake-os-read-only/kernels/linux-2.6.16-gazineu'
#make -j3 -C /home/simon/snake/snake-os-read-only/kernels/linux 
CONFIG_NTFS_FS=m CONFIG_NTFS_DEBUG=n CONFIG_NTFS_RW=y M=fs/ntfs
#mkdir -p 
/home/simon/snake/snake-os-read-only/rootfs/target/lib/modules/2.6.16-gazineu/ke
rnel/fs/ntfs
#cp -a /home/simon/snake/snake-os-read-only/kernels/linux/fs/ntfs/ntfs.ko 
/home/simon/snake/snake-os-read-only/rootfs/target/lib/modules/2.6.16-gazineu/ke
rnel/fs/ntfs
make -C /home/simon/snake/snake-os-read-only/apps install CC=arm-linux-gcc
make[1]: Betrete Verzeichnis '/home/simon/snake/snake-os-read-only/apps'
# BUSYBOX
if [ ! -e busybox/.config ] ; then cp busybox/busybox_defconfig 
busybox/.config; make oldconfig -C  busybox; fi
make PREFIX=/home/simon/snake/snake-os-read-only/apps/../rootfs/target 
CONFIG_PREFIX=/home/simon/snake/snake-os-read-only/apps/../rootfs/target -j3 -C 
busybox CROSS_COMPILE="arm-linux-"
make[2]: Betrete Verzeichnis 
'/home/simon/snake/snake-os-read-only/apps/busybox-1.14.2'
  LINK    busybox_unstripped
Trying libraries: crypt m
Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group
Output of:
arm-linux-gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes 
-Wunused -Wunused-parameter -Wunused-function -Wunused-value 
-Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement 
-fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections 
-fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc 
-falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -Os -o 
busybox_unstripped -Wl,--sort-common -Wl,--gc-sections -Wl,--start-group 
applets/built-in.o archival/lib.a archival/libunarchive/lib.a 
console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a 
debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a 
libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a 
modutils/lib.a networking/lib.a networking/libiproute/lib.a 
networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a 
shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a 
archival/built-in.o archival/libunarchive/built-in.o console-tools/built-in.o 
coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o 
e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o 
libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o 
mailutils/built-in.o miscutils/built-in.o modutils/built-in.o 
networking/built-in.o networking/libiproute/built-in.o 
networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o 
runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o 
util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group 
-Wl,--start-group -lcrypt -lm -Wl,--end-group
==========
/home/simon/snake/snake-os-read-only/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-l
inux-uclibc/3.4.6/../../../../arm-linux-uclibc/bin/ld: crt1.o: No such file: 
Datei oder Verzeichnis nicht gefunden
collect2: ld returned 1 exit status
make[2]: *** [busybox_unstripped] Fehler 1
make[2]: Verlasse Verzeichnis 
'/home/simon/snake/snake-os-read-only/apps/busybox-1.14.2'
make[1]: *** [to_build_image] Fehler 2
make[1]: Verlasse Verzeichnis '/home/simon/snake/snake-os-read-only/apps'
make: *** [make_rootfs] Fehler 2

Original issue reported on code.google.com by skle...@gmail.com on 26 Jun 2011 at 7:56

GoogleCodeExporter commented 8 years ago
oh yes, libc6-dev is installed, crt1.0 is located in /usr/lib

Original comment by skle...@gmail.com on 26 Jun 2011 at 7:59

GoogleCodeExporter commented 8 years ago
I'm still trying to figure things out too, the svn versions seem to be missing 
a lot of files.

I got past that error with the compiler from the snakeos-sdk package 
(http://snake-os.googlecode.com/files/snakeos-sdk_1.1.tar.bz2). Point PATH to 
its gcc bin directory instead of the one in the checkout.

The build stops at a few more places here. Usually it's just minor makefile 
tweaks to get past those.

Original comment by stefansc...@googlemail.com on 12 Aug 2011 at 12:26

GoogleCodeExporter commented 8 years ago
Hi,

svn checkout http://snake-os.googlecode.com/svn/branches/1.3.2/\ snake-os

cd <path-to-checkout>/kernels/linux/ extract 
PATH=/tools/arm-uclibc-3.4.6/bin/:$PATH

change what ever you want in the firmware than:

cd <path-to-checkout>/sudo ./ mk_snakeos_image.sh

I hope thats will work for you too.

The new sw will be generated within 5-6 minutes.

Original comment by aneme...@gmail.com on 24 Sep 2011 at 7:30

GoogleCodeExporter commented 8 years ago
Thanks aneme for the little guide to building from source.

I was having a problem with file "arm-linux-gcc" not being found even though 
the file existed and its path was in $PATH.

It turned out to be an issue because my Ubuntu is 64 bits and "arm-linux-gcc" 
is 32 bits. I only issued "apt-get install ia32-libs" and voilà!

Source: 
http://www.linuxquestions.org/questions/ubuntu-63/command-not-found-but-the-file
-file-exists-942367/#post4666324

PS: I had to insert ["path-to-source"/tools/arm-uclibc-3.4.6/bin] at the end of 
$PATH environment variable, issuing 
"PATH=$PATH:"path-to-source"/tools/arm-uclibc-3.4.6/bin"; otherwise an error 
about "rm command not found" raised.

Original comment by arionkra...@gmail.com on 23 Jun 2012 at 1:15