tpm2-software / tpm2-tss

OSS implementation of the TCG TPM2 Software Stack (TSS2)
https://tpm2-software.github.io
BSD 2-Clause "Simplified" License
751 stars 365 forks source link

clang build failure #530

Closed flihp closed 7 years ago

flihp commented 7 years ago

This is probably related to the travis-ci update a few days ago. Looks like they upgraded clang from 3.8 to 3.9 and it's a bit more pedantic. Funny enough the failure occurs when we build cmocka (dependency) not the TSS code:

/home/travis/build/01org/tpm2-tss/cmocka-1.0.1/src/cmocka.c:963:21: error: format specifies type 'void *' but the argument has type 'const char *' [-Werror,-Wformat-pedantic]
                    a, b);
                    ^
/home/travis/build/01org/tpm2-tss/cmocka-1.0.1/src/cmocka.c:963:24: error: format specifies type 'void *' but the argument has type 'const char *' [-Werror,-Wformat-pedantic]
                    a, b);
                       ^
/home/travis/build/01org/tpm2-tss/cmocka-1.0.1/src/cmocka.c:988:21: error: format specifies type 'void *' but the argument has type 'const char *' [-Werror,-Wformat-pedantic]
                    a, b);
                    ^
/home/travis/build/01org/tpm2-tss/cmocka-1.0.1/src/cmocka.c:988:24: error: format specifies type 'void *' but the argument has type 'const char *' [-Werror,-Wformat-pedantic]
                    a, b);
                       ^
/home/travis/build/01org/tpm2-tss/cmocka-1.0.1/src/cmocka.c:1649:36: error: format specifies type 'void *' but the argument has type 'char *' [-Werror,-Wformat-pedantic]
                                   &guard[j]);
tstruk commented 7 years ago

On 09/12/2017 08:11 AM, Philip Tricca wrote:

This is probably related to the travis-ci update a few days ago. Looks like they upgraded clang from 3.8 to 3.9 and it's a bit more pedantic. Funny enough the failure occurs when we build cmocka (dependency) not the TSS code:

And what's even more funny is that it passes when you restart just the clang job.

-- Tadeusz

flihp commented 7 years ago

Ugh. The number of travis-ci mysteries is growing. This one the tabrmd is still bugging me: https://github.com/01org/tpm2-abrmd/commit/d1d6a451e00daae579225847ef8435f0c59c5483

tstruk commented 7 years ago

Fixed with #536

tstruk commented 7 years ago

@flihp are the problems of travis-ci builds caused by gcc and clang running in parallel?

flihp commented 7 years ago

not that I know of