Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build issues for x86 and rpi #2

Open
supaplextor opened this issue Jul 10, 2019 · 0 comments
Open

build issues for x86 and rpi #2

supaplextor opened this issue Jul 10, 2019 · 0 comments

Comments

@supaplextor
Copy link

Hello,

I'm unable to build on raspberry pi raspbian buster, or Ubuntu LTS 18.04.2.


supaplex@supaplex-N56JR:~/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code$ sudo make clean
[sudo] password for supaplex: 
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
supaplex@supaplex-N56JR:~/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code$ sudo make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-25-generic/build M=/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code  modules
make[1]: Entering directory '/usr/src/linux-headers-4.18.0-25-generic'
Makefile:970: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  CC [M]  /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.o
In file included from /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h:41:0,
                 from /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/drv_types.h:32,
                 from /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.c:22:
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service_linux.h:254:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
  ptimer->data = (unsigned long)cntx;
        ^~
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service_linux.h:255:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
  init_timer(ptimer);
  ^~~~~~~~~~
  _init_timer
In file included from /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/drv_types.h:32:0,
                 from /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.c:22:
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h: In function ‘thread_enter’:
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h:251:2: error: implicit declaration of function ‘allow_signal’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
  allow_signal(SIGTERM);
  ^~~~~~~~~~~~
  do_signal
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h: In function ‘flush_signals_thread’:
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h:261:6: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]
  if (signal_pending (current))
      ^~~~~~~~~~~~~~
      timer_pending
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h:263:3: error: implicit declaration of function ‘flush_signals’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
   flush_signals(current);
   ^~~~~~~~~~~~~
   do_signal
cc1: some warnings being treated as errors
scripts/Makefile.build:323: recipe for target '/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.o' failed
make[2]: *** [/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.o] Error 1
Makefile:1534: recipe for target '_module_/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code' failed
make[1]: *** [_module_/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.18.0-25-generic'
Makefile:1049: recipe for target 'modules' failed
supaplex@supaplex-N56JR:~/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code$ sudo apt install libelf-dev libelf-devel elfutils-libelf-devel
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libelf-devel
E: Unable to locate package elfutils-libelf-devel
supaplex@supaplex-N56JR:~/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code$ sudo apt install libelf-dev 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  zlib1g-dev
The following NEW packages will be installed:
  libelf-dev zlib1g-dev
0 upgraded, 2 newly installed, 0 to remove and 27 not upgraded.
Need to get 233 kB of archives.
After this operation, 830 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-0ubuntu2 [176 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libelf-dev amd64 0.170-0.4ubuntu0.1 [57.3 kB]
Fetched 233 kB in 1s (247 kB/s)      
Selecting previously unselected package zlib1g-dev:amd64.
(Reading database ... 230171 files and directories currently installed.)
Preparing to unpack .../zlib1g-dev_1%3a1.2.11.dfsg-0ubuntu2_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-0ubuntu2) ...
Selecting previously unselected package libelf-dev:amd64.
Preparing to unpack .../libelf-dev_0.170-0.4ubuntu0.1_amd64.deb ...
Unpacking libelf-dev:amd64 (0.170-0.4ubuntu0.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-0ubuntu2) ...
Setting up libelf-dev:amd64 (0.170-0.4ubuntu0.1) ...
supaplex@supaplex-N56JR:~/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code$ sudo make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-25-generic/build M=/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code  modules
make[1]: Entering directory '/usr/src/linux-headers-4.18.0-25-generic'
  CC [M]  /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.o
In file included from /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h:41:0,
                 from /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/drv_types.h:32,
                 from /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.c:22:
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service_linux.h:254:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
  ptimer->data = (unsigned long)cntx;
        ^~
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service_linux.h:255:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
  init_timer(ptimer);
  ^~~~~~~~~~
  _init_timer
In file included from /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/drv_types.h:32:0,
                 from /home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.c:22:
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h: In function ‘thread_enter’:
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h:251:2: error: implicit declaration of function ‘allow_signal’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
  allow_signal(SIGTERM);
  ^~~~~~~~~~~~
  do_signal
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h: In function ‘flush_signals_thread’:
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h:261:6: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]
  if (signal_pending (current))
      ^~~~~~~~~~~~~~
      timer_pending
