* [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly
@ 2012-08-30 19:48 Saul Wold
2012-08-30 20:04 ` Chris Larson
2012-08-30 21:49 ` Khem Raj
0 siblings, 2 replies; 10+ messages in thread
From: Saul Wold @ 2012-08-30 19:48 UTC (permalink / raw)
To: openembedded-core
The libc-libm-big option allows eglibc to correctly configure
itself to include the correct math functions for 64bit operations
[YOCTO #2943]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
meta-yocto/conf/distro/poky-tiny.conf | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-yocto/conf/distro/poky-tiny.conf
index 8ae1d85..bfb4432 100644
--- a/meta-yocto/conf/distro/poky-tiny.conf
+++ b/meta-yocto/conf/distro/poky-tiny.conf
@@ -63,6 +63,7 @@ ASSUME_PROVIDED += "pkgconfig$"
# Reconfigure eglibc for a smaller installation
# Comment out any of the lines below to disable them in the build
DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt"
+DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big"
# Required for "who"
DISTRO_FEATURES_LIBC_MINIMAL = "libc-utmp libc-getlogin"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly
2012-08-30 19:48 [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly Saul Wold
@ 2012-08-30 20:04 ` Chris Larson
2012-08-30 20:13 ` Phil Blundell
2012-08-30 21:49 ` Khem Raj
1 sibling, 1 reply; 10+ messages in thread
From: Chris Larson @ 2012-08-30 20:04 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
On Thu, Aug 30, 2012 at 12:48 PM, Saul Wold <sgw@linux.intel.com> wrote:
> The libc-libm-big option allows eglibc to correctly configure
> itself to include the correct math functions for 64bit operations
>
> [YOCTO #2943]
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
I'm curious, is this needed for other 64 bit platforms, e.g. powerpc64?
--
Christopher Larson
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly
2012-08-30 20:04 ` Chris Larson
@ 2012-08-30 20:13 ` Phil Blundell
2012-08-30 21:40 ` Khem Raj
0 siblings, 1 reply; 10+ messages in thread
From: Phil Blundell @ 2012-08-30 20:13 UTC (permalink / raw)
To: oe-core
On Thu, 2012-08-30 at 13:04 -0700, Chris Larson wrote:
> On Thu, Aug 30, 2012 at 12:48 PM, Saul Wold <sgw@linux.intel.com> wrote:
> > The libc-libm-big option allows eglibc to correctly configure
> > itself to include the correct math functions for 64bit operations
> >
> > [YOCTO #2943]
> >
> > Signed-off-by: Saul Wold <sgw@linux.intel.com>
>
> I'm curious, is this needed for other 64 bit platforms, e.g. powerpc64?
Also out of curiosity, what's the use-case for 64-bit userspace in a
"tiny" context? I would have thought that you'd generally want x32.
p.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly
2012-08-30 20:13 ` Phil Blundell
@ 2012-08-30 21:40 ` Khem Raj
0 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2012-08-30 21:40 UTC (permalink / raw)
To: Phil Blundell; +Cc: oe-core
On Thu, Aug 30, 2012 at 1:13 PM, Phil Blundell <philb@gnu.org> wrote:
> On Thu, 2012-08-30 at 13:04 -0700, Chris Larson wrote:
>> On Thu, Aug 30, 2012 at 12:48 PM, Saul Wold <sgw@linux.intel.com> wrote:
>> > The libc-libm-big option allows eglibc to correctly configure
>> > itself to include the correct math functions for 64bit operations
>> >
>> > [YOCTO #2943]
>> >
>> > Signed-off-by: Saul Wold <sgw@linux.intel.com>
>>
>> I'm curious, is this needed for other 64 bit platforms, e.g. powerpc64?
>
> Also out of curiosity, what's the use-case for 64-bit userspace in a
> "tiny" context? I would have thought that you'd generally want x32.
>
I guess its for sake of completeness.
> p.
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly
2012-08-30 19:48 [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly Saul Wold
2012-08-30 20:04 ` Chris Larson
@ 2012-08-30 21:49 ` Khem Raj
2012-08-31 16:31 ` Saul Wold
2012-09-06 17:47 ` Darren Hart
1 sibling, 2 replies; 10+ messages in thread
From: Khem Raj @ 2012-08-30 21:49 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
On Thu, Aug 30, 2012 at 12:48 PM, Saul Wold <sgw@linux.intel.com> wrote:
> The libc-libm-big option allows eglibc to correctly configure
> itself to include the correct math functions for 64bit operations
>
> [YOCTO #2943]
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta-yocto/conf/distro/poky-tiny.conf | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-yocto/conf/distro/poky-tiny.conf
> index 8ae1d85..bfb4432 100644
> --- a/meta-yocto/conf/distro/poky-tiny.conf
> +++ b/meta-yocto/conf/distro/poky-tiny.conf
> @@ -63,6 +63,7 @@ ASSUME_PROVIDED += "pkgconfig$"
> # Reconfigure eglibc for a smaller installation
> # Comment out any of the lines below to disable them in the build
> DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt"
> +DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big"
>
> # Required for "who"
> DISTRO_FEATURES_LIBC_MINIMAL = "libc-utmp libc-getlogin"
there is a bug in eglibc if it cant build without libc-libm-big
it should have not caused any undefined symbol failures because
all it should have done is not use double precision so your computations
will be less accurate.
> --
> 1.7.9.5
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly
2012-08-30 21:49 ` Khem Raj
@ 2012-08-31 16:31 ` Saul Wold
2012-08-31 16:47 ` Khem Raj
2012-09-06 17:47 ` Darren Hart
1 sibling, 1 reply; 10+ messages in thread
From: Saul Wold @ 2012-08-31 16:31 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core
On 08/30/2012 02:49 PM, Khem Raj wrote:
> On Thu, Aug 30, 2012 at 12:48 PM, Saul Wold <sgw@linux.intel.com> wrote:
>> The libc-libm-big option allows eglibc to correctly configure
>> itself to include the correct math functions for 64bit operations
>>
>> [YOCTO #2943]
>>
>> Signed-off-by: Saul Wold <sgw@linux.intel.com>
>> ---
>> meta-yocto/conf/distro/poky-tiny.conf | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-yocto/conf/distro/poky-tiny.conf
>> index 8ae1d85..bfb4432 100644
>> --- a/meta-yocto/conf/distro/poky-tiny.conf
>> +++ b/meta-yocto/conf/distro/poky-tiny.conf
>> @@ -63,6 +63,7 @@ ASSUME_PROVIDED += "pkgconfig$"
>> # Reconfigure eglibc for a smaller installation
>> # Comment out any of the lines below to disable them in the build
>> DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt"
>> +DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big"
>>
>> # Required for "who"
>> DISTRO_FEATURES_LIBC_MINIMAL = "libc-utmp libc-getlogin"
>
>
> there is a bug in eglibc if it cant build without libc-libm-big
> it should have not caused any undefined symbol failures because
> all it should have done is not use double precision so your computations
> will be less accurate.
>
Khem,
You are correct the problem is that if the libm-big option is not
specificed it grabs the dbl-wrap files for some sysdep function, but
still uses the dbl-64 functions for others.
Should I file an eglibc bug?
Sau!
>> --
>> 1.7.9.5
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly
2012-08-31 16:31 ` Saul Wold
@ 2012-08-31 16:47 ` Khem Raj
0 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2012-08-31 16:47 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
On Fri, Aug 31, 2012 at 9:31 AM, Saul Wold <sgw@linux.intel.com> wrote:
>
> Should I file an eglibc bug?
yes
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly
2012-08-30 21:49 ` Khem Raj
2012-08-31 16:31 ` Saul Wold
@ 2012-09-06 17:47 ` Darren Hart
1 sibling, 0 replies; 10+ messages in thread
From: Darren Hart @ 2012-09-06 17:47 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core
On 08/30/2012 02:49 PM, Khem Raj wrote:
> On Thu, Aug 30, 2012 at 12:48 PM, Saul Wold <sgw@linux.intel.com> wrote:
>> The libc-libm-big option allows eglibc to correctly configure
>> itself to include the correct math functions for 64bit operations
>>
>> [YOCTO #2943]
>>
>> Signed-off-by: Saul Wold <sgw@linux.intel.com>
>> ---
>> meta-yocto/conf/distro/poky-tiny.conf | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-yocto/conf/distro/poky-tiny.conf
>> index 8ae1d85..bfb4432 100644
>> --- a/meta-yocto/conf/distro/poky-tiny.conf
>> +++ b/meta-yocto/conf/distro/poky-tiny.conf
>> @@ -63,6 +63,7 @@ ASSUME_PROVIDED += "pkgconfig$"
>> # Reconfigure eglibc for a smaller installation
>> # Comment out any of the lines below to disable them in the build
>> DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt"
>> +DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big"
>>
>> # Required for "who"
>> DISTRO_FEATURES_LIBC_MINIMAL = "libc-utmp libc-getlogin"
>
>
> there is a bug in eglibc if it cant build without libc-libm-big
> it should have not caused any undefined symbol failures because
> all it should have done is not use double precision so your computations
> will be less accurate.
Agreed.
~200K is significant when we are talking about < 4MB images. However, so
long as we track the eglibc bug, I am fine with including this
workaround to get things going.
I would ask that a comment be added which calls this out as a workaround
for the eglibc bug (a bug number would be great).
Thanks,
Darren
>
>> --
>> 1.7.9.5
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly
2012-09-08 0:12 Saul Wold
@ 2012-09-10 18:41 ` Darren Hart
0 siblings, 0 replies; 10+ messages in thread
From: Darren Hart @ 2012-09-10 18:41 UTC (permalink / raw)
To: Saul Wold; +Cc: poky
On 09/07/2012 05:12 PM, Saul Wold wrote:
> There is bug in the eglibc configure scripts that prevent a
> x86-64 from configuring correctly and finding the smaller
> library fucntions.
>
> This has been reported to the eglibc community via the issues ML
>
> Cc: Darren Hart <dvhart@linux.intel.com>
>
> [YOCTO #2943]
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta-yocto/conf/distro/poky-tiny.conf | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-yocto/conf/distro/poky-tiny.conf
> index f3cc874..3196fa0 100644
> --- a/meta-yocto/conf/distro/poky-tiny.conf
> +++ b/meta-yocto/conf/distro/poky-tiny.conf
> @@ -63,6 +63,7 @@ ASSUME_PROVIDED += "pkgconfig$"
> # Reconfigure eglibc for a smaller installation
> # Comment out any of the lines below to disable them in the build
> DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt"
This needs a comment as to why it's needed, preferably citing the eglibc
bug if one has been opened.
> +DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big"
>
> # Required for "who"
> DISTRO_FEATURES_LIBC_MINIMAL = "libc-utmp libc-getlogin"
>
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly
@ 2012-09-08 0:12 Saul Wold
2012-09-10 18:41 ` Darren Hart
0 siblings, 1 reply; 10+ messages in thread
From: Saul Wold @ 2012-09-08 0:12 UTC (permalink / raw)
To: poky; +Cc: Darren Hart
There is bug in the eglibc configure scripts that prevent a
x86-64 from configuring correctly and finding the smaller
library fucntions.
This has been reported to the eglibc community via the issues ML
Cc: Darren Hart <dvhart@linux.intel.com>
[YOCTO #2943]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
meta-yocto/conf/distro/poky-tiny.conf | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-yocto/conf/distro/poky-tiny.conf
index f3cc874..3196fa0 100644
--- a/meta-yocto/conf/distro/poky-tiny.conf
+++ b/meta-yocto/conf/distro/poky-tiny.conf
@@ -63,6 +63,7 @@ ASSUME_PROVIDED += "pkgconfig$"
# Reconfigure eglibc for a smaller installation
# Comment out any of the lines below to disable them in the build
DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt"
+DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big"
# Required for "who"
DISTRO_FEATURES_LIBC_MINIMAL = "libc-utmp libc-getlogin"
--
1.7.7.6
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-09-10 18:41 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-30 19:48 [PATCH] poky-tiny: Enable x86-64 to build eglibc correctly Saul Wold
2012-08-30 20:04 ` Chris Larson
2012-08-30 20:13 ` Phil Blundell
2012-08-30 21:40 ` Khem Raj
2012-08-30 21:49 ` Khem Raj
2012-08-31 16:31 ` Saul Wold
2012-08-31 16:47 ` Khem Raj
2012-09-06 17:47 ` Darren Hart
2012-09-08 0:12 Saul Wold
2012-09-10 18:41 ` Darren Hart
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.