All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [tpm2] OE recipe for tpm2-tss works with 1.4.0 but not 2.0.0
@ 2018-07-13  0:47 Trevor Woerner
  0 siblings, 0 replies; 5+ messages in thread
From: Trevor Woerner @ 2018-07-13  0:47 UTC (permalink / raw)
  To: tpm2

[-- 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.

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

* Re: [tpm2] OE recipe for tpm2-tss works with 1.4.0 but not 2.0.0
@ 2018-07-16 16:38 Scheie, Peter M
  0 siblings, 0 replies; 5+ messages in thread
From: Scheie, Peter M @ 2018-07-16 16:38 UTC (permalink / raw)
  To: tpm2

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

-----Original Message-----
From: Trevor Woerner [mailto:twoerner(a)gmail.com] 
Sent: Thursday, July 12, 2018 7:34 PM
To: Scheie, Peter M
Cc: tpm2(a)lists.01.org
Subject: Re: [tpm2] OE recipe for tpm2-tss works with 1.4.0 but not 2.0.0

Hi Peter,

On Thu 2018-07-12 @ 06:25:52 PM, Scheie, Peter M wrote:
> I'm trying to get the tpm2-tss package in our WindRiver 8 build system
> (bitbake) upgraded from 1.4.0 to 2.0.0. I'm using the tpm2-tss recipe from
> OpenEmbedded which I think was originally written for 1.x (1.3?) and it's
> been working fine with the tpm2-tss_1.4.0.tar.gz file.

Do you know which layers, and which branches of these layers, you're using in
your build? Neither OpenEmbedded core itself nor meta-openembedded include any
TPM2 recipes, they are provided by other, added-on layers. There are at least
3 different layers of which I'm aware that provide the TPM2 recipes:

	meta-secure-core: https://github.com/jiazhang0/meta-secure-core.git
	meta-security:    https://git.yoctoproject.org/cgit/cgit.cgi/meta-security
	meta-measured:    https://github.com/flihp/meta-measured

If you could provide the "Build Configuration:" (that is printed at the start
of every build) for your specific build, that might help.

*********************************************

I'm using the recipe from Phil's meta-measured layer.  Here is my Build Configuration:

Build Configuration:
BB_VERSION        = "1.28.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "CentOS-Linux-7.3.1611"
DISTRO            = "wrlinux-small"
DISTRO_VERSION    = "8.0.0.25"
MACHINE           = ""
DEFAULTTUNE       = "broadwell-64"
TARGET_SYS        = "x86_64-wrs-linux"
TUNE_FEATURES     = "m64 haswell haswell-ep broadwell"
TARGET_FPU        = ""
wrlinux           = "LB13_8.0_RCPL0025:fe10a7f9353ea72d10524eaf7bb1bfb7cdfba34f"
wrlcompat         = "LB13_8.0_RCPL0025:5b9708c1b5a4fffafc0a154f24f3490d60451b84"
wr-sdk-toolchain  = "LB13_8.0_RCPL0025:5f02ee99498f0cd9b0a112f19588c112fbe8113a"
wr-tcwrappers     = "LB13_8.0_RCPL0025:6d4a369c118fd0035918d944bfdb3b939f67f46c"
meta              = "LB13_8.0_RCPL0025:f5a2ade7d01f8a841e04a76e2d36bb1348beb907"
oe-core-dl-2.0    = "LB13_8.0_RCPL0025:c0dd4c25af7e8a88bcd58285adcb7c3495cd7ae7"
meta-downloads    = "LB13_8.0_RCPL0025:234b15cb1b5c77431c7839fa25694baf636aa91b"
wr-kernel         = "LB13_8.0_RCPL0025:e85e50fe8776d58e1b726e9e8dc65bd1b4be0edd"
wr-base           = "LB13_8.0_RCPL0025:61ccb153fdf527d9466ed8173475ad2e58972742"
wr-fixes          = "LB13_8.0_RCPL0025:bf8e21c57a641b52242314737eb0c19b3a20aa6a"
wr-tools-profile  = "LB13_8.0_RCPL0025:b4f87661c1919fc8354ee4c582b173f26c26d487"
wr-tools-debug    = "LB13_8.0_RCPL0025:b3361fc0bb65c164104cb60df1b1a9e62e34bd35"
meta-filesystems  
meta-initramfs    
meta-gnome        
meta-multimedia   
meta-networking   
meta-oe           
meta-python       
meta-perl         
meta-webserver    
meta-xfce         = "LB13_8.0_RCPL0025:2ae6429c21dbd05ad954f401c251f12e585b5e6e"
wr-prebuilts      = "LB13_8.0_RCPL0025:fd15422c1f9e51ddb1958ef89aef779dc5ded9ab"
meta-selinux      = "wr-8.0-20151119:6e48e40d4197ff29619abb716130d35f08786d23"
common-downloads  = "LB13_8.0_RCPL0025:830ea7a950f7ec419cc6ab3820cc1fc95128dec4"
extra-downloads   
local             = "<unknown>:<unknown>"

I had to remove a few proprietary items from the list, but I don't think their values are significant in this context.

Peter

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

* Re: [tpm2] OE recipe for tpm2-tss works with 1.4.0 but not 2.0.0
@ 2018-07-13  0:34 Trevor Woerner
  0 siblings, 0 replies; 5+ messages in thread
From: Trevor Woerner @ 2018-07-13  0:34 UTC (permalink / raw)
  To: tpm2

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

Hi Peter,

On Thu 2018-07-12 @ 06:25:52 PM, Scheie, Peter M wrote:
> I'm trying to get the tpm2-tss package in our WindRiver 8 build system
> (bitbake) upgraded from 1.4.0 to 2.0.0. I'm using the tpm2-tss recipe from
> OpenEmbedded which I think was originally written for 1.x (1.3?) and it's
> been working fine with the tpm2-tss_1.4.0.tar.gz file.

Do you know which layers, and which branches of these layers, you're using in
your build? Neither OpenEmbedded core itself nor meta-openembedded include any
TPM2 recipes, they are provided by other, added-on layers. There are at least
3 different layers of which I'm aware that provide the TPM2 recipes:

	meta-secure-core: https://github.com/jiazhang0/meta-secure-core.git
	meta-security:    https://git.yoctoproject.org/cgit/cgit.cgi/meta-security
	meta-measured:    https://github.com/flihp/meta-measured

If you could provide the "Build Configuration:" (that is printed at the start
of every build) for your specific build, that might help.

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

* Re: [tpm2] OE recipe for tpm2-tss works with 1.4.0 but not 2.0.0
@ 2018-07-12 21:33 Scheie, Peter M
  0 siblings, 0 replies; 5+ messages in thread
From: Scheie, Peter M @ 2018-07-12 21:33 UTC (permalink / raw)
  To: tpm2

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

Perhaps a bit more info:
I looked at the Makefile created when I run ./configure myself from a command line; line 13115 is the middle of a .PHONY section and doesn't seem related.  However, when I look at the Makefile bitbake creates, it's quite different (which seems odd), and the lines around 13115 look like this:

13113 ### Add ax_* rules ###
13114 # ax_code_coverage
13115 @CODE_COVERAGE_RULES@
13116
13117 # ax_doxygen

I'm puzzled as to why the two Makefiles are different, as I'd expect them to be the same.

Peter

From: Scheie, Peter M
Sent: Thursday, July 12, 2018 1:26 PM
To: 'tpm2(a)lists.01.org'
Subject: OE recipe for tpm2-tss works with 1.4.0 but not 2.0.0

I'm trying to get the tpm2-tss package in our WindRiver 8 build system (bitbake) upgraded from 1.4.0 to 2.0.0.  I'm using the tpm2-tss recipe from OpenEmbedded which I think was originally written for 1.x (1.3?) and it's been working fine with the tpm2-tss_1.4.0.tar.gz file.  The .bb file, which I've renamed from tpm2-tss_1.4.0.bb to tpm2-tss-2.0.0, contains just the md5 and sha256 hashes of the tpm2-tss tar file, which I've updated.  Looking in tpm2-tss.inc, it mostly just defines various file group names.  In my .bbappend file, I've got 'EXTRA_OECONF = "-enable-esapi=no"' plus a new license file checksum.

When I run bitbake, I get an error:

DEBUG: Executing shell function do_compile
NOTE: make -j 8
Makefile: 13115:  *** missing separator.  Stop.
ERROR: oe_runmake failed
ERROR: Function failed: do_compile

If I run untar the tpm2-tss-2.0.0.tar.gz file on my CentOS 7 workstation and run ./configure, it works just fine.  There don't appear to be any special instructions in the tpm2-tss.inc file, so I'm puzzled as to why it's failing with bitbake.  Any ideas?

Peter

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 8309 bytes --]

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

