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

Failed to cross-compile to openwrt 5.19.1 on ubuntu18.04 #196

Open
dejavudwh opened this issue Nov 2, 2022 · 0 comments
Open

Failed to cross-compile to openwrt 5.19.1 on ubuntu18.04 #196

dejavudwh opened this issue Nov 2, 2022 · 0 comments

Comments

@dejavudwh
Copy link

/home/dejavudwh/lede-station-p2/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/include/bits/alltypes.h:363:8: error: redefinition of 'struct iovec'
 struct iovec { void *iov_base; size_t iov_len; };
        ^~~~~
In file included from ./include/linux/uio.h:11,
                 from ./include/linux/socket.h:8,
                 from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/socket.h:3,
                 from ./include/net/flow.h:11,
                 from ./include/net/net_namespace.h:15,
                 from ./include/linux/netdevice.h:38,
                 from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/netdevice.h:3,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service_linux.h:30,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service.h:50,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/drv_types.h:27,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/core/rtw_cmd.c:17:
./include/uapi/linux/uio.h:17:8: note: originally defined here
 struct iovec
        ^~~~~
In file included from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/linux/wireless.h:28,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service_linux.h:46,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service.h:50,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/drv_types.h:27,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/core/rtw_cmd.c:17:
/home/dejavudwh/lede-station-p2/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/include/sys/socket.h:22:8: error: redefinition of 'struct msghdr'
 struct msghdr {
        ^~~~~~
In file included from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/socket.h:3,
                 from ./include/net/flow.h:11,
                 from ./include/net/net_namespace.h:15,
                 from ./include/linux/netdevice.h:38,
                 from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/netdevice.h:3,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service_linux.h:30,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service.h:50,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/drv_types.h:27,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/core/rtw_cmd.c:17:
./include/linux/socket.h:50:8: note: originally defined here
 struct msghdr {
        ^~~~~~
In file included from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/linux/wireless.h:28,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service_linux.h:46,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service.h:50,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/drv_types.h:27,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/core/rtw_cmd.c:17:
/home/dejavudwh/lede-station-p2/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/include/sys/socket.h:44:8: error: redefinition of 'struct cmsghdr'
 struct cmsghdr {
        ^~~~~~~
In file included from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/socket.h:3,
                 from ./include/net/flow.h:11,
                 from ./include/net/net_namespace.h:15,
                 from ./include/linux/netdevice.h:38,
                 from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/netdevice.h:3,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service_linux.h:30,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service.h:50,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/drv_types.h:27,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/core/rtw_cmd.c:17:
./include/linux/socket.h:96:8: note: originally defined here
 struct cmsghdr {
        ^~~~~~~
In file included from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/linux/wireless.h:28,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service_linux.h:46,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service.h:50,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/drv_types.h:27,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/core/rtw_cmd.c:17:
/home/dejavudwh/lede-station-p2/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/include/sys/socket.h:74:8: error: redefinition of 'struct linger'
 struct linger {
        ^~~~~~
In file included from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/socket.h:3,
                 from ./include/net/flow.h:11,
                 from ./include/net/net_namespace.h:15,
                 from ./include/linux/netdevice.h:38,
                 from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/netdevice.h:3,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service_linux.h:30,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service.h:50,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/drv_types.h:27,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/core/rtw_cmd.c:17:
./include/linux/socket.h:37:8: note: originally defined here
 struct linger {
        ^~~~~~
In file included from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/linux/wireless.h:28,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service_linux.h:46,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service.h:50,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/drv_types.h:27,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/core/rtw_cmd.c:17:
/home/dejavudwh/lede-station-p2/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/include/sys/socket.h:369:8: error: redefinition of 'struct sockaddr'
 struct sockaddr {
        ^~~~~~~~
In file included from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/socket.h:3,
                 from ./include/net/flow.h:11,
                 from ./include/net/net_namespace.h:15,
                 from ./include/linux/netdevice.h:38,
                 from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/netdevice.h:3,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service_linux.h:30,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service.h:50,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/drv_types.h:27,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/core/rtw_cmd.c:17:
./include/linux/socket.h:32:8: note: originally defined here
 struct sockaddr {
        ^~~~~~~~
./include/linux/socket.h:42:26: error: redefinition of 'struct __kernel_sockaddr_storage'
 #define sockaddr_storage __kernel_sockaddr_storage
                          ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/socket.h:11,
                 from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/socket.h:3,
                 from ./include/net/flow.h:11,
                 from ./include/net/net_namespace.h:15,
                 from ./include/linux/netdevice.h:38,
                 from /home/dejavudwh/lede-station-p2/staging_dir/target-aarch64_generic_musl/usr/include/mac80211-backport/linux/netdevice.h:3,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service_linux.h:30,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service.h:50,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/drv_types.h:27,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/core/rtw_cmd.c:17:
./include/uapi/linux/socket.h:16:8: note: originally defined here
 struct __kernel_sockaddr_storage {
        ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/linux/wireless.h:29,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service_linux.h:46,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/osdep_service.h:50,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/include/drv_types.h:27,
                 from /home/dejavudwh/lede-station-p2/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/rtl8821cu-2021-11-14-ef3ff121/core/rtw_cmd.c:17:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant