[Scratchbox-devel] sbox2 doubts/problems

Rodrigo Vivi rodrigo.vivi at gmail.com
Wed Aug 15 04:13:56 EEST 2007


Hi there,
first of all forget that sb2_libtool compile error... It was related
to codesourcery toolchain. Using another toolchain I could compile
that.

But now I'm seeing a sbox2 strange behavior

runing apt-get -f install in my system everything is fine:
#
bash-3.2$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree... Done
#

And running apt-get -f install directly in my arm buildroot I got the
same result (running fine)
#
bash-3.2$ sudo chroot $HOME/buildroot
/ $ apt-get -f install
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#

But when I tried to run using sb2 I got this strange behavior:
#
bash-3.2$ sb2 apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  update-alternatives-dpkg
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?

I took a look at sb2_mapping.log file (that is attached) but I
couldn't verify anything strange.

Does anybody have an idea about it?

btw I'm using sbox2 git version

Thanks,
vivijim

On 8/14/07, Rodrigo Vivi <rodrigo.vivi at gmail.com> wrote:
> Hi, forget about my qemu error. To run my applications I need other
> patchs in qemu... But I've already compiled my qemu and it is running
> fine now...
>
> But I'm still having problems with that sb2-libtool compilation. I
> believe that it is related to codesourcery toolchain... I'll try to
> use another toolchain...
> does it make sense to you?
>
> Thanks,
> Regards,
> vivijim
>
> On 8/13/07, Rodrigo Vivi <rodrigo.vivi at gmail.com> wrote:
> > ok, now I have qemu dynamic but I have another error:
> >
> > bash-3.2$ sb2 -e apt-get update
> > qemu: Unsupported syscall: 983045
> > cannot set up thread-local storage: unknown error
> >
> > I'm using sbox2 from git.
> >
> > There is another error too:
> >
> > My sb2-init breaks on libtool compiling.
> > I'm using the arm-2007q1-21-arm-none-eabi-i686-pc-linux-gnu.tar
> > codesourcery toolchain.
> >
> > The libtool compilation error:
> > $ sb2-init /home/vivi/arm-2007q1/bin/arm-none-eabi-gcc
> > (download)
> > (configure)
> > /bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> >    -g -O2 -c -o ltdl.lo ltdl.c
> > mkdir .libs
> >  gcc -DHAVE_CONFIG_H -I. -g -O2 -c ltdl.c  -fPIC -DPIC -o .libs/ltdl.o
> > ltdl.c:2202: warning: 'struct direct' declared inside parameter list
> > ltdl.c:2202: warning: its scope is only this definition or
> > declaration, which is probably not what you want
> > ltdl.c: In function 'lt_argz_insertdir':
> > ltdl.c:3630: error: argument 'dp' doesn't match prototype
> > ltdl.c:2202: error: prototype declaration
> > ltdl.c:3643: error: dereferencing pointer to incomplete type
> > ltdl.c:3643: error: dereferencing pointer to incomplete type
> > ltdl.c:3648: error: dereferencing pointer to incomplete type
> > ltdl.c:3659: error: dereferencing pointer to incomplete type
> > ltdl.c:3668: error: dereferencing pointer to incomplete type
> > ltdl.c:3678: error: dereferencing pointer to incomplete type
> > ltdl.c: In function 'list_files_by_dir':
> > ltdl.c:3696: error: 'DIR' undeclared (first use in this function)
> > ltdl.c:3696: error: (Each undeclared identifier is reported only once
> > ltdl.c:3696: error: for each function it appears in.)
> > ltdl.c:3696: error: 'dirp' undeclared (first use in this function)
> > ltdl.c:3709: warning: assignment makes pointer from integer without a cast
> > ltdl.c:3710: error: dereferencing pointer to incomplete type
> > ltdl.c:3711: warning: passing argument 4 of 'lt_argz_insertdir' from
> > incompatible pointer type
> > make[2]: *** [ltdl.lo] Error 1
> > make[2]: Leaving directory `/tmp/sb2_libtool_build.Ib12018/libltdl'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/tmp/sb2_libtool_build.Ib12018/libltdl'
> > make: *** [all-recursive] Error 1
> > Running /home/vivi/scratchbox/bin/sb2-build-libtool failed
> > You can run this manually later, otherwise your
> > sb2 environment is correctly setup and ready to use
> > bash-3.2$
> >
> > I've already tried to upgrade to libtool newest version libtool-1.5.24
> > but I got exactly the same error.
> >
> > any idea?
> >
> > Thanks,
> > vivijim
> >
> >
> > On 8/12/07, Lauri Leukkunen <lle at rahina.org> wrote:
> > > On 11/08/07 09:53 -0300, Rodrigo Vivi wrote:
> > > > On 8/11/07, Lauri Leukkunen <lle at rahina.org> wrote:
> > > > > On 10/08/07 18:02 -0300, Rodrigo Vivi wrote:
> > > > > > $ sb2 -e apt-get update
> > > > > >
> > > > > > try to access the /lib/ld-linux.so.3 file that doesn't exist since my
> > > > > > host system use the ld-linux.so.2
> > > > > > This file exists under $HOME/buildroot/lib/ld-linux.so.3
> > > > > >
> > > > > > is this a sbox2 bug or just a miss configuration?
> > > > >
> > > > > Hmm, what kind of qemu do you have? You need to have a post 2007-06-18 cvs
> > > > > snapshot for sb2 to work right. Don't patch it with any of the sb2 related
> > > > > qemu patches, the necessary -drop-ld-preload switch is already in there.
> > > >
> > > > I'm using the qemu-snapshot-2007-08-10_05 compiled static.
> > >
> > > sb2 depends on binaries being linked dynamically, that allows the LD_PRELOAD
> > > to do its thing. Try recompiling qemu dynamic, I'm sure that's whats
> > > causing the problem.
> > >
> > > /lauri
> > > _______________________________________________
> > > Scratchbox-devel mailing list
> > > Scratchbox-devel at lists.scratchbox.org
> > > http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel
> > >
> >
> >
> > --
> > Rodrigo Vivi
> > INdT - Instituto Nokia de Tecnologia
> > Blog: http://blog.vivi.eng.br
> > GPG: 0x905BE242 @ wwwkeys.pgp.net
> >
>
>
> --
> Rodrigo Vivi
> INdT - Instituto Nokia de Tecnologia
> Blog: http://blog.vivi.eng.br
> GPG: 0x905BE242 @ wwwkeys.pgp.net
>


-- 
Rodrigo Vivi
INdT - Instituto Nokia de Tecnologia
Blog: http://blog.vivi.eng.br
GPG: 0x905BE242 @ wwwkeys.pgp.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sb2_mapping.log
Type: text/x-log
Size: 20744 bytes
Desc: not available
Url : http://lists.scratchbox.org/pipermail/scratchbox-devel/attachments/20070814/d6087c25/sb2_mapping-0001.bin


More information about the Scratchbox-devel mailing list