* [tpm2] OE recipe for tpm2-tss works with 1.4.0 but not 2.0.0
@ 2018-07-12 18:25 Scheie, Peter M
  0 siblings, 0 replies; 5+ messages in thread
From: Scheie, Peter M @ 2018-07-12 18:25 UTC (permalink / raw)
  To: tpm2

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

I'm trying to get the tpm2-tss package in our WindRiver 8 build system (bitbake) upgraded from 1.4.0 to 2.0.0.  I'm using the tpm2-tss recipe from OpenEmbedded which I think was originally written for 1.x (1.3?) and it's been working fine with the tpm2-tss_1.4.0.tar.gz file.  The .bb file, which I've renamed from tpm2-tss_1.4.0.bb to tpm2-tss-2.0.0, contains just the md5 and sha256 hashes of the tpm2-tss tar file, which I've updated.  Looking in tpm2-tss.inc, it mostly just defines various file group names.  In my .bbappend file, I've got 'EXTRA_OECONF = "-enable-esapi=no"' plus a new license file checksum.

When I run bitbake, I get an error:

DEBUG: Executing shell function do_compile
NOTE: make -j 8
Makefile: 13115:  *** missing separator.  Stop.
ERROR: oe_runmake failed
ERROR: Function failed: do_compile

If I run untar the tpm2-tss-2.0.0.tar.gz file on my CentOS 7 workstation and run ./configure, it works just fine.  There don't appear to be any special instructions in the tpm2-tss.inc file, so I'm puzzled as to why it's failing with bitbake.  Any ideas?

Peter

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 6106 bytes --]

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

end of thread, other threads:[~2018-07-16 16:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-13  0:47 [tpm2] OE recipe for tpm2-tss works with 1.4.0 but not 2.0.0 Trevor Woerner
  -- strict thread matches above, loose matches on Subject: below --
2018-07-16 16:38 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

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.