All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
To: linux-ia64@vger.kernel.org
Subject: Re: vmlinux link failure on ia64 with zstd
Date: Tue, 23 Mar 2021 16:28:07 +0000	[thread overview]
Message-ID: <bf540b24-6111-6523-17f6-aac21349fd8b@physik.fu-berlin.de> (raw)
In-Reply-To: <f0a93b2d435252b3878ce821142677754f5e434c.camel@decadent.org.uk>

Hi Ben!

On 9/13/20 9:51 PM, Ben Hutchings wrote:
> Enabling CONFIG_RD_ZSTD (which is enabled by default) resulted in a
> link failure on ia64:
> 
> + ld -r -o vmlinux.o --whole-archive arch/ia64/kernel/head.o init/built-in.a usr/built-in.a arch/ia64/kernel/built-in.a arch/ia64/mm/built-in.a kernel/built-in.a certs/built-in.a mm/built-in.a fs/built-in.a ipc/built-in.a security/built-in.a crypto/built-in.a block/built-in.a lib/built-in.a arch/ia64/lib/built-in.a lib/lib.a arch/ia64/lib/lib.a drivers/built-in.a sound/built-in.a net/built-in.a virt/built-in.a arch/ia64/pci/built-in.a arch/ia64/hp/common/built-in.a --no-whole-archive --start-group --end-group
> ld: lib/zstd/entropy_common.o: linking constant-gp files with non-constant-gp files
> ld: failed to merge target specific data of file lib/zstd/entropy_common.o
> ld: lib/zstd/fse_decompress.o: linking constant-gp files with non-constant-gp files
> ld: failed to merge target specific data of file lib/zstd/fse_decompress.o
> ld: lib/zstd/zstd_common.o: linking constant-gp files with non-constant-gp files
> ld: failed to merge target specific data of file lib/zstd/zstd_common.o

It was suggested on IRC (#debian-ports) that we need to pass "-mconstant-gp" to GCC at
the right places and it seems this issue existed before in the past [1]. Fix seems
trivial.

Adrian

> [1] https://marc.info/?l=linux-kbuild&m\x133643269731499&w=2

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

      parent reply	other threads:[~2021-03-23 16:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-13 19:51 vmlinux link failure on ia64 with zstd Ben Hutchings
2020-09-14 19:12 ` Nick Terrell
2020-09-14 19:12   ` Nick Terrell
2020-09-15  6:48   ` Masahiro Yamada
2020-09-15  6:48     ` Masahiro Yamada
2020-09-15  6:52     ` Nick Terrell
2020-09-15  6:52       ` Nick Terrell
2020-11-30 12:27     ` John Paul Adrian Glaubitz
2020-11-30 12:27       ` John Paul Adrian Glaubitz
2021-03-23 16:28 ` John Paul Adrian Glaubitz [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=bf540b24-6111-6523-17f6-aac21349fd8b@physik.fu-berlin.de \
    --to=glaubitz@physik.fu-berlin.de \
    --cc=linux-ia64@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.