Re: sbox2 update

2007-04-10 Thread Lauri Leukkunen

On 3/14/07, Laurent GUERBY <[EMAIL PROTECTED]> wrote:

On Wed, 2007-03-14 at 22:27 +0200, Lauri Leukkunen wrote:
> Could you retry after making sure you start sb2 like this:
>
> cd ~/buildroot
> ../scratchbox/bin/sb2
>
> If it doesn't work, maybe we could continue this over irc? I'm lle2 on 
freenode.

With that I got a bit farther, thanks!

Let's wait until you've debugged the mighty "touch" program :)


Heh, finally got around to fixing it. Please note that sb2 is now hosted on the
freedesktop.org site: http://freedesktop.org/wiki/Software/sbox2

git repo is git://anongit.freedesktop.org/git/sbox2

/lauri
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-14 Thread Eero Tamminen

Hi,

ext Laurent GUERBY wrote:

Could you retry after making sure you start sb2 like this:

cd ~/buildroot
../scratchbox/bin/sb2

If it doesn't work, maybe we could continue this over irc? I'm lle2 on freenode.


I think it would be of interest to others too how well this
works and what kind of issues one might have (and how to solve
them), so please at least keep the developers list up to date on
the progress of this.  At least I am very interested on this!



With that I got a bit farther, thanks!

Let's wait until you've debugged the mighty "touch" program :)



- Eero
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-14 Thread Laurent GUERBY
On Wed, 2007-03-14 at 22:27 +0200, Lauri Leukkunen wrote:
> Could you retry after making sure you start sb2 like this:
> 
> cd ~/buildroot
> ../scratchbox/bin/sb2
> 
> If it doesn't work, maybe we could continue this over irc? I'm lle2 on 
> freenode.

With that I got a bit farther, thanks!

Let's wait until you've debugged the mighty "touch" program :)

Laurent


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-14 Thread Lauri Leukkunen

On 3/14/07, Laurent GUERBY <[EMAIL PROTECTED]> wrote:

After that:
bash: cd: /usr/share/glib-2.0/gettext: No such file or directory

Outside of sb2 I do have the mentionned directory:

[EMAIL PROTECTED]:~/work/maemo/scratchbox$  ls -l /usr/share/glib-2.0/gettext
total 8
-rwxr-xr-x 1 root root 1988 2007-03-09 14:52 mkinstalldirs
drwxr-xr-x 2 root root 4096 2007-03-14 20:58 po

I tried to rebuild hello within SB2 and it didn't work anymore:

[SB2] [EMAIL PROTECTED] ~/work/maemo/tmp $ gcc -o hello hello.c
hello.c:2:19: error: stdio.h: No such file or directory
hello.c: In function 'main':
hello.c:3: warning: incompatible implicit declaration of built-in
function 'printf'

I'm really confused at how the thing is supposed to be working :).
I noticed that some scratchbox.sb2cache and  buildroot.sb2cache
directories appeared.


Those are mapping cache directories for the sb2 environments you've
used. It seems you have/had two of them ;)

You always have to start sb2 in the buildroot directory. Otherwise it
won't setup the paths correctly, I suspect that may explain why
hello.c doesn't compile. I'll make a note to add a check for this.

You can safely delete the sb2cache directories, new ones will be
created as needed.

Could you retry after making sure you start sb2 like this:

cd ~/buildroot
../scratchbox/bin/sb2

If it doesn't work, maybe we could continue this over irc? I'm lle2 on freenode.

/lauri
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-14 Thread Laurent GUERBY
On Wed, 2007-03-14 at 21:46 +0200, Lauri Leukkunen wrote:
> On 3/14/07, Laurent GUERBY <[EMAIL PROTECTED]> wrote:
> > After installing a bunch of missing packages on my amd64 feisty box, I'm
> > now stuck at some obscure automake-1.7 messages whil trying to build
> > maemo-mapper-1.4.3.
> >
> > May be I didn't untar in the right directory?
> 
> It shouldn't matter, but I typically put the sources into my $HOME/src
> directory, you don't need to put them inside the buildroot dir.
> 
> Do you have libtool for your host? I did an equivalent of

$ libtool --version
ltmain.sh (GNU libtool) 1.5.22 Debian 1.5.22-4 (1.1220.2.365 2005/12/18
22:14:06)

> apt-get install gnome-devel automake1.7

It installed more than 100 packages.

After that:

[SB2] [EMAIL PROTECTED] ~/work/maemo/tmp $ cd maemo-mapper-1.4.3/
[SB2] [EMAIL PROTECTED] ~/work/maemo/tmp/maemo-mapper-1.4.3 $ dpkg-buildpackage 
-rfakeroot -d  
dpkg-buildpackage: source package is maemo-mapper
dpkg-buildpackage: source version is 1.4.3-1
dpkg-buildpackage: source changed by John Costigan <[EMAIL PROTECTED]>
dpkg-buildpackage: host architecture arm
dpkg-buildpackage: source version without epoch 1.4.3-1
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean
make[1]: Entering directory `/home/guerby/work/maemo/tmp/maemo-mapper-1.4.3'
make[1]: *** No rule to make target `clean'.  Stop.
make[1]: Leaving directory `/home/guerby/work/maemo/tmp/maemo-mapper-1.4.3'
make: [clean] Error 2 (ignored)
dh_clean 
 dpkg-source -b maemo-mapper-1.4.3
dpkg-source: building maemo-mapper in maemo-mapper_1.4.3-1.tar.gz
dpkg-source: building maemo-mapper in maemo-mapper_1.4.3-1.dsc
 debian/rules build
dh_testdir
./autogen.sh
+ glib-gettextize --copy --force
cd: 140: can't cd to /usr/share/glib-2.0/gettext
gettext source directory '/usr/share/glib-2.0/gettext' doesn't exist
+ libtoolize --automake --copy --force
cd: 159: can't cd to /usr/share/libtool
libtoolize: cannot list files in `/usr/share/libtool'
+ intltoolize --automake --copy --force
+ aclocal-1.7
+ autoconf --force
+ autoheader --force
+ automake-1.7 --add-missing --copy --force-missing --foreign
configure.ac: installing `./install-sh'
configure.ac: installing `./mkinstalldirs'
configure.ac: installing `./missing'
configure.ac:27: installing `./config.guess'
configure.ac:27: installing `./config.sub'
configure.ac:27: required file `./ltmain.sh' not found
src/Makefile.am: installing `./compile'
src/Makefile.am: installing `./depcomp'
make: *** [configure-stamp] Error 1
[SB2] [EMAIL PROTECTED] ~/work/maemo/tmp/maemo-mapper-1.4.3 $ cd 
/usr/share/glib-2.0/gettext
bash: cd: /usr/share/glib-2.0/gettext: No such file or directory

Outside of sb2 I do have the mentionned directory:

[EMAIL PROTECTED]:~/work/maemo/scratchbox$  ls -l /usr/share/glib-2.0/gettext
total 8
-rwxr-xr-x 1 root root 1988 2007-03-09 14:52 mkinstalldirs
drwxr-xr-x 2 root root 4096 2007-03-14 20:58 po

I tried to rebuild hello within SB2 and it didn't work anymore:

[SB2] [EMAIL PROTECTED] ~/work/maemo/tmp $ gcc -o hello hello.c
hello.c:2:19: error: stdio.h: No such file or directory
hello.c: In function 'main':
hello.c:3: warning: incompatible implicit declaration of built-in
function 'printf'

I'm really confused at how the thing is supposed to be working :).

I noticed that some scratchbox.sb2cache and  buildroot.sb2cache
directories appeared.

Laurent


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-14 Thread Lauri Leukkunen

On 3/14/07, Laurent GUERBY <[EMAIL PROTECTED]> wrote:

After installing a bunch of missing packages on my amd64 feisty box, I'm
now stuck at some obscure automake-1.7 messages whil trying to build
maemo-mapper-1.4.3.

May be I didn't untar in the right directory?


It shouldn't matter, but I typically put the sources into my $HOME/src
directory, you don't need to put them inside the buildroot dir.

Do you have libtool for your host? I did an equivalent of

apt-get install gnome-devel automake1.7

for my Etch.

/lauri
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-14 Thread Laurent GUERBY
On Wed, 2007-03-14 at 14:30 +0200, Lauri Leukkunen wrote:
> Maemo-mapper is at least one. Get the sources, change to its directory and
> run:
> 
> dpkg-buildpackage -rfakeroot -d
> 
> -d is needed to skip build dependency checks.

After installing a bunch of missing packages on my amd64 feisty box, I'm
now stuck at some obscure automake-1.7 messages whil trying to build
maemo-mapper-1.4.3.

May be I didn't untar in the right directory?

Laurent

[SB2] [EMAIL PROTECTED] ~/work/maemo/tmp/maemo-mapper-1.4.3$ pwd
/home/guerby/work/maemo/tmp/maemo-mapper-1.4.3
$ ls -l ../..
total 36
drwxr-xr-x 13 guerby guerby 4096 2007-03-11 17:13 arm-lltc
drwxr-xr-x 21 guerby guerby 4096 2007-03-14 12:48 buildroot
drwxr-xr-x 13 guerby guerby 4096 2007-03-14 12:48 buildroot.sb2cache
drwxr-xr-x  2 guerby guerby 4096 2007-03-14 20:20 ftp
-rw-r--r--  1 guerby guerby  833 2007-03-14 12:41 sb2.config
drwxr-xr-x 14 guerby guerby 4096 2007-03-14 12:48 sbox2
drwxr-xr-x  5 guerby guerby 4096 2007-03-14 12:43 scratchbox
drwxr-xr-x 12 guerby guerby 4096 2007-03-14 20:28 scratchbox.sb2cache
drwxr-xr-x  3 guerby guerby 4096 2007-03-14 20:28 tmp
$ dpkg-buildpackage -rfakeroot -d
dpkg-buildpackage: source package is maemo-mapper
dpkg-buildpackage: source version is 1.4.3-1
dpkg-buildpackage: source changed by John Costigan <[EMAIL PROTECTED]>
dpkg-buildpackage: host architecture amd64
dpkg-buildpackage: source version without epoch 1.4.3-1
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean
make[1]: Entering directory `/home/guerby/work/maemo/tmp/maemo-mapper-1.4.3'
make[1]: *** No rule to make target `clean'.  Stop.
make[1]: Leaving directory `/home/guerby/work/maemo/tmp/maemo-mapper-1.4.3'
make: [clean] Error 2 (ignored)
dh_clean 
 dpkg-source -b maemo-mapper-1.4.3
dpkg-source: building maemo-mapper in maemo-mapper_1.4.3-1.tar.gz
dpkg-source: building maemo-mapper in maemo-mapper_1.4.3-1.dsc
 debian/rules build
dh_testdir
./autogen.sh
+ glib-gettextize --copy --force
./autogen.sh: 1: glib-gettextize: not found
+ libtoolize --automake --copy --force
cd: 159: can't cd to /usr/share/libtool
libtoolize: cannot list files in `/usr/share/libtool'
+ intltoolize --automake --copy --force
./autogen.sh: 1: intltoolize: not found
+ aclocal-1.7
aclocal: configure.ac: 69: macro `AM_GLIB_GNU_GETTEXT' not found in library
+ autoconf --force
configure.ac:22: error: possibly undefined macro: AM_INIT_AUTOMAKE
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
configure.ac:27: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:64: error: possibly undefined macro: AC_PROG_INTLTOOL
configure.ac:69: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT
+ autoheader --force
+ automake-1.7 --add-missing --copy --force-missing --foreign
configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
configure.ac: installing `./install-sh'
configure.ac: installing `./mkinstalldirs'
configure.ac: installing `./missing'
src/Makefile.am: installing `./compile'
src/Makefile.am: installing `./depcomp'
/usr/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in 
AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in 
AM_CONDITIONAL
/usr/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
make: *** [configure-stamp] Error 1


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-14 Thread Lauri Leukkunen
On 14/03/07 12:50 +0100, Laurent GUERBY wrote:
> > You have to append the /bin here; the name is a bit misleading.
> 
> Thanks, this worked (I reinstalled everything from scratch to be safe):

