Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16ED7C433EF for ; Tue, 9 Nov 2021 18:33:50 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0778F61177 for ; Tue, 9 Nov 2021 18:33:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0778F61177 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kaa.org.ua Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AAEDA83958; Tue, 9 Nov 2021 19:33:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=kaa.org.ua Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D6C0E83958; Tue, 9 Nov 2021 19:33:43 +0100 (CET) Received: from smtp.220.in.ua (smtp.220.in.ua [89.184.67.205]) by phobos.denx.de (Postfix) with ESMTP id DE3BA83944 for ; Tue, 9 Nov 2021 19:33:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=kaa.org.ua Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=oleg@kaa.org.ua Received: from [192.168.202.100] (unknown [95.67.115.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.220.in.ua (Postfix) with ESMTPSA id EA9EF1A204A0; Tue, 9 Nov 2021 20:33:38 +0200 (EET) From: Oleh Kravchenko To: "u-boot@lists.denx.de" Cc: Simon Glass , Tom Rini , Ilias Apalodimas , Alexandru Gagniuc Subject: U-boot is broken with -O0? Message-ID: <49ccdaa5-88ed-db3c-00bb-e005844697d3@kaa.org.ua> Date: Tue, 9 Nov 2021 20:33:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------C84B4B5FC56A1CAA418BC7FF" Content-Language: uk-UA X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This is a multi-part message in MIME format. --------------C84B4B5FC56A1CAA418BC7FF Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello guys! I think the CI verification job for u-boot patches should be updated to i= nclude CFLAGS like -O0 Because I'm not able to build u-boot for Raspberry Pi (or to another boar= d) with -O0 Here the commands how to quickly reprodice the problem: =C2=A0=C2=A0=C2=A0 export ARCH=3Darm64 =C2=A0=C2=A0=C2=A0 export CROSS_COMPILE=3Daarch64-linux-gnueabi- =C2=A0=C2=A0=C2=A0 export KCFLAGS=3D-O0 =C2=A0=C2=A0=C2=A0 make rpi_4_defconfig =C2=A0=C2=A0=C2=A0 make -j$(nproc) I've attached part of the build log to this email. P.S.: Sorry if I've added you to CC by mistake. --------------C84B4B5FC56A1CAA418BC7FF Content-Type: text/x-log; charset=UTF-8; name="build.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="build.log" In file included from drivers/pci/pcie_brcmstb.c:21: In function 'field_multiplier', inlined from 'field_mask' at include/linux/bitfield.h:121:17, inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_set_outbound_win' at drivers/pci/pcie_brcmstb= =2Ec:408:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ In function 'field_multiplier', inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_set_outbound_win' at drivers/pci/pcie_brcmstb= =2Ec:408:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ In function 'field_multiplier', inlined from 'field_mask' at include/linux/bitfield.h:121:17, inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_set_outbound_win' at drivers/pci/pcie_brcmstb= =2Ec:410:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ In function 'field_multiplier', inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_set_outbound_win' at drivers/pci/pcie_brcmstb= =2Ec:410:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ In function 'field_multiplier', inlined from 'field_mask' at include/linux/bitfield.h:121:17, inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_set_outbound_win' at drivers/pci/pcie_brcmstb= =2Ec:418:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ In function 'field_multiplier', inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_set_outbound_win' at drivers/pci/pcie_brcmstb= =2Ec:418:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ In function 'field_multiplier', inlined from 'field_mask' at include/linux/bitfield.h:121:17, inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_set_outbound_win' at drivers/pci/pcie_brcmstb= =2Ec:424:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ In function 'field_multiplier', inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_set_outbound_win' at drivers/pci/pcie_brcmstb= =2Ec:424:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ In function 'field_multiplier', inlined from 'field_mask' at include/linux/bitfield.h:121:17, inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_probe' at drivers/pci/pcie_brcmstb.c:478:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ In function 'field_multiplier', inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_probe' at drivers/pci/pcie_brcmstb.c:478:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ In function 'field_multiplier', inlined from 'field_mask' at include/linux/bitfield.h:121:17, inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_probe' at drivers/pci/pcie_brcmstb.c:488:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ In function 'field_multiplier', inlined from 'u32_encode_bits' at include/linux/bitfield.h:153:1, inlined from 'u32p_replace_bits' at include/linux/bitfield.h:153:1, inlined from 'brcm_pcie_probe' at drivers/pci/pcie_brcmstb.c:488:2: include/linux/bitfield.h:115:3: error: call to '__bad_mask' declared with= attribute error: bad bitfield mask 115 | __bad_mask(); | ^~~~~~~~~~~~ LD drivers/rng/built-in.o make[2]: *** [scripts/Makefile.build:266: drivers/pci/pcie_brcmstb.o] Err= or 1 make[1]: *** [scripts/Makefile.build:419: drivers/pci] Error 2 make[1]: *** Waiting for unfinished jobs.... CC drivers/usb/gadget/udc/udc-core.o CC drivers/usb/host/usb-uclass.o CC drivers/usb/host/xhci.o CC drivers/usb/host/xhci-mem.o CC drivers/usb/host/xhci-ring.o CC drivers/usb/host/xhci-pci.o CC fs/fs.o CC fs/fs_internal.o CC env/env.o CC env/common.o CC fs/fat/fat_write.o LD drivers/video/built-in.o CC fs/ext4/ext4fs.o CC net/arp.o make: *** [Makefile:1730: drivers] Error 2 make: *** Waiting for unfinished jobs.... CC net/bootp.o In file included from include/dm/device_compat.h:15, from drivers/usb/gadget/udc/udc-core.c:16: drivers/usb/gadget/udc/udc-core.c: In function 'usb_gadget_remove_driver'= : include/linux/build_bug.h:67:51: error: size of unnamed array is negative= 67 | #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condi= tion)])) | ^ include/dm/device_compat.h:87:3: note: in expansion of macro 'BUILD_BUG_O= N' 87 | BUILD_BUG_ON(!__same_type(dev, struct udevice *)); \ | ^~~~~~~~~~~~ include/dm/device_compat.h:117:2: note: in expansion of macro '__dev_prin= tk' 117 | __dev_printk(LOGL_DEBUG, dev, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~ drivers/usb/gadget/udc/udc-core.c:227:2: note: in expansion of macro 'dev= _dbg' 227 | dev_dbg(&udc->dev, "unregistering UDC driver [%s]\n", | ^~~~~~~ drivers/usb/gadget/udc/udc-core.c: In function 'usb_del_gadget_udc': include/linux/build_bug.h:67:51: error: size of unnamed array is negative= 67 | #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condi= tion)])) | ^ include/dm/device_compat.h:87:3: note: in expansion of macro 'BUILD_BUG_O= N' 87 | BUILD_BUG_ON(!__same_type(dev, struct udevice *)); \ | ^~~~~~~~~~~~ include/dm/device_compat.h:109:2: note: in expansion of macro '__dev_prin= tk' 109 | __dev_printk(LOGL_ERR, dev, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~ drivers/usb/gadget/udc/udc-core.c:254:2: note: in expansion of macro 'dev= _err' 254 | dev_err(gadget->dev.parent, "gadget not registered.\n"); | ^~~~~~~ include/linux/build_bug.h:67:51: error: size of unnamed array is negative= 67 | #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condi= tion)])) | ^ include/dm/device_compat.h:87:3: note: in expansion of macro 'BUILD_BUG_O= N' 87 | BUILD_BUG_ON(!__same_type(dev, struct udevice *)); \ | ^~~~~~~~~~~~ include/dm/device_compat.h:119:2: note: in expansion of macro '__dev_prin= tk' 119 | __dev_printk(LOGL_DEBUG_CONTENT, dev, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~ drivers/usb/gadget/udc/udc-core.c:260:2: note: in expansion of macro 'dev= _vdbg' 260 | dev_vdbg(gadget->dev.parent, "unregistering gadget\n"); | ^~~~~~~~ drivers/usb/gadget/udc/udc-core.c: In function 'udc_bind_to_driver': include/linux/build_bug.h:67:51: error: size of unnamed array is negative= 67 | #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condi= tion)])) | ^ include/dm/device_compat.h:87:3: note: in expansion of macro 'BUILD_BUG_O= N' 87 | BUILD_BUG_ON(!__same_type(dev, struct udevice *)); \ | ^~~~~~~~~~~~ include/dm/device_compat.h:117:2: note: in expansion of macro '__dev_prin= tk' 117 | __dev_printk(LOGL_DEBUG, dev, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~ drivers/usb/gadget/udc/udc-core.c:297:2: note: in expansion of macro 'dev= _dbg' 297 | dev_dbg(&udc->dev, "registering UDC driver [%s]\n", | ^~~~~~~ include/linux/build_bug.h:67:51: error: size of unnamed array is negative= 67 | #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condi= tion)])) | ^ include/dm/device_compat.h:87:3: note: in expansion of macro 'BUILD_BUG_O= N' 87 | BUILD_BUG_ON(!__same_type(dev, struct udevice *)); \ | ^~~~~~~~~~~~ include/dm/device_compat.h:109:2: note: in expansion of macro '__dev_prin= tk' 109 | __dev_printk(LOGL_ERR, dev, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~ drivers/usb/gadget/udc/udc-core.c:317:3: note: in expansion of macro 'dev= _err' 317 | dev_err(&udc->dev, "failed to start %s: %d\n", | ^~~~~~~ make[1]: *** [scripts/Makefile.build:266: drivers/usb/gadget/udc/udc-core= =2Eo] Error 1 make: *** [Makefile:1730: drivers/usb/gadget/udc] Error 2 --------------C84B4B5FC56A1CAA418BC7FF--