tpm2-software / tpm2-tools

The source repository for the Trusted Platform Module (TPM2.0) tools
https://tpm2-software.github.io
713 stars 377 forks source link

build error on Nov. 05 #1

Closed mipsan closed 8 years ago

mipsan commented 8 years ago

I tested this tool yesterday well. However, newly cloned source tree today makes following build error

g++: error: ../tss/sysapi/libtpm.a: No such file or directory Makefile:721: recipe for target 'tpm2_listpcrs' failed make[1]: * [tpm2_listpcrs] Error 1 make[1]: Leaving directory '/home/debian/tpm/tpm2.0-tools/sapi-tools' Makefile:356: recipe for target 'all-recursive' failed make: * [all-recursive] Error 1

flihp commented 8 years ago

Hello @mipsan. Unfortunately the build systems for the tpm2.0-tools has a dependency on the tpm2.0-tss built layout. I made a few changes to the tpm2.0-tss build the other day to build the SAPI and TCTIs as shared objects and this resulted in a few build artifacts ending up in different locations. This seems to have caused the breakage you're seeing.

IMHO the "right way" to fix this is to change the build here to link against the shared objects produced by tpm2.0-tss just like they were any other system library.

mipsan commented 8 years ago

Thanks @flihp ,

Hope to be cleared soon.

gwei3 commented 8 years ago

Thanks for reporting this out. WIP.

flihp commented 8 years ago

hey Jimmy, I've already started in on this. Should have assigned it to myself. Sorry about that.