All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-stable-rc:linux-3.16.y 2872/3488] head64.c:undefined reference to `__gcov_exit'
@ 2018-02-16 18:21 kbuild test robot
  2018-02-16 20:28 ` Arnd Bergmann
  0 siblings, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2018-02-16 18:21 UTC (permalink / raw)
  To: Andrey Ryabinin
  Cc: kbuild-all, Ben Hutchings, Andrey Konovalov, Andrew Morton,
	Linux Memory Management List, Greg Kroah-Hartman, Arnd Bergmann

[-- Attachment #1: Type: text/plain, Size: 1600 bytes --]

Hi Andrey,

It's probably a bug fix that unveils the link errors.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-3.16.y
head:   0b9f4cdd4d75131d8886b919bbf6e0c98906d36e
commit: 3cb0dc19883f0c69225311d4f76aa8128d3681a4 [2872/3488] module: fix types of device tables aliases
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 3cb0dc19883f0c69225311d4f76aa8128d3681a4
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   arch/x86/kernel/head64.o: In function `_GLOBAL__sub_D_00100_1_early_pmd_flags':
>> head64.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
   arch/x86/kernel/head.o: In function `_GLOBAL__sub_D_00100_1_reserve_ebda_region':
   head.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
   init/built-in.o: In function `_GLOBAL__sub_D_00100_1___ksymtab_system_state':
   main.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
   init/built-in.o: In function `_GLOBAL__sub_D_00100_1_root_mountflags':
   do_mounts.c:(.text.exit+0x10): undefined reference to `__gcov_exit'
   init/built-in.o: In function `_GLOBAL__sub_D_00100_1_initrd_load':
   do_mounts_initrd.c:(.text.exit+0x1b): undefined reference to `__gcov_exit'
   init/built-in.o:initramfs.c:(.text.exit+0x26): more undefined references to `__gcov_exit' follow

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 44074 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-stable-rc:linux-3.16.y 2872/3488] head64.c:undefined reference to `__gcov_exit'
  2018-02-16 18:21 [linux-stable-rc:linux-3.16.y 2872/3488] head64.c:undefined reference to `__gcov_exit' kbuild test robot
@ 2018-02-16 20:28 ` Arnd Bergmann
  2018-11-11  1:38     ` Ben Hutchings
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2018-02-16 20:28 UTC (permalink / raw)
  To: kbuild test robot
  Cc: Andrey Ryabinin, kbuild-all, Ben Hutchings, Andrey Konovalov,
	Andrew Morton, Linux Memory Management List, Greg Kroah-Hartman,
	stable

On Fri, Feb 16, 2018 at 7:21 PM, kbuild test robot
<fengguang.wu@intel.com> wrote:
> Hi Andrey,
>
> It's probably a bug fix that unveils the link errors.
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-3.16.y
> head:   0b9f4cdd4d75131d8886b919bbf6e0c98906d36e
> commit: 3cb0dc19883f0c69225311d4f76aa8128d3681a4 [2872/3488] module: fix types of device tables aliases
> config: x86_64-allmodconfig (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
> reproduce:
>         git checkout 3cb0dc19883f0c69225311d4f76aa8128d3681a4
>         # save the attached .config to linux build tree
>         make ARCH=x86_64
>
> All errors (new ones prefixed by >>):
>
>    arch/x86/kernel/head64.o: In function `_GLOBAL__sub_D_00100_1_early_pmd_flags':
>>> head64.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
>    arch/x86/kernel/head.o: In function `_GLOBAL__sub_D_00100_1_reserve_ebda_region':
>    head.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
>    init/built-in.o: In function `_GLOBAL__sub_D_00100_1___ksymtab_system_state':
>    main.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
>    init/built-in.o: In function `_GLOBAL__sub_D_00100_1_root_mountflags':
>    do_mounts.c:(.text.exit+0x10): undefined reference to `__gcov_exit'
>    init/built-in.o: In function `_GLOBAL__sub_D_00100_1_initrd_load':
>    do_mounts_initrd.c:(.text.exit+0x1b): undefined reference to `__gcov_exit'
>    init/built-in.o:initramfs.c:(.text.exit+0x26): more undefined references to `__gcov_exit' follow

I think this is a result of using a too new compiler with the old 3.16
kernel. In order
to build with gcc-7.3, you need to backport

05384213436a ("gcov: support GCC 7.1")

It's already part of stable-3.18 and later, but not 3.2 and 3.16.

      Arnd

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-stable-rc:linux-3.16.y 2872/3488] head64.c:undefined reference to `__gcov_exit'
  2018-02-16 20:28 ` Arnd Bergmann
