public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] libgcc
@ 2006-02-28 11:48 Jakub Ladman
  2006-02-28 14:52 ` Scott L. Price
  2006-02-28 17:20 ` solar
  0 siblings, 2 replies; 5+ messages in thread
From: Jakub Ladman @ 2006-02-28 11:48 UTC (permalink / raw
  To: gentoo-embedded

Hi there

I have done

crossdev -t sh4-pc-linux-uclibc

then created this script

trotl ladmanj # cat memerge
#!/bin/bash

ARCH=sh4
ACCEPT_KEYWORDS="-x86 -~x86 sh ~sh"
ROOT="/home/ladmanj/work_projects/sh4prj"
CFLAGS="-Os -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib"
CBUILD=i686-pc-linux-gnu
CHOST=sh4-pc-linux-uclibc
CTARGET=sh4-pc-linux-uclibc
CC=sh4-pc-linux-uclibc-gcc
CXX=sh4-pc-linux-uclibc-g++
PKGDIR=/usr/portage/packages/sh4
USE="-* -X -kde -gnome -glibc uclibc make-symlinks"

export ARCH ACCEPT_KEYWORDS CFLAGS CXXFLAGS LDFLAGS ROOT CBUILD CHOST CTARGET 
CC CXX PKGDIR USE

emerge -b $*
trotl ladmanj #       

then 

./memerge -va sys-libs/uclibc busybox baselayout-lite zlib dropbear tinylogin 
tar bzip2 gzip

Everything was merged succesfully, but when i am trying to boot it at my sh4 
powered board i get this message.

VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 68k freed
init: can't load library 'libgcc_s.so.1'
Kernel panic: Attempted to kill init!


Can you help me? What must i emerge to fulfil the needs?
Thank you.
Best regards
Jakub ladman

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] libgcc
  2006-02-28 11:48 [gentoo-embedded] libgcc Jakub Ladman
@ 2006-02-28 14:52 ` Scott L. Price
  2006-02-28 17:50   ` Jakub Ladman
  2006-02-28 17:20 ` solar
  1 sibling, 1 reply; 5+ messages in thread
From: Scott L. Price @ 2006-02-28 14:52 UTC (permalink / raw
  To: gentoo-embedded


Have you tried merging busybox with the 'static' keyword?  Then it 
shouldn't require any libraries.  Of course it will be larger.

Scott  =)

Jakub Ladman wrote:
> Hi there
> 
> I have done
> 
> crossdev -t sh4-pc-linux-uclibc
> 
> then created this script
> 
> trotl ladmanj # cat memerge
> #!/bin/bash
> 
> ARCH=sh4
> ACCEPT_KEYWORDS="-x86 -~x86 sh ~sh"
> ROOT="/home/ladmanj/work_projects/sh4prj"
> CFLAGS="-Os -pipe"
> CXXFLAGS="${CFLAGS}"
> LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib"
> CBUILD=i686-pc-linux-gnu
> CHOST=sh4-pc-linux-uclibc
> CTARGET=sh4-pc-linux-uclibc
> CC=sh4-pc-linux-uclibc-gcc
> CXX=sh4-pc-linux-uclibc-g++
> PKGDIR=/usr/portage/packages/sh4
> USE="-* -X -kde -gnome -glibc uclibc make-symlinks"
> 
> export ARCH ACCEPT_KEYWORDS CFLAGS CXXFLAGS LDFLAGS ROOT CBUILD CHOST CTARGET 
> CC CXX PKGDIR USE
> 
> emerge -b $*
> trotl ladmanj #       
> 
> then 
> 
> ./memerge -va sys-libs/uclibc busybox baselayout-lite zlib dropbear tinylogin 
> tar bzip2 gzip
> 
> Everything was merged succesfully, but when i am trying to boot it at my sh4 
> powered board i get this message.
> 
> VFS: Mounted root (nfs filesystem).
> Freeing unused kernel memory: 68k freed
> init: can't load library 'libgcc_s.so.1'
> Kernel panic: Attempted to kill init!
> 
> 
> Can you help me? What must i emerge to fulfil the needs?
> Thank you.
> Best regards
> Jakub ladman
> 

-- 
Electrical Engineering/Web Development
Dragonfly Technologies, Inc.                 http://www.dflytech.com
Hunt Utilities Group LLC                     http://www.hugllc.com
Hopkins, MN                                  (952) 935-2418

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] libgcc
  2006-02-28 11:48 [gentoo-embedded] libgcc Jakub Ladman
  2006-02-28 14:52 ` Scott L. Price
@ 2006-02-28 17:20 ` solar
  1 sibling, 0 replies; 5+ messages in thread
From: solar @ 2006-02-28 17:20 UTC (permalink / raw
  To: gentoo-embedded

On Tue, 2006-02-28 at 12:48 +0100, Jakub Ladman wrote:
> Hi there
> 
> I have done
> 
> crossdev -t sh4-pc-linux-uclibc
> 
> then created this script
> 
> trotl ladmanj # cat memerge
> #!/bin/bash
> 
> ARCH=sh4
> ACCEPT_KEYWORDS="-x86 -~x86 sh ~sh"
> ROOT="/home/ladmanj/work_projects/sh4prj"
> CFLAGS="-Os -pipe"
> CXXFLAGS="${CFLAGS}"
> LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib"
> CBUILD=i686-pc-linux-gnu
> CHOST=sh4-pc-linux-uclibc
> CTARGET=sh4-pc-linux-uclibc
> CC=sh4-pc-linux-uclibc-gcc
> CXX=sh4-pc-linux-uclibc-g++
> PKGDIR=/usr/portage/packages/sh4
> USE="-* -X -kde -gnome -glibc uclibc make-symlinks"
> 
> export ARCH ACCEPT_KEYWORDS CFLAGS CXXFLAGS LDFLAGS ROOT CBUILD CHOST CTARGET 
> CC CXX PKGDIR USE
> 
> emerge -b $*
> trotl ladmanj #       
> 
> then 
> 
> ./memerge -va sys-libs/uclibc busybox baselayout-lite zlib dropbear tinylogin 
> tar bzip2 gzip
> 
> Everything was merged succesfully, but when i am trying to boot it at my sh4 
> powered board i get this message.
> 
> VFS: Mounted root (nfs filesystem).
> Freeing unused kernel memory: 68k freed
> init: can't load library 'libgcc_s.so.1'
> Kernel panic: Attempted to kill init!
> 
> 
> Can you help me? What must i emerge to fulfil the needs?


libgcc comes from gcc of course. It's a tricky one also because gcc is 
surely something you wont want on flash.
Now depending on the device/arch in question sometimes libgcc.so is 
needed by every single application.
I think the ideal way to work around this one for you will be something 
like touching the file /etc/portage/root_install_mask and slowly keep 
adding everything (glob*) in that file which is not the library in 
question.

Also. because you have busybox installed you should not need to add the 
additional gzip/bzip2/tinylogin as bb can and does provide all of that 
functionality as well.

good luck.



-- 
solar <solar@gentoo.org>
Gentoo Linux

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] libgcc
  2006-02-28 14:52 ` Scott L. Price
@ 2006-02-28 17:50   ` Jakub Ladman
  2006-02-28 21:33     ` Mike Frysinger
  0 siblings, 1 reply; 5+ messages in thread
From: Jakub Ladman @ 2006-02-28 17:50 UTC (permalink / raw
  To: gentoo-embedded

On Tuesday 28 of February 2006 15:52, Scott L. Price wrote:
> Have you tried merging busybox with the 'static' keyword?  Then it
> shouldn't require any libraries.  Of course it will be larger.

Yes i tryed it allready and it works, but the other binaries does not.
I found libgcc_s.so and libgcc_s.so.1 at 
my /usr/lib/gcc/sh4-pc-linux-uclibc/3.4.5/ directory, so i have copied them 
to ${ROOT}/lib and it starts to work, but i do not know, if there are some 
other libraries needed by some other executable.

Jakub Ladman

>
> Scott  =)
>
> Jakub Ladman wrote:
> > Hi there
> >
> > I have done
> >
> > crossdev -t sh4-pc-linux-uclibc
> >
> > then created this script
> >
> > trotl ladmanj # cat memerge
> > #!/bin/bash
> >
> > ARCH=sh4
> > ACCEPT_KEYWORDS="-x86 -~x86 sh ~sh"
> > ROOT="/home/ladmanj/work_projects/sh4prj"
> > CFLAGS="-Os -pipe"
> > CXXFLAGS="${CFLAGS}"
> > LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib"
> > CBUILD=i686-pc-linux-gnu
> > CHOST=sh4-pc-linux-uclibc
> > CTARGET=sh4-pc-linux-uclibc
> > CC=sh4-pc-linux-uclibc-gcc
> > CXX=sh4-pc-linux-uclibc-g++
> > PKGDIR=/usr/portage/packages/sh4
> > USE="-* -X -kde -gnome -glibc uclibc make-symlinks"
> >
> > export ARCH ACCEPT_KEYWORDS CFLAGS CXXFLAGS LDFLAGS ROOT CBUILD CHOST
> > CTARGET CC CXX PKGDIR USE
> >
> > emerge -b $*
> > trotl ladmanj #
> >
> > then
> >
> > ./memerge -va sys-libs/uclibc busybox baselayout-lite zlib dropbear
> > tinylogin tar bzip2 gzip
> >
> > Everything was merged succesfully, but when i am trying to boot it at my
> > sh4 powered board i get this message.
> >
> > VFS: Mounted root (nfs filesystem).
> > Freeing unused kernel memory: 68k freed
> > init: can't load library 'libgcc_s.so.1'
> > Kernel panic: Attempted to kill init!
> >
> >
> > Can you help me? What must i emerge to fulfil the needs?
> > Thank you.
> > Best regards
> > Jakub ladman
>
> --
> Electrical Engineering/Web Development
> Dragonfly Technologies, Inc.                 http://www.dflytech.com
> Hunt Utilities Group LLC                     http://www.hugllc.com
> Hopkins, MN                                  (952) 935-2418
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] libgcc
  2006-02-28 17:50   ` Jakub Ladman
@ 2006-02-28 21:33     ` Mike Frysinger
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2006-02-28 21:33 UTC (permalink / raw
  To: gentoo-embedded; +Cc: Jakub Ladman

On Tuesday 28 February 2006 12:50, Jakub Ladman wrote:
> On Tuesday 28 of February 2006 15:52, Scott L. Price wrote:
> > Have you tried merging busybox with the 'static' keyword?  Then it
> > shouldn't require any libraries.  Of course it will be larger.
>
> Yes i tryed it allready and it works, but the other binaries does not.
> I found libgcc_s.so and libgcc_s.so.1 at
> my /usr/lib/gcc/sh4-pc-linux-uclibc/3.4.5/ directory, so i have copied them
> to ${ROOT}/lib and it starts to work, but i do not know, if there are some
> other libraries needed by some other executable.

copying libgcc_s.so.1 over is an acceptable workaround
-mike
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-28 21:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-28 11:48 [gentoo-embedded] libgcc Jakub Ladman
2006-02-28 14:52 ` Scott L. Price
2006-02-28 17:50   ` Jakub Ladman
2006-02-28 21:33     ` Mike Frysinger
2006-02-28 17:20 ` solar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox