* [PATCH] bjam-native: inhibit sysroot strip
@ 2015-07-29 7:34 wenzong.fan
2015-07-29 10:19 ` Burton, Ross
0 siblings, 1 reply; 5+ messages in thread
From: wenzong.fan @ 2015-07-29 7:34 UTC (permalink / raw)
To: openembedded-core
From: Wenzong Fan <wenzong.fan@windriver.com>
The bjam is already stripped by default. Fix warning:
WARNING: File '.../tmp/sysroots/x86_64-linux/usr/bin/bjam' from \
bjam-native was already stripped, this will prevent future debugging!
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
meta/recipes-support/boost/bjam-native_1.58.0.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-support/boost/bjam-native_1.58.0.bb b/meta/recipes-support/boost/bjam-native_1.58.0.bb
index d85d1a9..e2e0611 100644
--- a/meta/recipes-support/boost/bjam-native_1.58.0.bb
+++ b/meta/recipes-support/boost/bjam-native_1.58.0.bb
@@ -5,6 +5,9 @@ SECTION = "devel"
inherit native
+# bjam is already stripped, don't strip it again
+INHIBIT_SYSROOT_STRIP = "1"
+
do_compile() {
./bootstrap.sh --with-toolset=gcc
}
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] bjam-native: inhibit sysroot strip
2015-07-29 7:34 [PATCH] bjam-native: inhibit sysroot strip wenzong.fan
@ 2015-07-29 10:19 ` Burton, Ross
2015-07-30 7:40 ` wenzong fan
0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2015-07-29 10:19 UTC (permalink / raw)
To: wenzong fan; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 285 bytes --]
On 29 July 2015 at 08:34, <wenzong.fan@windriver.com> wrote:
> +# bjam is already stripped, don't strip it again
> +INHIBIT_SYSROOT_STRIP = "1"
>
In case it's even needed to debug bjam-native, how hard would it be to stop
bjam from being stripped in the first place?
Ross
[-- Attachment #2: Type: text/html, Size: 748 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] bjam-native: inhibit sysroot strip
2015-07-29 10:19 ` Burton, Ross
@ 2015-07-30 7:40 ` wenzong fan
2015-08-08 23:52 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: wenzong fan @ 2015-07-30 7:40 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE-core
On 07/29/2015 06:19 PM, Burton, Ross wrote:
>
> On 29 July 2015 at 08:34, <wenzong.fan@windriver.com
> <mailto:wenzong.fan@windriver.com>> wrote:
>
> +# bjam is already stripped, don't strip it again
> +INHIBIT_SYSROOT_STRIP = "1"
>
>
> In case it's even needed to debug bjam-native, how hard would it be to
> stop bjam from being stripped in the first place?
By default, a release version is stripped, we could build & install the
debug version for bjam.
For specific changes, we only need to append "--debug" to build.sh, then
update do_install() to select the unstripped version.
Do you think this is the right ways?
Thanks
Wenzong
>
> Ross
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] bjam-native: inhibit sysroot strip
2015-07-30 7:40 ` wenzong fan
@ 2015-08-08 23:52 ` Khem Raj
2015-08-10 6:14 ` wenzong fan
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2015-08-08 23:52 UTC (permalink / raw)
To: wenzong fan; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 1161 bytes --]
> On Jul 30, 2015, at 12:40 AM, wenzong fan <wenzong.fan@windriver.com> wrote:
>
> On 07/29/2015 06:19 PM, Burton, Ross wrote:
>>
>> On 29 July 2015 at 08:34, <wenzong.fan@windriver.com
>> <mailto:wenzong.fan@windriver.com>> wrote:
>>
>> +# bjam is already stripped, don't strip it again
>> +INHIBIT_SYSROOT_STRIP = "1"
>>
>>
>> In case it's even needed to debug bjam-native, how hard would it be to
>> stop bjam from being stripped in the first place?
>
> By default, a release version is stripped, we could build & install the debug version for bjam.
>
> For specific changes, we only need to append "--debug" to build.sh, then update do_install() to select the unstripped version.
>
> Do you think this is the right ways?
export INSTALL=“install” or something like that might do it. usually folks use install -s by default during install step which cause such issues.
> Thanks
> Wenzong
>
>>
>> Ross
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] bjam-native: inhibit sysroot strip
2015-08-08 23:52 ` Khem Raj
@ 2015-08-10 6:14 ` wenzong fan
0 siblings, 0 replies; 5+ messages in thread
From: wenzong fan @ 2015-08-10 6:14 UTC (permalink / raw)
To: Khem Raj; +Cc: OE-core
On 08/09/2015 07:52 AM, Khem Raj wrote:
>
>> On Jul 30, 2015, at 12:40 AM, wenzong fan <wenzong.fan@windriver.com> wrote:
>>
>> On 07/29/2015 06:19 PM, Burton, Ross wrote:
>>>
>>> On 29 July 2015 at 08:34, <wenzong.fan@windriver.com
>>> <mailto:wenzong.fan@windriver.com>> wrote:
>>>
>>> +# bjam is already stripped, don't strip it again
>>> +INHIBIT_SYSROOT_STRIP = "1"
>>>
>>>
>>> In case it's even needed to debug bjam-native, how hard would it be to
>>> stop bjam from being stripped in the first place?
>>
>> By default, a release version is stripped, we could build & install the debug version for bjam.
>>
>> For specific changes, we only need to append "--debug" to build.sh, then update do_install() to select the unstripped version.
>>
>> Do you think this is the right ways?
>
>
> export INSTALL=“install” or something like that might do it. usually folks use install -s by default during install step which cause such issues.
The bjam is stripped while compiling via gcc options '-s'. There are
three build types defined in build.jam:
...
[ opt --release : [ opt --symbols : -g : -s ] -O3 ]
[ opt --debug : -g -O0 -fno-inline ]
[ opt --profile : -O3 -g -pg ]
...
Build & install "debug" version would provide unstripped bjam for
further stripping. I have sent V2 patch:
[OE-core] [PATCH v2] bjam-native: build and install bjam.debug
Thanks
Wenzong
>
>> Thanks
>> Wenzong
>>
>>>
>>> Ross
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-08-10 6:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-29 7:34 [PATCH] bjam-native: inhibit sysroot strip wenzong.fan
2015-07-29 10:19 ` Burton, Ross
2015-07-30 7:40 ` wenzong fan
2015-08-08 23:52 ` Khem Raj
2015-08-10 6:14 ` wenzong fan
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.