@ 2018-11-11  1:38     ` Ben Hutchings
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Hutchings @ 2018-11-11  1:38 UTC (permalink / raw)
  To: Arnd Bergmann, kbuild test robot
  Cc: Andrey Ryabinin, kbuild-all, Ben Hutchings, Andrey Konovalov,
	Andrew Morton, Linux Memory Management List, Greg Kroah-Hartman,
	stable

[-- Attachment #1: Type: text/plain, Size: 1652 bytes --]

On Fri, 2018-02-16 at 21:28 +0100, Arnd Bergmann wrote:
> On Fri, Feb 16, 2018 at 7:21 PM, kbuild test robot
> <fengguang.wu@intel.com> wrote:
[...]
> > All errors (new ones prefixed by >>):
> > 
> >    arch/x86/kernel/head64.o: In function `_GLOBAL__sub_D_00100_1_early_pmd_flags':
> > > > head64.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
> >    arch/x86/kernel/head.o: In function `_GLOBAL__sub_D_00100_1_reserve_ebda_region':
> >    head.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
> >    init/built-in.o: In function `_GLOBAL__sub_D_00100_1___ksymtab_system_state':
> >    main.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
> >    init/built-in.o: In function `_GLOBAL__sub_D_00100_1_root_mountflags':
> >    do_mounts.c:(.text.exit+0x10): undefined reference to `__gcov_exit'
> >    init/built-in.o: In function `_GLOBAL__sub_D_00100_1_initrd_load':
> >    do_mounts_initrd.c:(.text.exit+0x1b): undefined reference to `__gcov_exit'
> >    init/built-in.o:initramfs.c:(.text.exit+0x26): more undefined references to `__gcov_exit' follow
> 
> I think this is a result of using a too new compiler with the old 3.16
> kernel. In order
> to build with gcc-7.3, you need to backport
> 
> 05384213436a ("gcov: support GCC 7.1")
> 
> It's already part of stable-3.18 and later, but not 3.2 and 3.16.

Thanks.  I've queued up the following for 3.16:

3e44c471a2da gcov: add support for GCC 5.1
d02038f97253 gcov: add support for gcc version >= 6
05384213436a gcov: support GCC 7.1

Ben.

-- 
Ben Hutchings
Reality is just a crutch for people who can't handle science fiction.



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-stable-rc:linux-3.16.y 2872/3488] head64.c:undefined reference to `__gcov_exit'
@ 2018-11-11  1:38     ` Ben Hutchings
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Hutchings @ 2018-11-11  1:38 UTC (permalink / raw)
  To: Arnd Bergmann, kbuild test robot
  Cc: Andrey Ryabinin, kbuild-all, Ben Hutchings, Andrey Konovalov,
	Andrew Morton, Linux Memory Management List, Greg Kroah-Hartman,
	stable

[-- Attachment #1: Type: text/plain, Size: 1652 bytes --]

On Fri, 2018-02-16 at 21:28 +0100, Arnd Bergmann wrote:
> On Fri, Feb 16, 2018 at 7:21 PM, kbuild test robot
> <fengguang.wu@intel.com> wrote:
[...]
> > All errors (new ones prefixed by >>):
> > 
> >    arch/x86/kernel/head64.o: In function `_GLOBAL__sub_D_00100_1_early_pmd_flags':
> > > > head64.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
> >    arch/x86/kernel/head.o: In function `_GLOBAL__sub_D_00100_1_reserve_ebda_region':
> >    head.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
> >    init/built-in.o: In function `_GLOBAL__sub_D_00100_1___ksymtab_system_state':
> >    main.c:(.text.exit+0x5): undefined reference to `__gcov_exit'
> >    init/built-in.o: In function `_GLOBAL__sub_D_00100_1_root_mountflags':
> >    do_mounts.c:(.text.exit+0x10): undefined reference to `__gcov_exit'
> >    init/built-in.o: In function `_GLOBAL__sub_D_00100_1_initrd_load':
> >    do_mounts_initrd.c:(.text.exit+0x1b): undefined reference to `__gcov_exit'
> >    init/built-in.o:initramfs.c:(.text.exit+0x26): more undefined references to `__gcov_exit' follow
> 
> I think this is a result of using a too new compiler with the old 3.16
> kernel. In order
> to build with gcc-7.3, you need to backport
> 
> 05384213436a ("gcov: support GCC 7.1")
> 
> It's already part of stable-3.18 and later, but not 3.2 and 3.16.

Thanks.  I've queued up the following for 3.16:

3e44c471a2da gcov: add support for GCC 5.1
d02038f97253 gcov: add support for gcc version >= 6
05384213436a gcov: support GCC 7.1

Ben.

-- 
Ben Hutchings
Reality is just a crutch for people who can't handle science fiction.



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-11-11  1:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16 18:21 [linux-stable-rc:linux-3.16.y 2872/3488] head64.c:undefined reference to `__gcov_exit' kbuild test robot
2018-02-16 20:28 ` Arnd Bergmann
2018-11-11  1:38   ` Ben Hutchings
2018-11-11  1:38     ` Ben Hutchings

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.