/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h:263:3: error: implicit declaration of function ‘flush_signals’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
   flush_signals(current);
   ^~~~~~~~~~~~~
   do_signal
cc1: some warnings being treated as errors
scripts/Makefile.build:323: recipe for target '/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.o' failed
make[2]: *** [/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.o] Error 1
Makefile:1534: recipe for target '_module_/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code' failed
make[1]: *** [_module_/home/supaplex/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.18.0-25-generic'
Makefile:1049: recipe for target 'modules' failed
make: *** [modules] Error 2
supaplex@supaplex-N56JR:~/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code$ uname -a
Linux supaplex-N56JR 4.18.0-25-generic #26~18.04.1-Ubuntu SMP Thu Jun 27 07:28:31 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
supaplex@supaplex-N56JR:~/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code$ ls -l /boot/vm*
-rw------- 1 root root 8548088 Jun  6 01:16 /boot/vmlinuz-4.18.0-22-generic
-rw------- 1 root root 8552184 Jun 20 03:02 /boot/vmlinuz-4.18.0-24-generic
-rw------- 1 root root 8552184 Jun 26 21:32 /boot/vmlinuz-4.18.0-25-generic
supaplex@supaplex-N56JR:~/usr/src/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code$ cat /etc/issue
Ubuntu 18.04.2 LTS \n \l



pi@raspberrypi:~/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code $ sudo make clean
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
pi@raspberrypi:~/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code $ l
Display all 116 possibilities? (y or n)
pi@raspberrypi:~/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code $ ls
ls           lsattr       lsblk        lsb_release  lscpu        lsinitramfs  lsipc        lslocks      lslogins     lsmem        lsmod        lsns         lsof         lspgpot      lsusb
pi@raspberrypi:~/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code $ lsb
lsblk        lsb_release  
pi@raspberrypi:~/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code $ lsb_release 
No LSB modules are available.
pi@raspberrypi:~/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code $ cat /etc/issue
Raspbian GNU/Linux 10 \n \l

pi@raspberrypi:~/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code $ uname -a
Linux raspberrypi 4.19.50-v7l+ #895 SMP Thu Jun 20 16:03:42 BST 2019 armv7l GNU/Linux
pi@raspberrypi:~/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code $ ls -l /boot/*4.9*
-rwxr-xr-x 1 root root   175885 Jul  9 21:23 /boot/config-4.9.0-6-rpi
-rwxr-xr-x 1 root root 23317911 Jul  9 21:24 /boot/initrd.img-4.9.0-6-rpi
-rwxr-xr-x 1 root root  2605847 Jul  9 21:23 /boot/System.map-4.9.0-6-rpi
-rwxr-xr-x 1 root root  5313420 Jul  9 21:23 /boot/vmlinuz-4.9.0-6-rpi
pi@raspberrypi:~/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code $ sudo make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.50-v7l+/build M=/home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code  modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.50-v7l+'
  CC [M]  /home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.o
In file included from /home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h:41,
                 from /home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/drv_types.h:32,
                 from /home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.c:22:
/home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service_linux.h:254:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
  ptimer->data = (unsigned long)cntx;
        ^~
/home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service_linux.h:255:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
  init_timer(ptimer);
  ^~~~~~~~~~
  _init_timer
In file included from /home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/drv_types.h:35,
                 from /home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.c:22:
/home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/wifi.h: At top level:
/home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/wifi.h:963: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from ./include/net/cfg80211.h:24,
                 from /home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service_linux.h:76,
                 from /home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/osdep_service.h:41,
                 from /home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/include/drv_types.h:32,
                 from /home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:304: /home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1517: _module_/home/pi/Realtek-rtl8811AU_8812AU_8821AU_linux-source-code] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.50-v7l+'
make: *** [Makefile:1049: modules] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants