From: Bernhard Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] Tar problems
Date: Tue, 4 Sep 2007 22:56:25 +0200 [thread overview]
Message-ID: <20070904205625.GV11697@aon.at> (raw)
In-Reply-To: <46DD5C95.3060907@asist.si>
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?
next prev parent reply other threads:[~2007-09-04 20:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-04 13:24 [Buildroot] Tar problems Babarovic Ivica
2007-09-04 20:56 ` Bernhard Fischer [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070904205625.GV11697@aon.at \
--to=rep.dot.nop@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox