Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 730208

Summary: sys-power/tuxedo-cc-wmi-0.1.4 : ln: failed to create symbolic link Module.symvers: File exists
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Marc Schiffbauer <mschiff>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
sys-power:tuxedo-cc-wmi-0.1.4:20200629-233945.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-06-30 07:29:09 UTC
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-power/tuxedo-cc-wmi-0.1.4/work/tuxedo-cc-wmi-0.1.4 ...
ln: failed to create symbolic link 'Module.symvers': File exists
 * Preparing tuxedo_cc_wmi module
make -j1 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' CC=x86_64-pc-linux-gnu-gcc KERN_DIR=/usr/src/linux KERN_VER=5.7.5-gentoo O=/usr/src/linux V=1 KBUILD_VERBOSE=1 all 
make -C /lib/modules/5.7.6/build M=/var/tmp/portage/sys-power/tuxedo-cc-wmi-0.1.4/work/tuxedo-cc-wmi-0.1.4 modules

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-libressl-20200623-041854

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.6 (fallback)
  [5]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.44.1 *
The following VMs are available for generation-2:
*)	IcedTea JDK 3.16.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon 29 Jun 2020 10:35:22 PM UTC
/var/db/repos/libressl	Fri 19 Jun 2020 10:37:45 AM UTC

emerge -qpvO sys-power/tuxedo-cc-wmi
[ebuild  N    ] sys-power/tuxedo-cc-wmi-0.1.4
Comment 1 Toralf Förster gentoo-dev 2020-06-30 07:29:13 UTC
Created attachment 647130 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-06-30 07:29:16 UTC
Created attachment 647132 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-06-30 07:29:20 UTC
Created attachment 647134 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-06-30 07:29:23 UTC
Created attachment 647136 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-06-30 07:29:26 UTC
Created attachment 647138 [details]
sys-power:tuxedo-cc-wmi-0.1.4:20200629-233945.log
Comment 6 Toralf Förster gentoo-dev 2020-06-30 07:29:30 UTC
Created attachment 647140 [details]
temp.tbz2
Comment 7 Marc Schiffbauer gentoo-dev 2020-06-30 08:57:48 UTC
I dont see a bug here. Sure the ln error is not nice. But not a problem IMO.

Do you have any suggested solution?
Comment 8 Toralf Förster gentoo-dev 2020-06-30 09:26:55 UTC
well, seems the real error which stops portage happens later:

ln: failed to create symbolic link 'Module.symvers': File exists
 * Preparing tuxedo_cc_wmi module
make -j1 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' CC=x86_64-pc-linux-gnu-gcc KERN_DIR=/usr/src/linux KERN_VER=5.7.5-gentoo O=/usr/src/linux V=1 KBUILD_VERBOSE=1 all 
make -C /lib/modules/5.7.6/build M=/var/tmp/portage/sys-power/tuxedo-cc-wmi-0.1.4/work/tuxedo-cc-wmi-0.1.4 modules
make[1]: *** /lib/modules/5.7.6/build: No such file or directory.  Stop.
make: *** [Makefile:26: all] Error 2
 * ERROR: sys-power/tuxedo-cc-wmi-0.1.4::gentoo failed (compile phase):
 *   emake failed
Comment 9 Marc Schiffbauer gentoo-dev 2020-06-30 10:18:40 UTC
Ah! Then I think it is a missing DEPEND on linux-headers
Comment 10 Marc Schiffbauer gentoo-dev 2020-06-30 10:27:00 UTC
I doubt this will fix it. The problem is propably that you have no kernel installed in the tinderbox? Normally that missing build-symlink is installed by "make modules-install" when kernel modules are being installed. But I dont see how this could be solved in the ebuild
Comment 11 Toralf Förster gentoo-dev 2020-06-30 12:04:57 UTC
well, I do emerge the Gentoo sources and do compile them (make defconfig; make), but yes, I do not *install* them.
(Never did it before, it was sufficient to have the kernel and modules just being compiled till now).
I can change the tinderbox behaviour install them if really needed, but the question is, why it worked before?
Comment 12 Marc Schiffbauer gentoo-dev 2020-06-30 14:28:38 UTC
I now understand the problem: the provided Makefile uses a (uncommon?) variable "KDIR" which defaults to "/lib/modules/$(shell uname -r)/build".

"build" is a distro-independent symlink pointing to the kernel source tree.

I will update this (and the other) ebuild to set KDIR properly which will fix the problem.

So everything should be fine with your tinderbox!

Thanks
Comment 13 Larry the Git Cow gentoo-dev 2020-06-30 14:38:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edd3344582c85ab8d5c5224b6b7b65256ea6f7b2

commit edd3344582c85ab8d5c5224b6b7b65256ea6f7b2
Author:     Marc Schiffbauer <mschiff@gentoo.org>
AuthorDate: 2020-06-30 14:37:31 +0000
Commit:     Marc Schiffbauer <mschiff@gentoo.org>
CommitDate: 2020-06-30 14:38:07 +0000

    sys-power/tuxedo-cc-wmi: fix bug #730208
    
    Closes: https://bugs.gentoo.org/730208
    Package-Manager: Portage-2.3.99, Repoman-2.3.23
    Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>

 sys-power/tuxedo-cc-wmi/tuxedo-cc-wmi-0.1.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)