From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1hNhSt-00083M-0q for mharc-grub-devel@gnu.org; Mon, 06 May 2019 13:31:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNhSp-00082R-Ie for grub-devel@gnu.org; Mon, 06 May 2019 13:31:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNhSn-0008BS-NQ for grub-devel@gnu.org; Mon, 06 May 2019 13:31:43 -0400 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]:40544) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNhSn-00089e-IL for grub-devel@gnu.org; Mon, 06 May 2019 13:31:41 -0400 Received: by mail-ot1-x343.google.com with SMTP id w6so12226029otl.7 for ; Mon, 06 May 2019 10:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=MUj5bP7UvxA/2c0iOR+t0hp4HOf4ldwyPI+utu9Ci08=; b=mPmqhwss/N2si7Tb/iluPuivYzJOOEvVkiUQsElVThgr46W4NP3yO9mje5P1ix7sb5 FZA3PM9DREvzLkNHeFKRfGJkm4HtBxaEI35eFNKamId5nvCWjo54FY8udi5M3tw4yaLn VRqSEvQQyjIziqD+QzAL0IsVHMo+gzwIdMC4PSodbUtGkmTXw5okOb/7ozDmeRO4Z3Mv tW8FaXpbbfpuANCMWSc9j/GUPp7k4eN2Csqz7/O6D4apPsGLbEMmuq88kDH4kkpo7BZQ yLRXYSt+/HvtVUIVk4NWa4NfhFj6ebJ3WOFbfEv0dgFKs1ee6Pr17aLp76fksw9jmIeF qPyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MUj5bP7UvxA/2c0iOR+t0hp4HOf4ldwyPI+utu9Ci08=; b=HB/rTQT+x8XJ7epjHeq+9f8ik0alq3NnyTj++Das6QcZjsdz6HK8E9nXOMjCbox/fU siOpqO9DNOvRpHpEMpIIUWwTy5c3prTxC+mpiw4m4+0P3h3Iv9BJGuDRq9NgmsUFGGD5 zLTzIaK/v8ycg5YpWDQ/GO69uHacOPXfCGuPABW3TYnGaCFgTNy8w8WhcJoXTNv2FxpK XWaVnduMl+aE2voQnQyLIWQiVJjURaDKsMDzBEO/2SpkJKK/hn/zT4r2p6i4H3Ulc6zF 1KecwaBffQCEYSKEyzWJDvsC4KkhxM71EaVKKT+kQ8GTjGpMYnEwU0JP8TGtXEFmUF9Q juxw== X-Gm-Message-State: APjAAAVpwFrrZF+D+AbUiJ8HgQyThLIM+uk7lFGMRFKzeVzBNQgDiCzd 1OTshJ6frYXyq6GtP0ttLVKwcfas X-Google-Smtp-Source: APXvYqxrL/U7XeKzJbFeZAduuAJDEdLkdLqP5V0B+GB2vKEwzIAQemDCHdcGkEGDBYZ4zsYbdSbkow== X-Received: by 2002:a9d:7f92:: with SMTP id t18mr16828546otp.37.1557163897621; Mon, 06 May 2019 10:31:37 -0700 (PDT) Received: from [192.168.0.84] (cpe-70-123-227-116.satx.res.rr.com. [70.123.227.116]) by smtp.gmail.com with ESMTPSA id p8sm4817503oib.9.2019.05.06.10.31.35 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 10:31:36 -0700 (PDT) Subject: Re: gcc9.1 and f2fs To: grub-devel@gnu.org References: From: Bruce Dubbs Message-ID: <465e92bc-d6d8-e716-2dc6-9107ac7b5349@gmail.com> Date: Mon, 6 May 2019 12:31:34 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::343 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2019 17:31:45 -0000 On 5/6/19 12:15 PM, Neil MacLeod wrote: > With the latest grub HEAD (620857c4dccb8f0548cdb855f6b2f46ebea3919e) > I'm getting the following compilation error with gcc-9.1: > > /home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.1-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc > -DHAVE_CONFIG_H -I. -Wall -W -DGRUB_UTIL=1 -D_FILE_OFFSET_BITS=64 > -I./include -DGRUB_FILE=\"grub-core/fs/xfs.c\" -I. -I. -I. -I. > -I./include -I./include -I./grub-core/lib/libgcrypt-grub/src/ > -I./grub-core/lib/minilzo -I./grub-core/lib/xzembed > -I./grub-core/lib/zstd -DMINILZO_HAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 > -fno-builtin-gettext -Wall -W -Wshadow -Wpointer-arith -Wundef > -Wchar-subscripts -Wcomment -Wdeprecated-declarations > -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal > -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit > -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces > -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type > -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs/error > -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label > -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings > -Wnested-externs -Wstrict-prototypes -Wcast-align -Wextra > -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast > -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla > -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros > -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs > -Wmissing-prototypes -Wmissing-declarations -Wformat=2 -Werror > -fno-builtin -Wno-undef > -I/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.1-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/include > -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -MT > grub-core/fs/libgrubmods_a-xfs.o -MD -MP -MF > grub-core/fs/.deps-util/libgrubmods_a-xfs.Tpo -c -o > grub-core/fs/libgrubmods_a-xfs.o `test -f 'grub-core/fs/xfs.c' || echo > './'`grub-core/fs/xfs.c > grub-core/fs/f2fs.c: In function 'grub_f2fs_label': > grub-core/fs/f2fs.c:1248:60: error: taking address of packed member of > 'struct grub_f2fs_superblock' may result in an unaligned pointer value > [-Werror=address-of-packed-member] > 1248 | *label = (char *) grub_f2fs_utf16_to_utf8 > (data->sblock.volume_name); > | ~~~~~~~~~~~~^~~~~~~~~~~~ > cc1: all warnings being treated as errors > make[3]: *** [Makefile:6943: grub-core/fs/libgrubmods_a-f2fs.o] Error 1 > make[3]: *** Waiting for unfinished jobs.... > > Does anyone have a patch? > > Full build log: http://ix.io/1Iet Try building with ./configure ... --disable-werror -- Bruce