public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] How can I get libstdc++ ?
@ 2009-12-16 13:35 Shinkan
  2009-12-16 13:45 ` Ahmed Ammar
  0 siblings, 1 reply; 8+ messages in thread
From: Shinkan @ 2009-12-16 13:35 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

Hi everyone.

I emerge things on a target root to build a minimal filesystem.
When I tested it, some binaries complained about lack of libstdc++.so.6

So I ran 'equery belongs libstdc++.so.6' on my host. Which told me that I
wanted to have 'sys-devel/gcc-4.3.4'.
The point is that I don't want gcc on my target filesystem.
Is there any other way to get libstdc++ by emerging something to my target ?
Would a simple copy from host to target lib/ be enough ?

Thanks in advance.

-- 
Pierre.
"Sometimes when I'm talking, my words can't keep up with my thoughts. I
wonder why we think faster than we speak. Probably so we can think twice." -
Bill Watterson

[-- Attachment #2: Type: text/html, Size: 759 bytes --]

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

* Re: [gentoo-embedded] How can I get libstdc++ ?
  2009-12-16 13:35 [gentoo-embedded] How can I get libstdc++ ? Shinkan
@ 2009-12-16 13:45 ` Ahmed Ammar
  2009-12-16 13:48   ` Shinkan
  0 siblings, 1 reply; 8+ messages in thread
From: Ahmed Ammar @ 2009-12-16 13:45 UTC (permalink / raw
  To: gentoo-embedded

On Wed, 2009-12-16 at 14:35 +0100, Shinkan wrote:
> Hi everyone.
> 
> I emerge things on a target root to build a minimal filesystem.
> When I tested it, some binaries complained about lack of libstdc
> ++.so.6
> 
> So I ran 'equery belongs libstdc++.so.6' on my host. Which told me
> that I wanted to have 'sys-devel/gcc-4.3.4'.
> The point is that I don't want gcc on my target filesystem.
> Is there any other way to get libstdc++ by emerging something to my
> target ?
> Would a simple copy from host to target lib/ be enough ?

Not exactly, you need the cross-compiled gcc libs, they live in:
	/usr/lib/gcc/${CTARGET}/4.3.4/

A.




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

* Re: [gentoo-embedded] How can I get libstdc++ ?
  2009-12-16 13:45 ` Ahmed Ammar
@ 2009-12-16 13:48   ` Shinkan
  2009-12-16 14:00     ` Ahmed Ammar
  0 siblings, 1 reply; 8+ messages in thread
From: Shinkan @ 2009-12-16 13:48 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 442 bytes --]

2009/12/16 Ahmed Ammar <b33fc0d3@gentoo.org>

>
> Not exactly, you need the cross-compiled gcc libs, they live in:
>        /usr/lib/gcc/${CTARGET}/4.3.4/
>
>
So to you, /usr/lib/gcc/${CTARGET}/<gcc-version>/* put to /target/lib/* (and
maybe renamed) would be OK ?

-- 
Pierre.
"Sometimes when I'm talking, my words can't keep up with my thoughts. I
wonder why we think faster than we speak. Probably so we can think twice." -
Bill Watterson

[-- Attachment #2: Type: text/html, Size: 824 bytes --]

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

* Re: [gentoo-embedded] How can I get libstdc++ ?
  2009-12-16 13:48   ` Shinkan
@ 2009-12-16 14:00     ` Ahmed Ammar
  2009-12-16 14:10       ` Shinkan
  0 siblings, 1 reply; 8+ messages in thread
From: Ahmed Ammar @ 2009-12-16 14:00 UTC (permalink / raw
  To: gentoo-embedded

On Wed, 2009-12-16 at 14:48 +0100, Shinkan wrote:
> 
> 2009/12/16 Ahmed Ammar <b33fc0d3@gentoo.org>
>         
>         
>         Not exactly, you need the cross-compiled gcc libs, they live
>         in:
>                /usr/lib/gcc/${CTARGET}/4.3.4/
>         
> 
> So to you, /usr/lib/gcc/${CTARGET}/<gcc-version>/* put
> to /target/lib/* (and maybe renamed) would be OK ?

Why rename? renaming would break linking. 

A.




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

* Re: [gentoo-embedded] How can I get libstdc++ ?
  2009-12-16 14:00     ` Ahmed Ammar
@ 2009-12-16 14:10       ` Shinkan
  2009-12-16 14:12         ` Shinkan
  0 siblings, 1 reply; 8+ messages in thread
From: Shinkan @ 2009-12-16 14:10 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

2009/12/16 Ahmed Ammar <b33fc0d3@gentoo.org>

> On Wed, 2009-12-16 at 14:48 +0100, Shinkan wrote:
> >
> > 2009/12/16 Ahmed Ammar <b33fc0d3@gentoo.org>
> >
> >
> >         Not exactly, you need the cross-compiled gcc libs, they live
> >         in:
> >                /usr/lib/gcc/${CTARGET}/4.3.4/
> >
> >
> > So to you, /usr/lib/gcc/${CTARGET}/<gcc-version>/* put
> > to /target/lib/* (and maybe renamed) would be OK ?
>
> Why rename? renaming would break linking.
>
> A.
>
>
>


-- 
Pierre.
"Sometimes when I'm talking, my words can't keep up with my thoughts. I
wonder why we think faster than we speak. Probably so we can think twice." -
Bill Watterson

[-- Attachment #2: Type: text/html, Size: 1178 bytes --]

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

* Re: [gentoo-embedded] How can I get libstdc++ ?
  2009-12-16 14:10       ` Shinkan
@ 2009-12-16 14:12         ` Shinkan
  2009-12-16 14:18           ` Peter Stuge
  0 siblings, 1 reply; 8+ messages in thread
From: Shinkan @ 2009-12-16 14:12 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

 >
>> >         Not exactly, you need the cross-compiled gcc libs, they live
>> >         in:
>> >                /usr/lib/gcc/${CTARGET}/4.3.4/
>> >
>> >
>> > So to you, /usr/lib/gcc/${CTARGET}/<gcc-version>/* put
>> > to /target/lib/* (and maybe renamed) would be OK ?
>>
>> Why rename? renaming would break linking.
>>
>>

I thought of copying /usr/lib/gcc/.../.../{wanted libs} to /target/lib/
directly
Example /usr/lib/gcc/.../.../libstdc++.so.6.0.10 would be copied to
/target/lib/libstdc++.so.6




-- 
Pierre.
"Sometimes when I'm talking, my words can't keep up with my thoughts. I
wonder why we think faster than we speak. Probably so we can think twice." -
Bill Watterson

[-- Attachment #2: Type: text/html, Size: 1254 bytes --]

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

* Re: [gentoo-embedded] How can I get libstdc++ ?
  2009-12-16 14:12         ` Shinkan
@ 2009-12-16 14:18           ` Peter Stuge
  2009-12-16 14:24             ` Shinkan
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Stuge @ 2009-12-16 14:18 UTC (permalink / raw
  To: gentoo-embedded

Shinkan wrote:
> Example /usr/lib/gcc/.../.../libstdc++.so.6.0.10 would be copied to
> /target/lib/libstdc++.so.6

It will work, but this becomes one more thing that you must keep
track of. At least you can keep the full version number and let
ldconfig create a symlink, as usual.


//Peter



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

* Re: [gentoo-embedded] How can I get libstdc++ ?
  2009-12-16 14:18           ` Peter Stuge
@ 2009-12-16 14:24             ` Shinkan
  0 siblings, 0 replies; 8+ messages in thread
From: Shinkan @ 2009-12-16 14:24 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 663 bytes --]

2009/12/16 Peter Stuge <peter@stuge.se>

> Shinkan wrote:
> > Example /usr/lib/gcc/.../.../libstdc++.so.6.0.10 would be copied to
> > /target/lib/libstdc++.so.6
>
> It will work, but this becomes one more thing that you must keep
> track of. At least you can keep the full version number and let
> ldconfig create a symlink, as usual.
>
>
>
Thanks for your answer.
But as Peter says, that would be a error prone something to look closely.
It's sad there's no port with just the libs :(

-- 
Pierre.
"Sometimes when I'm talking, my words can't keep up with my thoughts. I
wonder why we think faster than we speak. Probably so we can think twice." -
Bill Watterson

[-- Attachment #2: Type: text/html, Size: 1068 bytes --]

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

end of thread, other threads:[~2009-12-16 14:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-16 13:35 [gentoo-embedded] How can I get libstdc++ ? Shinkan
2009-12-16 13:45 ` Ahmed Ammar
2009-12-16 13:48   ` Shinkan
2009-12-16 14:00     ` Ahmed Ammar
2009-12-16 14:10       ` Shinkan
2009-12-16 14:12         ` Shinkan
2009-12-16 14:18           ` Peter Stuge
2009-12-16 14:24             ` Shinkan

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