Thanks a lot for this advise, i hadn't saw that foreign tool wiki. But i'm
stuck at building device tools. I had made a conf file for my alien-tc:

COMPILER_NAME = i386-gcc-3.2.3-glibc-2.2.5
COMPILER_PACKAGE = scratchbox-toolchain-i386-gcc-3.2.3-glibc-2.2.5
ARCH=i386
SUB_ARCH=i386

#
# ERROR: Found multiple 'gcc' with unmatching versions.
# : ./bin/i386-linux-gcc
#
# : ./distributed/bin/i386-linux-gcc
#

ALIEN_TC = yes

CC_VER = 3.2
CC_GCCVER = 3.2.3
CC_FULLVER = 3:$(CC_GCCVER)
#CC_DEBIAN_DIR = gcc-3.2-debian

#
# ERROR: Could not find machine info!
#
BINUTILS_FULLVER = 2.15-sb1

HEADERS_DIR = $(COMPILER_DIR)/i386-linux/include
LINUX_HEADERS_VER = 2.4.26

LIBC_VER = 2.2.5
LIBC_FILES_BINS = bin i386-linux/bin i386-linux/sbin
lib/gcc-lib/i386-linux/3.2.3 tmp
LIBC_FILES_LIBS = i386-linux/lib
CHECKSUM_FILE   = ../../$(CONFIG:.conf=.checksums)

i had made checksum without problem, but when i had done :
make CONFIG=meta/alien-tc/i386-gcc-3.2.3-glibc-2.2.5.conf -C meta/alien-tc

i had this error:
make[1]: Entering directory
`/home/mplourde/sb-toolchain-extras/toolchain/base-debian'
[===== NOW BUILDING:    linux-kernel-headers-2.4.26     =====]
        [fetch] complete for linux-kernel-headers.
        [checksum] complete for linux-kernel-headers.
        [extract] complete for linux-kernel-headers.
        [patch] complete for linux-kernel-headers.
        [configure] complete for linux-kernel-headers.
cd work/linux-kernel-headers-2.4.26 && env
COMPILER_DIR=/scratchbox/compilers/i386-gcc-3.2.3-glibc-2.2.5
TARGET=i386-linux
SBOX_REDIRECT_BINARIES=/scratchbox/compilers/bin/gcc:/scratchbox/compilers/i
386-gcc-3.2.3-glibc-2.2.5/bin/i386-linux-gcc
LINUX_HEADERS_DIRS="/scratchbox/compilers/i386-gcc-3.2.3-glibc-2.2.5/i386-li
nux/include/linux
/scratchbox/compilers/i386-gcc-3.2.3-glibc-2.2.5/i386-linux/include/asm
/scratchbox/compilers/i386-gcc-3.2.3-glibc-2.2.5/i386-linux/include/asm-gene
ric" dpkg-buildpackage -rfakeroot -b -uc
unable to get login information for username "mplourde" at
/scratchbox/devkits/debian/lib/dpkg/controllib.pl line 59.
Compilation failed in require at
/scratchbox/devkits/debian/bin/dpkg-parsechangelog line 15.
dpkg-buildpackage: unable to determine source package
make[1]: *** [build-packages] Error 1
make[1]: Leaving directory
`/home/mplourde/sb-toolchain-extras/toolchain/base-debian'
make: *** [dep-../../toolchain/base-debian] Error 2
make: Leaving directory `/home/mplourde/sb-toolchain-extras/meta/alien-tc'

It seem that something is wrong with my user conf. What is wrong ? Any clues
about this error ? I had google it and found nothing ...

Thanks for your help,
Michael Plourde
----- Original Message ----- 
From: "Jussi Hakala" <[EMAIL PROTECTED]>
To: <scratchbox-users@lists.scratchbox.org>
Sent: Wednesday, September 20, 2006 5:10 AM
Subject: Re: [Scratchbox-users] Mount .bin image


> I still see no reason to compile fakeroot by hand. The cases in which
> you actually have to do that are extremely rare.
>
> For host, the fakeroot provided with Scratchbox should be enough. At
> least in most cases it is.
>
> For target, use either the fakeroot which is provided with the toolchain
> (native toolchains) or build it yourself using the instructions provided
> in the Scratchbox wiki [1] (foreign toolchains).
>
> After you've done, fakeroot can be found in /scratchbox/device_tools and
> you can install it to the target using [2] (provided your current target
> is configured and using the correct toolchain).
>
> Perhaps you could circumvent the mount problem by commenting out the
> related parts from build script? Or aliasing/linking them to bin/true?
> Then you could mount the image from outside Scratchbox and still be able
> to use the build script.
>
> [1] http://www.scratchbox.org/wiki/ForeignToolchains
> [2] sb-conf in -F
>
>   Jussi
>
>
> Michael Plourde wrote:
> >> Could it be you're compiling fakeroot as a target binary and executing
> >> it with whatever cpu transparency (qemu?) you are using?
> >>
> > I use source from /scratchbox/packages and i don't use any CPU
transparency
> > cuz the target and the host machine are both ix86.
> > Is there another way to install fakeroot files or am i missing some step
in
> > building crosstool toolchains ?
> >
> >> Is there a particular reason you have to compile fakeroot yourself? It
> >> is provided with Scratchbox.
> >
> > My toolchain (i386-gcc-3.2.3-glibc-2.2.5) is not provided with
scratchbox (i
> > think), so i use Kegel Crosstool which don't have fakeroot (when i setup
> > target and try install files option Fakeroot, i got the following
message:
> > Fakeroot not found for i386-gcc... target or something like that).
> >
> >> Anyway, you can do the mounting from outside Scratchbox, you have just
> >> to mount it to a directory inside Scratchbox, in this case [1]. If you
> >> are using sbrsh as a cpu transparency method, you must remember to
> >> explicitly export the directory you've mounted and use nohide in your
> >> home directory export options.
> >
> > The script for building wisp-dist image mount and umount images  of
> > different kind and i can't just mount it from outside cuz i can't
interrupt
> > script while building.
> >
> >
> > ----- Original Message ----- 
> > From: "Jussi Hakala" <[EMAIL PROTECTED]>
> > To: <scratchbox-users@lists.scratchbox.org>
> > Sent: Tuesday, September 19, 2006 9:31 AM
> > Subject: Re: [Scratchbox-users] Mount .bin image
> >
> >
> >> Could it be you're compiling fakeroot as a target binary and executing
> >> it with whatever cpu transparency (qemu?) you are using?
> >>
> >> Is there a particular reason you have to compile fakeroot yourself? It
> >> is provided with Scratchbox.
> >>
> >> Anyway, you can do the mounting from outside Scratchbox, you have just
> >> to mount it to a directory inside Scratchbox, in this case [1]. If you
> >> are using sbrsh as a cpu transparency method, you must remember to
> >> explicitly export the directory you've mounted and use nohide in your
> >> home directory export options.
> >>
> >> [1] /scratchbox/users/${USER}/home/${USER}/wisp-dist
> >>
> >>   Jussi
> >>
> >> Michael Plourde wrote:
> >>>  Hi,
> >>>
> >>>  i'm using tagel crosstool 0.38 within scratchbox. I'm trying to build
> > an
> >>> wisp-dist image with i386-gcc-3.2.3-glibc-2.2.5 target. Since busybox
> > was
> >>> missing to build wisp-dist image, i had install 1.2.1 version. When i
> > tried
> >>> mount -o loop image.bin /home/mplourde/wisp-dist, i've got:
> >>> /usr/lib/libfakeroot/libfakeroot-tcp.so.0 missing. So i had install
> > fakeroot
> >>> following the tutorial in scratchbox.org/documentation.
> >>> Doing:
> >>> tar xfz /scratchbox/packages/fakeroot_1.4.2.tar.gz
> >>> cd fakeroot-1.4.2
> >>>  ./configure \
> >>>  --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib/libfakeroot \
> >>>  --program-suffix=-tcp --with-ipc=tcp --with-dbformat=path
> >>>  make
> >>>  make install
> >>>  make distclean
> >>>  cd fake
> >>>  ../configure \
> >>>  --prefix=/usr --mandir=/usr/share/man \
> >>>  --program-suffix=-tcp
> >>>  make
> >>>  make install
> >>>  ln -sf fakeroot-tcp /usr/bin/fakeroot
> >>>
> >>>  ...but still /usr/lib/libfakeroot/libfakeroot-tcp.so.0 is missing
> >>>
> >>> According to documentation libfakeroot-tcp is provide in fake
repertory
> > with
> >>> make and make install. Since those command produce
> > /usr/lib/libfakeroot.so.*
> >>> on my target, i had put a link in /usr/lib/libfakeroot :
> >>>  ln -s /usr/lib/libfakeroot.so.0
> > /usr/lib/libfakeroot/libfakeroot-tcp.so.0
> >>>  Now mount -o loop image.bin /home/mplourde/wisp-dist, send another
> > error:
> >>> Could'nt setup loop device
> >>>
> >>>  What am i missing, is it possible to do mount within scratchbox ?
> >>>
> >>>  Sincerely,
> >>>
> >>>  Michael Plourde
> >>>
> >>>
> >>> _______________________________________________
> >>> Scratchbox-users mailing list
> >>> Scratchbox-users@lists.scratchbox.org
> >>> http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users
> >> _______________________________________________
> >> Scratchbox-users mailing list
> >> Scratchbox-users@lists.scratchbox.org
> >> http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users
> >
> > _______________________________________________
> > Scratchbox-users mailing list
> > Scratchbox-users@lists.scratchbox.org
> > http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users
>
> _______________________________________________
> Scratchbox-users mailing list
> Scratchbox-users@lists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to