public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] perl /  -lgcc_s
@ 2006-11-20  6:25 Corey
  2006-11-20  9:28 ` M. Edward (Ed) Borasky
  0 siblings, 1 reply; 2+ messages in thread
From: Corey @ 2006-11-20  6:25 UTC (permalink / raw
  To: gentoo-embedded


Ok, well - after much effort, it looks like I'm just not going to be successful
cross compiling perl.

So I decided on a new strategy:  I'd compile perl manually while chroot'd
into my minimal uclibc-based gentoo partition. However, things go fine
until the make process dies with the following:

"/usr/lib/gcc/i686-pc-linux-uclibc/4.1.1/../../../../i686-pc-linux-uclibc/bin/ld: cannot find -lgcc_s"

Well, this is highly annoying, because I do in fact have libgcc_s.so.1:

scanner lib # pwd
/usr/i686-pc-linux-uclibc/lib
scanner lib # ls -l libgcc_s*
-rwxr-xr-x 1 root root 34980 Nov 20 03:51 libgcc_s.so
-rwxr-xr-x 1 root root 34980 Nov 20 03:51 libgcc_s.so.1
scanner lib # readelf -d libgcc_s.so.1

Dynamic section at offset 0x7834 contains 21 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libc.so.0]
 0x0000000e (SONAME)                     Library soname: [libgcc_s.so.1]


I even went and copied thos libgcc_s.so* into every lib directory
I could think of, but it keeps complaining nonetheless. I'm really
stumped here - why is it saying it can't find it?


Thanks
-- 
gentoo-embedded@gentoo.org mailing list



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

* Re: [gentoo-embedded] perl /  -lgcc_s
  2006-11-20  6:25 [gentoo-embedded] perl / -lgcc_s Corey
@ 2006-11-20  9:28 ` M. Edward (Ed) Borasky
  0 siblings, 0 replies; 2+ messages in thread
From: M. Edward (Ed) Borasky @ 2006-11-20  9:28 UTC (permalink / raw
  To: gentoo-embedded

Corey wrote:
> Ok, well - after much effort, it looks like I'm just not going to be successful
> cross compiling perl.
>
> So I decided on a new strategy:  I'd compile perl manually while chroot'd
> into my minimal uclibc-based gentoo partition. However, things go fine
> until the make process dies with the following:
>
> "/usr/lib/gcc/i686-pc-linux-uclibc/4.1.1/../../../../i686-pc-linux-uclibc/bin/ld: cannot find -lgcc_s"
>
> Well, this is highly annoying, because I do in fact have libgcc_s.so.1:
>
> scanner lib # pwd
> /usr/i686-pc-linux-uclibc/lib
> scanner lib # ls -l libgcc_s*
> -rwxr-xr-x 1 root root 34980 Nov 20 03:51 libgcc_s.so
> -rwxr-xr-x 1 root root 34980 Nov 20 03:51 libgcc_s.so.1
> scanner lib # readelf -d libgcc_s.so.1
>
> Dynamic section at offset 0x7834 contains 21 entries:
>   Tag        Type                         Name/Value
>  0x00000001 (NEEDED)                     Shared library: [libc.so.0]
>  0x0000000e (SONAME)                     Library soname: [libgcc_s.so.1]
>
>
> I even went and copied thos libgcc_s.so* into every lib directory
> I could think of, but it keeps complaining nonetheless. I'm really
> stumped here - why is it saying it can't find it?
>
>
> Thanks
>   
There are some gotchas with cross-compiling Perl, but there is something 
called "microperl" which is small enough to cross-compile.

-- 
M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
http://borasky-research.blogspot.com/

If God had meant for carrots to be eaten cooked, He would have given rabbits fire.

-- 
gentoo-embedded@gentoo.org mailing list



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

end of thread, other threads:[~2006-11-20  9:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-20  6:25 [gentoo-embedded] perl / -lgcc_s Corey
2006-11-20  9:28 ` M. Edward (Ed) Borasky

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