All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Garman <sgarman@zenlinux.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: BBCLASSEXTEND sdk vs. nativesdk
Date: Tue, 23 Mar 2010 23:42:08 -0700	[thread overview]
Message-ID: <4BA9B440.2050608@zenlinux.com> (raw)
In-Reply-To: <19c1b8a91003232245y3409bca3p4b74ab5562424b5c@mail.gmail.com>

On 03/23/2010 10:45 PM, Khem Raj wrote:
>> It seems to me the correct course of action is to use nativesdk in
>> BBCLASSEXTEND and rename the dependencies on other recipes, yes?
>
> you should rename the dependencies on zlib-sdk to zlib-nativesdk
> wherever they exist.

Khem: Thanks for the confirmation.

I am running into some problems now trying to get zlib-nativesdk to 
build. If I change the recipe to use sdk, it builds fine, so I have 
something useful to compare things to.

When I build using nativesdk, configure dies pretty quickly when testing 
the compiler. It's trying to run i686-linux-gcc.

Sure enough, if I compare the BitBake environments using the -e option, 
I see that CC is being set to "gcc" when I use sdk but "i686-linux-gcc" 
when I use nativesdk.

If I create the needed symlink to gcc, the compilation gets further but 
still fails, wanting i686-linux-ar, etc. So I have a basic understanding 
of what the problem is, but I'm sure the solution is not to go symlink 
crazy with my native compiler environment.

So I took a look at sdk.bbclass and nativesdk.bbclass. They both set up 
a number of architecture-specific variables, but neither of them 
explicitly set CC. Where I should look next?

It turns out there is only one package currently in OE that uses 
BBCLASSEXTEND with nativesdk (gettext_0.17). So perhaps it is the case 
that nativesdk.bbclass needs additional work. I did test copying over 
Poky's nativesdk.bbclass (which has just a few differences), but I still 
get the same results.

Thanks,

Scott

-- 
Scott Garman
sgarman at zenlinux dot com



  reply	other threads:[~2010-03-24  6:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-11 23:13 [PATCH/RFC] zlib: convert to BBCLASSEXTEND Scott Garman
2010-03-12  0:18 ` Khem Raj
2010-03-12  3:26   ` Scott Garman
2010-03-12  3:28     ` Scott Garman
2010-03-12 20:39     ` Khem Raj
2010-03-24  3:06 ` BBCLASSEXTEND sdk vs. nativesdk Scott Garman
2010-03-24  5:45   ` Khem Raj
2010-03-24  6:42     ` Scott Garman [this message]
2010-03-24 10:28       ` Richard Purdie
2010-03-24 10:53         ` jkridner
2010-03-24 19:27           ` Denys Dmytriyenko
2010-03-24 15:27         ` Tom Rini
2010-03-24 15:37           ` Richard Purdie
2010-03-24 15:57             ` Tom Rini
2010-03-24 18:05               ` Richard Purdie
2010-03-24 18:46                 ` Tom Rini
2010-03-25 23:11                   ` Richard Purdie

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=4BA9B440.2050608@zenlinux.com \
    --to=sgarman@zenlinux.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.