Cool ;)

> Is there any package where a rebuild should work out of the box?
> (and what is the exact rebuild command line :)

Maemo-mapper is at least one. Get the sources, change to its directory and
run:

dpkg-buildpackage -rfakeroot -d

-d is needed to skip build dependency checks.


/lauri


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-14 Thread Laurent GUERBY
On Wed, 2007-03-14 at 01:23 +0200, Daniel Stone wrote:
> On Tue, Mar 13, 2007 at 11:24:01PM +0100, ext Laurent GUERBY wrote:
> > The exe is present in arm-lltc/bin
> > 
> > [EMAIL PROTECTED]:~/work/maemo$ ls -l 
> > /home/guerby/work/maemo/arm-lltc/bin/arm-none-linux-gnueabi-gcc
> > -rwxr-xr-x 2 guerby guerby 128352 2007-03-11 17:18 
> > /home/guerby/work/maemo/arm-lltc/bin/arm-none-linux-gnueabi-gcc
> > 
> > Any idea why it is not looking in arm-lltc/bin/ , ie what I could have
> > screwed up? :)
> > 
> > in buildroot/sb2.config I have:
> > SBOX_CROSS_GCC_DIR=/home/guerby/work/maemo/arm-lltc
> 
> You have to append the /bin here; the name is a bit misleading.

Thanks, this worked (I reinstalled everything from scratch to be safe):

[SB2] [EMAIL PROTECTED] ~/work/maemo/tmp $ ./hello 
Hello, world!
[SB2] [EMAIL PROTECTED] ~/work/maemo/tmp $ file ./hello
./hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux
2.4.17, dynamically linked (uses shared libs), not stripped

scratchbox/bin/sb2-build-libtool also worked without error

Is there any package where a rebuild should work out of the box?
(and what is the exact rebuild command line :)

Thanks in advance,

Laurent

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-13 Thread Daniel Stone
On Tue, Mar 13, 2007 at 11:24:01PM +0100, ext Laurent GUERBY wrote:
> The exe is present in arm-lltc/bin
> 
> [EMAIL PROTECTED]:~/work/maemo$ ls -l 
> /home/guerby/work/maemo/arm-lltc/bin/arm-none-linux-gnueabi-gcc
> -rwxr-xr-x 2 guerby guerby 128352 2007-03-11 17:18 
> /home/guerby/work/maemo/arm-lltc/bin/arm-none-linux-gnueabi-gcc
> 
> Any idea why it is not looking in arm-lltc/bin/ , ie what I could have
> screwed up? :)
> 
> in buildroot/sb2.config I have:
> SBOX_CROSS_GCC_DIR=/home/guerby/work/maemo/arm-lltc

You have to append the /bin here; the name is a bit misleading.

Cheers,
Daniel


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-13 Thread Laurent GUERBY
On Wed, 2007-03-14 at 00:32 +0200, Lauri Leukkunen wrote:
> What does:
> 
> file /lib/libc-[someversion].so
> 
> show? and uname -a? If you try running the toolchain outside sb2, what 
> happens?

I'm running the 64bit version of feisty:

[EMAIL PROTECTED]:~/work/maemo$ file /lib/libc-2.5.so 
/lib/libc-2.5.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), for 
GNU/Linux 2.6.0, stripped
[EMAIL PROTECTED]:~/work/maemo$ uname -a
Linux pc2 2.6.20-6-generic #2 SMP Wed Jan 31 19:04:30 UTC 2007 x86_64 GNU/Linux
[EMAIL PROTECTED]:~/work/maemo$ ./arm-lltc/bin/arm-none-linux-gnueabi-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: ../../gcc-4.1.2/configure 
--prefix=/home/lleukkun/src/lltc/obj/lltc --host=i386-none-linux 
--target=arm-none-linux-gnueabi --build=i386-none-linux --disable-nls 
--enable-symvers=gnu --enable-languages=c,c++ --enable-c99 --enable-long-long 
--with-sysroot=/home/lleukkun/src/lltc/obj/lltc
Thread model: posix
gcc version 4.1.2
[EMAIL PROTECTED]:~/work/maemo$ file ./arm-lltc/bin/arm-none-linux-gnueabi-gcc
./arm-lltc/bin/arm-none-linux-gnueabi-gcc: ELF 64-bit LSB executable, x86-64, 
version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), 
stripped

I'm going to sleep, I'll remove everything and restart from scratch
tomorrow.

Laurent


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-13 Thread Lauri Leukkunen

On 3/14/07, Laurent GUERBY <[EMAIL PROTECTED]> wrote:

On Wed, 2007-03-14 at 00:07 +0200, Lauri Leukkunen wrote:
> Oh, and please update your sbox2 first, I fixed some stuff ;)
> Simply git pull from the repo, ./autogen.sh && ./configure etc. etc.

I did the pull autogen etc...

Here are the result for the hello.c:

[EMAIL PROTECTED]:~/work/maemo$ ./scratchbox/bin/sb2
Running scratchbox with these settings:
SBOX_LIBSB2 = /home/guerby/work/maemo/scratchbox/lib/libsb2.so
SBOX_REDIR_SCRIPTS = 
/home/guerby/work/maemo/scratchbox/share/scratchbox2/redir_scripts
SBOX_GCCWRAPPER = /home/guerby/work/maemo/scratchbox/bin/sb_gcc_wrapper
REDIR_LD_SO =
REDIR_LD_LIBRARY_PATH =
SBOX_TARGET_ROOT = /home/guerby/work/maemo
[SB2] [EMAIL PROTECTED] ~/work/maemo $ cd tmp
[SB2] [EMAIL PROTECTED] ~/work/maemo/tmp $ gcc -o hello hello.c
sb_gcc_wrapper (gcc): 
/home/guerby/work/maemo/arm-lltc/arm-none-linux-gnueabi-gcc: No such file or 
directory

The exe is present in arm-lltc/bin

[EMAIL PROTECTED]:~/work/maemo$ ls -l 
/home/guerby/work/maemo/arm-lltc/bin/arm-none-linux-gnueabi-gcc
-rwxr-xr-x 2 guerby guerby 128352 2007-03-11 17:18 
/home/guerby/work/maemo/arm-lltc/bin/arm-none-linux-gnueabi-gcc

Any idea why it is not looking in arm-lltc/bin/ , ie what I could have
screwed up? :)


What does:

file /lib/libc-[someversion].so

show? and uname -a? If you try running the toolchain outside sb2, what happens?

I'm starting to suspect you may well be on amd64 hw, but your distro is not.
If you're actually running 32bit distro, try the 2006q3 toolchain from
codesourcery.com:

http://www.codesourcery.com/gnu_toolchains/arm/download.html

select "arm gnu/linux" and "ia32 gnu/linux"

/lauri
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-13 Thread Laurent GUERBY
On Wed, 2007-03-14 at 00:07 +0200, Lauri Leukkunen wrote:
> Oh, and please update your sbox2 first, I fixed some stuff ;)
> Simply git pull from the repo, ./autogen.sh && ./configure etc. etc.

I did the pull autogen etc...

Here are the result for the hello.c:

[EMAIL PROTECTED]:~/work/maemo$ ./scratchbox/bin/sb2
Running scratchbox with these settings:
SBOX_LIBSB2 = /home/guerby/work/maemo/scratchbox/lib/libsb2.so
SBOX_REDIR_SCRIPTS = 
/home/guerby/work/maemo/scratchbox/share/scratchbox2/redir_scripts
SBOX_GCCWRAPPER = /home/guerby/work/maemo/scratchbox/bin/sb_gcc_wrapper
REDIR_LD_SO = 
REDIR_LD_LIBRARY_PATH = 
SBOX_TARGET_ROOT = /home/guerby/work/maemo
[SB2] [EMAIL PROTECTED] ~/work/maemo $ cd tmp
[SB2] [EMAIL PROTECTED] ~/work/maemo/tmp $ gcc -o hello hello.c
sb_gcc_wrapper (gcc): 
/home/guerby/work/maemo/arm-lltc/arm-none-linux-gnueabi-gcc: No such file or 
directory

The exe is present in arm-lltc/bin

[EMAIL PROTECTED]:~/work/maemo$ ls -l 
/home/guerby/work/maemo/arm-lltc/bin/arm-none-linux-gnueabi-gcc
-rwxr-xr-x 2 guerby guerby 128352 2007-03-11 17:18 
/home/guerby/work/maemo/arm-lltc/bin/arm-none-linux-gnueabi-gcc

Any idea why it is not looking in arm-lltc/bin/ , ie what I could have
screwed up? :)

in buildroot/sb2.config I have:
SBOX_CROSS_GCC_DIR=/home/guerby/work/maemo/arm-lltc

Laurent

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-13 Thread Lauri Leukkunen

On 3/13/07, Laurent GUERBY <[EMAIL PROTECTED]> wrote:

[EMAIL PROTECTED]:~/work/maemo$ head -1 scratchbox/bin/sb2
#!/bin/bash
[EMAIL PROTECTED]:~/work/maemo$ ./scratchbox/bin/sb2
Running scratchbox with these settings:
SBOX_LIBSB2 = /home/guerby/work/maemo/scratchbox/lib/libsb2.so
SBOX_REDIR_SCRIPTS = 
/home/guerby/work/maemo/scratchbox/share/scratchbox2/redir_scripts
SBOX_GCCWRAPPER = /home/guerby/work/maemo/scratchbox/bin/sb_gcc_wrapper
REDIR_LD_SO =
REDIR_LD_LIBRARY_PATH =
SBOX_TARGET_ROOT = /home/guerby/work/maemo


These look just fine. Even stranger.


[SB2] [EMAIL PROTECTED] ~/work/maemo $ exit
[EMAIL PROTECTED]:~/work/maemo$ cat buildroot/sb2.config
# Scratchbox2 configuration file.
# This file works with Code Sourcery 2006q3 arm linux gnueabi toolchain.
# Modify SBOX_CPUTRANSPARENY_METHOD and SBOX_CROSS_GCC_DIR to suit your
# paths.

SBOX_TARGET_NAME=arm
SBOX_CPU=arm
SBOX_OS=none-linux-gnueabi
SBOX_CLIB=glibc
SBOX_CPUTRANSPARENCY_METHOD=/usr/bin/qemu-arm

SBOX_DEFAULT_GCC_PREFIX=arm-none-linux-gnueabi-
SBOX_TARGET_SETUP_SCRIPT=

SBOX_CROSS_GCC_NAME=arm-linux-2006q3-27
SBOX_CROSS_GCC_PREFIX_LIST=arm-linux-gnueabi-:arm-linux-:arm-none-linux-gnueabi-
SBOX_CROSS_GCC_SUBST_PREFIX=arm-none-linux-gnueabi-
SBOX_CROSS_GCC_SPECS_FILE=
SBOX_CROSS_GCC_DIR=/home/guerby/work/maemo/arm-lltc
SBOX_CROSS_GCC_LD_ARGS=

SBOX_HOST_GCC_NAME=host-gcc
SBOX_HOST_GCC_PREFIX_LIST=host-
SBOX_HOST_GCC_SUBST_PREFIX=
SBOX_HOST_GCC_SPECS_FILE=
SBOX_HOST_GCC_DIR=/usr/bin
SBOX_HOST_GCC_LD_ARGS=


That's ok too.


> If you try to simply build and run a hello world inside sb2, does it work?

I'm a total noob here and I've never used scratchbox before, so I need
instructions for something as simple as that (at this point, I haven't
read other tutorials yet)...


Just put:

#include 
int main(int argc, char **argv) { printf("Hello, world!\n"); return 0; }

into a hello.c, start sb2 and run:

gcc -o hello hello.c

after which:

./hello

It should say: Hello, world!

Oh, and please update your sbox2 first, I fixed some stuff ;)
Simply git pull from the repo, ./autogen.sh && ./configure etc. etc.

