Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
linux5.19-rc1 Compile kernel make install a module fail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
jiutian
n00b
n00b


Joined: 29 May 2022
Posts: 26

PostPosted: Thu Jun 09, 2022 10:09 am    Post subject: linux5.19-rc1 Compile kernel make install a module fail Reply with quote

Thank you

Thank you


Thank you

Thank you

Thank you! :oops:

Code:
INSTALL /boot
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.19.0-rc1 /boot/vmlinuz-5.19.0-rc1
run-parts: executing /etc/kernel/postinst.d/dkms 5.19.0-rc1 /boot/vmlinuz-5.19.0-rc1
Job for systemd-modules-load.service failed because the control process exited with error code.
See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details.
Error! Bad return status for module build on kernel: 5.19.0-rc1 (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.


Code:
DKMS make.log for anbox-binder-1 for kernel 5.19.0-rc1 (x86_64)
make -C /lib/modules/5.19.0-rc1/build V=0 M=$PWD
  CC [M]  /var/lib/dkms/anbox-binder/1/build/deps.o
  CC [M]  /var/lib/dkms/anbox-binder/1/build/binder.o
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:793: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 #define CONFIG_ANDROID_BINDER_DEVICES "binder,hwbinder,vndbinder"
 
<command-line>: note: this is the location of the previous definition
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:793: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 #define CONFIG_ANDROID_BINDER_DEVICES "binder,hwbinder,vndbinder"
 
<command-line>: note: this is the location of the previous definition
/var/lib/dkms/anbox-binder/1/build/deps.c: In function ‘init_kallsyms_lookup_name_binder’:
/var/lib/dkms/anbox-binder/1/build/deps.c:61:12: warning: ‘return’ with a value, in function returning void
     return ret;
            ^~~
/var/lib/dkms/anbox-binder/1/build/deps.c:53:6: note: declared here
 void init_kallsyms_lookup_name_binder(void)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/1/build/deps.c:66:12: warning: ‘return’ with a value, in function returning void
     return ret;
            ^~~
/var/lib/dkms/anbox-binder/1/build/deps.c:53:6: note: declared here
 void init_kallsyms_lookup_name_binder(void)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘task_get_unused_fd_flags’:
/var/lib/dkms/anbox-binder/1/build/binder.c:444:9: error: implicit declaration of function ‘__alloc_fd’; did you mean ‘vmalloc_32’? [-Werror=implicit-function-declaration]
  return __alloc_fd(files, 0, rlim_cur, flags);
         ^~~~~~~~~~
         vmalloc_32
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘task_fd_install’:
/var/lib/dkms/anbox-binder/1/build/binder.c:454:3: error: implicit declaration of function ‘__fd_install’; did you mean ‘fd_install’? [-Werror=implicit-function-declaration]
   __fd_install(proc->files, fd, file);
   ^~~~~~~~~~~~
   fd_install
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘task_close_fd’:
/var/lib/dkms/anbox-binder/1/build/binder.c:467:11: error: implicit declaration of function ‘__close_fd’; did you mean ‘close_fd’? [-Werror=implicit-function-declaration]
  retval = __close_fd(proc->files, fd);
           ^~~~~~~~~~
           close_fd
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_update_page_range’:
/var/lib/dkms/anbox-binder/1/build/binder.c:667:9: error: implicit declaration of function ‘map_kernel_range_noflush’; did you mean ‘remap_pfn_range_notrack’? [-Werror=implicit-function-declaration]
   ret = map_kernel_range_noflush((unsigned long)page_addr,
         ^~~~~~~~~~~~~~~~~~~~~~~~
         remap_pfn_range_notrack
/var/lib/dkms/anbox-binder/1/build/binder.c:709:3: error: implicit declaration of function ‘unmap_kernel_range’; did you mean ‘remap_pfn_range’? [-Werror=implicit-function-declaration]
   unmap_kernel_range((unsigned long)page_addr, PAGE_SIZE);
   ^~~~~~~~~~~~~~~~~~
   remap_pfn_range
/var/lib/dkms/anbox-binder/1/build/binder.c:710:1: warning: label ‘err_map_kernel_failed’ defined but not used [-Wunused-label]
 err_map_kernel_failed:
 ^~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_binder’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1638:42: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
                                      ~~~~^~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:523:70: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
 static inline int security_binder_transfer_binder(const struct cred *from,
                                                   ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1638:60: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
                                                 ~~~~~~~~~~~^~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:524:28: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
         const struct cred *to)
         ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_handle’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1680:42: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
                                      ~~~~^~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:523:70: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
 static inline int security_binder_transfer_binder(const struct cred *from,
                                                   ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1680:60: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
                                                 ~~~~~~~~~~~^~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:524:28: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
         const struct cred *to)
         ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_fd’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1752:42: error: passing argument 1 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);
                                      ~~~~^~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:529:68: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
 static inline int security_binder_transfer_file(const struct cred *from,
                                                 ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1752:60: error: passing argument 2 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);
                                                 ~~~~~~~~~~~^~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:530:26: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
       const struct cred *to,
       ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_transaction’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1979:39: error: passing argument 1 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   if (security_binder_transaction(proc->tsk,
                                   ~~~~^~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:517:66: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
 static inline int security_binder_transaction(const struct cred *from,
                                               ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1980:18: error: passing argument 2 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
       target_proc->tsk) < 0) {
       ~~~~~~~~~~~^~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:518:31: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
            const struct cred *to)
            ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_ioctl_set_ctx_mgr’:
/var/lib/dkms/anbox-binder/1/build/binder.c:3274:44: error: passing argument 1 of ‘security_binder_set_context_mgr’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  ret = security_binder_set_context_mgr(proc->tsk);
                                        ~~~~^~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:512:70: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
 static inline int security_binder_set_context_mgr(const struct cred *mgr)
                                                   ~~~~~~~~~~~~~~~~~~~^~~
In file included from ./include/linux/thread_info.h:23,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:78,
                 from ./include/linux/spinlock.h:55,
                 from ./include/linux/mmzone.h:8,
                 from ./include/linux/gfp.h:6,
                 from ./include/linux/mm.h:7,
                 from ./arch/x86/include/asm/cacheflush.h:5,
                 from /var/lib/dkms/anbox-binder/1/build/binder.c:20:
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_mmap’:
./arch/x86/include/asm/current.h:18:17: error: passing argument 1 of ‘put_files_struct’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 #define current get_current()
                 ^~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:3499:2: note: in expansion of macro ‘current’
 (current);
  ^~~~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:23:
./include/linux/fdtable.h:118:44: note: expected ‘struct files_struct *’ but argument is of type ‘struct task_struct *’
 void put_files_struct(struct files_struct *fs);
                       ~~~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c:3498:14: error: void value not ignored as it ought to be
  proc->files = put_files_struct
              ^
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:249:/var/lib/dkms/anbox-binder/1/build/binder.o] error 1
make[2]: *** [Makefile:1839:/var/lib/dkms/anbox-binder/1/build] error 2
make[1]: *** [Makefile:8:all] error 2
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Thu Jun 09, 2022 12:20 pm    Post subject: Reply with quote

Hi
Is this even Gentoo?
I think Gentoo does not have dkms in its main repository but only in some overlays.
Gentoo uses instead
Code:

emerge @module-rebuild

Most probably the anbox-binder module can NOT be build with 5.19.0-rc1 kernel.
_________________
:)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30905
Location: here

