Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] gcc: use ${base_lib} to match gcc default configuration
@ 2011-08-04 18:54 Kumar Gala
  2011-08-05 16:53 ` Kumar Gala
  2011-08-11  6:36 ` Yu Ke
  0 siblings, 2 replies; 10+ messages in thread
From: Kumar Gala @ 2011-08-04 18:54 UTC (permalink / raw)
  To: openembedded-core

Rather than tweaking MULTILIB_DIRNAMES & MULTILIB_OSDIRNAMES like is
done for x86-64 via 64bithack.patch.  We can just go with gcc defaults
and utilize ${base_lib} for where to find gcc libs.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 .../gcc/gcc-cross-intermediate.inc                 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
index df5958a..7b1bb38 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
@@ -34,7 +34,7 @@ do_compile () {
 do_install () {
 	oe_runmake 'DESTDIR=${D}' install
 	install -d ${D}${target_base_libdir}/
-	mv ${D}${exec_prefix}/${TARGET_SYS}/lib/* ${D}${target_base_libdir}/
+	mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/* ${D}${target_base_libdir}/
 
 	# We don't really need this (here shares/ contains man/, info/, locale/).
 	rm -rf ${D}${datadir}/
-- 
1.7.3.4




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

* Re: [PATCH] gcc: use ${base_lib} to match gcc default configuration
  2011-08-04 18:54 [PATCH] gcc: use ${base_lib} to match gcc default configuration Kumar Gala
@ 2011-08-05 16:53 ` Kumar Gala
  2011-08-05 16:56   ` Saul Wold
  2011-08-11  6:36 ` Yu Ke
  1 sibling, 1 reply; 10+ messages in thread
From: Kumar Gala @ 2011-08-05 16:53 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


On Aug 4, 2011, at 1:54 PM, Kumar Gala wrote:

> Rather than tweaking MULTILIB_DIRNAMES & MULTILIB_OSDIRNAMES like is
> done for x86-64 via 64bithack.patch.  We can just go with gcc defaults
> and utilize ${base_lib} for where to find gcc libs.
> 
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> .../gcc/gcc-cross-intermediate.inc                 |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> index df5958a..7b1bb38 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> @@ -34,7 +34,7 @@ do_compile () {
> do_install () {
> 	oe_runmake 'DESTDIR=${D}' install
> 	install -d ${D}${target_base_libdir}/
> -	mv ${D}${exec_prefix}/${TARGET_SYS}/lib/* ${D}${target_base_libdir}/
> +	mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/* ${D}${target_base_libdir}/
> 
> 	# We don't really need this (here shares/ contains man/, info/, locale/).
> 	rm -rf ${D}${datadir}/
> -- 
> 1.7.3.4

ping

- k


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

* Re: [PATCH] gcc: use ${base_lib} to match gcc default configuration
  2011-08-05 16:53 ` Kumar Gala
@ 2011-08-05 16:56   ` Saul Wold
  0 siblings, 0 replies; 10+ messages in thread
From: Saul Wold @ 2011-08-05 16:56 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 08/05/2011 09:53 AM, Kumar Gala wrote:
>
> On Aug 4, 2011, at 1:54 PM, Kumar Gala wrote:
>
>> Rather than tweaking MULTILIB_DIRNAMES&  MULTILIB_OSDIRNAMES like is
>> done for x86-64 via 64bithack.patch.  We can just go with gcc defaults
>> and utilize ${base_lib} for where to find gcc libs.
>>
>> Signed-off-by: Kumar Gala<galak@kernel.crashing.org>
>> ---
>> .../gcc/gcc-cross-intermediate.inc                 |    2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>> index df5958a..7b1bb38 100644
>> --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>> +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>> @@ -34,7 +34,7 @@ do_compile () {
>> do_install () {
>> 	oe_runmake 'DESTDIR=${D}' install
>> 	install -d ${D}${target_base_libdir}/
>> -	mv ${D}${exec_prefix}/${TARGET_SYS}/lib/* ${D}${target_base_libdir}/
>> +	mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/* ${D}${target_base_libdir}/
>>
>> 	# We don't really need this (here shares/ contains man/, info/, locale/).
>> 	rm -rf ${D}${datadir}/
>> --
>> 1.7.3.4
>
> ping

Kumar,

I need to check with Richard on the bitbake.conf and this change, it's 
in my pending queue for a pull later today.

Sau!

>
> - k
> _______________________________________________
> 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] gcc: use ${base_lib} to match gcc default configuration
  2011-08-04 18:54 [PATCH] gcc: use ${base_lib} to match gcc default configuration Kumar Gala
  2011-08-05 16:53 ` Kumar Gala
@ 2011-08-11  6:36 ` Yu Ke
  2011-08-11  6:47   ` Kumar Gala
  1 sibling, 1 reply; 10+ messages in thread
From: Yu Ke @ 2011-08-11  6:36 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

Hi Kumar,

I just found this patch breaks the qemux86-64 lib64 multilib build.

the error log is as below:

| mv: cannot stat 
`/home/kyu3/sdb/multilib2/tmp/work/x86_64-pokymllib64-linux/lib64-gcc-cross-intermediate-4.6.1+svnr175454-r4/image/home/kyu3/sdb/multilib2/tmp/sysroots/x86_64-linux/usr/x86_64-pokymllib64-linux/lib64/*': 
No such file or directory
NOTE: package lib64-gcc-cross-intermediate-4.6.1+svnr175454-r4: task 
do_install: Failed
ERROR: Task 1557 
(virtual:multilib:lib64:/home/kyu3/src/poky/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.6.bb, 
do_install) failed with exit code

the error is caused by command in gcc-cross-intermediate.inc: 
do_install(): "mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/* 
${D}${target_base_libdir}/"

and the reason is that: ${baselib} is lib64 in multilib case, while the 
files to be moved is still in ${D}${exec_prefix}/${TARGET_SYS}/lib/*, 
so mv will fail.

The fix may be either reverting this commit, or putting the file to 
${baselib} instead of lib. I'd like to get your input before going further.

Regards
Ke

on 2011-8-5 2:54, Kumar Gala wrote:
> Rather than tweaking MULTILIB_DIRNAMES&  MULTILIB_OSDIRNAMES like is
> done for x86-64 via 64bithack.patch.  We can just go with gcc defaults
> and utilize ${base_lib} for where to find gcc libs.
>
> Signed-off-by: Kumar Gala<galak@kernel.crashing.org>
> ---
>   .../gcc/gcc-cross-intermediate.inc                 |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> index df5958a..7b1bb38 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> @@ -34,7 +34,7 @@ do_compile () {
>   do_install () {
>   	oe_runmake 'DESTDIR=${D}' install
>   	install -d ${D}${target_base_libdir}/
> -	mv ${D}${exec_prefix}/${TARGET_SYS}/lib/* ${D}${target_base_libdir}/
> +	mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/* ${D}${target_base_libdir}/
>
>   	# We don't really need this (here shares/ contains man/, info/, locale/).
>   	rm -rf ${D}${datadir}/




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

* Re: [PATCH] gcc: use ${base_lib} to match gcc default configuration
  2011-08-11  6:36 ` Yu Ke
@ 2011-08-11  6:47   ` Kumar Gala
  2011-08-11  7:45     ` Yu Ke
  2011-08-11 15:30     ` Richard Purdie
  0 siblings, 2 replies; 10+ messages in thread
From: Kumar Gala @ 2011-08-11  6:47 UTC (permalink / raw)
  To: Yu Ke; +Cc: Patches and discussions about the oe-core layer

revert this is not acceptable as that will break ppc64 builds.

I think you need to look at 64bithack.patch and if we really should be using it for multilib builds.

- k

On Aug 11, 2011, at 1:36 AM, Yu Ke wrote:

> Hi Kumar,
> 
> I just found this patch breaks the qemux86-64 lib64 multilib build.
> 
> the error log is as below:
> 
> | mv: cannot stat `/home/kyu3/sdb/multilib2/tmp/work/x86_64-pokymllib64-linux/lib64-gcc-cross-intermediate-4.6.1+svnr175454-r4/image/home/kyu3/sdb/multilib2/tmp/sysroots/x86_64-linux/usr/x86_64-pokymllib64-linux/lib64/*': No such file or directory
> NOTE: package lib64-gcc-cross-intermediate-4.6.1+svnr175454-r4: task do_install: Failed
> ERROR: Task 1557 (virtual:multilib:lib64:/home/kyu3/src/poky/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.6.bb, do_install) failed with exit code
> 
> the error is caused by command in gcc-cross-intermediate.inc: do_install(): "mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/* ${D}${target_base_libdir}/"
> 
> and the reason is that: ${baselib} is lib64 in multilib case, while the files to be moved is still in ${D}${exec_prefix}/${TARGET_SYS}/lib/*, so mv will fail.
> 
> The fix may be either reverting this commit, or putting the file to ${baselib} instead of lib. I'd like to get your input before going further.
> 
> Regards
> Ke
> 
> on 2011-8-5 2:54, Kumar Gala wrote:
>> Rather than tweaking MULTILIB_DIRNAMES&  MULTILIB_OSDIRNAMES like is
>> done for x86-64 via 64bithack.patch.  We can just go with gcc defaults
>> and utilize ${base_lib} for where to find gcc libs.
>> 
>> Signed-off-by: Kumar Gala<galak@kernel.crashing.org>
>> ---
>>  .../gcc/gcc-cross-intermediate.inc                 |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>> 
>> diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>> index df5958a..7b1bb38 100644
>> --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>> +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>> @@ -34,7 +34,7 @@ do_compile () {
>>  do_install () {
>>  	oe_runmake 'DESTDIR=${D}' install
>>  	install -d ${D}${target_base_libdir}/
>> -	mv ${D}${exec_prefix}/${TARGET_SYS}/lib/* ${D}${target_base_libdir}/
>> +	mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/* ${D}${target_base_libdir}/
>> 
>>  	# We don't really need this (here shares/ contains man/, info/, locale/).
>>  	rm -rf ${D}${datadir}/




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

* Re: [PATCH] gcc: use ${base_lib} to match gcc default configuration
  2011-08-11  6:47   ` Kumar Gala
@ 2011-08-11  7:45     ` Yu Ke
  2011-08-11 14:54       ` Khem Raj
  2011-08-11 15:30     ` Richard Purdie
  1 sibling, 1 reply; 10+ messages in thread
From: Yu Ke @ 2011-08-11  7:45 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

Ok, CC Richard to see if it is OK to not use 64bithack.patch

Regards
Ke

on 2011-8-11 14:47, Kumar Gala wrote:
> revert this is not acceptable as that will break ppc64 builds.
>
> I think you need to look at 64bithack.patch and if we really should be using it for multilib builds.
>
> - k
>
> On Aug 11, 2011, at 1:36 AM, Yu Ke wrote:
>
>> Hi Kumar,
>>
>> I just found this patch breaks the qemux86-64 lib64 multilib build.
>>
>> the error log is as below:
>>
>> | mv: cannot stat `/home/kyu3/sdb/multilib2/tmp/work/x86_64-pokymllib64-linux/lib64-gcc-cross-intermediate-4.6.1+svnr175454-r4/image/home/kyu3/sdb/multilib2/tmp/sysroots/x86_64-linux/usr/x86_64-pokymllib64-linux/lib64/*': No such file or directory
>> NOTE: package lib64-gcc-cross-intermediate-4.6.1+svnr175454-r4: task do_install: Failed
>> ERROR: Task 1557 (virtual:multilib:lib64:/home/kyu3/src/poky/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.6.bb, do_install) failed with exit code
>>
>> the error is caused by command in gcc-cross-intermediate.inc: do_install(): "mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/* ${D}${target_base_libdir}/"
>>
>> and the reason is that: ${baselib} is lib64 in multilib case, while the files to be moved is still in ${D}${exec_prefix}/${TARGET_SYS}/lib/*, so mv will fail.
>>
>> The fix may be either reverting this commit, or putting the file to ${baselib} instead of lib. I'd like to get your input before going further.
>>
>> Regards
>> Ke
>>
>> on 2011-8-5 2:54, Kumar Gala wrote:
>>> Rather than tweaking MULTILIB_DIRNAMES&   MULTILIB_OSDIRNAMES like is
>>> done for x86-64 via 64bithack.patch.  We can just go with gcc defaults
>>> and utilize ${base_lib} for where to find gcc libs.
>>>
>>> Signed-off-by: Kumar Gala<galak@kernel.crashing.org>
>>> ---
>>>   .../gcc/gcc-cross-intermediate.inc                 |    2 +-
>>>   1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>>> index df5958a..7b1bb38 100644
>>> --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>>> +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>>> @@ -34,7 +34,7 @@ do_compile () {
>>>   do_install () {
>>>   	oe_runmake 'DESTDIR=${D}' install
>>>   	install -d ${D}${target_base_libdir}/
>>> -	mv ${D}${exec_prefix}/${TARGET_SYS}/lib/* ${D}${target_base_libdir}/
>>> +	mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/* ${D}${target_base_libdir}/
>>>
>>>   	# We don't really need this (here shares/ contains man/, info/, locale/).
>>>   	rm -rf ${D}${datadir}/
>
>
> _______________________________________________
> 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] gcc: use ${base_lib} to match gcc default configuration
  2011-08-11  7:45     ` Yu Ke
@ 2011-08-11 14:54       ` Khem Raj
  0 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2011-08-11 14:54 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thursday, August 11, 2011 03:45:01 PM Yu Ke wrote:
> Ok, CC Richard to see if it is OK to not use 64bithack.patch
> 
> Regards
> Ke
> 
> on 2011-8-11 14:47, Kumar Gala wrote:
> > revert this is not acceptable as that will break ppc64 builds.
> > 
> > I think you need to look at 64bithack.patch and if we really should be
> > using it for multilib builds.

I think it could be conditionally applied only for non multilib builds
but I would be in favour of removing it if not much will break in non
multilib case.

> > 
> > - k
> > 
> > On Aug 11, 2011, at 1:36 AM, Yu Ke wrote:
> >> Hi Kumar,
> >> 
> >> I just found this patch breaks the qemux86-64 lib64 multilib build.
> >> 
> >> the error log is as below:
> >> | mv: cannot stat
> >> | `/home/kyu3/sdb/multilib2/tmp/work/x86_64-pokymllib64-linux/lib64
> >> | -gcc-cross-intermediate-4.6.1+svnr175454-r4/image/home/kyu3/sdb/mu
> >> | ltilib2/tmp/sysroots/x86_64-linux/usr/x86_64-pokymllib64-linux/lib
> >> | 64/*': No such file or directory>> 
> >> NOTE: package lib64-gcc-cross-intermediate-4.6.1+svnr175454-r4: task
> >> do_install: Failed ERROR: Task 1557
> >> (virtual:multilib:lib64:/home/kyu3/src/poky/meta/recipes-devtools/gcc
> >> /gcc-cross-intermediate_4.6.bb, do_install) failed with exit code
> >> 
> >> the error is caused by command in gcc-cross-intermediate.inc:
> >> do_install(): "mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/*
> >> ${D}${target_base_libdir}/"
> >> 
> >> and the reason is that: ${baselib} is lib64 in multilib case, while
> >> the files to be moved is still in
> >> ${D}${exec_prefix}/${TARGET_SYS}/lib/*, so mv will fail.
> >> 
> >> The fix may be either reverting this commit, or putting the file to
> >> ${baselib} instead of lib. I'd like to get your input before going
> >> further.
> >> 
> >> Regards
> >> Ke
> >> 
> >> on 2011-8-5 2:54, Kumar Gala wrote:
> >>> Rather than tweaking MULTILIB_DIRNAMES&   MULTILIB_OSDIRNAMES like
> >>> is
> >>> done for x86-64 via 64bithack.patch.  We can just go with gcc
> >>> defaults
> >>> and utilize ${base_lib} for where to find gcc libs.
> >>> 
> >>> Signed-off-by: Kumar Gala<galak@kernel.crashing.org>
> >>> ---
> >>> 
> >>>   .../gcc/gcc-cross-intermediate.inc                 |    2 +-
> >>>   1 files changed, 1 insertions(+), 1 deletions(-)
> >>> 
> >>> diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> >>> b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc index
> >>> df5958a..7b1bb38 100644
> >>> --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> >>> +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> >>> @@ -34,7 +34,7 @@ do_compile () {
> >>> 
> >>>   do_install () {
> >>>   
> >>>   	oe_runmake 'DESTDIR=${D}' install
> >>>   	install -d ${D}${target_base_libdir}/
> >>> 
> >>> -	mv ${D}${exec_prefix}/${TARGET_SYS}/lib/*
> >>> ${D}${target_base_libdir}/
> >>> +	mv ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/*
> >>> ${D}${target_base_libdir}/>>> 
> >>>   	# We don't really need this (here shares/ contains man/,
> >>>   	info/, locale/). rm -rf ${D}${datadir}/
> > 
> > _______________________________________________
> > 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



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

* Re: [PATCH] gcc: use ${base_lib} to match gcc default configuration
  2011-08-11  6:47   ` Kumar Gala
  2011-08-11  7:45     ` Yu Ke
@ 2011-08-11 15:30     ` Richard Purdie
  2011-08-11 18:41       ` Richard Purdie
  1 sibling, 1 reply; 10+ messages in thread
From: Richard Purdie @ 2011-08-11 15:30 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, 2011-08-11 at 01:47 -0500, Kumar Gala wrote:
> revert this is not acceptable as that will break ppc64 builds.
> 
> I think you need to look at 64bithack.patch and if we really should be using it for multilib builds.

This just sounds like gcc totally ignores the the library directory
we're using and that is plain wrong :(.

I'd much prefer gcc didn't make assumptions in this case and did what
were were configuring it to do. That is why there is that 64bit hack
there and I think gcc should be honouring however we configure the
library directories, not doing what it thinks is best...

Cheers,

Richard




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

* Re: [PATCH] gcc: use ${base_lib} to match gcc default configuration
  2011-08-11 15:30     ` Richard Purdie
@ 2011-08-11 18:41       ` Richard Purdie
  2011-08-11 18:55         ` Kumar Gala
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Purdie @ 2011-08-11 18:41 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, 2011-08-11 at 16:30 +0100, Richard Purdie wrote:
> On Thu, 2011-08-11 at 01:47 -0500, Kumar Gala wrote:
> > revert this is not acceptable as that will break ppc64 builds.
> > 
> > I think you need to look at 64bithack.patch and if we really should be using it for multilib builds.
> 
> This just sounds like gcc totally ignores the the library directory
> we're using and that is plain wrong :(.
> 
> I'd much prefer gcc didn't make assumptions in this case and did what
> were were configuring it to do. That is why there is that 64bit hack
> there and I think gcc should be honouring however we configure the
> library directories, not doing what it thinks is best...

I did more digging and this really just highlights why we have that
64bit "hack" patch in the first place.

GCC has internal multilib 'magic' which assumes certain library layout
in the 64 bit case. The implication is if you build 64 bit, you cannot
have baselib != "lib64". Whilst I can understand this on desktop system,
I'd suggest our build system has a better idea what its doing than most
and can cope without hardcoding things.

This is why the default builds in the gcc config are set to "." by that
patch, that respects whatever base_libdir is set to. I'd suggest we do
this for x86, pcc and mips 64 bit and revert the origin baselib patch,
but this time better improve the patch documentation about why this is
necessary.

Cheers,

Richard




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

* Re: [PATCH] gcc: use ${base_lib} to match gcc default configuration
  2011-08-11 18:41       ` Richard Purdie
@ 2011-08-11 18:55         ` Kumar Gala
  0 siblings, 0 replies; 10+ messages in thread
From: Kumar Gala @ 2011-08-11 18:55 UTC (permalink / raw)
  To: Richard Purdie, Khem Raj; +Cc: Patches and discussions about the oe-core layer


On Aug 11, 2011, at 1:41 PM, Richard Purdie wrote:

> On Thu, 2011-08-11 at 16:30 +0100, Richard Purdie wrote:
>> On Thu, 2011-08-11 at 01:47 -0500, Kumar Gala wrote:
>>> revert this is not acceptable as that will break ppc64 builds.
>>> 
>>> I think you need to look at 64bithack.patch and if we really should be using it for multilib builds.
>> 
>> This just sounds like gcc totally ignores the the library directory
>> we're using and that is plain wrong :(.
>> 
>> I'd much prefer gcc didn't make assumptions in this case and did what
>> were were configuring it to do. That is why there is that 64bit hack
>> there and I think gcc should be honouring however we configure the
>> library directories, not doing what it thinks is best...
> 
> I did more digging and this really just highlights why we have that
> 64bit "hack" patch in the first place.
> 
> GCC has internal multilib 'magic' which assumes certain library layout
> in the 64 bit case. The implication is if you build 64 bit, you cannot
> have baselib != "lib64". Whilst I can understand this on desktop system,
> I'd suggest our build system has a better idea what its doing than most
> and can cope without hardcoding things.
> 
> This is why the default builds in the gcc config are set to "." by that
> patch, that respects whatever base_libdir is set to. I'd suggest we do
> this for x86, pcc and mips 64 bit and revert the origin baselib patch,
> but this time better improve the patch documentation about why this is
> necessary.
> 
> Cheers,
> 
> Richard

Khem had some feelings on this so I'll let him chime in

- k


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

end of thread, other threads:[~2011-08-11 19:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-04 18:54 [PATCH] gcc: use ${base_lib} to match gcc default configuration Kumar Gala
2011-08-05 16:53 ` Kumar Gala
2011-08-05 16:56   ` Saul Wold
2011-08-11  6:36 ` Yu Ke
2011-08-11  6:47   ` Kumar Gala
2011-08-11  7:45     ` Yu Ke
2011-08-11 14:54       ` Khem Raj
2011-08-11 15:30     ` Richard Purdie
2011-08-11 18:41       ` Richard Purdie
2011-08-11 18:55         ` Kumar Gala

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