/lauri
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-13 Thread Laurent GUERBY
On Tue, 2007-03-13 at 23:06 +0200, Lauri Leukkunen wrote:
> On 3/13/07, Laurent GUERBY <[EMAIL PROTECTED]> wrote:
> > On Mon, 2007-03-12 at 02:59 +0200, Lauri Leukkunen wrote:
> > $ cd ~/work/maemo/sbox2
> > $ /home/guerby/work/maemo/scratchbox/bin/sb2-build-libtool.sh
> > ...
> > Making install in .
> > make[1]: Entering directory
> > `/home/guerby/work/maemo/sbox2/libtool_build'
> > make[2]: Entering directory
> > `/home/guerby/work/maemo/sbox2/libtool_build'
> > test -z "/sb_tools/bin" || mkdir -p -- "/sb_tools/bin"
> > mkdir: cannot create directory `/sb_tools': Permission denied
> > make[2]: *** [install-binSCRIPTS] Error 1
> > make[2]: Leaving directory `/home/guerby/work/maemo/sbox2/libtool_build'
> > make[1]: *** [install-am] Error 2
> > make[1]: Leaving directory `/home/guerby/work/maemo/sbox2/libtool_build'
> > make: *** [install-recursive] Error 1
> 
> Hmm, something's gone wrong already before that. When you start SB2,
> what does it print out? Does your scratchbox/bin/sb2 use /bin/bash or
> /bin/sh? I changed that not too long ago to help ubuntu users who have
> dash as /bin/sh.

[EMAIL PROTECTED]:~/work/maemo$ head -1 scratchbox/bin/sb2
#!/bin/bash
[EMAIL PROTECTED]:~/work/maemo$ ./scratchbox/bin/sb2
Running scratchbox with these settings:
SBOX_LIBSB2 = /home/guerby/work/maemo/scratchbox/lib/libsb2.so
SBOX_REDIR_SCRIPTS = 
/home/guerby/work/maemo/scratchbox/share/scratchbox2/redir_scripts
SBOX_GCCWRAPPER = /home/guerby/work/maemo/scratchbox/bin/sb_gcc_wrapper
REDIR_LD_SO = 
REDIR_LD_LIBRARY_PATH = 
SBOX_TARGET_ROOT = /home/guerby/work/maemo
[SB2] [EMAIL PROTECTED] ~/work/maemo $ exit
[EMAIL PROTECTED]:~/work/maemo$ cat buildroot/sb2.config 
# Scratchbox2 configuration file.
# This file works with Code Sourcery 2006q3 arm linux gnueabi toolchain.
# Modify SBOX_CPUTRANSPARENY_METHOD and SBOX_CROSS_GCC_DIR to suit your
# paths.

SBOX_TARGET_NAME=arm
SBOX_CPU=arm
SBOX_OS=none-linux-gnueabi
SBOX_CLIB=glibc
SBOX_CPUTRANSPARENCY_METHOD=/usr/bin/qemu-arm

SBOX_DEFAULT_GCC_PREFIX=arm-none-linux-gnueabi-
SBOX_TARGET_SETUP_SCRIPT=

SBOX_CROSS_GCC_NAME=arm-linux-2006q3-27
SBOX_CROSS_GCC_PREFIX_LIST=arm-linux-gnueabi-:arm-linux-:arm-none-linux-gnueabi-
SBOX_CROSS_GCC_SUBST_PREFIX=arm-none-linux-gnueabi-
SBOX_CROSS_GCC_SPECS_FILE=
SBOX_CROSS_GCC_DIR=/home/guerby/work/maemo/arm-lltc
SBOX_CROSS_GCC_LD_ARGS=

SBOX_HOST_GCC_NAME=host-gcc
SBOX_HOST_GCC_PREFIX_LIST=host-
SBOX_HOST_GCC_SUBST_PREFIX=
SBOX_HOST_GCC_SPECS_FILE=
SBOX_HOST_GCC_DIR=/usr/bin
SBOX_HOST_GCC_LD_ARGS=
$

> If you try to simply build and run a hello world inside sb2, does it work?

I'm a total noob here and I've never used scratchbox before, so I need
instructions for something as simple as that (at this point, I haven't
read other tutorials yet)...

Laurent


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-13 Thread Lauri Leukkunen

On 3/13/07, Laurent GUERBY <[EMAIL PROTECTED]> wrote:

On Mon, 2007-03-12 at 02:59 +0200, Lauri Leukkunen wrote:
$ cd ~/work/maemo/sbox2
$ /home/guerby/work/maemo/scratchbox/bin/sb2-build-libtool.sh
...
Making install in .
make[1]: Entering directory
`/home/guerby/work/maemo/sbox2/libtool_build'
make[2]: Entering directory
`/home/guerby/work/maemo/sbox2/libtool_build'
test -z "/sb_tools/bin" || mkdir -p -- "/sb_tools/bin"
mkdir: cannot create directory `/sb_tools': Permission denied
make[2]: *** [install-binSCRIPTS] Error 1
make[2]: Leaving directory `/home/guerby/work/maemo/sbox2/libtool_build'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/guerby/work/maemo/sbox2/libtool_build'
make: *** [install-recursive] Error 1


Hmm, something's gone wrong already before that. When you start SB2,
what does it print out? Does your scratchbox/bin/sb2 use /bin/bash or
/bin/sh? I changed that not too long ago to help ubuntu users who have
dash as /bin/sh.


I'm using amd64 feisty. Any idea?


If you try to simply build and run a hello world inside sb2, does it work?

/lauri
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: sbox2 update

2007-03-13 Thread Laurent GUERBY
On Mon, 2007-03-12 at 02:59 +0200, Lauri Leukkunen wrote:
> Hi,
> 
> sb2 is able to build maemo-mapper using
> 
> dpkg-buildpackage -rfakeroot -d
> 
> This was done on AMD64 Debian/Etch system using my own toolchain and
> etch's 0.90 version of qemu-arm. You can get both sb2 and the
> toolchain from http://rahina.org/sb2/

Hi, I got a failure at the step:

<<
Then build a proper libtool for your active toolchain by running this
inside
sb2:

$ $HOME/scratchbox/bin/sb2-build-libtool.sh
>>

I was doing:

$ cd ~/work/maemo/sbox2
$ /home/guerby/work/maemo/scratchbox/bin/sb2-build-libtool.sh
...
Making install in .
make[1]: Entering directory
`/home/guerby/work/maemo/sbox2/libtool_build'
make[2]: Entering directory
`/home/guerby/work/maemo/sbox2/libtool_build'
test -z "/sb_tools/bin" || mkdir -p -- "/sb_tools/bin"
mkdir: cannot create directory `/sb_tools': Permission denied
make[2]: *** [install-binSCRIPTS] Error 1
make[2]: Leaving directory `/home/guerby/work/maemo/sbox2/libtool_build'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/guerby/work/maemo/sbox2/libtool_build'
make: *** [install-recursive] Error 1

I'm using amd64 feisty. Any idea?

Thanks in advance,

Laurent
http://guerby.org/blog/


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


sbox2 update

2007-03-11 Thread Lauri Leukkunen

Hi,

sb2 is able to build maemo-mapper using

dpkg-buildpackage -rfakeroot -d

This was done on AMD64 Debian/Etch system using my own toolchain and
etch's 0.90 version of qemu-arm. You can get both sb2 and the
toolchain from http://rahina.org/sb2/

The toolchain is for AMD64 systems, for 32bit x86 hosts you can use
codesourcery's toolchain. SB2 cannot really use their toolchain on
AMD64 systems as that creates a conflict between 32/64bit libraries.

I'm going to move SB2 to fdo pretty soon, probably next weekend. I
already got the project space for it on their servers. Thanks go to
Daniel Stone for fixing that. Maybe this helps people get over their
fear of getting involved?

If there's somebody with experience in writing really efficient regexp
and general string handling code in C, SB2 could do with a new mapping
engine to speed things up a bit. Lua is nice for prototyping, but I
think the real deal will have to be something else.

/lauri
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers