From: Olaf Hering Subject: Re: xen-unstable stubdom build-failure when debug=n Date: Mon, 21 Jul 2014 18:31:26 +0200 Message-ID: <20140721163126.GA26816@aepfle.de> References: <223502494.20140717102731@eikelenboom.it> <1405606391.1977.6.camel@kazak.uk.xensource.com> <598019223.20140717162519@eikelenboom.it> <1405959204.13494.0.camel@kazak.uk.xensource.com> <20140721162118.GA20873@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X9GUr-0002sj-Kw for xen-devel@lists.xenproject.org; Mon, 21 Jul 2014 16:31:29 +0000 Content-Disposition: inline In-Reply-To: <20140721162118.GA20873@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Sander Eikelenboom , stefano.stabellini@eu.citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Mon, Jul 21, Olaf Hering wrote: > On Mon, Jul 21, Ian Campbell wrote: > > > If that were the case then I'd expect > > git clean -ffffdqx && ./configure && make debug=n ; make debug=n > > to work as well, which it doesn't seem to. > > > > My guest is that turning off debug increases the optimisation level > > which somehow makes gcc decide this code is now wrong. > > How does stubdom the build tests anyway? Here is the actual log: [ 6%] Building C object tpm/CMakeFiles/tpm.dir/tpm_credentials.o cd /home/olaf/work/github/olafhering/xen/stubdom/tpm_emulator-x86_64/build/tpm && /usr/bin/gcc -std=c99 -DTPM_NO_EXTERN -isystem /home/olaf/work/github/olafhering/xen/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /home/olaf/work/github/olafhering/xen/stubdom/../extras/mini-os/include/posix -isystem /home/olaf/work/github/olafhering/xen/stubdom/../tools/xenstore -isystem /home/olaf/work/github/olafhering/xen/stubdom/../extras/mini-os/include/x86 -isystem /home/olaf/work/github/olafhering/xen/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /home/olaf/work/github/olafhering/xen/stubdom/../extras/mini-os/include/posix -isystem /home/olaf/work/github/olafhering/xen/stubdom/cross-root-x86_64/x86_64-xen-elf/include -i system /usr/lib64/gcc/x86_64-suse-linux/4.3/include -isystem /home/olaf/work/github/olafhering/xen/stubdom/lwip-x86_64/src/include -isystem /home/olaf/work/github/olafhering/xen/stubdom/lwip-x86_64/src/include/ipv4 -I/home/olaf/work/github/olafhering/xen/stubdom/include -I/home/olaf/work/github/olafhering/xen/stubdom/../xen/include -mno-red-zone -O2 -O1 -fomit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -fno-stack-protector -fno-exceptions -Wno-declaration-after-statement -I/opt/local/include -I/home/olaf/work/github/olafhering/xen/stubdom/tpm_emulator-x86_64 -I/home/olaf/work/github/olafhering/xen/stubdom/tpm_emulator-x86_64/build -Wall -Werror -Wno- unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings -Wextra -o CMakeFiles/tpm.dir/tpm_credentials.o -c /home/olaf/work/github/olafhering/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_credentials.c cc1: warnings being treated as errors /home/olaf/work/github/olafhering/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_credentials.c: In function 'TPM_CreateEndorsementKeyPair': /home/olaf/work/github/olafhering/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_credentials.c:52: error: unused parameter 'antiReplay' /home/olaf/work/github/olafhering/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_credentials.c:53: error: unused parameter 'keyInfo' /home/olaf/work/github/olafhering/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_credentials.c:54: error: unused parameter 'pubEndorsementKey' /home/olaf/work/github/olafhering/xen/stubdom/tpm_emulator-x86_64/tpm/tpm_credentials.c:55: error: unused parameter 'checksum' make[5]: *** [tpm/CMakeFiles/tpm.dir/tpm_credentials.o] Error 1 Why does that only fail for me? Is "-Wall -Werror -Wextra" different in sles11? Looks like it should fail everywhere: stubdom/tpm_emulator-x86_64/CMakeLists.txt 43 add_definitions(-Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings) 44 if("${CMAKE_SYSTEM}" MATCHES "Linux") 45 add_definitions(-Wextra) 46 endif() Olaf