Gentoo Archives: gentoo-embedded

From: solar <solar@g.o>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] libgcc
Date: Tue, 28 Feb 2006 17:21:36
Message-Id: 1141147210.4294.10.camel@onyx
In Reply to: [gentoo-embedded] libgcc by Jakub Ladman
1 On Tue, 2006-02-28 at 12:48 +0100, Jakub Ladman wrote:
2 > Hi there
3 >
4 > I have done
5 >
6 > crossdev -t sh4-pc-linux-uclibc
7 >
8 > then created this script
9 >
10 > trotl ladmanj # cat memerge
11 > #!/bin/bash
12 >
13 > ARCH=sh4
14 > ACCEPT_KEYWORDS="-x86 -~x86 sh ~sh"
15 > ROOT="/home/ladmanj/work_projects/sh4prj"
16 > CFLAGS="-Os -pipe"
17 > CXXFLAGS="${CFLAGS}"
18 > LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib"
19 > CBUILD=i686-pc-linux-gnu
20 > CHOST=sh4-pc-linux-uclibc
21 > CTARGET=sh4-pc-linux-uclibc
22 > CC=sh4-pc-linux-uclibc-gcc
23 > CXX=sh4-pc-linux-uclibc-g++
24 > PKGDIR=/usr/portage/packages/sh4
25 > USE="-* -X -kde -gnome -glibc uclibc make-symlinks"
26 >
27 > export ARCH ACCEPT_KEYWORDS CFLAGS CXXFLAGS LDFLAGS ROOT CBUILD CHOST CTARGET
28 > CC CXX PKGDIR USE
29 >
30 > emerge -b $*
31 > trotl ladmanj #
32 >
33 > then
34 >
35 > ./memerge -va sys-libs/uclibc busybox baselayout-lite zlib dropbear tinylogin
36 > tar bzip2 gzip
37 >
38 > Everything was merged succesfully, but when i am trying to boot it at my sh4
39 > powered board i get this message.
40 >
41 > VFS: Mounted root (nfs filesystem).
42 > Freeing unused kernel memory: 68k freed
43 > init: can't load library 'libgcc_s.so.1'
44 > Kernel panic: Attempted to kill init!
45 >
46 >
47 > Can you help me? What must i emerge to fulfil the needs?
48
49
50 libgcc comes from gcc of course. It's a tricky one also because gcc is
51 surely something you wont want on flash.
52 Now depending on the device/arch in question sometimes libgcc.so is
53 needed by every single application.
54 I think the ideal way to work around this one for you will be something
55 like touching the file /etc/portage/root_install_mask and slowly keep
56 adding everything (glob*) in that file which is not the library in
57 question.
58
59 Also. because you have busybox installed you should not need to add the
60 additional gzip/bzip2/tinylogin as bb can and does provide all of that
61 functionality as well.
62
63 good luck.
64
65
66
67 --
68 solar <solar@g.o>
69 Gentoo Linux
70
71 --
72 gentoo-embedded@g.o mailing list