Hi all,
I'm using the latest Scratchbox on git repository with a
CodeSourcery toolchain
(arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2) and a
Maemo rootstrap (I tried both 4.01 and 4.1).
I have the following issues:
1) If I type:
sb2 -e apt-get install libncurses5-dev
I get
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
libncurses5-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1055kB of archives.
After unpacking 5386kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libncurses5-dev
Install these packages without verification [y/N]? y
/bin/sh: line 1: /usr/sbin/dpkg-preconfigure: No such file or directory
dpkg: requested operation requires superuser privilege
E: Sub-process /usr/bin/dpkg returned an error code (2)
Do I need fakeroot on my rootfs ? Can I use the fakeroot on my machine
(i.e. the one out of sb2) ?
2) If, out of scratchbox2, I type:
gcc hello.c -lncurses
the program is compiled correctly.
If, inside scratchbox2, I type
sb2 host-gcc hello.c -lncurses
I get
collect2: ld terminated with signal 11 [Segmentation fault]
Note that I don't have ncurses on my rootfs, but I've it on my
machine. And I suppose that using "host-gcc" it should use the
external version of ncurses...
If I add a "-v" option, I get:
[EMAIL PROTECTED]:work$ sb2 host-gcc -v hello.c -lncurses
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
/usr/lib/gcc/i486-linux-gnu/4.2.3/cc1 -quiet -v -isystem
/home/cloud/ev-sdk/bin/scratchbox/share/scratchbox2/host_usr/lib/gcc/i486-linux-gnu/4.2.3/include
-isystem
/home/cloud/ev-sdk/bin/scratchbox/share/scratchbox2/host_usr/include
hello.c -quiet -dumpbase hello.c -mtune=generic -auxbase hello
-version -fstack-protector -fstack-protector -o /tmp/cc15Sva3.s
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring duplicate directory "/usr/lib/gcc/i486-linux-gnu/4.2.3/include"
ignoring nonexistent directory
"/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/home/cloud/ev-sdk/bin/scratchbox/share/scratchbox2/host_usr/lib/gcc/i486-linux-gnu/4.2.3/include
/home/cloud/ev-sdk/bin/scratchbox/share/scratchbox2/host_usr/include
/usr/local/include
End of search list.
GNU C version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) (i486-linux-gnu)
compiled by GNU C version 4.2.3 (Ubuntu 4.2.3-2ubuntu7).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128199
Compiler executable checksum: cd267a1ce4b47763f08e41c54a4f8f5c
as --traditional-format -V -Qy -o /tmp/ccubpd8X.o /tmp/cc15Sva3.s
GNU assembler version 2.18.0 (i486-linux-gnu) using BFD version (GNU
Binutils for Ubuntu) 2.18.0.20080103
/usr/lib/gcc/i486-linux-gnu/4.2.3/collect2 --eh-frame-hdr -m
elf_i386 --hash-style=both -dynamic-linker /lib/ld-linux.so.2
/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/crt1.o
/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/crti.o
/usr/lib/gcc/i486-linux-gnu/4.2.3/crtbegin.o
-L/usr/lib/gcc/i486-linux-gnu/4.2.3
-L/usr/lib/gcc/i486-linux-gnu/4.2.3
-L/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib -L/lib/../lib
-L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.2.3/../../..
/tmp/ccubpd8X.o -lncurses -lgcc --as-needed -lgcc_s --no-as-needed -lc
-lgcc --as-needed -lgcc_s --no-as-needed
/usr/lib/gcc/i486-linux-gnu/4.2.3/crtend.o
/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/crtn.o
collect2: ld terminated with signal 11 [Segmentation fault]
Any idea of what's happening ?
Many thanks,
Claudio
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users