==> Making package: nvidia-ck-bumblebee 313.18-2 (Tue Feb 12 17:57:39 PST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading NVIDIA-Linux-x86_64-313.18-no-compat32.run...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 37.8M  100 37.8M    0     0   240k      0  0:02:41  0:02:41 --:--:--  251k
  -> Found unfuck-3.7.6.patch
==> Validating source files with sha256sums...
    NVIDIA-Linux-x86_64-313.18-no-compat32.run ... Passed
    unfuck-3.7.6.patch ... Passed
==> Extracting Sources...
==> Starting build()...
Creating directory NVIDIA-Linux-x86_64-313.18-no-compat32
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 313.18..........................................................................................................................................
patching file conftest.sh
Hunk #1 succeeded at 1701 (offset -15 lines).
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.

Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.

*** Unable to determine the target kernel version. ***

make: *** [select_makefile] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
The build failed.