You are not logged in.

#1 2013-10-17 15:52:53

GGG
Member
Registered: 2013-10-12
Posts: 10

Trying to build broadcom-wl package, running into an error

So I'm trying to build and install broadcom-wl from the AUR but:

$ makepkg -s
==> Making package: broadcom-wl 6.3.223.141-3 (Thu Oct 17 11:40:21 EDT 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found hybrid-v35_64-nodebug-pcoem-6_30_223_141.tar.gz
  -> Found modprobe.d
  -> Found license.patch
  -> Found linux-recent.patch
==> Validating source files with sha1sums...
    hybrid-v35_64-nodebug-pcoem-6_30_223_141.tar.gz ... Passed
    modprobe.d ... Passed
    license.patch ... Passed
    linux-recent.patch ... Passed
==> Extracting source...
  -> Extracting hybrid-v35_64-nodebug-pcoem-6_30_223_141.tar.gz with bsdtar
==> Starting prepare()...
patching file src/wl/sys/wl_linux.c
patching file src/wl/sys/wl_linux.c
==> Removing existing pkg/ directory...
==> Starting build()...
make: *** /usr/lib/modules/3.11.4-1-ARCH/build: No such file or directory.   Stop.
==> ERROR: A failure occurred in build().
    Aborting...

So I was wondering what exactly is /usr/lib/modules/3.11.4-1-ARCH/build, why isn't it there, and how can I get it? Does the problem lie elsewhere?

Last edited by GGG (2013-10-17 15:53:35)

Offline

#2 2013-10-17 16:03:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Trying to build broadcom-wl package, running into an error

Is your system up to date? Did you reboot after updating your kernel?

Offline

#3 2013-10-17 16:04:18

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Trying to build broadcom-wl package, running into an error

You're missing the kernel headers.

**EDIT**

I guess that only makes sense after what karol wrote.

Last edited by skottish (2013-10-17 16:06:33)

Offline

#4 2013-10-17 16:09:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Trying to build broadcom-wl package, running into an error

skottish wrote:

You're missing the kernel headers.

linux-headers is an explicit makedependency, so he has it installed.

Last edited by karol (2013-10-17 16:09:43)

Offline

#5 2013-10-17 16:09:14

GGG
Member
Registered: 2013-10-12
Posts: 10

Re: Trying to build broadcom-wl package, running into an error

I installed Arch last week so I'm hoping it's up to date. And I don't actually know exactly what kernel headers are, so where do I get them?

Edit: Okay uh, not entirely sure if this is right, but pacman -Q linux-headers yields linux-headers 3.11.5-1, so should that be 3.11.4-1?

Last edited by GGG (2013-10-17 16:12:31)

Offline

#6 2013-10-17 16:11:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Trying to build broadcom-wl package, running into an error

GGG, please re-read all the basics on Arch. There's the wiki, the online package database etc.
Always update your system before installing new software. Arch moves fast and there are updates available every day.

Offline

#7 2013-10-17 16:13:04

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Trying to build broadcom-wl package, running into an error

karol wrote:
skottish wrote:

You're missing the kernel headers.

linux-headers is an explicit makedependency, so he has it installed.

Whoops. Didn't look.

GGG wrote:

I installed Arch last week so I'm hoping it's up to date. And I don't actually know exactly what kernel headers are, so where do I get them?

As karol said, linux-headers. You shouldn't still be on the 3.11.4 kernel with an up to date system. It is possible that there are left over directories from other module installations and that will cause build problems.

Last edited by skottish (2013-10-17 16:13:29)

Offline

#8 2013-10-17 16:18:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Trying to build broadcom-wl package, running into an error

GGG, I already told you what you should do: https://bbs.archlinux.org/viewtopic.php … 8#p1338468
In your second post it's clear that you have some misconceptions about Arch, so please do some reading.

As for broadcom-wl, I think all you need to do is
1. Update your system.
2. If the kernel was one of the updated packages, reboot your computer.
3. Try installing broadcom-wl again.

Edit:
If the output of 'uname -r' and 'pacman -Q linux' don't match, reboot your computer.

$ uname -r
3.11.5-1-ARCH
$ pacman -Q linux
linux 3.11.5-1

They match on my system, so I'm fine.

Last edited by karol (2013-10-17 16:29:03)

Offline

#9 2013-10-17 16:34:18

GGG
Member
Registered: 2013-10-12
Posts: 10

Re: Trying to build broadcom-wl package, running into an error

Ran pacman -Syu. Now it gives a similar error, except make is looking in /usr/lib/modules/3.11.5-1-ARCH instead of 3.11.4-1-ARCH. I suppose that means I updated incorrectly or incomprehensively?

Offline

#10 2013-10-17 16:37:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Trying to build broadcom-wl package, running into an error

Did you reboot after the update?
What's the output of

pacman -Qo /usr/lib/modules/3.11.5-1-ARCH

Offline

#11 2013-10-17 16:44:10

GGG
Member
Registered: 2013-10-12
Posts: 10

Re: Trying to build broadcom-wl package, running into an error

I did, a couple times.

$ pacman -Qo /usr/lib/modules/3.11.5-1-ARCH
/usr/lib/modules/3.11.5-1-ARCH is owned by linux 3.11.5-1
/usr/lib/modules/3.11.5-1-ARCH is owned by linux-headers 3.11.5-1

Offline

#12 2013-10-17 17:12:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Trying to build broadcom-wl package, running into an error

The first lines in your build say:

$ makepkg -s
==> Making package: broadcom-wl 6.3.223.141-3 (Thu Oct 17 11:40:21 EDT 2013)

Not sure why it says '6.3.223.141-3', not '6.30.223.141-3'.

Works on my 32-bit Arch:

$ makepkg -si
==> Making package: broadcom-wl 6.30.223.141-3 (Thu Oct 17 19:05:15 CEST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading hybrid-v35-nodebug-pcoem-6_30_223_141.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1695k  100 1695k    0     0   374k      0  0:00:04  0:00:04 --:--:--  416k
  -> Found modprobe.d
  -> Found license.patch
  -> Found linux-recent.patch
==> Validating source files with sha1sums...
    hybrid-v35-nodebug-pcoem-6_30_223_141.tar.gz ... Passed
    modprobe.d ... Passed
    license.patch ... Passed
    linux-recent.patch ... Passed
==> Extracting sources...
  -> Extracting hybrid-v35-nodebug-pcoem-6_30_223_141.tar.gz with bsdtar
==> Starting prepare()...
patching file src/wl/sys/wl_linux.c
patching file src/wl/sys/wl_linux.c
==> Starting build()...
make: Entering directory '/usr/src/linux-3.11.5-1-ARCH'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  LD      /home/karol/apps/broadcom-wl/src/built-in.o
  CC [M]  /home/karol/apps/broadcom-wl/src/src/shared/linux_osl.o
  CC [M]  /home/karol/apps/broadcom-wl/src/src/wl/sys/wl_linux.o
  CC [M]  /home/karol/apps/broadcom-wl/src/src/wl/sys/wl_iw.o
  CC [M]  /home/karol/apps/broadcom-wl/src/src/wl/sys/wl_cfg80211_hybrid.o
  LD [M]  /home/karol/apps/broadcom-wl/src/wl.o
  Building modules, stage 2.
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  MODPOST 1 modules
  CC      /home/karol/apps/broadcom-wl/src/wl.mod.o
  LD [M]  /home/karol/apps/broadcom-wl/src/wl.ko
make: Leaving directory '/usr/src/linux-3.11.5-1-ARCH'
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Purging unwanted files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package "broadcom-wl"...
  -> Generating .PKGINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: broadcom-wl 6.30.223.141-3 (Thu Oct 17 19:05:49 CEST 2013)
==> Installing package broadcom-wl with pacman -U...
loading packages...
resolving dependencies...
looking for inter-conflicts...

Packages (1):

Name         New Version     Net Change

broadcom-wl  6.30.223.141-3    1.62 MiB

Total Installed Size:   1.62 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                  [########################################################] 100%
(1/1) checking package integrity                                                                [########################################################] 100%
(1/1) loading package files                                                                     [########################################################] 100%
(1/1) checking for file conflicts                                                               [########################################################] 100%
(1/1) checking available disk space                                                             [########################################################] 100%
(1/1) installing broadcom-wl                                                                    [########################################################] 100%
[broadcom-wl]$ 

What's the output of

ls -l /usr/lib/modules/3.11.5-1-ARCH/build

Offline

#13 2013-10-17 17:21:43

GGG
Member
Registered: 2013-10-12
Posts: 10

Re: Trying to build broadcom-wl package, running into an error

You're right, there should be a zero there. I'm transcribing all this by hand.

$ ls -l /usr/lib/modules/3.11.5-1-ARCH/build
ls: cannot access /usr/lib/modules/3.11.5-1-ARCH/build: No such file or directory

Offline

#14 2013-10-17 17:30:35

SOURE
Member
Registered: 2013-10-15
Posts: 6

Re: Trying to build broadcom-wl package, running into an error

Create the symlink manually:

# ln -s /usr/src/linux-3.11.5-1-ARCH /usr/lib/modules/3.11.5-1-ARCH/build

and try to build again.

P.S. Builds just fine for me.

Offline

#15 2013-10-17 18:06:32

GGG
Member
Registered: 2013-10-12
Posts: 10

Re: Trying to build broadcom-wl package, running into an error

It worked! Thank you so much for your patience and time.

Offline

Board footer

Powered by FluxBB