* [Buildroot] Tar problems
@ 2007-09-04 13:24 Babarovic Ivica
2007-09-04 20:56 ` Bernhard Fischer
0 siblings, 1 reply; 6+ messages in thread
From: Babarovic Ivica @ 2007-09-04 13:24 UTC (permalink / raw)
To: buildroot
Since this is my first post to this list I'd like to say hello first and
express my appreciation
for this wonderful tool.
This is the problem I'm getting while building my target.
I specifically uncheck the tar option for compressing rootfs. It seems
though build process
ignores this.
Last lines:
-------------------------------------------------------------------
...
# Use fakeroot to pretend all target binaries are owned by root
rm -f
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
touch
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/.fakeroot.00000
cat
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/.fakeroot*
>
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
echo "chown -R 0:0
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root"
>>
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
# Use fakeroot to pretend to create all needed device nodes
echo
"/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/staging_dir/bin/makedevs
-d target/generic/device_table.txt
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root"
\
>>
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
# Use fakeroot so genext2fs believes the previous fakery
GENEXT2_REALSIZE=`LC_ALL=C du -s -c -k
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
| grep total | sed -e "s/total//"`; \
GENEXT2_ADDTOROOTSIZE=`if [ $GENEXT2_REALSIZE -ge 20000 ]; then
echo 16384; else echo 2400; fi`; \
GENEXT2_SIZE=`expr $GENEXT2_REALSIZE + $GENEXT2_ADDTOROOTSIZE`; \
GENEXT2_ADDTOINODESIZE=`find
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
| wc -l`; \
GENEXT2_INODES=`expr $GENEXT2_ADDTOINODESIZE + 400`; \
set -x; \
echo
"/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/genext2fs-1.4/genext2fs
-b $GENEXT2_SIZE " \
"-N $GENEXT2_INODES -d
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
" \
" -U -m 0
/home/ivo/src/mpc5200_binar/build-tools/buildroot/binaries/uclibc/rootfs.powerpc.ext2"
>>
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
+ echo
'/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/genext2fs-1.4/genext2fs
-b 5576 ' '-N 728 -d
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
' ' -U -m 0
/home/ivo/src/mpc5200_binar/build-tools/buildroot/binaries/uclibc/rootfs.powerpc.ext2'
chmod a+x
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/staging_dir/usr/bin/fakeroot
--
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
chown: changing ownership of
`/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root/dev/log':
No such file or directory
chown: changing ownership of
`/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root/etc/mtab':
No such file or directory
chown: changing ownership of
`/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root/etc/resolv.conf':
No such file or directory
rootdir=/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
table='target/generic/device_table.txt'
-rw-r--r-- 1 ivo users 5709824 Sep 4 14:49
/home/ivo/src/mpc5200_binar/build-tools/buildroot/binaries/uclibc/rootfs.powerpc.ext2
tar: /home/ivo/src/mpc5200_binar/build-tools/buildroot/dl/: Cannot read:
Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error exit delayed from previous errors
basename: missing operand
Try `basename --help' for more information.
gzip -d -c /home/ivo/src/mpc5200_binar/build-tools/buildroot/dl/ | tar
-C
/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc
-xf -
gzip: /home/ivo/src/mpc5200_binar/build-tools/buildroot/dl/ is a
directory -- ignored
mv
/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc/
/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc/mtd_orig
mv: cannot move
`/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc/'
to a subdirectory of itself,
`/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc/mtd_orig'
make: ***
[/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc/mtd_orig/.unpacked]
Error 1
Best regards,
Ivo
^ permalink raw reply [flat|nested] 6+ messages in thread* [Buildroot] Tar problems
2007-09-04 13:24 [Buildroot] Tar problems Babarovic Ivica
@ 2007-09-04 20:56 ` Bernhard Fischer
2007-09-04 21:08 ` Ulf Samuelsson
[not found] ` <46DDD286.80505@asist.si>
0 siblings, 2 replies; 6+ messages in thread
From: Bernhard Fischer @ 2007-09-04 20:56 UTC (permalink / raw)
To: buildroot
On Tue, Sep 04, 2007 at 03:24:37PM +0200, Babarovic Ivica wrote:
>Since this is my first post to this list I'd like to say hello first and
>express my appreciation
>for this wonderful tool.
>
>This is the problem I'm getting while building my target.
>I specifically uncheck the tar option for compressing rootfs. It seems
>though build process
>ignores this.
>Last lines:
>-------------------------------------------------------------------
>...
># Use fakeroot to pretend all target binaries are owned by root
>rm -f
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
>touch
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/.fakeroot.00000
>cat
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/.fakeroot*
>>
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
>echo "chown -R 0:0
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root"
>>>
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
># Use fakeroot to pretend to create all needed device nodes
>echo
>"/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/staging_dir/bin/makedevs
>-d target/generic/device_table.txt
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root"
>\
> >>
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
># Use fakeroot so genext2fs believes the previous fakery
>GENEXT2_REALSIZE=`LC_ALL=C du -s -c -k
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
>| grep total | sed -e "s/total//"`; \
> GENEXT2_ADDTOROOTSIZE=`if [ $GENEXT2_REALSIZE -ge 20000 ]; then
>echo 16384; else echo 2400; fi`; \
> GENEXT2_SIZE=`expr $GENEXT2_REALSIZE + $GENEXT2_ADDTOROOTSIZE`; \
> GENEXT2_ADDTOINODESIZE=`find
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
>| wc -l`; \
> GENEXT2_INODES=`expr $GENEXT2_ADDTOINODESIZE + 400`; \
> set -x; \
> echo
>"/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/genext2fs-1.4/genext2fs
>-b $GENEXT2_SIZE " \
> "-N $GENEXT2_INODES -d
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
>" \
> " -U -m 0
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/binaries/uclibc/rootfs.powerpc.ext2"
>>>
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
>+ echo
>'/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/genext2fs-1.4/genext2fs
>-b 5576 ' '-N 728 -d
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
>' ' -U -m 0
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/binaries/uclibc/rootfs.powerpc.ext2'
>chmod a+x
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/staging_dir/usr/bin/fakeroot
>--
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
>chown: changing ownership of
>`/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root/dev/log':
>No such file or directory
>chown: changing ownership of
>`/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root/etc/mtab':
>No such file or directory
>chown: changing ownership of
>`/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root/etc/resolv.conf':
>No such file or directory
>rootdir=/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
>table='target/generic/device_table.txt'
>-rw-r--r-- 1 ivo users 5709824 Sep 4 14:49
>/home/ivo/src/mpc5200_binar/build-tools/buildroot/binaries/uclibc/rootfs.powerpc.ext2
>tar: /home/ivo/src/mpc5200_binar/build-tools/buildroot/dl/: Cannot read:
>Is a directory
>tar: At beginning of tape, quitting now
>tar: Error is not recoverable: exiting now
>
>gzip: stdin: unexpected end of file
>tar: Child returned status 2
>tar: Error exit delayed from previous errors
>basename: missing operand
eh.
There is something really going wrong. How are you calling make?
$ svngrep basename target/ -r 2> /dev/null
target/makedevs/makedevs.c: bb_applet_name = basename(argv[0]);
target/device/Atmel/at91bootstrap/at91bootstrap-2.3.1.patch: # cd .. ; tar -cvf `basename $$(TOPDIR)`.tar `basename $$(TOPDIR)` ; bzip2 `basename $$(TOPDIR)`.tar )
target/device/Atmel/at91bootstrap/at91bootstrap-2.3.1.patch:-PACKAGE=`basename ${TOPDIR}`
target/device/Sharp/LNode80/kernel-patches/001-patch-2.4.26-vrs1:+int-y := $(sort $(foreach m, $(multi-y), $($(basename $(m))-objs)))
target/device/Sharp/LNode80/kernel-patches/001-patch-2.4.26-vrs1:+int-m := $(sort $(foreach m, $(multi-m), $($(basename $(m))-objs)))
I'd rule out makedevs.c and probably the Sharp stuff. I'd just recommend
to glance at 'info make' to the one who wrote the other hunks.
Where does that basename call you show above come from?
^ permalink raw reply [flat|nested] 6+ messages in thread* [Buildroot] Tar problems
2007-09-04 20:56 ` Bernhard Fischer
@ 2007-09-04 21:08 ` Ulf Samuelsson
[not found] ` <46DDD286.80505@asist.si>
1 sibling, 0 replies; 6+ messages in thread
From: Ulf Samuelsson @ 2007-09-04 21:08 UTC (permalink / raw)
To: buildroot
tis 2007-09-04 klockan 22:56 +0200 skrev Bernhard Fischer:
> On Tue, Sep 04, 2007 at 03:24:37PM +0200, Babarovic Ivica wrote:
> >Since this is my first post to this list I'd like to say hello first and
> >express my appreciation
> >for this wonderful tool.
> >
> >This is the problem I'm getting while building my target.
> >I specifically uncheck the tar option for compressing rootfs. It seems
> >though build process
> >ignores this.
Buildroot, up to late this summer did not delete the files generated
for use by fakeroot, so even if something was disabled, when
fakeroot was called, all the old stuff got processed again.
If htis is indeed the case, either an old version of buildroot is used,
or the problem remains lurking somewhere deep in the tree.
--
Best Regards,
Ulf Samuelsson
^ permalink raw reply [flat|nested] 6+ messages in thread[parent not found: <46DDD286.80505@asist.si>]
* [Buildroot] Tar problems
@ 2007-09-04 22:00 Babarovic Ivica
0 siblings, 0 replies; 6+ messages in thread
From: Babarovic Ivica @ 2007-09-04 22:00 UTC (permalink / raw)
To: buildroot
Sorry for double emails Bernhard!
Bernhard Fischer wrote:
>eh.
>There is something really going wrong. How are you calling make?
>
$ make all
>$ svngrep basename target/ -r 2> /dev/null
>target/makedevs/makedevs.c: bb_applet_name = basename(argv[0]);
>target/device/Atmel/at91bootstrap/at91bootstrap-2.3.1.patch: # cd .. ; tar -cvf `basename $$(TOPDIR)`.tar `basename $$(TOPDIR)` ; bzip2 `basename $$(TOPDIR)`.tar )
>target/device/Atmel/at91bootstrap/at91bootstrap-2.3.1.patch:-PACKAGE=`basename ${TOPDIR}`
>target/device/Sharp/LNode80/kernel-patches/001-patch-2.4.26-vrs1:+int-y := $(sort $(foreach m, $(multi-y), $($(basename $(m))-objs)))
>target/device/Sharp/LNode80/kernel-patches/001-patch-2.4.26-vrs1:+int-m := $(sort $(foreach m, $(multi-m), $($(basename $(m))-objs)))
>
>I'd rule out makedevs.c and probably the Sharp stuff. I'd just recommend
>to glance at 'info make' to the one who wrote the other hunks.
>
>
>Where does that basename call you show above come from?
>
>
I'm sorry Bernhard. What do you mean by this?
I'll attach the output of 'make all' process.
--
Babarovic Ivica, R&D Engineer
ASIST avtomatizacija sistemov d.o.o. Web: www.asist.si
Cesta Ljubljanske brigade 23a Phone: +386 (1)5837 217
Ljubljana, Slovenija
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: log
Url: http://busybox.net/lists/buildroot/attachments/20070905/5c8aca87/attachment.diff
^ permalink raw reply [flat|nested] 6+ messages in thread* [Buildroot] Tar problems
@ 2007-09-04 22:05 Babarovic Ivica
0 siblings, 0 replies; 6+ messages in thread
From: Babarovic Ivica @ 2007-09-04 22:05 UTC (permalink / raw)
To: buildroot
I didn't send to ML. Sorry Ulf.
Hello Ulf,
Ulf Samuelsson wrote:
>>tis 2007-09-04 klockan 22:56 +0200 skrev Bernhard Fischer:
>>
>>
>
>
>>>>On Tue, Sep 04, 2007 at 03:24:37PM +0200, Babarovic Ivica wrote:
>>>>
>>>>
>>
>>
>>>>>>Since this is my first post to this list I'd like to say hello first and
>>>>>>express my appreciation
>>>>>>for this wonderful tool.
>>>>>>
>>>>>>This is the problem I'm getting while building my target.
>>>>>>I specifically uncheck the tar option for compressing rootfs. It seems
>>>>>>though build process
>>>>>>ignores this.
>>>>>>
>>>>>>
>>>
>>>
>>
>>Buildroot, up to late this summer did not delete the files generated
>>for use by fakeroot, so even if something was disabled, when
>>fakeroot was called, all the old stuff got processed again.
>>If htis is indeed the case, either an old version of buildroot is used,
>>or the problem remains lurking somewhere deep in the tree.
>>
>>
>>
>>
>
>
I'm using the latest version from svn repository. I got to the point
where I did a new clean checkout. However I used the old .config
file and did a 'make oldconfig' first. Problem persisted.
Best regards!
--
Babarovic Ivica, R&D Engineer
ASIST avtomatizacija sistemov d.o.o. Web: www.asist.si
Cesta Ljubljanske brigade 23a Phone: +386 (1)5837 217
Ljubljana, Slovenija
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-09-04 22:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-04 13:24 [Buildroot] Tar problems Babarovic Ivica
2007-09-04 20:56 ` Bernhard Fischer
2007-09-04 21:08 ` Ulf Samuelsson
[not found] ` <46DDD286.80505@asist.si>
[not found] ` <20070904221636.GA11697@aon.at>
2007-09-04 22:41 ` Babarovic Ivica
-- strict thread matches above, loose matches on Subject: below --
2007-09-04 22:00 Babarovic Ivica
2007-09-04 22:05 Babarovic Ivica
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox