BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000126 [buildroot] Architecture Specific major always 02-26-05 20:36 02-12-07 05:48
Reporter bmarenkov View Status public  
Assigned To buildroot
Priority normal Resolution won't fix  
Status closed   Product Version 0.9.27
Summary 0000126: make breaks when TARGET_DIR is specified on command line
Description After all the usual "make menuconfig", the make procedure breaks when I specify:

make "TARGET_DIR=/home/user/root"

However, if I just issue:

make

all goes well. It looks like the genext2fs-1.3/genext2fs utility has some dependency or the makefile isn't set up right to handle another location of the root file system. See the additional debug log.
Additional Information With make "TARGET_DIR=/home/boris/test/root" I get the following error:
================
# Just in case
chmod a+x /home/boris/test/root/usr/share/udhcpc/default.script
chmod: failed to get attributes of `/home/boris/test/root/usr/share/udhcpc/default.script': No such file or directory
make: [/home/boris/test/root/bin/busybox] Error 1 (ignored)
wget --passive-ftp -P /home/boris/test/buildroot/dl http://ftp.debian.org/debian/pool/main/g/genext2fs/genext2fs_1.3.orig.tar.gz [^]
--23:14:13-- http://ftp.debian.org/debian/pool/main/g/genext2fs/genext2fs_1.3.orig.tar.gz [^]
           => `/home/boris/test/buildroot/dl/genext2fs_1.3.orig.tar.gz'
Resolving ftp.debian.org... done.
Connecting to ftp.debian.org[128.101.80.133]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19,343 [application/x-tar]

100%[=======================================================================================================>] 19,343 113.11K/s ETA 00:00

23:14:14 (113.11 KB/s) - `/home/boris/test/buildroot/dl/genext2fs_1.3.orig.tar.gz' saved [19343/19343]

zcat /home/boris/test/buildroot/dl/genext2fs_1.3.orig.tar.gz | tar -C /home/boris/test/buildroot/build_i386 -xvf -
genext2fs-1.3.orig/
genext2fs-1.3.orig/genext2fs.c
genext2fs-1.3.orig/COPYING
genext2fs-1.3.orig/dev.txt
mv /home/boris/test/buildroot/build_i386/genext2fs-1.3.orig /home/boris/test/buildroot/build_i386/genext2fs-1.3
toolchain/patch-kernel.sh /home/boris/test/buildroot/build_i386/genext2fs-1.3 target/ext2/ genext2fs*.patch

Applying target/ext2//genext2fs.patch using plaintext:
patching file AUTHORS
<.............skipped to save space...........>
genext2fs.c:1036:2: warning: #warning truncate_nod() no yet implemented
genext2fs.c: In function `add2fs_from_dir':
genext2fs.c:1390: warning: `nod' might be used uninitialized in this function
genext2fs.c: In function `load_fs':
genext2fs.c:1791: warning: `fssize' might be used uninitialized in this function
genext2fs.c: In function `main':
genext2fs.c:2159: warning: `fs' might be used uninitialized in this function
genext2fs.c: At top level:
genext2fs.c:736: warning: `deallocate' defined but not used
genext2fs.c:1858: warning: `hexdump_blocks' defined but not used
gcc -Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o genext2fs genext2fs.o
make[1]: Leaving directory `/home/boris/test/buildroot/build_i386/genext2fs-1.3'
touch -c /home/boris/test/buildroot/build_i386/genext2fs-1.3/genext2fs
#-@find /home/boris/test/root/lib -type f -name \*.so\* | xargs /home/boris/test/buildroot/build_i386/staging_dir/bin/i386-linux-uclibc-strip --rem
ove-section=.comment --remove-section=.note --strip-unneeded 2>/dev/null || true;
/home/boris/test/buildroot/build_i386/genext2fs-1.3/genext2fs -i 572 -b 1164 \
        -d /home/boris/test/root -q -D target/default/device_table.txt /home/boris/test/buildroot/root_fs_i386.ext2
/home/boris/test/buildroot/build_i386/genext2fs-1.3/genext2fs: device table line 39 skipped: can't find directory '/home' to create 'default''
/home/boris/test/buildroot/build_i386/genext2fs-1.3/genext2fs: device table line 44 skipped: can't find directory '/etc/network' to create 'if-up.d
''
/home/boris/test/buildroot/build_i386/genext2fs-1.3/genext2fs: device table line 45 skipped: can't find directory '/etc/network' to create 'if-pre-
up.d''
/home/boris/test/buildroot/build_i386/genext2fs-1.3/genext2fs: device table line 46 skipped: can't find directory '/etc/network' to create 'if-down
.d''
/home/boris/test/buildroot/build_i386/genext2fs-1.3/genext2fs: device table line 47 skipped: can't find directory '/etc/network' to create 'if-post
-down.d''
/home/boris/test/buildroot/build_i386/genext2fs-1.3/genext2fs: device table line 48 skipped: can't find directory '/usr/share/udhcpc' to create 'de
fault.script''
================

When I just say make on the command line, the procedure finishes OK. I was just trying to locate the target root directory somewhere outside the buildroot. The reason to do so is to install targets applications for the system I am building Linux.








Attached Files

- Relationships

- Notes
(0001001)
prpplague
01-25-06 08:18

the TARGET_DIR is currently hardcoded in the make files. if you would like to look at how the download directory is configured and do the same for TARGET_DIR. once thats down, submit a patch using diff -urN


 

- Issue History
Date Modified Username Field Change
02-26-05 20:36 bmarenkov New Issue
03-16-05 12:12 andersen Status new => assigned
03-16-05 12:12 andersen Assigned To  => uClibc
01-25-06 08:18 prpplague Note Added: 0001001
01-25-06 08:18 prpplague Status assigned => closed
01-25-06 08:18 prpplague Resolution open => won't fix
02-12-07 05:48 vapier Status closed => assigned
02-12-07 05:48 vapier Assigned To uClibc => buildroot


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker