All of lore.kernel.org
 help / color / mirror / Atom feed
From: Trevor Woerner <twoerner at gmail.com>
To: tpm2@lists.01.org
Subject: Re: [tpm2] OE recipe for tpm2-tss works with 1.4.0 but not 2.0.0
Date: Thu, 12 Jul 2018 20:47:28 -0400	[thread overview]
Message-ID: <20180713004728.GB16423@linux-uys3> (raw)
In-Reply-To: 93090e1902e944318241dd75e934b01a@AZDC-MMB02.GD-MS.US

[-- Attachment #1: Type: text/plain, Size: 1586 bytes --]

On Thu 2018-07-12 @ 09:33:45 PM, Scheie, Peter M wrote:
> I'm puzzled as to why the two Makefiles are different, as I'd expect them to
> be the same.

I wouldn't expect them to be anywhere near the same at all. In the case where
you're running ./configure by hand, you're probably setting up a build for
native compilation. In the case where you're using OE, OE would be getting the
build ready for, most likely, a very different, cross-development target.

OE does a lot of work to make sure that its builds are not "contaminated" by
the host on which the builds take place. Your host probably has an older
version of glibc (2.24) whereas (if you're using master) OE will want to use
its glibc-2.27. Your host probably has an older version of gcc (4.8 maybe?)
whereas OE will want to use the gcc-8.1 cross-compiler that it just built for
you to target your specific device.

Being able to produce your own cross-binutils, cross-glibc, and cross-compiler
then using those to cross-compile your source without the build accidentally
being corrupted by the native things on your host takes quite a bit of effort.
Which is why the results differ between a native ./configure and the
./configure that OE does to guard against these problems and cross-compile
correctly.

Even if your native machine is x86-64 and the thing OE is targetting is also
x86-64, I would expect quite a difference because the OE build still doesn't
want to be corrupted by the host; it wants to use the tools it has created,
even if it's "cross-compiling" back to the same architecture.

             reply	other threads:[~2018-07-13  0:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-13  0:47 Trevor Woerner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-07-16 16:38 [tpm2] OE recipe for tpm2-tss works with 1.4.0 but not 2.0.0 Scheie, Peter M
2018-07-13  0:34 Trevor Woerner
2018-07-12 21:33 Scheie, Peter M
2018-07-12 18:25 Scheie, Peter M

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=20180713004728.GB16423@linux-uys3 \
    --to=tpm2@lists.01.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.