Fedora 36 ARM on M1 Parallels Tools install fails on Error: could not build kernel modules m

Discussion in 'Linux Guest OS Discussion' started by Tokay, May 14, 2022.

  1. ogpimen

    ogpimen

    Messages:
    2
    Hi team, same issues in
    Linux version 5.18.0-kali5-arm64 (devel@kali.org) (gcc-11 (Debian 11.3.0-3) 11.3.0, GNU ld (GNU Binutils for Debian) 2.38) #1 SMP Debian 5.18.5-1kali5
    please see trace below:


    parallels@0x-kali-test î‚° ~/Desktop/installer î‚° sudo ./install-cli.sh -i --verbose  âœ"  72  22:25:04
    [sudo] password for parallels:
    Started installation of Parallels Guest Tools version '17.1.4.51567'
    modprobe: FATAL: Module prl_tg not found in directory /lib/modules/5.18.0-kali5-arm64

    Tue Jul 19 22:25:21 EDT 2022
    Start installation or upgrade of Guest Tools
    Installed Guest Tools were not found
    Register service to install new Guest Tools
    Perform installation into the /usr/lib/parallels-tools directory
    make: Entering directory '/usr/lib/parallels-tools/kmods'
    awk: cmd. line:1: warning: regexp escape sequence `\#' is not a known regexp operator
    Will use compiler CC="cc".
    Compiler version "cc (Debian 11.3.0-3) 11.3.0"
    cd prl_tg/Toolgate/Guest/Linux/prl_tg && make CC=cc
    make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
    1: /lib/modules/5.18.0-kali5-arm64/build
    2: /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg
    3: 20220719
    4: 1.10.0
    Start compile prl_tg...
    make -C /lib/modules/5.18.0-kali5-arm64/build M=/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg SRCROOT=/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg CC=cc modules
    make[2]: Entering directory '/usr/src/linux-headers-5.18.0-kali5-arm64'
    warning: the compiler differs from the one used to build the kernel
    The kernel was built by: gcc-11 (Debian 11.3.0-3) 11.3.0
    You are using: cc (Debian 11.3.0-3) 11.3.0
    1: /lib/modules/5.18.0-kali5-arm64/build
    2: /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg
    3: 20220719
    4: 1.10.0
    CC [M] /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o
    In file included from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:23:
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_common.h: In function 'tg_out':
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_common.h:179:14: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    179 | port += dev->base_addr;
    | ^~
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_common.h:183:24: warning: passing argument 2 of 'iowrite64' makes pointer from integer without a cast [-Wint-conversion]
    183 | iowrite64(val, port);
    | ^~~~
    | |
    | long unsigned int
    In file included from /usr/src/linux-headers-5.18.0-kali5-common/arch/arm64/include/asm/io.h:185,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/linux/io.h:13,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/linux/irq.h:20,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/asm-generic/hardirq.h:17,
    from /usr/src/linux-headers-5.18.0-kali5-common/arch/arm64/include/asm/hardirq.h:17,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/linux/hardirq.h:11,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/linux/interrupt.h:11,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/linux/pci.h:38,
    from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:7:
    /usr/src/linux-headers-5.18.0-kali5-common/include/asm-generic/io.h:769:64: note: expected 'volatile void *' but argument is of type 'long unsigned int'
    769 | static inline void iowrite64(u64 value, volatile void __iomem *addr)
    | ~~~~~~~~~~~~~~~~~~~~~~~^~~~
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c: In function 'prl_tg_initialize':
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:385:14: error: implicit declaration of function 'pci_set_dma_mask' [-Werror=implicit-function-declaration]
    385 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
    | ^~~~~~~~~~~~~~~~
    In file included from /usr/src/linux-headers-5.18.0-kali5-common/include/asm-generic/bug.h:22,
    from /usr/src/linux-headers-5.18.0-kali5-common/arch/arm64/include/asm/bug.h:26,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/linux/bug.h:5,
    from /usr/src/linux-headers-5.18.0-kali5-common/arch/arm64/include/asm/cpufeature.h:19,
    from /usr/src/linux-headers-5.18.0-kali5-common/arch/arm64/include/asm/hwcap.h:9,
    from /usr/src/linux-headers-5.18.0-kali5-common/arch/arm64/include/asm/arch_timer.h:12,
    from /usr/src/linux-headers-5.18.0-kali5-common/arch/arm64/include/asm/timex.h:8,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/linux/timex.h:67,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/linux/time32.h:13,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/linux/time.h:60,
    from /usr/src/linux-headers-5.18.0-kali5-common/arch/arm64/include/asm/stat.h:12,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/linux/stat.h:6,
    from /usr/src/linux-headers-5.18.0-kali5-common/include/linux/module.h:13,
    from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:5:
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c: In function 'prl_tg_probe_common':
    /usr/src/linux-headers-5.18.0-kali5-common/include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'void *' [-Wformat=]
    5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
    | ^~~~~~
    /usr/src/linux-headers-5.18.0-kali5-common/include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
    418 | _p_func(_fmt, ##__VA_ARGS__); \
    | ^~~~
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:520:9: note: in expansion of macro 'printk'
    520 | printk(KERN_INFO "detected %s, base addr %08lx, IRQ %d\n",
    | ^~~~~~
    /usr/src/linux-headers-5.18.0-kali5-common/include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
    14 | #define KERN_INFO KERN_SOH "6" /* informational */
    | ^~~~~~~~
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:520:16: note: in expansion of macro 'KERN_INFO'
    520 | printk(KERN_INFO "detected %s, base addr %08lx, IRQ %d\n",
    | ^~~~~~~~~
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c: In function 'prl_tg_init_module':
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:646:13: warning: unused variable 'rc' [-Wunused-variable]
    646 | int rc;
    | ^~
    cc1: some warnings being treated as errors
    make[3]: *** [/usr/src/linux-headers-5.18.0-kali5-common/scripts/Makefile.build:293: /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o] Error 1
    make[2]: *** [/usr/src/linux-headers-5.18.0-kali5-common/Makefile:1858: /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg] Error 2
    make[2]: Leaving directory '/usr/src/linux-headers-5.18.0-kali5-arm64'
    make[1]: *** [Makefile:43: prl_tg] Error 2
    make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
    make: *** [Makefile.kmods:47: compile] Error 2
    make: Leaving directory '/usr/lib/parallels-tools/kmods'
    Error: could not build kernel modules
    modprobe: FATAL: Module prl_tg not found in directory /lib/modules/5.18.0-kali5-arm64
    modprobe: FATAL: Module prl_tg not found in directory /lib/modules/5.18.0-kali5-arm64
    Error: failed to install Parallels Guest Tools!
     
  2. ogpimen

    ogpimen

    Messages:
    2
    submitted support ticket # 3567788 for this issue
     
  3. benny5

    benny5

    Messages:
    1
    Can confirm, that Parallels desktop updated to 17.1.4 same error as Kali ARM 2022.2... can't understand how basic things not working
     
  4. Lukasz7

    Lukasz7 Bit Poster

    Messages:
    1
    Same issue.
     
  5. HarryN2

    HarryN2 Bit Poster

    Messages:
    2
    Yep, same here. Happened after an `apt upgrade`
     
  6. ChristianW8

    ChristianW8 Bit Poster

    Messages:
    21
    Same issue
     
  7. LudekS

    LudekS Bit Poster

    Messages:
    3
    Same issue. I can not install parallels tools. :(
     
  8. josephvb

    josephvb Bit Poster

    Messages:
    2
    Same for me. (CentOS-Stream-9 on Mac-book pro m1 max).

    I am not keen to run the latest CentOS but anybody know if an older version or a different distribution would work?
     
  9. GregF9

    GregF9

    Messages:
    1
    Same exact issue. Fedora 36. Parallels tools: 17.1.4.51567.
    Please fix
     
  10. binbjz

    binbjz Bit Poster

    Messages:
    3
    Fixed in 18.0.0 (53049)
     
  11. OlegI1

    OlegI1 Bit Poster

    Messages:
    1
  12. HarryN2

    HarryN2 Bit Poster

    Messages:
    2
    Yep this is fixed with the latest Paralles
     
  13. JaroslawF

    JaroslawF Bit Poster

    Messages:
    1
    Any idea when will this be fixed in the "Mac App Store Edition"?
     

Share This Page