From: Jan Paesmans <jan.paesmans@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: perl-native_5.10.1 fails
Date: Tue, 22 Mar 2011 20:36:20 +0100 [thread overview]
Message-ID: <4D88FA34.1080902@gmail.com> (raw)
In-Reply-To: <20110319184403.GB14868@sakrah.homelinux.org>
On 03/19/11 19:44, Khem Raj wrote:
> On (19/03/11 07:01), Tom Rini wrote:
>> On 03/16/2011 04:56 PM, Jan Paesmans wrote:
>>> On 03/16/11 23:01, Tom Rini wrote:
>>>> On 03/16/2011 01:49 PM, Jan Paesmans wrote:
>>>>> Hi all,
>>>>>
>>>>> When trying to build an x11-image for pm9263 with
>>>>> angstrom-2010.x, perl-native fails to build. The error is
>>>>> listed below. As far as I can tell, the problem is that a gcc
>>>>> flag is passed to the linker, -fstack-protector. I tried to
>>>>> find out where this -fstack-protector could come from, but
>>>>> the only trace I could find was in the Configure of
>>>>> perl-native itself. There is no mention that it is set when
>>>>> Configure is called in the configure step, nor in any of the
>>>>> environment variables during the do_configure or do_compile
>>>>> step.
>>>>>
>>>>> I run Ubuntu 10.10 with gold as the linker. I thought that it
>>>>> might be the gold linker but neither gold nor ld seem to have
>>>>> this option when reviewing the man-page.
>>>>
>>>> Can you edit the recipe and add in: EXTRA_OEMAKE =
>>>> 'LD="${CCLD}"'
>>>>
>
> actually when inheriting native it export LD=ld in envronment and
> thats whats used in makefiles
>
> You could try setting
>
> export LD=${CC} just after inherit native in the perl-native recipe
>
> I have a simialr fix lined up for oe-core
sorry for the late reply.
Khem's solution also seems to work. I did a 'bitbake -c clean
perl-native && bitbake perl-native' with the other suggestion and that
succeeded. However the EXTRA_OEMAKE seems cleaner.
Regards,
Jan
>>>> And do a bitbake -c clean perl-native then bitbake perl-native
>>>> Thanks.
>>>>
>>> That did the trick. Now perl-native compiles fine. However when
>>> I checked the output of the log.do_compile I did notice a change
>>> a the behaviour. I was expecting the -fstack-protector flag to be
>>> gone, instead it is still there. However, instead of invoking ld
>>> for the final link, now gcc is invoked. Below you can find the
>>> relevent section of the log file. Also in attachment is a patch
>>> with the change you suggested.
>>
>> OK, thanks. I'll put this into a patch this weekend. What's
>> going on is that while I'm not sure where -fstack-protector is
>> coming from (but it's a useful flag), as you saw, 'ld' chokes on
>> it. But for linking you shouldn't really ever invoke ld directly
>> but rather via gcc, so passing LD=${CCLD} overrides perl's
>> makefiles and we invoke gcc as the linker and it handles the flag
>> right in this case.
>>
>>>
>>> Thanks for the help. Regards,
>>>
>>> Jan
prev parent reply other threads:[~2011-03-22 19:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-16 20:49 perl-native_5.10.1 fails Jan Paesmans
2011-03-16 22:01 ` Tom Rini
2011-03-16 23:56 ` Jan Paesmans
2011-03-19 14:01 ` Tom Rini
2011-03-19 18:44 ` Khem Raj
2011-03-22 19:36 ` Jan Paesmans [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D88FA34.1080902@gmail.com \
--to=jan.paesmans@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.