You are not logged in.

#1 2016-10-27 13:49:28

Hackedia
Member
Registered: 2016-05-12
Posts: 69

[Solved] /usr/src empty

Hi guys !

Today i start pacman -Syu for updates,
Now i started vmware but he can't find any C files,

In fact, my folder /usr/src is EMPTY,
I don't understand if its normal,

In /lib/modules i got a file named 4.4.25-1-lts (wich is my kernel version),
Inside there is only a file named misc that contain the vmmon and vmnet but nothing else,
Is that nornal ?

Uname -r

4.4.25-1-lts

I don't understant where goes all thoses kernel files,

Last edited by Hackedia (2016-10-27 14:52:12)

Offline

#2 2016-10-27 13:59:05

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,817
Website

Re: [Solved] /usr/src empty

What are you expecting to be in there? On Arch /usr/src is mostly used for dkms stuff. You can check which packages on your system should have files in that directory by running

pacman -Qo /usr/src

(the filesystem package is a false positive in this case, as it just provides the directory)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-10-27 14:04:12

Hackedia
Member
Registered: 2016-05-12
Posts: 69

Re: [Solved] /usr/src empty

Hi !

Thanks for your help,

In fact vmware expect to see some kernel files, but there is nothing here,
I ran vmware yesterday and it work well,
My dependencies are fine, up to date, but vmware cant find them,

Im trying to find where there are to put a symlink, but im a bit lost in all this stuff ^^

Edit : "vmware-modconfig --console --install--all" => Failed to setup build environement.
Edit : "vmware" C header files matching your running kernel were not found.  Refer to your distribution's documentation for installation instructions.

Last edited by Hackedia (2016-10-27 14:15:56)

Offline

#4 2016-10-27 14:13:47

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,817
Website

Re: [Solved] /usr/src empty

Please post the actual errors you are getting.

https://bbs.archlinux.org/viewtopic.php?id=57855


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-10-27 14:21:04

Hackedia
Member
Registered: 2016-05-12
Posts: 69

Re: [Solved] /usr/src empty

When i run vmware :

"vmware"
C header files matching your running kernel were not found.  Refer to your distribution's documentation for installation instructions.

When i try to build the environment :

"vmware-modconfig --console --install--all"
Failed to setup build environement.

I already had this problem but i solved it by upgrading the dependencies,
Now i have certainly some links to do but im a bit lost in this stuff,

A console pop up asking me to put the C headers path files, i tryed a lot of path but it didn't work

Last edited by Hackedia (2016-10-27 14:28:10)

Offline

#6 2016-10-27 14:30:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,765

Re: [Solved] /usr/src empty

Headers are in the linux-headers package.

Offline

#7 2016-10-27 14:33:21

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,817
Website

Re: [Solved] /usr/src empty

So it looks like you're missing lts kernel header files. These are in the linux-lts-headers package. Make sure that package is installed. You should also make sure that you have the base-devel group installed.

If you still have trouble after making sure these packages are installed, post the output of

pacman -Qs "^linux"
uname -a

Last edited by WorMzy (2016-10-27 14:34:25)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2016-10-27 14:34:30

Hackedia
Member
Registered: 2016-05-12
Posts: 69

Re: [Solved] /usr/src empty

Im supposed to see a file in the /usr/src with the linux files, isn't it ?
Cause for the peoples who get the problem, they had to put a symlink from a file on this file to another sub file in this file.

But there is nothing at all hmm

Edit :
Here is my packages
(Vmware already work on my linux, i have all the dependencies)

linux 4.8.4-1
linux-headers 4.8.4-1
linux-lts 4.4.27-1
linux-lts-headers 4.4.27-1

Last edited by Hackedia (2016-10-27 14:38:29)

Offline

#9 2016-10-27 14:35:24

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,817
Website

Re: [Solved] /usr/src empty

No. I don't know what you've been reading, but blindly creating symlinks is rarely a good solution or workaround.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#10 2016-10-27 14:42:01

Hackedia
Member
Registered: 2016-05-12
Posts: 69

Re: [Solved] /usr/src empty

base devel is installed,
i have all this dependencies :

linux 4.8.4-1
linux-headers 4.8.4-1
linux-lts 4.4.27-1
linux-lts-headers 4.4.27-1

pacman -Qs "^linux"

local/iptables 1.6.0-1
    Linux kernel packet control tool
local/keyutils 1.5.9-1
    Linux Key Management Utilities
local/kmod 23-1
    Linux kernel module management tools and library
local/linux 4.8.4-1 (base)
    The Linux kernel and modules
local/linux-api-headers 4.7-1
    Kernel headers sanitized for use in userspace
local/linux-firmware 20161005.9c71af9-1
    Firmware files for Linux
local/linux-headers 4.8.4-1
    Header files and scripts for building modules for Linux kernel
local/linux-lts 4.4.27-1
    The Linux-lts kernel and modules
local/linux-lts-headers 4.4.27-1
    Header files and scripts for building modules for Linux-lts kernel
local/lirc 1:0.9.4.b-1
    Linux Infrared Remote Control utilities
local/man-pages 4.08-1 (base)
    Linux man pages

uname -a

Linux Hackedia 4.4.25-1-lts #1 SMP Sun Oct 16 19:53:04 CEST 2016 x86_64 GNU/Linux

Notice that when im trying to install linux-headers-$(uname -r)
It says
warning: linux-headers-4.8.4-1 is up to date -- reinstalling
error: target not found: 4.4.25-1-lts

Last edited by Hackedia (2016-10-27 14:44:39)

Offline

#11 2016-10-27 14:43:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,765

Re: [Solved] /usr/src empty

And using pacman -Ql, you can see where the headers are installed to. Point your program to that.

Offline

#12 2016-10-27 14:43:56

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,817
Website

Re: [Solved] /usr/src empty

Your booted kernel doesn't match the one you have installed. Have you rebooted since updating?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#13 2016-10-27 14:50:47

Hackedia
Member
Registered: 2016-05-12
Posts: 69

Re: [Solved] /usr/src empty

Ah damn !
I rebooted and all is working,

Sorry guys i didn't expected this,
Thanks for your time !
Good afternoon !

Offline

Board footer

Powered by FluxBB