llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Nathan Chancellor <nathan@kernel.org>
To: Sagi Grimberg <sagi@grimberg.me>
Cc: kernel test robot <lkp@intel.com>,
	llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Max Gurtovoy <mgurtovoy@nvidia.com>,
	Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>,
	Christoph Hellwig <hch@lst.de>, Sasha Levin <sashal@kernel.org>
Subject: Re: [stable:linux-5.4.y 5319/9999] ld.lld: error: drivers/nvme/host/core.o: contains a compressed section, but zlib is not available
Date: Tue, 4 Apr 2023 09:17:35 -0700	[thread overview]
Message-ID: <20230404161735.GA1703291@dev-arch.thelio-3990X> (raw)
In-Reply-To: <27cc24d8-c7f4-66b8-954c-d3cb11b5764f@grimberg.me>

On Mon, Apr 03, 2023 at 07:02:30PM +0300, Sagi Grimberg wrote:
> 
> > Hi Sagi,
> > 
> > First bad commit (maybe != root cause):
> > 
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y
> > head:   09b1a76e7879184fb35d71a221cae9451b895fff
> > commit: 3e9aa125f69c0006d10f101898932acedc942b59 [5319/9999] nvme-tcp: remove incorrect Kconfig dep in BLK_DEV_NVME
> 
> The failure looks unrelated to the commit IMO. Is it maybe some issue
> with clang linkage with zlib?

Yeah, this is obviously not related to that change. As far as I can
tell, this means that the version of LLVM was compiled in an environment
without zlib. However, I am super confused because linux-5.4.y does not
even have commit 10e68b02c861 ("Makefile: support compressed debug
info") so we should not even be generating compressed debug sections in
the first place...

If I understand the robot's build script correctly, this should be clang
as the compiler and GNU as as the assembler. Is the version of GNU as
the robot is using built with '--enable-compressed-debug-sections',
which would turn compressed debug sections on by default? If so, we
should be able to override that by specifying '-gz=none' explicitly in
linux-5.4.y and earlier.

Cheersm
Nathan

> > config: x86_64-randconfig-a001-20230403 (https://download.01.org/0day-ci/archive/20230403/202304032219.jG1sChqf-lkp@intel.com/config)
> > compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
> > reproduce (this is a W=1 build):
> >          wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> >          chmod +x ~/bin/make.cross
> >          # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=3e9aa125f69c0006d10f101898932acedc942b59
> >          git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
> >          git fetch --no-tags stable linux-5.4.y
> >          git checkout 3e9aa125f69c0006d10f101898932acedc942b59
> >          # save the config file
> >          mkdir build_dir && cp config build_dir/.config
> >          COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
> >          COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/nvme/
> > 
> > If you fix the issue, kindly add following tag where applicable
> > | Reported-by: kernel test robot <lkp@intel.com>
> > | Link: https://lore.kernel.org/oe-kbuild-all/202304032219.jG1sChqf-lkp@intel.com/
> > 
> > All errors (new ones prefixed by >>):
> > 
> > > > ld.lld: error: drivers/nvme/host/core.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/core.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/core.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/core.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/core.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/core.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/core.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/trace.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/trace.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/trace.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/trace.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/trace.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/trace.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/trace.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/multipath.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/multipath.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/multipath.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/multipath.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/multipath.o: contains a compressed section, but zlib is not available
> > > > ld.lld: error: drivers/nvme/host/multipath.o: contains a compressed section, but zlib is not available
> >     ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
> > 
> 

      reply	other threads:[~2023-04-04 16:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-03 14:20 [stable:linux-5.4.y 5319/9999] ld.lld: error: drivers/nvme/host/core.o: contains a compressed section, but zlib is not available kernel test robot
2023-04-03 16:02 ` Sagi Grimberg
2023-04-04 16:17   ` Nathan Chancellor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230404161735.GA1703291@dev-arch.thelio-3990X \
    --to=nathan@kernel.org \
    --cc=chaitanya.kulkarni@wdc.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hch@lst.de \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=mgurtovoy@nvidia.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sagi@grimberg.me \
    --cc=sashal@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).