Gentoo Archives: gentoo-embedded

From: Jakub Ladman <ladmanj@×××××.cz>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] libgcc
Date: Tue, 28 Feb 2006 17:51:54
Message-Id: 200602281850.18786.ladmanj@volny.cz
In Reply to: Re: [gentoo-embedded] libgcc by "Scott L. Price"
1 On Tuesday 28 of February 2006 15:52, Scott L. Price wrote:
2 > Have you tried merging busybox with the 'static' keyword? Then it
3 > shouldn't require any libraries. Of course it will be larger.
4
5 Yes i tryed it allready and it works, but the other binaries does not.
6 I found libgcc_s.so and libgcc_s.so.1 at
7 my /usr/lib/gcc/sh4-pc-linux-uclibc/3.4.5/ directory, so i have copied them
8 to ${ROOT}/lib and it starts to work, but i do not know, if there are some
9 other libraries needed by some other executable.
10
11 Jakub Ladman
12
13 >
14 > Scott =)
15 >
16 > Jakub Ladman wrote:
17 > > Hi there
18 > >
19 > > I have done
20 > >
21 > > crossdev -t sh4-pc-linux-uclibc
22 > >
23 > > then created this script
24 > >
25 > > trotl ladmanj # cat memerge
26 > > #!/bin/bash
27 > >
28 > > ARCH=sh4
29 > > ACCEPT_KEYWORDS="-x86 -~x86 sh ~sh"
30 > > ROOT="/home/ladmanj/work_projects/sh4prj"
31 > > CFLAGS="-Os -pipe"
32 > > CXXFLAGS="${CFLAGS}"
33 > > LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib"
34 > > CBUILD=i686-pc-linux-gnu
35 > > CHOST=sh4-pc-linux-uclibc
36 > > CTARGET=sh4-pc-linux-uclibc
37 > > CC=sh4-pc-linux-uclibc-gcc
38 > > CXX=sh4-pc-linux-uclibc-g++
39 > > PKGDIR=/usr/portage/packages/sh4
40 > > USE="-* -X -kde -gnome -glibc uclibc make-symlinks"
41 > >
42 > > export ARCH ACCEPT_KEYWORDS CFLAGS CXXFLAGS LDFLAGS ROOT CBUILD CHOST
43 > > CTARGET CC CXX PKGDIR USE
44 > >
45 > > emerge -b $*
46 > > trotl ladmanj #
47 > >
48 > > then
49 > >
50 > > ./memerge -va sys-libs/uclibc busybox baselayout-lite zlib dropbear
51 > > tinylogin tar bzip2 gzip
52 > >
53 > > Everything was merged succesfully, but when i am trying to boot it at my
54 > > sh4 powered board i get this message.
55 > >
56 > > VFS: Mounted root (nfs filesystem).
57 > > Freeing unused kernel memory: 68k freed
58 > > init: can't load library 'libgcc_s.so.1'
59 > > Kernel panic: Attempted to kill init!
60 > >
61 > >
62 > > Can you help me? What must i emerge to fulfil the needs?
63 > > Thank you.
64 > > Best regards
65 > > Jakub ladman
66 >
67 > --
68 > Electrical Engineering/Web Development
69 > Dragonfly Technologies, Inc. http://www.dflytech.com
70 > Hunt Utilities Group LLC http://www.hugllc.com
71 > Hopkins, MN (952) 935-2418
72 --
73 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] libgcc Mike Frysinger <vapier@g.o>