From owner-freebsd-current@freebsd.org Sat Jan 30 12:10:51 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BA66A72D7F for ; Sat, 30 Jan 2016 12:10:51 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-lb0-x22f.google.com (mail-lb0-x22f.google.com [IPv6:2a00:1450:4010:c04::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17E1EAF8 for ; Sat, 30 Jan 2016 12:10:51 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: by mail-lb0-x22f.google.com with SMTP id cl12so53675242lbc.1 for ; Sat, 30 Jan 2016 04:10:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=TBy1lU6rSWYT4pRhaoVaRxcVuCyeCvdnrC8NqKP+dWE=; b=CyvAbmRPu4vJF1KN8dNUsaFTjLwxgPMPVgMLrjIbmmzPe+hj1zwM8eA0H/wprIf2wm I56Nuhvr9LKCdfoVuQzqE0kT3HfEKVLTrAMxTHJrmFx3KbZKmbewODDnKZa1lriby0qC 8cpeosLOGznpBeL2nzNtwgXTo+fY9+8X5X9BWl+r0SjhTjwST+0ZshFH8iAlXl0EOQUz CKkgoPuA+WmuPyJu5x/jUbRn0KF6P+tDLYVmDOlsS1k9RygWQrbW1mawJm//IHaEDLHG vTfEVBKYDqTPn8HqVxj1Z5A4HJW5zfQZR0EpbuJ4eKO4aafdUCEfyqR3emrF5MCy5gYj 58gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=TBy1lU6rSWYT4pRhaoVaRxcVuCyeCvdnrC8NqKP+dWE=; b=Xxh/dFRuLNLEpS2tT1+N3hLJxk5c6SVoyRAYkNtXJdVAVAx8xG4ozGFHz4S+8UgCYz NcTFi8dQmLFxpR9O95Bm0YrZzG8U8IdwHYWJy1y1QRLUSpIiObPNS63tTSIgtJOdLZwF hWIWIVCQAKuz+Uk96JBeAOVguRGcUNMLRlxTdoC4V/iy1u1axEjgVhP1t1SxF4pxpkpF Mxn7TPdxcNgTr+90pUWOSUf9091TDKoG+LjJn6SzcEBmUE7zPUxCUR5CILG9cjBMH9Hd fJQtA2kH5OyS2BfloRDSQkagwD4uLbr3E6lHboXGJ+fFqKwkZlM8AYlxs/FrEIAv1Izw vQFQ== X-Gm-Message-State: AG10YOQLtCWOtxx4qVmZpaIJ3ofg+9gFOFQfhz6q0KGLa0TgIpWwJDtIqL+9Ze9CVOUDcr7B5L9mlYq/8pf1Bg== X-Received: by 10.112.168.194 with SMTP id zy2mr5222162lbb.120.1454155848221; Sat, 30 Jan 2016 04:10:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.28.194 with HTTP; Sat, 30 Jan 2016 04:10:08 -0800 (PST) In-Reply-To: <20160130123907.6844f551.ohartman@zedat.fu-berlin.de> References: <20160130123907.6844f551.ohartman@zedat.fu-berlin.de> From: Outback Dingo Date: Sat, 30 Jan 2016 13:10:08 +0100 Message-ID: Subject: Re: CURRENT: buildworld failure due to nvmecontrol source error To: "O. Hartmann" Cc: FreeBSD CURRENT Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2016 12:10:51 -0000 On Sat, Jan 30, 2016 at 12:39 PM, O. Hartmann wrote: > Buildworld (r295070) fails in building nvmecontrol patches correctly: > > [...] > (cd /usr/src/lib/libc/tests/gen && DEPENDFILE=.depend.raise_test > NO_SUBDIR=1 make > -f /usr/src/lib/libc/tests/gen/Makefile _RECURSING_PROGS=t > PROG=raise_test ) --- > all_subdir_share --- ===> share/i18n/csmapper/APPLE (all) > --- all_subdir_usr.sbin --- > ===> usr.sbin/acpi/iasl (all) > --- all_subdir_sbin --- > /usr/src/sbin/nvmecontrol/power.c:44:16: error: invalid application of > 'sizeof' to an > incomplete type 'struct nvme_power_state' _Static_assert(sizeof(struct > nvme_power_state) > == 256 / NBBY, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/src/sbin/nvmecontrol/power.c:44:30: note: forward declaration of > 'struct > nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / > NBBY, > ^ > /usr/src/sbin/nvmecontrol/power.c:60:14: error: incomplete definition of > type 'struct > nvme_power_state' mpower = nps->mp; > ~~~^ > /usr/src/sbin/nvmecontrol/power.c:44:30: note: forward declaration of > 'struct > nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / > NBBY, > ^ > /usr/src/sbin/nvmecontrol/power.c:61:9: error: incomplete definition of > type 'struct > nvme_power_state' if (nps->mps == 0) > > > regards > same here to confirm cc -pg -O2 -pipe -I/backup/freebsd/kerberos5/lib/libroken/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/backup/freebsd/kerberos5/lib/libroken/../../include -std=gnu99 -fstack -protector-strong -Qunused-arguments -c /backup/freebsd/kerberos5/lib/libroken/../../../crypto/heimdal/lib/roken/eread.c -o eread.po --- all_subdir_secure --- cc -pg -O2 -pipe -I/backup/freebsd/secure/lib/libcrypto/../../../crypto/openssl -DTERMIOS -DANSI_SOURCE -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DOPENSSL_IA32_SSE2 -DAES _ASM -DBSAES_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DMD5_ASM -DGHASH_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DWHIRLPOOL_ASM -I/usr/obj/backup/freebsd/secure/lib/libcrypto -I/backup/freebsd/secure/lib/libcrypto/../../../crypto/openssl/crypto -I/backup/freebsd/secure/lib/libcrypto/../../../crypto/openssl/crypto/a sn1 -I/backup/freebsd/secure/lib/libcrypto/../../../crypto/openssl/crypto/evp -I/backup/freebsd/secure/lib/libcrypto/../../../crypto/openssl/crypto/modes -std=gnu89 -fstack-protector-strong -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conve rsion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments -c /backup/freebsd/secure/lib/libcrypto/../../../crypto/openssl /crypto/evp/m_md5.c -o m_md5.po --- all_subdir_sbin --- /backup/freebsd/sbin/nvmecontrol/power.c:44:16: error: invalid application of 'sizeof' to an incomplete type 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:60:14: error: incomplete definition of type 'struct nvme_power_state' mpower = nps->mp; ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:61:9: error: incomplete definition of type 'struct nvme_power_state' if (nps->mps == 0) ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:63:14: error: incomplete definition of type 'struct nvme_power_state' ipower = nps->idlp; ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:64:9: error: incomplete definition of type 'struct nvme_power_state' if (nps->ips == 1) ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:66:14: error: incomplete definition of type 'struct nvme_power_state' --- all_subdir_rescue --- --- dhclient_make --- --- packet.o --- --- all_subdir_sbin --- apower = nps->actp; ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:67:9: error: incomplete definition of type 'struct nvme_power_state' if (nps->aps == 1) ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:71:12: error: incomplete definition of type 'struct nvme_power_state' nps->nops ? '*' : ' ', nps->enlat / 1000, nps->enlat % 1000, ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:71:35: error: incomplete definition of type 'struct nvme_power_state' nps->nops ? '*' : ' ', nps->enlat / 1000, nps->enlat % 1000, ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:71:54: error: incomplete definition of type 'struct nvme_power_state' nps->nops ? '*' : ' ', nps->enlat / 1000, nps->enlat % 1000, ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:72:12: error: incomplete definition of type 'struct nvme_power_state' nps->exlat / 1000, nps->exlat % 1000, nps->rrt, nps->rrl, ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:72:31: error: incomplete definition of type 'struct nvme_power_state' nps->exlat / 1000, nps->exlat % 1000, nps->rrt, nps->rrl, ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:72:50: error: incomplete definition of type 'struct nvme_power_state' nps->exlat / 1000, nps->exlat % 1000, nps->rrt, nps->rrl, ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:72:60: error: incomplete definition of type 'struct nvme_power_state' nps->exlat / 1000, nps->exlat % 1000, nps->rrt, nps->rrl, ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:73:12: error: incomplete definition of type 'struct nvme_power_state' nps->rwt, nps->rwl, ipower / 10000, ipower % 10000, ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:73:22: error: incomplete definition of type 'struct nvme_power_state' nps->rwt, nps->rwl, ipower / 10000, ipower % 10000, ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:74:44: error: incomplete definition of type 'struct nvme_power_state' apower / 10000, apower % 10000, nps->apw); ~~~^ /backup/freebsd/sbin/nvmecontrol/power.c:44:30: note: forward declaration of 'struct nvme_power_state' _Static_assert(sizeof(struct nvme_power_state) == 256 / NBBY, ^ /backup/freebsd/sbin/nvmecontrol/power.c:86:29: error: no member named 'power_state' in 'struct nvme_controller_data' power_list_one(i, &cdata->power_state[i]); ~~~~~ ^ --- all_subdir_rescue --- cc -O2 -pipe -DRESCUE -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-un used-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -W no-knr-promoted-parameter -Qunused-arguments -c /backup/freebsd/sbin/dhclient/packet.c -o packet.o --- all_subdir_sbin --- 18 errors generated. *** [power.o] Error code 1 make[4]: stopped in /backup/freebsd/sbin/nvmecontrol > > oh >