Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880857 - sys-fs/vhba fails to compare kernel compiler from current
Summary: sys-fs/vhba fails to compare kernel compiler from current
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-10 23:42 UTC by CaptainBlood
Modified: 2023-10-01 14:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2022-11-10 23:42:36 UTC
>>> Emerging (1 of 1) sys-fs/vhba-20211218-r1::local-repo
 * vhba-module-20211218.tar.xz BLAKE2B SHA512 size ;-) ...               [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     6.0.8-gentoo-ipwire
 * Checking for suitable kernel configuration options ...
 [ ok ]
 * Checking for suitable kernel configuration options ...
 [ ok ]
>>> Unpacking source...
>>> Unpacking vhba-module-20211218.tar.xz to /var/tmp/portage/sys-fs/vhba-20211218-r1/work
>>> Source unpacked in /var/tmp/portage/sys-fs/vhba-20211218-r1/work
>>> Preparing source in /var/tmp/portage/sys-fs/vhba-20211218-r1/work/vhba-module-20211218 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-fs/vhba-20211218-r1/work/vhba-module-20211218 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-fs/vhba-20211218-r1/work/vhba-module-20211218 ...
ln: failed to create symbolic link 'Module.symvers': File exists
 * Preparing vhba module
make -j3 -l3 HOSTCC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-m elf_x86_64' KDIR=/usr/src/linux modules 
make -C /usr/src/linux M=/var/tmp/portage/sys-fs/vhba-20211218-r1/work/vhba-module-20211218 modules
make[1]: Entering directory '/usr/src/linux-6.0.8-gentoo'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Gentoo 12.2.1_p20221008 p1) 12.2.1 20221008
  You are using:           x86_64-pc-linux-gnu-gcc (Gentoo 12.2.1_p20221008 p1) 12.2.1 20221008

Maybe I'm missing something somewhere...

Reproducible: Always
Comment 1 CaptainBlood 2023-01-25 12:07:47 UTC
Same goes with other external module, e.g. net-misc/r8168.
Cf https://bugs.gentoo.org/892003
Comment 2 CaptainBlood 2023-01-25 12:53:29 UTC
Sorry, the above reference link content is faulty.

Here's a valid snippet instead:

make -C /usr/src/linux M=/var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src modules
make[1]: Entering directory '/usr/src/linux-5.15.86-gentoo'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Gentoo 12.2.1_p20230121-r1 p10) 12.2.1 20230121
  You are using:           x86_64-pc-linux-gnu-gcc (Gentoo 12.2.1_p20230121-r1 p10) 12.2.1 20230121
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-26 06:52:30 UTC
How are you building your kernel? If doing it manually, it probably calls gcc via 'gcc' and not the full tuple name, while ebuilds prefer it in full as behaviour can vary.

CONFIG_CC_VERSION_TEXT in e.g. /proc/config.gz should tell you. In any case, it's not a problem, just noisy.
Comment 4 Andrey Aleksandrovich 2023-02-17 19:47:09 UTC
(In reply to Sam James from comment #3)
> How are you building your kernel? If doing it manually, it probably calls
> gcc via 'gcc' and not the full tuple name, while ebuilds prefer it in full
> as behaviour can vary.
> 
> CONFIG_CC_VERSION_TEXT in e.g. /proc/config.gz should tell you. In any case,
> it's not a problem, just noisy.

Same here. I'm building kernel manually (make install).
Which command to use to get the same compiler names?
Comment 5 CaptainBlood 2023-10-01 14:30:09 UTC
Seems fixed as it doesn't occur any longer in sys-fs/vhba-20211218-r2.
Closing