PostPosted: Thu Jun 09, 2022 2:21 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Unsupported Software.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
jiutian
n00b
n00b


Joined: 29 May 2022
Posts: 26

PostPosted: Fri Jun 10, 2022 3:32 am    Post subject: Reply with quote

I hope there will be other software support in the future. At present, Huawei is not engaged in interconnection and screen sharing.
For example, Huawei seems to be making progress in this regard




fedeliallalinea wrote:
Moved from Kernel & Hardware to Unsupported Software.
Back to top
View user's profile Send private message
jiutian
n00b
n00b


Joined: 29 May 2022
Posts: 26

PostPosted: Fri Jun 10, 2022 3:34 am    Post subject: Reply with quote

Thank you.
Debian class system




alamahant wrote:
Hi
Is this even Gentoo?
I think Gentoo does not have dkms in its main repository but only in some overlays.
Gentoo uses instead
Code:

emerge @module-rebuild

Most probably the anbox-binder module can NOT be build with 5.19.0-rc1 kernel.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Fri Jun 10, 2022 5:21 am    Post subject: Reply with quote

jiutian wrote:
Thank you.
Debian class system




alamahant wrote:
Hi
Is this even Gentoo?
I think Gentoo does not have dkms in its main repository but only in some overlays.
Gentoo uses instead
Code:

emerge @module-rebuild

Most probably the anbox-binder module can NOT be build with 5.19.0-rc1 kernel.


I'd consider reaching out to a Debian support forum then.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum