You are not logged in.

#1 2011-08-07 03:48:42

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Compiling Packages from Source

I am having some issues using the "make" command when compiling any kind of source code. When doing so, I get the sort of error that one would would expect when trying to build without headers. However, this is not the case. I do have the kernel headers installed (matching the kernel version, of course) and still I am unable to build. Interestingly enough, I am able to make packages from the AUR from source using packer, so I assume that I am able to make packages. Or am I painfully deluded in my understanding?


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#2 2011-08-07 03:52:05

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Compiling Packages from Source

Give the actual error messages so we can get a better idea of what is happening.

Offline

#3 2011-08-07 05:28:27

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: Compiling Packages from Source

When I try to compile, the error I receive is

make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
make[1]: *** No rule to make target `*/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192'.  Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
make: *** [all] Error 2


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#4 2011-08-07 07:25:44

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: Compiling Packages from Source

You do understand that this question is very lacking in information for anyone to help right? First, what the hell are you trying to compile? kernel i assume from the previous post. Second, if so, how did you download and how are you really trying to do it? As i see from the previous post too, it seems you are doing it the "hard way", without using the kernel PKGBUILD...

So as you see, if you really need help, first you really need to help us first with info wink

Offline

#5 2011-08-07 08:11:33

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

Re: Compiling Packages from Source

The packages in the AUR already have a PKGBUILD. Did you create one for what you're trying to compile? If so, please post it.

Offline

#6 2011-08-07 17:06:29

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: Compiling Packages from Source

I apologize, I'm still quite new. I am trying to build a wireless driver from a third-party website. I was under the impression that the only way to compile this was the use of the make command. If there's an easier way, I'm definitely open to it.


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#7 2011-08-07 17:09:52

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

Re: Compiling Packages from Source

TheHebes wrote:

I apologize, I'm still quite new. I am trying to build a wireless driver from a third-party website. I was under the impression that the only way to compile this was the use of the make command. If there's an easier way, I'm definitely open to it.

Yes, you have to use make etc. but it needs to be wrapped in a PKGBUILD otherwise pacman won't notice it. It may work but may lead to problems in the future.

As for the error you're getting - no idea, sorry.

Offline

#8 2011-08-07 17:34:35

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: Compiling Packages from Source

TheHebes wrote:

I am trying to build a wireless driver from a third-party website.

Which wireless driver?  If it's at all common, there's likely to be a PKGBUILD for it in the AUR.

Offline

#9 2011-08-07 18:29:30

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Compiling Packages from Source

You're probably missing the kernel headers.  Also, never compile from source without pacman/makepkg.  Pacman is one of the reasons why Arch is a fantastic distro!  Finally, get to know the AUR.  Looks like others have written a PKGBUILD for you on this one.

http://aur.archlinux.org/packages.php?O … &SB=v&SO=d


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2011-08-10 03:00:49

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: Compiling Packages from Source

@tavianator- I have looked, the RTL8188CE driver is not present is NOT in the AUR. (packer -Ss r 8188 comes up with nothing). Furthermore, @graysky, I do have have kernel26-headers installed. Both the kernel and headers are version 2.6.39 3-1. For the most part, by the looks of it, there is no packagebuild available, so managing this through pacman is not looking like an option. From what I gather, "make" is the only way this is going to compile.


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#11 2011-08-10 11:31:45

mrstegeman
Member
Registered: 2011-05-09
Posts: 21

Re: Compiling Packages from Source

TheHebes wrote:

@tavianator- I have looked, the RTL8188CE driver is not present is NOT in the AUR. (packer -Ss r 8188 comes up with nothing). Furthermore, @graysky, I do have have kernel26-headers installed. Both the kernel and headers are version 2.6.39 3-1. For the most part, by the looks of it, there is no packagebuild available, so managing this through pacman is not looking like an option. From what I gather, "make" is the only way this is going to compile.

The driver you want is indeed in the AUR.  Look at the description:

http://aur.archlinux.org/packages.php?ID=46797

The driver name and version number exactly match the errors from make you posted above:

TheHebes wrote:

make[1]: *** No rule to make target `*/rtl8192ce_linux_2.6.0006.0321.2011/HAL/rtl8192'.  Stop.

Last edited by mrstegeman (2011-08-10 11:36:02)

Offline

#12 2011-08-10 15:24:22

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: Compiling Packages from Source

@mrstegeman- My bad. It was late when I checked. Regardless, it still doesn't change the fact that I'm unable to make packages. This worries me slightly.


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

Board footer

Powered by FluxBB