endless make under linux 2.6.17-gentoo-r4 and build 1670

Discussion in 'Parallels Workstation for Windows and Linux' started by rsa4046, Aug 19, 2006.

  1. rsa4046

    rsa4046 Bit poster

    Messages:
    9
    Hi,
    I've had parallels-vm working before, but after a fresh install to a new drive, I can't seem to run parallels-config successfully: it terminates with
    Code:
        Configuring Parallels Workstation 2.1 drivers...
         Compiling Parallels Workstation 2.1 drivers...
    
    Can not compile and/or link drivers. Read /usr/lib/parallels/doc/INSTALL
    and follow instructions specified in this document.
    
    Configuration and compilation log is available at /usr/lib/parallels/comp.log.9170.error
    Here's a snippet from /usr/lib/parallels/comp.log.9170.error, in which make seems to be trying to build the same object in some recursive loop:

    Code:
    <snip>
    make[1]: Leaving directory `/usr/lib/parallels'
    Making all in drivers
    make[1]: Entering directory `/usr/lib/parallels/drivers'
    Making all in .
    make[2]: Entering directory `/usr/lib/parallels/drivers'
    => Patching modules makefiles for 2.6.x kernel ...
    for i in hypervisor/Makefile drv_main/Makefile drv_net/linux/Makefile drv_virtualnic/Makefile; do \
            sed s/CFLAGS\ =/CFLAGS\ :=\ \$\(CFLAGS\)/ $i | \
            sed s/obj_m/obj-m/ | \
            sed s/hypervisor_objs/hypervisor-objs/ | \
            sed s/vm_main_objs/vm-main-objs/ | \
            sed s/vm_bridge_objs/vm-bridge-objs/ | \
            sed s/vmvirtualnic_objs/vmvirtualnic-objs/ | \
            sed s/_extra_ldflags\ =/EXTRA_LDFLAGS+=/ | \
            sed s/_extra_cflags\ =/EXTRA_CFLAGS+=/ | \
            sed s/include\ .\\/\$\(DEPDIR\)/#/ > $i.t; mv -f $i.t $i;\
    done
    cp -f drv_main/common/md5.c hypervisor/;
    cp -f drv_main/common/utils.c hypervisor/;
    make[2]: Leaving directory `/usr/lib/parallels/drivers'
    Making all in hypervisor
    make[2]: Entering directory `/usr/lib/parallels/drivers/hypervisor'
    make -C /lib/modules/2.6.17-gentoo-r4/build SUBDIRS=/usr/lib/parallels/drivers/hypervisor SRCROOT=/usr/lib/parallels/drivers/hypervisor modules && mv -f
     hypervisor.ko hypervisor.o
    make[3]: Entering directory `/usr/src/linux-2.6.17-gentoo-r4'
    make -C /lib/modules/2.6.17-gentoo-r4/build SUBDIRS=/usr/src/linux-2.6.17-gentoo-r4 SRCROOT=/usr/src/linux-2.6.17-gentoo-r4 modules && mv -f hypervisor.
    ko hypervisor.o
    make -C /lib/modules/2.6.17-gentoo-r4/build SUBDIRS=/usr/src/linux-2.6.17-gentoo-r4 SRCROOT=/usr/src/linux-2.6.17-gentoo-r4 modules && mv -f hypervisor.
    ko hypervisor.o
    <snip>
    
    This is repeated several hundred times (with several hundred instances of make running during the compile), finally terminating with
    Code:
    <snip>
    make -C /lib/modules/2.6.17-gentoo-r4/build SUBDIRS=/usr/src/linux-2.6.17-gentoo-r4 SRCROOT=/usr/src/linux-2.6.17-gentoo-r4 modules && mv -f hypervisor.
    ko hypervisor.o
    make -C /lib/modules/2.6.17-gentoo-r4/build SUBDIRS=/usr/src/linux-2.6.17-gentoo-r4 SRCROOT=/usr/src/linux-2.6.17-gentoo-r4 modules && mv -f hypervisor.
    ko hypervisor.o
    make -C /lib/modules/2.6.17-gentoo-r4/build SUBDIRS=/usr/src/linux-2.6.17-gentoo-r4 SRCROOT=/usr/src/linux-2.6.17-gentoo-r4 modules && mv -f hypervisor.
    ko hypervisor.o
    make[787]: execvp: /bin/sh: Argument list too long
    make[787]: *** [/usr/src/linux-2.6.17-gentoo-r4/Module.symvers] Error 127
    make[786]: *** [/usr/lib/parallels/drivers/hypervisor/hypmain.o] Error 2
    make[785]: *** [_module_/usr/lib/parallels/drivers/hypervisor] Error 2
    <snip>
    make[8]: *** [/usr/lib/parallels/drivers/hypervisor/hypmain.o] Error 2
    make[7]: *** [_module_/usr/lib/parallels/drivers/hypervisor] Error 2
    make[6]: *** [/usr/lib/parallels/drivers/hypervisor/hypmain.o] Error 2
    make[5]: *** [_module_/usr/lib/parallels/drivers/hypervisor] Error 2
    make[4]: *** [/usr/lib/parallels/drivers/hypervisor/hypmain.o] Error 2
    make[3]: *** [_module_/usr/lib/parallels/drivers/hypervisor] Error 2
    make[3]: Leaving directory `/usr/src/linux-2.6.17-gentoo-r4'
    make[2]: *** [hypervisor] Error 2
    make[2]: Leaving directory `/usr/lib/parallels/drivers/hypervisor'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/lib/parallels/drivers'
    make: *** [all-recursive] Error 1
    Am using gcc version 4.1.1 (Gentoo 4.1.1), glibc-2.4, binutils-2.16, with
    Code:
    # uname -a
    Linux 2.6.17-gentoo-r4 #3 PREEMPT i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GNU/Linux
    Anybody have any ideas on what the problem is?
     
  2. Negative

    Negative Bit poster

    Messages:
    8
    It's the same kernel problem as with Suse10.1 IMHO. It will be fixed in the next version due around the end of August.
     
  3. rsa4046

    rsa4046 Bit poster

    Messages:
    9
    Thanks, Negative
     
  4. rsa4046

    rsa4046 Bit poster

    Messages:
    9
    Update --
    You were right, Negative. I used Glanzmann's kernel script patch, and got parallels-config to compile drivers successfully. :) Thanks again for the tip!
     
  5. dglock2

    dglock2 Hunter

    Messages:
    107
    I
    Just tried the parallels 2.2 beta and the suse problem is NOT fixed!

    I had 2.1 installed using the kernel patch, when i installed 2.2 it wouldn't compile even with the patch.

    Guess if we want to use parallels in suse 10.1 we will have to use 2.1.

    don
     
  6. Andrew @ Parallels

    Andrew @ Parallels Parallels Team

    Messages:
    1,507
    dglock2,

    It works flawlessly in our labs. Could you please report the output of

    uname -a
    ls -la /usr/src
    ls /usr/src/linux/

    ?
     
    Last edited: Aug 24, 2006
  7. dglock2

    dglock2 Hunter

    Messages:
    107
    Here they are.

    don@home:~> uname -a
    Linux home 2.6.16.21-0.13-smp #1 SMP Mon Jul 17 17:22:44 UTC 2006 i686 athlon i386 GNU/Linux

    don@home:~> ls -la /usr/src
    total 1
    drwxr-xr-x 7 root root 272 2006-07-31 12:26 .
    drwxr-xr-x 12 root root 344 2006-07-29 14:06 ..
    drwxr-xr-x 3 root root 80 2006-05-02 02:07 debug
    lrwxrwxrwx 1 root root 20 2006-07-29 10:45 linux -> linux-2.6.16.21-0.13
    drwxr-xr-x 3 root root 72 2006-07-29 10:45 linux-2.6.16.13-4
    drwxr-xr-x 20 root root 1040 2006-08-11 09:46 linux-2.6.16.21-0.13
    drwxr-xr-x 3 root root 96 2006-07-29 10:57 linux-2.6.16.21-0.13-obj
    lrwxrwxrwx 1 root root 24 2006-07-29 10:45 linux-obj -> linux-2.6.16.21-0.13-obj
    drwxr-xr-x 7 root root 168 2006-07-29 09:38 packages

    don@home:~> ls /usr/src/linux/
    arch fs Makefile
    block include mm
    config-2.6.16.21-0.13-default init net
    config-2.6.16.21-0.13-smp ipc README
    config-2.6.16.21-0.13-xen Kbuild README.SUSE
    COPYING kdb REPORTING-BUGS
    CREDITS kernel scripts
    crypto lib security
    Documentation localversion-rpm-release sound
    drivers MAINTAINERS usr

    don
     
  8. dglock2

    dglock2 Hunter

    Messages:
    107

    When you say it worked flawlessly in your lab, was that after using the kernel patch or does it work without the patch?

    If it works without the patch then that may be why 2.2 won't compile on this comp. I do have the patch installed.

    don
     
  9. Andrew @ Parallels

    Andrew @ Parallels Parallels Team

    Messages:
    1,507
    I mean without patch of course. Could you give output without patch please?
     
  10. dglock2

    dglock2 Hunter

    Messages:
    107
    I don't know how to remove the patch so i installed suse 10.1 on a different drive and parallels works fine BUT windows xp as guest has no sound.
    I installed 2.2 on pclinux and on suse 10.0 and there is no sound from either xp or win 2k as guest.

    don
     
  11. Danorske

    Danorske Member

    Messages:
    56
    Hei Don,
    I just installed 2.2 onto Suse 10.1 and everything went fine. Thou I can't help you here , sorry.
    Ron
     
  12. Andrew @ Parallels

    Andrew @ Parallels Parallels Team

    Messages:
    1,507
    Could you check sound configuration in VM config? Which device is used for sound output?
     
  13. dglock2

    dglock2 Hunter

    Messages:
    107
    Its using /dev/dsp for output with the other choices being,aRTS daemon or loopback.
    None of the above work,either.

    mixer is /dev/mixer with to only other choice being loopback.

    Those are the same settings that worked fine in parallels 2.1.

    don
     
  14. rsa4046

    rsa4046 Bit poster

    Messages:
    9
    Just an update: I downloaded the ebuild for the new beta (parallels-workstation-2.2.2050.ebuild.tar.gz), emerged it, and it built and installed with none of the problems described at the start of this thread, and thus far runs great :D . Thanks!
     
  15. Klaus Paiva

    Klaus Paiva Bit poster

    Messages:
    1
    Hello!

    Sorry for asking this question, that should be very simple for you guys, but how can I apply this patch?

    I've installed Parallels on my Xubuntu box, using the .deb file.

    If helps, my kernel version:
    2.6.17-10-386

    Thanks!
     
  16. rsa4046

    rsa4046 Bit poster

    Messages:
    9
    There are probably more detailed instructions posted elsewhere, but in short
    1. Download the patch, save it with a unique name, e.g. /tmp/patch0
    2. Execute the following in a terminal console:
    Code:
    # cd /usr/src/linux/scripts
    # patch < /tmp/patch0
    # cd /usr/src/linux
    # make clean
    Go ahead and make + install the kernel the way you normally do. After that the installation should run without error. However, I believe the latest version (2.2 RC1) has fixed this problem: it works for me (2.6.17 kernel) without patching, so you should first verify whether the above is really necessary.
     

Share This Page