Makepkg fails to build kernel

This is my first time building the kernel myself. Following this wiki page:
https://wiki.archlinux.org/index.php/Ke … ild_System
makepkg or makepkg -i fails with this output:
Hunk #1 succeeded at 56 with fuzz 2 (offset -2 lines).
==> Starting build()...
make: *** INTERNAL: readdir: Not a directory
. Stop.
==> ERROR: A failure occured in build().
Aborting...
Subsequent calls to makepkg looks like this: http://ix.io/6Xf
Additional info:
* Linux 3.10.3-1-ARCH #1 SMP PREEMPT x86_64 GNU/Linux
* Trying to build 3.10.
I made a bug report here after consulting people on #archlinux here: https://bugs.archlinux.org/task/36337
As you can see it's closed since it's intended behavior. What did I miss?

Yeah, it's weird. I just tried the exact same procedure on my other desktop Arch machine with different hardware but very similar setup. It looks like it's building fine there.
This is a 2013 Macbook Air. Regarding my home dir being hfsplus I haven't had many issues with that before, and I did redo the whole procedure from scratch a couple of times with the same results.
mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=3970628k,nr_inodes=992657,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda6 on / type ext3 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=36,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
tmpfs on /tmp type tmpfs (rw)
/dev/sda5 on /boot type ext2 (rw,relatime)
/dev/sda4 on /home type hfsplus (rw,relatime,umask=22,uid=0,gid=0,nls=utf8)
free -m
total used free shared buffers cached
Mem: 7771 988 6783 0 29 291
-/+ buffers/cache: 667 7104
Swap: 0 0 0
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 90G 9.0G 77G 11% /
dev 3.8G 0 3.8G 0% /dev
run 3.8G 564K 3.8G 1% /run
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
tmpfs 3.8G 436K 3.8G 1% /tmp
/dev/sda5 1007M 22M 918M 3% /boot
/dev/sda4 280G 20G 261G 7% /home
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
stepping : 1
microcode : 0x11
cpu MHz : 759.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
bogomips : 4601.54
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
stepping : 1
microcode : 0x11
cpu MHz : 759.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
bogomips : 4601.54
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
stepping : 1
microcode : 0x11
cpu MHz : 759.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
bogomips : 4601.54
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
stepping : 1
microcode : 0x11
cpu MHz : 759.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
bogomips : 4601.54
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

Similar Messages

  • [SOLVED] nVidia 87.76 Drivers installer fails to build kernel module

    Hey,
    I have a nVidia GeForce2 Integrated graphics card on my Asus A7N266 motherboard. According to the nVidia site, http://www.nvidia.com/object/IO_32667.html, the most recent driver that supports this is the 96.xx series. Yet as shown here, http://www.nvnews.net/vbulletin/showthread.php?t=87332, many people have found that the 96.xx series drivers cause graphical corruption when using a GeForce2 IGP.
    Before coming to Arch, I had used Xubuntu 7.04 and managed to compile the last known working drivers, version 87.76, following the instructions here: http://kmandla.wordpress.com/2007/03/25 … 20-12-386/
    That all went well but now I'm using Arch. I tried using the nvidia-96.xx driver in the repos just for testing sake but I still got the same graphical corruption.
    Thus I have been trying to install the 87.76 drivers on Arch, but it always fails at the kernel module building stage. I had first applied this patch here, http://www.nvnews.net/vbulletin/showthr … ost1086669, before compling as the plain driver wont compile against recent kernels.
    Here is the output from the installer:
    nvidia-installer log file '/var/log/nvidia-installer.log'
    creation time: Sun Aug 5 11:57:53 2007
    option status:
    license pre-accepted : false
    update : false
    force update : false
    expert : false
    uninstall : false
    driver info : false
    precompiled interfaces : true
    no ncurses color : false
    query latest version : false
    OpenGL header files : true
    no questions : false
    silent : false
    no recursion : false
    no backup : false
    kernel module only : false
    sanity : false
    add this kernel : false
    no runlevel check : false
    no network : false
    no ABI note : false
    no RPMs : false
    no kernel module : false
    force SELinux : default
    force tls : (not specified)
    X install prefix : (not specified)
    X library install path : (not specified)
    X module install path : (not specified)
    OpenGL install prefix : (not specified)
    OpenGL install libdir : (not specified)
    utility install prefix : (not specified)
    utility install libdir : (not specified)
    doc install prefix : (not specified)
    kernel name : (not specified)
    kernel include path : (not specified)
    kernel source path : (not specified)
    kernel output path : (not specified)
    kernel install path : (not specified)
    proc mount point : /proc
    ui : (not specified)
    tmpdir : /tmp
    ftp mirror : ftp://download.nvidia.com
    RPM file list : (not specified)
    Using: nvidia-installer ncurses user interface
    -> License accepted.
    -> No precompiled kernel interface was found to match your kernel; would you li
    ke the installer to attempt to download a kernel interface for your kernel f
    rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
    -> No matching precompiled kernel interface was found on the NVIDIA ftp site;
    this means that the installer will need to compile a kernel interface for
    your kernel.
    -> Performing CC sanity check with CC="cc".
    -> Performing CC version check with CC="cc".
    -> Kernel source path: '/lib/modules/2.6.22-ARCH/build'
    -> Kernel output path: '/lib/modules/2.6.22-ARCH/build'
    -> Performing rivafb check.
    -> Performing nvidiafb check.
    -> Cleaning kernel module build directory.
    executing: 'cd ./usr/src/nv; make clean'...
    rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv
    -vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvidia.mod.o
    rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
    rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
    rm -f -f stprof stprof.o symtab.h
    rm -f -rf .tmp_versions
    -> Building kernel module:
    executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.22-ARCH/bui
    ld SYSOUT=/lib/modules/2.6.22-ARCH/build'...
    NVIDIA: calling KBUILD...
    make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-ARCH/build SUBDIRS=/home
    /kris/Source/nVidia GLX 87.76 Driver/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/
    nv modules
    test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
    echo; \
    echo " ERROR: Kernel configuration is invalid."; \
    echo " include/linux/autoconf.h or include/config/auto.conf are mis
    sing."; \
    echo " Run 'make oldconfig && make prepare' on kernel src to fix it
    echo; \
    /bin/false)
    make[2]: *** No rule to make target `GLX'. Stop.
    NVIDIA: left KBUILD.
    nvidia.ko failed to build!
    make[1]: *** [mdl] Error 1
    make: *** [module] Error 2
    -> Error.
    ERROR: Unable to build the NVIDIA kernel module.
    ERROR: Installation has failed. Please see the file
    '/var/log/nvidia-installer.log' for details. You may find suggestions
    on fixing installation problems in the README available on the Linux
    driver download page at www.nvidia.com.
    Any ideas as to how I can get the kernel module to build?
    I am using 'kernel26 2.6.22.1-4' with the 'kernel-headers 2.6.22.1-1' from the testing repo.
    Last edited by Nameless One (2007-08-10 07:08:38)

    make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-ARCH/buildSUBDIRS=/home/kris/Source/nVidia GLX 87.76 Driver/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/
    The name of the directory you placed the driver in contains spaces. That is  why you get the no rule to make target GLX error.
    It would be better not to circumvent pacman. I am using the following PKGBUILDs for the 8776 driver:
    nvidia-8776:
    pkgname=nvidia-8776
    pkgver=1.0.8776
    _nver=1.0-8776
    _kernver='2.6.22-ARCH'
    pkgrel=1
    pkgdesc="NVIDIA drivers for Arch kernel."
    arch=(i686 x86_64)
    [ "$CARCH" = "i686" ] && ARCH=x86
    [ "$CARCH" = "x86_64" ] && ARCH=x86_64
    url="http://www.nvidia.com/"
    depends=(kernel26 nvidia-8776-utils)
    conflicts=('nvidia' 'nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
    install=nvidia.install
    source=(http://download.nvidia.com/XFree86/Linux-$ARCH/${_nver}/NVIDIA-Linux-$ARCH-${_nver}-pkg0.run NVIDIA_kernel-1.0-8776-20061203.diff.txt)
    md5sums=('93ad45fe7b974a5a80348e1890f9b7c9' '70e669f06ee4881c2583261672de292a')
    [ "$CARCH" = "x86_64" ] && md5sums=('f5340e4bbce811add994b1685cdea03b' '70e669f06ee4881c2583261672de292a')
    build()
    # Extract
    cd $startdir/src/
    sh NVIDIA-Linux-$ARCH-${_nver}-pkg0.run --extract-only
    cd NVIDIA-Linux-$ARCH-${_nver}-pkg0
    # Any extra patches are applied in here...
    patch -p0 < $startdir/NVIDIA_kernel-1.0-8776-20061203.diff.txt ||return 1
    cd usr/src/nv/
    ln -s Makefile.kbuild Makefile
    make SYSSRC=/lib/modules/$_kernver/build module || return 1
    # install kernel module
    mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
    Place the patch (NVIDIA_kernel-1.0-8776-20061203.diff.txt) and nvidia.install in the same directory as the PKGBUILD.
    nvidia-utils:
    pkgname=nvidia-8776-utils
    pkgver=1.0.8776
    _nver=1.0-8776
    pkgrel=1
    pkgdesc="NVIDIA drivers utilities and libraries."
    arch=(i686 x86_64)
    [ "$CARCH" = "i686" ] && ARCH=x86
    [ "$CARCH" = "x86_64" ] && ARCH=x86_64
    url="http://www.nvidia.com/"
    depends=(xorg-server)
    conflicts=('libgl' 'libgl-dri' 'ati-fglrx-utils' 'nvidia-legacy-utils' 'nvidia-71xx-utils' 'nvidia-96xx-utils')
    provides=('libgl' )
    #install=nvidia.install
    source=(http://download.nvidia.com/XFree86/Linux-$ARCH/${_nver}/NVIDIA-Linux-$ARCH-${_nver}-pkg0.run)
    md5sums=('93ad45fe7b974a5a80348e1890f9b7c9')
    [ "$CARCH" = "x86_64" ] && md5sums=('f5340e4bbce811add994b1685cdea03b')
    build()
    # override nvida install routine and do it the long way.
    cd $startdir/src/
    sh NVIDIA-Linux-${ARCH}-${_nver}-pkg0.run --extract-only
    cd NVIDIA-Linux-${ARCH}-${_nver}-pkg0/usr/
    mkdir -p $startdir/pkg/usr/{lib,bin,share/applications,share/pixmaps,man/man1}
    mkdir -p $startdir/pkg/usr/lib/xorg/modules/{extensions,drivers}
    mkdir -p $startdir/pkg/usr/share/licenses/nvidia/
    install `find lib/ -iname \*.so\*` $startdir/pkg/usr/lib/
    install lib/tls/* $startdir/pkg/usr/lib
    install share/man/man1/* $startdir/pkg/usr/man/man1/
    rm $startdir/pkg/usr/man/man1/nvidia-installer.1.gz
    install X11R6/lib/libXv* $startdir/pkg/usr/lib/
    install share/applications/nvidia-settings.desktop $startdir/pkg/usr/share/applications/
    # fix nvidia .desktop file
    sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i $startdir/pkg/usr/share/applications/nvidia-settings.desktop
    install share/pixmaps/nvidia-settings.png $startdir/pkg/usr/share/pixmaps/
    install X11R6/lib/modules/drivers/nvidia_drv.so $startdir/pkg/usr/lib/xorg/modules/drivers
    install X11R6/lib/modules/extensions/libglx.so.$pkgver $startdir/pkg/usr/lib/xorg/modules/extensions
    install -m755 bin/nvidia-{settings,xconfig,bug-report.sh} $startdir/pkg/usr/bin/
    cd $startdir/pkg/usr/lib/;
    ln -s /usr/lib/libGL.so.$pkgver libGL.so
    ln -s /usr/lib/libGL.so.$pkgver libGL.so.1
    ln -s /usr/lib/libGLcore.so.$pkgver libGLcore.so.1
    ln -s /usr/lib/libnvidia-cfg.so.$pkgver libnvidia-cfg.so.1
    ln -s /usr/lib/libnvidia-tls.so.$pkgver libnvidia-tls.so.1
    cd $startdir/pkg/usr/lib/xorg/modules/extensions;
    ln -s /usr/lib/xorg/modules/extensions/libglx.so.$pkgver libglx.so
    install $startdir/src/NVIDIA-Linux-${ARCH}-${_nver}-pkg0/LICENSE $startdir/pkg/usr/share/licenses/nvidia/
    find $startdir/pkg/usr -type d -exec chmod 755 {} \;
    # phew :)
    Last edited by kappa (2007-08-09 11:14:42)

  • Makepkg fails on custom kernel.

    Hi.
    I'm trying to compile the arch kernel with a few added patches to increase battery life.
    What I have done is: Installed abs, and ran ABS as root. Then I made a directory called kernel, copied the kernel26 from ABS to that directory (so kernel had a subdirectory called kernel26).
    Then I ran this script (changed the name to mine) in the kernel (not kernel26) folder, which created a new kernel26-gigamo folder.
    What I did next was copy these four patches to that directory, and added them in to the pkgbuild:
    avoid-overflows-in-kernel-timec.patch
    clockevent-simplify-list-operations.patch
    uvesafb-small-cleanups.patch
    writeback-speed-up-writeback-of-big-dirty-files.patch
    (they come from here)
    My PKGBUILD:
    # $Id: PKGBUILD,v 1.294 2008/03/05 14:44:07 tpowa Exp $
    # Maintainer: Tobias Powalowski <[email protected]>
    # Maintainer: Thomas Baechler <[email protected]>
    pkgname=kernel26-gigamo
    _basekernel=2.6.24
    pkgver=2.6.24.3
    pkgrel=3
    pkgdesc="The Linux Kernel and modules"
    arch=(i686 x86_64)
    license=('GPL2')
    groups=('base')
    url="http://www.kernel.org"
    backup=('boot/kconfig26-gigamo' etc/mkinitcpio.d/${pkgname}.preset etc/mkinitcpio.d/${pkgname}-fallback.conf)
    depends=('coreutils' 'module-init-tools' 'mkinitcpio>=0.5.15')
    # pwc, ieee80211 and hostap-driver26 modules are included in kernel26-gigamo now
    # nforce package support was abandoned by nvidia, kernel modules should cover everything now.
    # kernel24 support is dropped since glibc24
    replaces=('kernel24' 'kernel24-scsi' 'kernel26-gigamo-scsi'
    'alsa-driver' 'ieee80211' 'hostap-driver26'
    'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
    'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs')
    md5sums=('')
    install=kernel26-gigamo.install
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
    ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-$pkgver.bz2
    ### next two lines only needed for rc kernel building
    #http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.24-rc6.bz2
    #http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.24-rc6-git2.bz2
    # the main kernel config files
    config config.x86_64
    # the archlinux boot logos
    logo_linux_clut224.ppm
    logo_linux_mono.pbm
    logo_linux_vga16.ppm
    # standard config files for mkinitcpio ramdisk
    kernel26-gigamo.preset
    mkinitcpio-$pkgname.conf
    # add possibility to load your own dsdt acpi table
    acpi-dsdt-initrd-v0.8.4-2.6.21.patch
    # own patches
    avoid-overflows-in-kernel-timec.patch
    clockevent-simplify-list-operations.patch
    uvesafb-small-cleanups.patch
    writeback-speed-up-writeback-of-big-dirty-files.patch
    # fix bluetooth on some toshiba notebooks
    toshiba-bluetooth.patch
    # add additional unusual usb entry
    usb-storage-unusual-devs.patch
    # improve intel macintosh support
    mactel-linux-2.6.24.patch
    # fix broken acpi c states on buggy bioses, which violate acpi specification
    acpi-buggy-bios.patch
    # add squashfs and unionfs
    http://heanet.dl.sourceforge.net/sourceforge/squashfs/squashfs3.3.tar.gz
    http://download.filesystems.org/unionfs/stable/unionfs-2.2.4_for_2.6.24.2.diff.gz
    # patch below for aufs compatibility
    lhash-2.6.24.patch
    put_filp-2.6.24.patch
    sec_perm-2.6.24.patch
    splice-2.6.24.patch
    #put_filp.patch
    # add possibility to undervolt certain cpus
    linux-phc-0.3.0-kernel-vanilla-2.6.23rc3.patch
    # adding genpatches from gentoo
    2000_no-if-addrlabel.patch
    2100_sd-sr-medium-detection.patch
    2101_sr-follow-tray-status.patch
    2102_sr-test-unit-ready.patch
    2300_pci-use-conf1.patch
    2400_e1000e-crc-stripping.patch
    2405_sis190-eeprom-mac.patch
    2500_arcmsr-dma-coherent-warnings.patch
    2700_alsa-hda-lifebook-e8410.patch
    # fix Leadtek_WinFast_2000
    winfast-2000.patch
    # fix fuse
    fuse-2.6.24.patch
    # fix ata limit
    ata-2.6.24.patch
    # fix keymap
    keymap-2.6.24.patch
    # fix some sis agp ids
    sis671-intelgly-2.6.24.patch
    build() {
    [ "${CARCH}" = "i686" ] && KARCH=x86
    [ "${CARCH}" = "x86_64" ] && KARCH=x86
    cd $startdir/src/linux-$_basekernel
    # add upstream patch from 2.6.24 series
    patch -Np1 -i ../patch-$pkgver || return 1
    # add queued patches for 2.6.24 series
    #http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
    #patch -Np1 -i ../pre-2.6.24.3.patch || return 1
    ### next 2 lines are only needed for rc kernels
    #patch -Np1 -i ../patch-$pkgver-rc6 || return 1
    #patch -Np1 -i ../patch-2.6.24-rc6-git2 || return 1
    # add custom acpi dsdt patch, in reference to:
    # http://gaugusch.at/kernel.shtml
    # http://acpi.sourceforge.net
    patch -Np1 -i ../acpi-dsdt-initrd-v0.8.4-2.6.21.patch || return 1
    # fix enabling of bluetooth on some toshiba notebooks in reference to:
    # http://bugs.archlinux.org/task/5608
    # http://www.cwrose.de/toshiba/s5200.html#bluetooth
    patch -Np1 -i ../toshiba-bluetooth.patch || return 1
    # fix I/O errors with Teac HD-35PU devices
    patch -Np1 -i ../usb-storage-unusual-devs.patch || return 1
    # improve intel macintosh support, in reference to:
    # http://www.mactel-linux.org/wiki/Main_Page
    # http://mactel-linux.svn.sourceforge.net/viewvc/mactel-linux/trunk/kernel/
    patch -Np1 -i ../mactel-linux-2.6.24.patch || return 1
    # add possibility to undervolt certain cpus, in reference to:
    # https://www.dedigentoo.org/trac/linux-phc/
    patch -Np1 -i ../linux-phc-0.3.0-kernel-vanilla-2.6.23rc3.patch || return 1
    # fix buggy bios acpi to get c states, which violate acpi specification, in reference to:
    # http://bugzilla.kernel.org/show_bug.cgi?id=7578
    # http://bugs.archlinux.org/task/6875
    patch -Np1 -i ../acpi-buggy-bios.patch || return 1
    # fix Leadtek_WinFast_2000
    # in reference to:
    # http://www.linuxtv.org/v4lwiki/index.php/Leadtek_WinFast_2000
    patch -Np0 -i ../winfast-2000.patch || return 1
    # fix fuse
    # in reference to:
    # http://groups.google.com/group/linux.kernel/msg/20cd4e76b289d738
    patch -Np1 -i ../fuse-2.6.24.patch || return 1
    # fix keymaps
    # in reference to:
    # http://bugzilla.kernel.org/show_bug.cgi?id=10143
    # http://bugs.archlinux.org/task/9593
    patch -Np1 -i ../keymap-2.6.24.patch || return 1
    # fix sis ids
    # in reference to:
    # http://www.linuxconsulting.ro/xorg-drivers/
    # http://bugs.archlinux.org/task/9655
    patch -Np1 -i ../sis671-intelgly-2.6.24.patch || return 1
    # fix some ata limits
    # http://bugs.archlinux.org/task/9386
    # in reference to:
    # http://www.mail-archive.com/linux-ide%40vger.kernel.org/msg14722.html
    patch -Np2 -i ../ata-2.6.24.patch || return 1
    # adding some genpatches from gentoo, in reference to:
    # http://sources.gentoo.org/viewcvs.py/linux-patches/genpatches-2.6/trunk/2.6.24/
    patch -Np1 -i ../2000_no-if-addrlabel.patch || return 1
    patch -Np1 -i ../2100_sd-sr-medium-detection.patch || return 1
    patch -Np1 -i ../2101_sr-follow-tray-status.patch || return 1
    patch -Np1 -i ../2102_sr-test-unit-ready.patch || return 1
    patch -Np1 -i ../2300_pci-use-conf1.patch || return 1
    patch -Np1 -i ../2400_e1000e-crc-stripping.patch || return 1
    patch -Np1 -i ../2405_sis190-eeprom-mac.patch || return 1
    patch -Np1 -i ../2500_arcmsr-dma-coherent-warnings.patch || return 1
    patch -Np1 -i ../2700_alsa-hda-lifebook-e8410.patch || return 1
    # own patches
    patch -Np1 -i ../avoid-overflows-in-kernel-timec.patch || return 1
    patch -Np1 -i ../clockevent-simplify-list-operations.patch || return 1
    patch -Np1 -i ../uvesafb-small-cleanups.patch || return 1
    patch -Np1 -i ../writeback-speed-up-writeback-of-big-dirty-files.patch || return 1
    # add sqashfs support, in reference to:
    # http://squashfs.sourceforge.net/
    patch -Np1 -i ../squashfs3.3/kernel-patches/linux-2.6.24/squashfs3.3-patch || return 1
    # add unionfs support. in reference to:
    # http://www.fsl.cs.sunysb.edu/project-unionfs.html
    patch -Np1 -i ../unionfs-2.2.4_for_2.6.24.2.diff || return 1
    # add sec_perm-2.6.24.patch for aufs, in reference to:
    # http://aufs.sourceforge.net/
    patch -Np1 -i ../sec_perm-2.6.24.patch || return 1
    patch -Np0 -i ../put_filp-2.6.24.patch || return 1
    patch -Np1 -i ../lhash-2.6.24.patch || return 1
    patch -Np0 -i ../splice-2.6.24.patch || return 1
    # remove the extraversion from Makefile
    ### next line is only needed for rc kernels
    #sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =-rc6|g' Makefile
    sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =|g' Makefile
    # Arch logo!
    cp ../logo_linux_clut224.ppm drivers/video/logo/
    cp ../logo_linux_mono.pbm drivers/video/logo/
    cp ../logo_linux_vga16.ppm drivers/video/logo/
    if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
    else
    cat ../config >./.config
    fi
    # build the full kernel version to use in pathnames
    . ./.config
    ### next line is only needed for rc kernels
    #_kernver="2.6.24-rc6${CONFIG_LOCALVERSION}"
    _kernver="${_basekernel}${CONFIG_LOCALVERSION}"
    # configure kernel before build
    make menuconfig
    # load configuration
    yes "" | make config
    # build!
    # stop here
    #msg "Stopping build"
    #return 1
    make bzImage modules || return 1
    mkdir -p $startdir/pkg/{lib/modules,boot}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    cp System.map $startdir/pkg/boot/System.map26-gigamo
    cp arch/$KARCH/boot/bzImage $startdir/pkg/boot/vmlinuz26-gigamo
    install -D -m644 Makefile \
    $startdir/pkg/usr/src/linux-${_kernver}/Makefile
    install -D -m644 kernel/Makefile \
    $startdir/pkg/usr/src/linux-${_kernver}/kernel/Makefile
    install -D -m644 .config \
    $startdir/pkg/usr/src/linux-${_kernver}/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26-gigamo
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include
    for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-${_kernver}/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers $startdir/pkg/usr/src/linux-${_kernver}
    cp -a scripts $startdir/pkg/usr/src/linux-${_kernver}
    # fix permissions on scripts dir
    chmod og-w -R $startdir/pkg/usr/src/linux-${_kernver}/scripts
    #mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/.tmp_versions
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel
    cp arch/$KARCH/Makefile $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
    cp arch/$KARCH/Makefile_32 $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
    cp arch/$KARCH/Makefile_64 $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
    if [ "$CARCH" = "i686" ]; then
    cp arch/$KARCH/Makefile_32.cpu $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
    fi
    cp arch/$KARCH/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
    # add headers for lirc package
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video
    cp drivers/media/video/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/
    for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
    cp -a drivers/media/video/$i/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
    done
    # add dm headers
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
    cp drivers/md/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
    # add inotify.h
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include/linux
    cp include/linux/inotify.h $startdir/pkg/usr/src/linux-${_kernver}/include/linux/
    # add CLUSTERIP file for iptables
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
    cp net/ipv4/netfilter/ipt_CLUSTERIP.c $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
    # add wireless headers
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
    cp net/mac80211/*.h $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
    # add xfs and shmem for aufs building
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/fs/xfs
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/mm
    cp fs/xfs/xfs_sb.h $startdir/pkg/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
    cp mm/shmem.c $startdir/pkg/usr/src/linux-${_kernver}/mm/shmem.c
    # add vmlinux
    cp vmlinux $startdir/pkg/usr/src/linux-${_kernver}
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-${_kernver}/$i
    done
    cd $startdir/pkg/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
    chown -R root.root $startdir/pkg/usr/src/linux-${_kernver}
    find $startdir/pkg/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
    cd $startdir/pkg/lib/modules/${_kernver} && \
    (rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -m644 -D $startdir/src/${pkgname}.preset $startdir/pkg/etc/mkinitcpio.d/${pkgname}.preset || return 1
    install -m644 -D $startdir/src/mkinitcpio-$pkgname.conf $startdir/pkg/etc/mkinitcpio.d/$pkgname-fallback.conf || return 1
    # set correct depmod command for install
    sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26-gigamo.install
    echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${startdir}/pkg/etc/mkinitcpio.d/${pkgname}.kver
    # remove unneeded architectures
    rm -rf $startdir/pkg/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
    And the error I'm getting when running makepkg (in the kernel26-gigamo directory where my own pathces are added and the pkgbuild resides in):
    ~/kernel/kernel26-gigamo]: makepkg
    ==> Making package: kernel26-gigamo 2.6.24.3-3 (Tue Mar 11 23:02:49 CET 2008)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found linux-2.6.24.tar.bz2 in build dir
    -> Found patch-2.6.24.3.bz2 in build dir
    -> Found config in build dir
    -> Found config.x86_64 in build dir
    -> Found logo_linux_clut224.ppm in build dir
    -> Found logo_linux_mono.pbm in build dir
    -> Found logo_linux_vga16.ppm in build dir
    -> Found kernel26-gigamo.preset in build dir
    -> Found mkinitcpio-kernel26-gigamo.conf in build dir
    -> Found acpi-dsdt-initrd-v0.8.4-2.6.21.patch in build dir
    -> Found avoid-overflows-in-kernel-timec.patch in build dir
    -> Found clockevent-simplify-list-operations.patch in build dir
    -> Found uvesafb-small-cleanups.patch in build dir
    -> Found writeback-speed-up-writeback-of-big-dirty-files.patch in build dir
    -> Found toshiba-bluetooth.patch in build dir
    -> Found usb-storage-unusual-devs.patch in build dir
    -> Found mactel-linux-2.6.24.patch in build dir
    -> Found acpi-buggy-bios.patch in build dir
    -> Found squashfs3.3.tar.gz in build dir
    -> Found unionfs-2.2.4_for_2.6.24.2.diff.gz in build dir
    -> Found lhash-2.6.24.patch in build dir
    -> Found put_filp-2.6.24.patch in build dir
    -> Found sec_perm-2.6.24.patch in build dir
    -> Found splice-2.6.24.patch in build dir
    -> Found linux-phc-0.3.0-kernel-vanilla-2.6.23rc3.patch in build dir
    -> Found 2000_no-if-addrlabel.patch in build dir
    -> Found 2100_sd-sr-medium-detection.patch in build dir
    -> Found 2101_sr-follow-tray-status.patch in build dir
    -> Found 2102_sr-test-unit-ready.patch in build dir
    -> Found 2300_pci-use-conf1.patch in build dir
    -> Found 2400_e1000e-crc-stripping.patch in build dir
    -> Found 2405_sis190-eeprom-mac.patch in build dir
    -> Found 2500_arcmsr-dma-coherent-warnings.patch in build dir
    -> Found 2700_alsa-hda-lifebook-e8410.patch in build dir
    -> Found winfast-2000.patch in build dir
    -> Found fuse-2.6.24.patch in build dir
    -> Found ata-2.6.24.patch in build dir
    -> Found keymap-2.6.24.patch in build dir
    -> Found sis671-intelgly-2.6.24.patch in build dir
    ==> WARNING: Integrity checks (md5) are missing or incomplete.
    ==> Extracting Sources...
    -> bsdtar -x -f linux-2.6.24.tar.bz2
    -> bunzip2 -f patch-2.6.24.3.bz2
    -> bsdtar -x -f squashfs3.3.tar.gz
    -> gunzip -d -f unionfs-2.2.4_for_2.6.24.2.diff.gz
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    patching file Documentation/video4linux/CARDLIST.cx23885
    patching file Makefile
    patching file arch/powerpc/platforms/chrp/pci.c
    patching file arch/powerpc/platforms/powermac/feature.c
    patching file arch/s390/lib/uaccess_std.c
    patching file arch/sparc/lib/rwsem.S
    patching file arch/sparc64/lib/rwsem.S
    patching file arch/x86/kernel/Makefile_32
    patching file arch/x86/mm/pageattr_64.c
    patching file drivers/acpi/blacklist.c
    patching file drivers/acpi/osl.c
    patching file drivers/base/firmware_class.c
    patching file drivers/char/drm/drm_stub.c
    patching file drivers/char/drm/drm_vm.c
    patching file drivers/char/mspec.c
    patching file drivers/firmware/dmi_scan.c
    patching file drivers/macintosh/smu.c
    patching file drivers/media/video/cx23885/cx23885-cards.c
    patching file drivers/net/bonding/bond_main.c
    patching file drivers/net/dl2k.h
    patching file drivers/net/forcedeth.c
    patching file drivers/net/pcmcia/smc91c92_cs.c
    patching file drivers/net/sky2.c
    patching file drivers/net/wireless/b43/dma.c
    patching file drivers/net/wireless/b43/main.c
    patching file drivers/net/wireless/b43/xmit.c
    patching file drivers/net/wireless/b43/xmit.h
    patching file drivers/net/wireless/b43legacy/dma.c
    patching file drivers/net/wireless/b43legacy/main.c
    patching file drivers/net/wireless/b43legacy/pio.c
    patching file drivers/net/wireless/b43legacy/xmit.c
    patching file drivers/net/wireless/b43legacy/xmit.h
    patching file drivers/pci/hotplug/fakephp.c
    patching file drivers/scsi/gdth.c
    patching file drivers/scsi/sd.c
    patching file drivers/usb/class/usblp.c
    patching file drivers/usb/core/driver.c
    patching file drivers/usb/core/hub.c
    patching file drivers/usb/gadget/fsl_usb2_udc.c
    patching file drivers/usb/misc/usbtest.c
    patching file drivers/usb/serial/cp2101.c
    patching file drivers/usb/serial/ftdi_sio.c
    patching file drivers/usb/serial/ftdi_sio.h
    patching file drivers/usb/serial/keyspan.c
    patching file drivers/usb/serial/kobil_sct.c
    patching file drivers/usb/serial/option.c
    patching file drivers/usb/serial/pl2303.c
    patching file drivers/usb/serial/pl2303.h
    patching file drivers/usb/serial/sierra.c
    patching file drivers/usb/storage/unusual_devs.h
    patching file fs/eventpoll.c
    patching file fs/inotify_user.c
    patching file fs/ncpfs/mmap.c
    patching file fs/nfs/write.c
    patching file fs/splice.c
    patching file fs/xfs/linux-2.6/xfs_file.c
    patching file include/asm-powerpc/pmac_feature.h
    patching file include/linux/Kbuild
    patching file include/linux/dmi.h
    patching file include/linux/hrtimer.h
    patching file include/linux/hugetlb.h
    patching file include/linux/ktime.h
    patching file include/linux/wait.h
    patching file kernel/audit.c
    patching file kernel/compat.c
    patching file kernel/futex.c
    patching file kernel/futex_compat.c
    patching file kernel/hrtimer.c
    patching file kernel/irq/chip.c
    patching file kernel/posix-timers.c
    patching file kernel/relay.c
    patching file kernel/sched_fair.c
    patching file kernel/sysctl.c
    patching file mm/filemap.c
    patching file mm/fremap.c
    patching file mm/hugetlb.c
    patching file mm/memory.c
    patching file mm/mmap.c
    patching file mm/slab.c
    patching file mm/slub.c
    patching file net/bluetooth/hci_sysfs.c
    patching file net/ipv4/fib_hash.c
    patching file net/ipv4/fib_trie.c
    patching file net/ipv4/inet_diag.c
    patching file net/ipv4/ip_output.c
    patching file net/ipv4/ipcomp.c
    patching file net/ipv4/sysctl_net_ipv4.c
    patching file net/ipv4/xfrm4_tunnel.c
    patching file net/ipv6/ip6_output.c
    patching file net/ipv6/ipcomp6.c
    patching file net/netfilter/nf_conntrack_proto_tcp.c
    patching file net/sched/em_meta.c
    patching file net/sched/ematch.c
    patching file scripts/mod/file2alias.c
    patching file security/selinux/ss/services.c
    patching file sound/oss/via82cxxx_audio.c
    patching file sound/usb/usx2y/usX2Yhwdep.c
    patching file sound/usb/usx2y/usx2yhwdeppcm.c
    The next patch would create the file Documentation/dsdt-initrd.txt,
    which already exists! Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file Documentation/dsdt-initrd.txt.rej
    patching file drivers/acpi/Kconfig
    Hunk #1 succeeded at 274 (offset -24 lines).
    patching file drivers/acpi/osl.c
    Hunk #1 succeeded at 312 (offset 56 lines).
    patching file init/initramfs.c
    patching file init/main.c
    Hunk #1 succeeded at 91 with fuzz 1 (offset -6 lines).
    Hunk #2 succeeded at 650 (offset 13 lines).
    ==> ERROR: Build Failed.
    Aborting...
    Sorry for the long post and thanks for bothering with me.
    Last edited by Gigamo (2008-03-11 22:09:12)

    I removed the src/ directory and ran makepkg and it succeeded. Pacman -U kernel.pkg.tar.gz also worked. Now all that's left is rebooting and trying.
    Thanks everyone.
    OK, I guess it's not over yet. I rebooted in the new kernel, but it says it can't find /dev/sda3 (which is my / partition).
    This is my grub entry:
    title Arch Linux Gigamo
    root (hd0,2)
    kernel /boot/vmlinuz26 root=/dev/sda3 ro
    initrd /boot/kernel26-gigamo.img
    Okay well, I didnt realise there was a vmlinux26-gigamo as well. Will see if that fixes it.
    Last edited by Gigamo (2008-03-12 16:53:22)

  • [SOLVED] makepkg fails when building libdivecomputer-git from AUR.

    I'm not sure where to start debugging this failure as I'm a newb when it comes to compiling packages.
    Can anyone point me in the right direction?
    [dan@arch libdivecomputer-git]$ makepkg -s PKGBUILD
    ==> Determining latest git revision...
    -> Version found: 20120714
    ==> Making package: libdivecomputer-git 20120714-1 (Sat Jul 14 13:43:22 EST 2012)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    ==> Extracting Sources...
    ==> Starting build()...
    ==> Connecting to GIT server....
    Cloning into 'libdivecomputer'...
    remote: Counting objects: 3995, done.
    remote: Compressing objects: 100% (1563/1563), done.
    remote: Total 3995 (delta 3240), reused 2983 (delta 2429)
    Receiving objects: 100% (3995/3995), 739.19 KiB | 59 KiB/s, done.
    Resolving deltas: 100% (3240/3240), done.
    ==> GIT checkout done or server timeout
    ==> Starting make...
    Cloning into '/home/dan/libdivecomputer-git/src/libdivecomputer-build'...
    done.
    libtoolize: putting auxiliary files in `.'.
    libtoolize: copying file `./ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
    libtoolize: copying file `m4/libtool.m4'
    libtoolize: copying file `m4/ltoptions.m4'
    libtoolize: copying file `m4/ltsugar.m4'
    libtoolize: copying file `m4/ltversion.m4'
    libtoolize: copying file `m4/lt~obsolete.m4'
    configure.ac:25: installing './config.guess'
    configure.ac:25: installing './config.sub'
    configure.ac:21: installing './install-sh'
    configure.ac:21: installing './missing'
    examples/Makefile.am: installing './depcomp'
    automake: warnings are treated as errors
    /usr/share/automake-1.12/am/ltlibrary.am: warning: 'libdivecomputer.la': linking libtool libraries using a non-POSIX
    /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
    src/Makefile.am:4: while processing Libtool library 'libdivecomputer.la'
    autoreconf: automake failed with exit status: 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    Last edited by bergersau (2012-07-18 03:57:09)

    You may want to notify the maintainer by posting a comment on https://aur.archlinux.org/packages.php?ID=52648

  • Problem building kernel with makepkg

    I tried several times building a custom 2.6.8.1 kernel with makepkg and the PKGBUILD file obtained from http://wiki.archlinux.org/index.php/Ker … with%20ABS. Unfortionately, the process allways ends with the following error:
    ln: when making multiple links, last argument must be a directory
    make: *** [_modinst_] Error 1
    ==> ERROR: Build Failed.  Aborting...
    Is there something wrong with the build file posted on the wiki or am I doing something stupid?

    Err... I might have done a small mistake in my previous post.
    I didn't try to build the kernel using the Wiki page above.
    I've used http://wiki.archlinux.org/index.php/Bui … with%20ABS
    You can find below the revised PKGBUILD for that page. It might look weird, but it's very functional. It should also work with the stock kernels.
    This PKGBUILD includes kernel version/revision autodetection. This helps when you apply patches which change those variables (such as ck, mm etc.). The changes I've made automatically change the package details (pkgname, pkgver, pkgdesc) to reflect the kernel changes.
    Please test because I've made some cosmetic changes lately which might have scrambled something around there. If you find it working, please post here and I'll put it in the Wiki page above. Maybe it could also be used as a base for building kernels with the ABS.
    Any feedback is welcomed. Enjoy.
    # ChangeLog
    # v0.3 2004/08/19 - Mircea Ionut Bardac (IceRAM)
    # Updated the PKGBUILD for autodetection of the kernel version and kernel revision
    # v0.2 2004/07/23 - Wojciech Szlachta
    # Modified from official PKGBUILD for kernel26-scsi by judd <[email protected]>
    # and from custom PKGBUILD to support multiple installed kernels by jea.
    # you can leave kerrev empty if you don't want to name the kernel in any way
    kerrev=
    pkgname=kernel26
    pkgver=2.6.7
    pkgrel=1
    pkgdesc="Custom Linux Kernel and modules"
    url="http://www.kernel.org"
    depends=('module-init-tools')
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
    config
    md5sums=('a74671ea68b0e3c609e8785ed8497c14'
    '4da09ca74deafb3c6769b8de895e089b'
    getvar() {
    old=$(cat Makefile | grep "^$1")
    echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*(.*)[ ]*/1/g")
    return 0
    build() {
    cd $startdir/src/linux-$pkgver
    # apply patches here
    # patch -p1 < ../patch1
    # get rid of the 'i' in i686
    carch=`echo $CARCH | sed 's|i||'`
    cat ../config | sed "s|#CARCH#|$carch|g" >./.config
    # make changes in kernel configuration
    make oldconfig || return 1
    cp ./.config ../../config.new
    #use the following line instead of the 2 lines above for default config
    #yes "" | make config || return 1
    # set EXTRAVERSION to create unique /lib/modules/ subdirectories
    _ker_extraversion=$(getvar "EXTRAVERSION")
    # update EXTRAVERSION in the Makefile
    _oldline=$(cat Makefile | grep "^EXTRAVERSION")
    if [ $kerrev != "" ]; then
    _ker_extraversion="$_ker_extraversion-$kerrev"
    cat Makefile | sed "s|$_oldline|EXTRAVERSION = $_ker_extraversion|" > tmpMake
    mv tmpMake Makefile
    fi
    kerrev=$_ker_extraversion
    kerver=$(getvar "VERSION").$(getvar "PATCHLEVEL").$(getvar "SUBLEVEL")
    # update the package information from the kernel Makefile
    pkgver=$kerver$(echo $_ker_extraversion | sed -e 's/-/./g')
    # removing patches versions from the revision string
    _n1=$(expr match $kerrev '([.][0-9]*)')
    _n21=$(expr match $q '[.][0-9]*(.*)')
    _n2=$(echo $_n21 | sed -e "s/[0-9]*-/-/g")
    pkgname=kernel26$_n1$_n2
    pkgdesc="Custom Linux Kernel ($kerver) and modules - revision $kerrev / package version: $pkgver build: $pkgrel"
    echo "- Package information ----------------"
    echo " Package name: $pkgname"
    echo " Package version: $pkgver"
    echo " Package release: $pkgrel"
    echo " Kernel version: $kerver"
    echo " Kernel revision: $kerrev"
    echo "--------------------------------------"
    make clean bzImage modules || return 1
    mkdir -p $startdir/pkg/{lib/modules,boot}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    # create unique names in /boot/
    cp System.map $startdir/pkg/boot/System.map26$kerrev
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26$kerrev
    install -D -m644 Makefile $startdir/pkg/usr/src/linux-$kerver/Makefile
    install -D -m644 .config $startdir/pkg/usr/src/linux-$kerver/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26$kerrev
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/include
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel
    for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-$kerver/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp -a scripts $startdir/pkg/usr/src/linux-$kerver/
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/.tmp_versions
    cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$kerver/arch/i386/
    cp arch/i386/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-$kerver/$i
    done
    cd $startdir/pkg/usr/src/linux-$kerver/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-$kerver
    # create a unique subdirectory under /usr/src/
    cd $startdir/pkg/usr/src
    mv linux-$kerver linux-$kerver$kerrev
    cd $startdir/pkg/lib/modules/$kerver$kerrev &&
    (rm -f build; ln -sf /usr/src/linux-$kerver$kerrev build)

  • Makepkg fails to extract files before attempting build

    Hi,
    My issue is very similar to to this: https://bbs.archlinux.org/viewtopic.php … 23#p622523
    I am running arch x64 and have a ramdisk where build packages (named /build)
    In makepkg.conf I have my BUILDDIR pointing to /build.  It downloads file right and all, but fails to extract the file to a ./src directory before trying to compile.  This happens everytime I run makepkg (I illustrate with an AUR package)
    makepkg aborts with
    /build/yaourt-tmp/aur-powder/./PKGBUILD: line 16: cd: /build/yaourt-tmp/aur-powder/src/powder117_src/: No such file or directory
    If I manually extract the contents and run makepkg, it works fine.
    Any help on this issue is appreciated.
    Thanks
    Last edited by ayr0 (2012-05-21 16:49:25)

    Hi,
    the problem persists with just makepkg. I probably should have clarified that.  I was using yaourt to grab PKGBUILDs from AUR to test.
    Here is what I have discovered so far.
    Remember that in makepkg.conf, BUILDDIR=/build
    [@:/build/powder]# ls
    PKGBUILD
    [@:/build/powder]# ls
    PKGBUILD
    [@:/build/powder]# makepkg
    ==> Making package: powder 117-1 (Mon May 21 16:06:29 MDT 2012)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Downloading powder117_src.tar.gz...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 1846k 100 1846k 0 0 1563k 0 0:00:01 0:00:01 --:--:-- 2013k
    ==> Validating source files with md5sums...
    powder117_src.tar.gz ... Passed
    ==> Extracting Sources...
    -> Extracting powder117_src.tar.gz with bsdtar
    ==> Starting build()...
    /build/powder/PKGBUILD: line 16: cd: /build/powder/src/powder117_src/: No such file or directory
    ==> ERROR: A failure occurred in build().
    Aborting...
    [@:/build/powder]# ls
    PKGBUILD powder117_src.tar.gz
    [@:/build/powder]# cd ..
    [@:/build]# ls
    makepkg pkg powder src yaourt-tmp
    [@:/build]#
    In the last line, the src and pkg directories are the directories that should be inside ./powder
    Actually, now I understand that BUILDDIR is responsible for this.  However, the PKGBUILD is not aware that I'm building in a different place, so changing directories in the PKGBUILD fail.
    I am running arch on an SSD and would prefer to have makepkg build its packages in RAM rather than on disk.  Is there a way to make the PKGBUILD aware that src and pkg are not where it thinks they are?
    Last edited by ayr0 (2012-05-21 22:16:59)

  • Makepkg refuses to build due to depends array [solved]

    Makepkg refuses to build a package based on the contents of the depends array.  My understanding is that the contents of the makedepends array are needed to build, but the contents of the depends array are needed to run the software.
    Example, I want to build nvidia drivers for a kernel which I do not have installed.  I do have that specific kernel headers extracted (via a wrapper script) to $startdir/tar/lib/modules/${_kernver}/build
    I get the following error when I try to build:
    $ makepkg -s
    ==> Making package: nvidia-lts-ck 260.19.36-2 (Sun Jan 30 15:41:20 EST 2011)
    ==> Checking Runtime Dependencies...
    ==> Installing missing dependencies...
    error: 'kernel26-lts-ck>=2.6.32': could not find or read package
    ==> ERROR: 'pacman' failed to install missing dependencies.
    But if I comment out the depends array, it builds just fine.  What am I missed?
    PKGBUILD:
    # Maintainer: graysky <graysky AT archlinux DOT us>
    # Contributer: Eric Belanger <[email protected]>
    pkgname=nvidia-lts-ck
    pkgver=260.19.36
    _kernver='2.6.32-lts-ck'
    pkgrel=2
    pkgdesc="NVIDIA drivers for kernel26-lts-ck"
    arch=('i686' 'x86_64')
    url="http://www.nvidia.com/"
    makedepends=('kernel26-lts-ck-headers>=2.6.32' 'kernel26-lts-ck-headers<2.6.33')
    depends=('kernel26-lts-ck>=2.6.32' 'kernel26-lts-ck<2.6.33' "nvidia-utils=$pkgver")
    provides=('nvidia')
    license=('custom')
    install=nvidia-lts-ck.install
    if [ "$CARCH" = "i686" ]; then
    _arch='x86'
    _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
    source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
    md5sums=('2826484d87827351774449382e45c4a9')
    elif [ "$CARCH" = "x86_64" ]; then
    _arch='x86_64'
    _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
    source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
    md5sums=('6ebc5db9066e920b0b0e48377ce5eeb5')
    fi
    build() {
    cd "${srcdir}"
    sh ${_pkg}.run --extract-only
    cd ${_pkg}/kernel
    make SYSSRC=$startdir/tar/lib/modules/${_kernver}/build module
    package() {
    install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
    "${pkgdir}/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko"
    install -d -m755 "${pkgdir}/etc/modprobe.d"
    echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist-lts_ck.conf"
    install -D -m644 "${srcdir}/${_pkg}/LICENSE" "${pkgdir}/usr/share/licenses/nvidia-lts-ck/LICENSE"
    EDIT:  My bad... so accustomed to using the -s switch!  I now realize I need to makepkg -d to get this to work properly.
    Last edited by graysky (2011-01-30 20:59:19)

    Lone_Wolf wrote:tghe-retford, latest version of readline is      6.3.008-1 , is the mirror you selected up to date ?
    https://www.archlinux.org/mirrors/status/
    Finally managed to update it to 6.3.008-1, still gives the same error:
    root@archiso ~ # pacman -Q readline
    readline 6.3.008-1
    root@archiso ~ #arch-chroot /mnt /bin/bash
    /bin/bash: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory :(
    127 root@archiso ~ #

  • [cisco VPN] Can't build kernel module with 2.6.9-ARCH

    I need to setup a vpn tunnel to my university in order to gain acces to their resources and be able to surf when I am on the campus. With 2.6.8.1 I used the Cisco VPN client 4.0.5 k9. After my upgrade to 2.6.9 I had to rebuild the module, but now it fails to build. Anyone knows how to solve this? Or does anyone know another vpn client that is compatible with Cisco. This piece of software is essential to me. Please help. Here is the output:
    Cisco Systems VPN Client Version 4.0.5 (Rel) Linux Installer
    Copyright (C) 1998-2001 Cisco Systems, Inc. All Rights Reserved.
    By installing this product you agree that you have read the
    license.txt file (The VPN Client license) and will comply with
    its terms.
    Directory where binaries will be installed [/usr/local/bin] /usr/bin
    Automatically start the VPN service at boot time [yes] no
    In order to build the VPN kernel module, you must have the
    kernel headers for the version of the kernel you are running.
    For RedHat 6.x users these files are installed in /usr/src/linux by default
    For RedHat 7.x users these files are installed in /usr/src/linux-2.4 by default
    For Suse 7.3 users these files are installed in /usr/src/linux-2.4.10.SuSE by default
    Directory containing linux kernel source code [/lib/modules/2.6.9-ARCH/build]
    * Binaries will be installed in "/usr/bin".
    * Modules will be installed in "/lib/modules/2.6.9-ARCH/CiscoVPN".
    * The VPN service will *NOT* be started automatically at boot time.
    * Kernel source from "/lib/modules/2.6.9-ARCH/build" will be used to build the module.
    Is the above correct [y] y
    Making module
    make -C /lib/modules/2.6.9-ARCH/build SUBDIRS=/home/luk/sources/vpnclient modules
    make[1]: Entering directory `/usr/src/linux-2.6.9-ARCH'
    CC [M] /home/luk/sources/vpnclient/interceptor.o
    /home/luk/sources/vpnclient/interceptor.c: In function `add_netdev':
    /home/luk/sources/vpnclient/interceptor.c:59: sorry, unimplemented: inlining failed in call to 'supported_device': function body not available
    /home/luk/sources/vpnclient/interceptor.c:245: sorry, unimplemented: called from here
    make[2]: *** [/home/luk/sources/vpnclient/interceptor.o] Error 1
    make[1]: *** [_module_/home/luk/sources/vpnclient] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.9-ARCH'
    make: *** [default] Error 2
    Failed to make module "cisco_ipsec.ko".

    I modified the pkgbuild posted here by someone (thank you!) so it includes all relevant files (meaning also vpnc-connect and vpnc-disconnect and vpnc.conf).
    pkgname=vpnc
    pkgver=0.2
    pkgrel=1
    pkgdesc="Client for Cisco3000 VPN Concentrator"
    url="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
    license="GPL"
    depends=(libgcrypt)
    source=(http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.2-rm+zomb.1.tar.gz)
    md5sums=(ded67de747874c4245ed8405146dc94a)
    build() {
    cd $startdir/src/vpnc-0.2-rm+zomb.1
    # We want the CFLAGS specified in makepkg.conf to be used
    mv Makefile Makefile.old
    sed -e 's/-W -Wall -O -g/$(MYCFLAGS)/g' -e 's/LDFLAGS=-g /LDFLAGS=/g' Makefile.old > Makefile
    export MYCFLAGS=$CFLAGS
    make
    install -d $startdir/pkg/usr/sbin
    install vpnc $startdir/pkg/usr/sbin
    install vpnc-connect $startdir/pkg/usr/sbin
    install vpnc-disconnect $startdir/pkg/usr/sbin
    install -d $startdir/pkg/etc
    install vpnc.conf $startdir/pkg/etc
    Guess what, it works
    I can reproduce my steps.
    - makepkg
    - pacman -A vpnc-xxxxxx.tar.gz
    - add tun to the daemons array in rc.conf
    - Modify /etc/vpnc.conf
    - vpnc-connect

  • SOLVED /usr/bin/makepkg: line 552: build: command not found

    I'm trying to build a custom kernel, but am receiving this error:
    /usr/bin/makepkg: line 552: build: command not found
    I've searched all over for a fix, but haven't had any luck, it doesn't seem to be a common error, or it's so incredibly easy to fix that noone has bothered 
    Thanks for any help.
    /crobot

    Thanks for your response, it has failed on two builds, i'll post both.
    Here's the first:
    # $Id: PKGBUILD,v 1.26 2004/10/06 18:21:54 judd Exp $
    # Maintainer: judd <[email protected]>
    pkgname=kernel26
    pkgver=2.6.8.1
    pkgrel=3
    pkgdesc="The Linux Kernel and modules (IDE support)"
    url="http://www.kernel.org"
    backup=('boot/kconfig26')
    depends=('module-init-tools')
    install=kernel26.install
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
    config cdburning.patch logo_linux_clut224.ppm
    bio_uncopy_user-mem-leak.patch bio_uncopy_user-mem-leak-fix.patch
    http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/26-stable-release/acpi-20040715-2.6.8.diff.bz2)
    md5sums=('9517ca999e822b898fbdc7e72796b1aa' '20ad5bea85099dfcced9a6b91064b04e'
    '66b87662e6dd54b6324f874739fa1b99' '5a62bcc7e96601052c7405459b483826'
    'd2329bc663089cd99b8dbfd25b6a7ebc' '15a9165ae02c4a3a3875fb7924a68cbf'
    'e00d08709581f215b15e321d162f782c')
    build() {
    cd $startdir/src/linux-$pkgver
    patch -Np1 -i ../bio_uncopy_user-mem-leak.patch || return 1
    patch -Np1 -i ../bio_uncopy_user-mem-leak-fix.patch || return 1
    patch -Np1 -i ../cdburning.patch || return 1
    #patch -Np1 -i ../acpi-20040715-2.6.8.diff || return 1
    # Arch logo!
    cp ../logo_linux_clut224.ppm drivers/video/logo/
    # get rid of the 'i' in i686
    carch=`echo $CARCH | sed 's|i||'`
    cat ../config | sed "s|#CARCH#|$carch|g" >./.config
    yes "" | make config
    make clean bzImage modules || return 1
    mkdir -p $startdir/pkg/{lib/modules,boot}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    cp System.map $startdir/pkg/boot/System.map26
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26
    install -D -m644 Makefile $startdir/pkg/usr/src/linux-$pkgver/Makefile
    install -D -m644 .config $startdir/pkg/usr/src/linux-$pkgver/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/include
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/arch/i386/kernel
    for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-$pkgver/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp -a scripts $startdir/pkg/usr/src/linux-$pkgver/
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/.tmp_versions
    cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$pkgver/arch/i386/
    cp arch/i386/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$pkgver/arch/i386/kernel/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-$pkgver/$i
    done
    cd $startdir/pkg/usr/src/linux-$pkgver/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-$pkgver
    cd $startdir/pkg/lib/modules/$pkgver &&
    (rm -f source build; ln -sf /usr/src/linux-$pkgver build)
    Here's the second:
    ###### Give the kernel a unique name (for multiple builds - can be empty)
    _kerrev=crobot
    ###### Choose generic name, version, and release. updated later for $_kerrev
    pkgname=kernel26
    pkgver=2.6.8.1
    pkgrel=1
    pkgdesc="Custom Linux Kernel and modules"
    url="http://www.kernel.org"
    depends=('module-init-tools')
    ###### Add a default config file and any patches to be applied to source array
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2)
    ###### Add md5 checksums here:
    #md5sum=()
    getvar() {
    old=$(cat Makefile | grep "^$1")
    echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*(.*)[ ]*/1/g")
    return 0
    build() {
    cd $startdir/src/linux-$pkgver
    ###### apply patches here
    # patch -p1 < ../patch1 #model
    #get rid of i in i686 in default config
    carch=`echo $CARCH | sed 's|i||'`
    cat ../config | sed "s|#CARCH#|$carch|g" >./.config
    ###### Choose one of the following configuration types
    ###### Use first option for config in source array
    #yes "" | make config
    #make oldconfig || return 1
    make menuconfig
    #make xconfig
    #make gconfig
    ##### No user changes below here
    # save the configuration with today's date
    cp ./.config ../../NEWCONFIG-$(date +%b%d)
    # set EXTRAVERSION to create unique /lib/modules/ subdirectories
    _ker_extraversion=$(getvar "EXTRAVERSION")
    # update EXTRAVERSION in the Makefile by adding our _kerrev
    _oldline=$(cat Makefile | grep "^EXTRAVERSION")
    if [ $_kerrev != "" ]; then
    _ker_extraversion="$_ker_extraversion-$_kerrev"
    cat Makefile | sed "s|$_oldline|EXTRAVERSION = $_ker_extraversion|" > tmpMake
    mv tmpMake Makefile
    fi
    _kerrev=$_ker_extraversion
    kerver=$(getvar "VERSION").$(getvar "PATCHLEVEL").$(getvar "SUBLEVEL")
    # update the package information from the kernel Makefile
    # (just in case the Makefile changed during a patch)
    pkgver=$kerver$(echo $_kerrev | sed -e 's/-/./g')
    pkgdesc="Custom Linux Kernel and modules version: $kerver revision: $_kerrev /
    package ver: $pkgver build: $pkgrel"
    # changing the package name
    # removing patches versions from the revision string
    _t=$(echo $_kerrev | sed -e "s/^..[0-9]*//g")
    # _t=$(echo $_t | sed -e "s/^-rc[0-9]?*//g")
    # _suf contains the suffix identifying the kernel (it has the versions removed from
    it)
    _suf=$(echo $_t | sed -e "s/[0-9]*-/-/g")
    pkgname=kernel26$_suf
    echo "Package name: $pkgname"
    echo "Package ver: $pkgver"
    echo "Package desc: $pkgdesc"
    sleep 5
    make clean bzImage modules || return 1
    mkdir -p $startdir/pkg/{lib/modules,boot}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    # create unique names in /boot/
    cp System.map $startdir/pkg/boot/System.map26$_suf
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26$_suf
    install -D -m644 Makefile $startdir/pkg/usr/src/linux-$kerver/Makefile
    install -D -m644 .config $startdir/pkg/usr/src/linux-$kerver/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26$_suf
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/include
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel
    for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-$kerver/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp -a scripts $startdir/pkg/usr/src/linux-$kerver/
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/.tmp_versions
    cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$kerver/arch/i386/
    cp arch/i386/kernel/asm-offsets.s
    $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-$kerver/$i
    done
    cd $startdir/pkg/usr/src/linux-$kerver/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-$kerver
    # create a unique subdirectory under /usr/src/
    cd $startdir/pkg/usr/src
    mv linux-$kerver linux-$kerver$_kerrev
    cd $startdir/pkg/lib/modules/$kerver$_kerrev &&
    (rm -f build; ln -sf /usr/src/linux-$kerver$_kerrev build)
    Thanks,
    /crobot

  • [SOLVED] l2tp-ipsec-vpn-daemon from AUR fails to build

    Please let me know if there are other details that require posting:-
    ==> Starting build()...
    /usr/bin/qmake -o qttmp-Release.mk -after "OBJECTS_DIR=build/Release" "DESTDIR=dist/Release" nbproject/qt-Release.pro
    mv -f qttmp-Release.mk nbproject/qt-Release.mk
    make -f nbproject/qt-Release.mk dist/Release/L2tpIPsecVpnControlDaemon
    make[1]: Entering directory '/tmp/yaourt-tmp-nimda/aur-l2tp-ipsec-vpn-daemon/src/l2tp-ipsec-vpn-daemon'
    g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -Inbproject -isystem /usr/include/qt -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -Isrc/generated -I. -o build/Release/main.o src/main.cpp
    g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -Inbproject -isystem /usr/include/qt -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -Isrc/generated -I. -o build/Release/VpnClientConnection.o src/VpnClientConnection.cpp
    src/VpnClientConnection.cpp: In member function 'void VpnClientConnection::readyRead()':
    src/VpnClientConnection.cpp:133:99: error: 'class QString' has no member named 'toAscii'
    ::syslog(LOG_DEBUG|LOG_DAEMON, "Executing command %s", m_strActiveCommand.toAscii().constData());
    ^
    src/VpnClientConnection.cpp:140:75: error: 'class QString' has no member named 'toAscii'
    if (COMMANDS[iCommand].pPipe->write(strCommand.toAscii().constData()) == strCommand.length())
    ^
    src/VpnClientConnection.cpp:159:63: error: 'class QString' has no member named 'toAscii'
    if (::mkfifo(strCommandParts[1].toAscii().constData(), DEFFILEMODE) == 0)
    ^
    src/VpnClientConnection.cpp:161:84: error: 'class QString' has no member named 'toAscii'
    const int iChmodResult(::chmod(strCommandParts[1].toAscii().constData(), DEFFILEMODE));
    ^
    src/VpnClientConnection.cpp:168:87: error: 'class QString' has no member named 'toAscii'
    const int iChownResult(::chown(strCommandParts[1].toAscii().constData(), pPwdInfo->pw_uid, pPwdInfo->pw_gid));
    ^
    src/VpnClientConnection.cpp:193:77: error: 'const class QString' has no member named 'toAscii'
    if (COMMANDS[iCommand].pPipe->write(str.toAscii().constData()) != str.length())
    ^
    src/VpnClientConnection.cpp: In member function 'void VpnClientConnection::onCommandError(QProcess::ProcessError)':
    src/VpnClientConnection.cpp:250:96: error: 'class QString' has no member named 'toAscii'
    ::syslog(LOG_DEBUG|LOG_DAEMON, "Command %s finished with error code %d", m_strActiveCommand.toAscii().constData(), ERR_COMMAND_FAILED_TO_START + iError);
    ^
    src/VpnClientConnection.cpp: In member function 'void VpnClientConnection::onCommandFinished(int)':
    src/VpnClientConnection.cpp:257:95: error: 'class QString' has no member named 'toAscii'
    ::syslog(LOG_DEBUG|LOG_DAEMON, "Command %s finished with exit code %d", m_strActiveCommand.toAscii().constData(), iExitCode);
    ^
    src/VpnClientConnection.cpp: In member function 'bool VpnClientConnection::send(VpnClientConnection::ResponseType, VpnClientConnection::ResponseResult, const QString&)':
    src/VpnClientConnection.cpp:268:118: error: 'const class QString' has no member named 'toAscii'
    m_pSocket->write((QString::number(responseType) + " " + QString::number(resultCode) + " " + strCommand + '\n').toAscii().constData());
    ^
    src/VpnClientConnection.cpp: In member function 'bool VpnClientConnection::send(VpnClientConnection::ResponseType, VpnClientConnection::ResponseInformation)':
    src/VpnClientConnection.cpp:281:108: error: 'const class QString' has no member named 'toAscii'
    m_pSocket->write((QString::number(responseType) + " " + QString::number(responseInformation) + '\n').toAscii().constData());
    ^
    src/VpnClientConnection.cpp: In member function 'bool VpnClientConnection::send(VpnClientConnection::ResponseType, const QString&)':
    src/VpnClientConnection.cpp:294:78: error: 'const class QString' has no member named 'toAscii'
    m_pSocket->write((QString::number(responseType) + " " + strOutputline).toAscii().constData());
    ^
    nbproject/qt-Release.mk:319: recipe for target 'build/Release/VpnClientConnection.o' failed
    make[1]: *** [build/Release/VpnClientConnection.o] Error 1
    make[1]: Leaving directory '/tmp/yaourt-tmp-nimda/aur-l2tp-ipsec-vpn-daemon/src/l2tp-ipsec-vpn-daemon'
    Makefile:62: recipe for target 'build' failed
    make: *** [build] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    ==> ERROR: Makepkg was unable to build l2tp-ipsec-vpn-daemon.
    Last edited by n1md4 (2014-06-06 09:47:25)

    Have you tried 0.9.9-2 from the comments: https://aur.archlinux.org/packages/l2tp … pn-daemon/ ?

  • SOLVED: makepkg fails at signing package

    Hi all,
    I'm trying to build a package from AUR but makepkg fails to sign the package.
    I receive the following message: "==> WARNING: Failed to sign package file." and nothing else.
    I have, as far as i can tell, installed all the necessary keys (pacman-key --recv-key and pacman-key --lsign). I even tried to completely reset the keyring  (remove of /etc/pacman.d/gnupg, pacman-key --init, ...) but it does not solve my problem.
    I can see the key when issuing pacman-key -l.
    Any idea is welcome cause I'm completely loss right now and I fear becoming nuts...
    Last edited by calyce (2012-05-25 23:02:49)

    https://wiki.archlinux.org/index.php/De … g_Packages
    That should explain everything you need to sign packages
    To sign packages you need your own key, what comes with pacman is the developers' keys for the packages in the repos
    Last edited by ethail (2012-05-25 16:16:27)

  • [Solved] Catalyst fails to load kernel module

    I have just been through the Catalyst install guide, I installed from the Vi0L0 repos rather than building myself.
    Everything appeared to go fine, however fglrx fails to load when I reboot. The xorg log contains;
    fglrx(0): atiddxDriScreenInit failed. Probably kernel module missing or incompatible
    fglrx(0): **********************************************************
    fglrx(0): * DRI initialization failed                               
    fglrx(0): * kernel module (fglrx.ko) may be missing or incompatible
    fglrx(0): * 2D and 3D acceleration disabled                         
    fglrx(0): **********************************************************
    Is this recoverable? Or does this mean that the current Vi0L0 module has not been built for my kernel (3.11.5-1-ARCH)?
    Last edited by ~lynks (2013-11-03 16:16:00)

    This issue has now been resolved after the update to xorg 1.14
    lsmod | grep fglrx
    shows fglrx is not loaded, and:
    modprobe fglrx
    returns with;
    modprobe: ERROR: could not insert 'fglrx': Exec format error
    Does that indicate a 32/64 bit issue?
    This issue has now been resolved after the update to xorg 1.14
    Last edited by ~lynks (2013-11-03 16:15:48)

  • [SOLVED] Surf-hg and tabbed-hg from aur fail to build

    Hi,
    I'm trying to install surf-hg and tabbed-hg from aur and when I makepkg -i this happens:
    ==> ERROR: A failure occurred in build().
    Aborting...
    I've tried to apply this patch to surf's config.mk but it fails anyway.
    diff -paur surf/config.mk surf.new/config.mk
    --- surf/config.mk 2012-01-29 11:46:00.851597838 +0100
    +++ surf.new/config.mk 2012-01-29 11:46:36.633503895 +0100
    @@ -15,7 +15,7 @@ GTKLIB = `pkg-config --libs gtk+-2.0 web
    # includes and libs
    INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
    -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
    +LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0 -ljavascriptcoregtk-1.0
    # flags
    CPPFLAGS = -DVERSION=\"${VERSION}\"
    Can anyone help me please?
    Last edited by whooper (2012-03-01 21:42:10)

    Yes they both fail to build, manually or with packer.
    I deleted the src directory but it still fails.
    packer -S surf-hg
    Aur Targets (1): surf-hg
    Proceed with installation? [Y/n] y
    Edit surf-hg PKGBUILD with $EDITOR? [Y/n] n
    ==> Determining latest hg revision...
    pulling from http://hg.suckless.org/surf
    searching for changes
    no changes found
    -> Version found: 238
    ==> Making package: surf-hg 238-1 (Thu Mar 1 00:27:47 WET 2012)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    ==> Extracting Sources...
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    cleaning
    pulling from http://hg.suckless.org/surf
    searching for changes
    no changes found
    ==> ERROR: A failure occurred in build().
    Aborting...
    The build failed.

  • Makepkg fails

    trying to run makepkg, returns the following erro
    /usr/bin/makepkg: line 560: build: command not found
    ==> ERROR: Build Failed.  Aborting...
    trying to build php4
    with this
    # $Id: PKGBUILD,v 1.43 2004/07/02 21:18:08 judd Exp $
    # Maintainer: dorphell <[email protected]>
    pkgname=php
    pkgver=4.3.9
    pkgrel=2
    pkgdesc="A high-level scripting language"
    backup=(etc/php.ini)
    depends=('openssl' 'libjpeg' 'freetype2' 'libpng' 'pam'
             'gdbm' 'libxslt' 'openldap')
    makedepends=('apache' 'mysql' 'imap' 'postgresql' 'bzip2' 'smtp-server')
    source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz)# php.ini)
    url="http://www.php.net"
    md5sums=('c685cb76bff996a4dff87097c43e6987')
    build() {
      cd $startdir/src/$pkgname-$pkgver
      ./configure --with-apxs2 --prefix=/usr --sysconfdir=/etc
        --with-ttf --enable-mailparse --with-config-file-scan-dir=/etc
        --enable-bcmath=shared --enable-calendar=shared --enable-ftp=shared
        --enable-gd-native-ttf --enable-magic-quotes --enable-posix=shared
        --enable-session --enable-shared --enable-shmop=shared --with-imap
        --enable-sysvsem=shared --enable-sysvshm=shared --enable-track-vars
        --enable-trans-sid --enable-safe-mode --enable-sockets=shared
        --enable-xml --with-bz2=shared --without-db2 --without-db3
        --with-freetype-dir=/usr --with-gd --with-gdbm --enable-exif
        --with-jpeg-dir=/usr --with-mysql=shared,/usr --with-ldap
        --with-mysql-sock=/tmp/mysql.sock --with-openssl --with-gettext
        --with-pear=/usr/share/pear --with-dom --with-dom-xslt
        --with-pgsql=shared --with-pgsql-sock=/tmp/pgsql.sock
        --with-png-dir=/usr --with-regex=system --with-zlib
      make || return 1
      mkdir -p $startdir/pkg/usr/lib/apache
    #  cp config_vars.mk config_vars.old
    #  sed "s|^INSTALL_IT.*$|INSTALL_IT = apxs -i -a -S LIBEXECDIR=$startdir/pkg/usr/lib/apache -n php4 libs/libphp4.so|" config_vars.old >config_vars.mk
      sed -i "s|-i -a -n php4|-i -n php4|g" Makefile
      make INSTALL_ROOT=$startdir/pkg EXTENSION_DIR=/usr/lib/php install
    md5sums=('c685cb76bff996a4dff87097c43e6987')

    switch
    source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz)# php.ini)
    to
    source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz) # php.ini)

  • VMware 9.0.2 vmnet fails to build on 3.13.7

    So yet another thread and problem with VMware and I've tried all different kind of patches from all kind of places without any results.
    As usual with an upgrade (Syu) I needed to rebuild vmblock and vmnet. vmblock built successfully using the available patches for 3.13, vmnet however didn't.
    I've tried the solution listed on http://dandar3.blogspot.se/2014/01/vmwa … alpha.html, tried the one listed on the wiki (patch that came with vmblock), tried the patch in the AUR vmware-patch, but nothing. I've also tried reinstalling the packages listed in some threads that got it working for a few people, that did however not help me.
    This is the log from the last run, I've used the patch that came with vmblock (the solution listed on the wiki), I'm using the stock kernel which means no netfilter.
    Logging to /tmp/vmware-root/vmware-modconfig-724.log
    Stopping VMware services:
    VMware Authentication Daemon done
    VM communication interface socket family done
    Virtual machine communication interface done
    Virtual machine monitor done
    Blocking file system done
    make: Entering directory '/tmp/modconfig-6SBn6j/vmnet-only'
    Using 2.6.x kernel build system.
    /sbin/make -C /lib/modules/3.13.7-1-ARCH/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
    MODULEBUILDDIR= modules
    make[1]: Entering directory '/usr/lib/modules/3.13.7-1-ARCH/build'
    CC [M] /tmp/modconfig-6SBn6j/vmnet-only/driver.o
    CC [M] /tmp/modconfig-6SBn6j/vmnet-only/hub.o
    CC [M] /tmp/modconfig-6SBn6j/vmnet-only/userif.o
    CC [M] /tmp/modconfig-6SBn6j/vmnet-only/netif.o
    In file included from /tmp/modconfig-6SBn6j/vmnet-only/vnet.h:28:0,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnetInt.h:24,
    from /tmp/modconfig-6SBn6j/vmnet-only/netif.c:42:
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h: In function 'AtomicAssertOnCompilePtr':
    In file included from /tmp/modconfig-6SBn6j/vmnet-only/vnet.h:28:0,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnetInt.h:24,
    from /tmp/modconfig-6SBn6j/vmnet-only/driver.c:51:
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h: In function 'AtomicAssertOnCompilePtr':
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2397:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro 'MAKE_ATOMIC_TYPE'
    MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2397:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro 'MAKE_ATOMIC_TYPE'
    MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h: In function 'AtomicAssertOnCompileInt':
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2397:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro 'MAKE_ATOMIC_TYPE'
    MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h: In function 'AtomicAssertOnCompileInt':
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2397:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro 'MAKE_ATOMIC_TYPE'
    MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
    ^
    In file included from /tmp/modconfig-6SBn6j/vmnet-only/vnet.h:28:0,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnetInt.h:24,
    from /tmp/modconfig-6SBn6j/vmnet-only/userif.c:46:
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h: In function 'AtomicAssertOnCompilePtr':
    In file included from /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h:31:0,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnet.h:29,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnetInt.h:24,
    from /tmp/modconfig-6SBn6j/vmnet-only/netif.c:42:
    /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h: In function 'MonitorActionSet_AtomicInclude':
    /tmp/modconfig-6SBn6j/vmnet-only/vm_assert.h:320:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro 'ASSERT_ON_COMPILE'
    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2397:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro 'MAKE_ATOMIC_TYPE'
    MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
    ^
    In file included from /tmp/modconfig-6SBn6j/vmnet-only/vnet.h:28:0,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnetInt.h:24,
    from /tmp/modconfig-6SBn6j/vmnet-only/hub.c:43:
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h: In function 'AtomicAssertOnCompilePtr':
    In file included from /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h:31:0,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnet.h:29,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnetInt.h:24,
    from /tmp/modconfig-6SBn6j/vmnet-only/driver.c:51:
    /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h: In function 'MonitorActionSet_AtomicInclude':
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2397:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2558:1: note: in expansion of macro 'MAKE_ATOMIC_TYPE'
    MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h: In function 'AtomicAssertOnCompileInt':
    /tmp/modconfig-6SBn6j/vmnet-only/vm_assert.h:320:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro 'ASSERT_ON_COMPILE'
    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2397:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro 'MAKE_ATOMIC_TYPE'
    MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h: In function 'AtomicAssertOnCompileInt':
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2397:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_atomic.h:2562:1: note: in expansion of macro 'MAKE_ATOMIC_TYPE'
    MAKE_ATOMIC_TYPE(Int, 32, int, int, int)
    ^
    In file included from /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h:31:0,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnet.h:29,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnetInt.h:24,
    from /tmp/modconfig-6SBn6j/vmnet-only/userif.c:46:
    /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h: In function 'MonitorActionSet_AtomicInclude':
    /tmp/modconfig-6SBn6j/vmnet-only/vm_assert.h:320:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro 'ASSERT_ON_COMPILE'
    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);
    ^
    In file included from /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h:31:0,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnet.h:29,
    from /tmp/modconfig-6SBn6j/vmnet-only/vnetInt.h:24,
    from /tmp/modconfig-6SBn6j/vmnet-only/hub.c:43:
    /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h: In function 'MonitorActionSet_AtomicInclude':
    /tmp/modconfig-6SBn6j/vmnet-only/vm_assert.h:320:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/monitorAction_exported.h:91:4: note: in expansion of macro 'ASSERT_ON_COMPILE'
    ASSERT_ON_COMPILE((ACTION_WORD_SIZE & (ACTION_WORD_SIZE - 1)) == 0);
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/hub.c: In function 'VNetHubFindHubByID':
    /tmp/modconfig-6SBn6j/vmnet-only/hub.c:132:49: warning: argument to 'sizeof' in 'memcmp' call is the same expression as the first source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
    memcmp(idNum, currHub->id.pvnID, sizeof idNum))) {
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/hub.c: In function 'VNetHubAlloc':
    /tmp/modconfig-6SBn6j/vmnet-only/hub.c:315:36: warning: argument to 'sizeof' in 'memcpy' call is the same pointer type 'uint8 *' as the destination; expected 'uint8' or an explicit length [-Wsizeof-pointer-memaccess]
    memcpy(hub->id.pvnID, id, sizeof id);
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/hub.c:366:28: error: dereferencing pointer to incomplete type
    jack->procEntry->read_proc = VNetHubProcRead;
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/hub.c:367:28: error: dereferencing pointer to incomplete type
    jack->procEntry->data = jack;
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/userif.c: In function 'VNetUserIfIoctl':
    /tmp/modconfig-6SBn6j/vmnet-only/vm_assert.h:320:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/userif.c:810:7: note: in expansion of macro 'ASSERT_ON_COMPILE'
    ASSERT_ON_COMPILE(VNET_NOTIFY_VERSION == 5);
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/vm_assert.h:320:20: warning: typedef 'AssertOnCompileFailed' locally defined but not used [-Wunused-local-typedefs]
    typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/userif.c:811:7: note: in expansion of macro 'ASSERT_ON_COMPILE'
    ASSERT_ON_COMPILE(ACTION_EXPORTED_VERSION == 2);
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/userif.c: In function 'VNetUserIf_Create':
    /tmp/modconfig-6SBn6j/vmnet-only/userif.c:1049:34: error: dereferencing pointer to incomplete type
    userIf->port.jack.procEntry->read_proc = VNetUserIfProcRead;
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/userif.c:1050:34: error: dereferencing pointer to incomplete type
    userIf->port.jack.procEntry->data = userIf;
    ^
    scripts/Makefile.build:308: recipe for target '/tmp/modconfig-6SBn6j/vmnet-only/hub.o' failed
    make[2]: *** [/tmp/modconfig-6SBn6j/vmnet-only/hub.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    scripts/Makefile.build:308: recipe for target '/tmp/modconfig-6SBn6j/vmnet-only/userif.o' failed
    make[2]: *** [/tmp/modconfig-6SBn6j/vmnet-only/userif.o] Error 1
    /tmp/modconfig-6SBn6j/vmnet-only/netif.c: In function 'VNetNetIf_Create':
    /tmp/modconfig-6SBn6j/vmnet-only/netif.c:191:33: error: dereferencing pointer to incomplete type
    netIf->port.jack.procEntry->read_proc = VNetNetIfProcRead;
    ^
    /tmp/modconfig-6SBn6j/vmnet-only/netif.c:192:33: error: dereferencing pointer to incomplete type
    netIf->port.jack.procEntry->data = netIf;
    ^
    scripts/Makefile.build:308: recipe for target '/tmp/modconfig-6SBn6j/vmnet-only/netif.o' failed
    make[2]: *** [/tmp/modconfig-6SBn6j/vmnet-only/netif.o] Error 1
    Makefile:1249: recipe for target '_module_/tmp/modconfig-6SBn6j/vmnet-only' failed
    make[1]: *** [_module_/tmp/modconfig-6SBn6j/vmnet-only] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.13.7-1-ARCH/build'
    Makefile:130: recipe for target 'vmnet.ko' failed
    make: *** [vmnet.ko] Error 2
    make: Leaving directory '/tmp/modconfig-6SBn6j/vmnet-only'
    Failed to build vmnet. Failed to execute the build command.
    $ uname -a
    Linux prometheus 3.13.7-1-ARCH #1 SMP PREEMPT Mon Mar 24 20:06:08 CET 2014 x86_64 GNU/Linux
    $ vmware --version
    VMware Workstation 9.0.2 build-1031769
    Thanks in advance
    Last edited by darnit (2014-03-28 21:11:46)

    this issue was particularly upsetting today, as my phone was at 100% last night, during the night Irene knocked our power out, and apparently something about this drained by battery to only 40% when I woke up. Luckily my laptop is charged, so I can usb charge my phone, but I had hoped to use that later in the day, not first thing in the morning.
    hopefully a resolution to this is being worked on.

Maybe you are looking for

  • When are you applicable to get a replacement for an iphone 5?

    I got my iphone 5 about 7 months ago and I have a 1 year warranty on it. It's been a while and my phone has been starting to act up in ways of: The lock button not working unless pressed hard on the left side When i'm typing a message the screen tend

  • Unable to generae pdf from Framemaker

    Hi All, I am experincing some error while  generating pdf from Framemaker 10. The generated pdf is not displaying the content in all the pages and even most of the tables are also appearing blank. Does anyone know what is the error behind this? Pleas

  • IPhone 4 video to iMovie 09 (iMac)

    I have been taking videos in my iPhone 4 and they are in format .mov. However when I transfer them to my iMac (using image capture or the iTunes) and then try to import them to iMovie09 the iMovie does not recognize the format, in other words I canno

  • Problem in installing the webTest's canoo.

    I have downloaded the Build And Scr of the canoo from the site. i have even set the path in control panel to canoo\bin. now when i am runing the webtest -bulidfile installTest.xml from ther command prompt it is giveing the following error Exception i

  • "parentComponent does not have a valid parent" error

    I'm trying to display a JOption pane with the following code: JOptionPane.showInternalMessageDialog(JOptionPane.getRootFrame(), word, "information", JOptionPane.INFORMATION_MESSAGE); I've also tried the following variation: JOptionPane.showInternalMe