You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use external toolchain build openwrt
--- Use external toolchain
[ ] Use host's toolchain
(arm-openwrt-linux-gnueabi) Target name
(arm-openwrt-linux-gnueabi-) Toolchain prefix
($(TOPDIR)/../toolchains/arm) Toolchain root
(glibc) Toolchain libc
(./usr/bin ./bin) Toolchain program path
(./usr/include ./include) Toolchain include path
(./usr/lib ./lib) Toolchain library path
I get build error(external_toolchain.txt log)
make -C /home/xukai/project/commit/robotos/openwrt/build_dir/target-arm-openwrt-linux-gnueabi/linux-leo_gx8010-dev-1v/linux-4.4.25 HOSTCFLAGS="-O2 -I/home/xukai/project/commit/robotos/openwrt/staging_dir/host/include -I/home/xukai/project/commit/robotos/openwrt/staging_dir/host/usr/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-gnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" CONFIG_SHELL="bash" V='' CC="arm-openwrt-linux-gnueabi-gcc" modules
make[5]: Entering directory '/home/xukai/project/commit/robotos/kernel'
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
net/sched/Kconfig:44: warning: menuconfig statement without prompt
.config:1092:warning: override: DEFAULT_NOOP changes choice state
configuration written to .config
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[6]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
In file included from ./arch/arm/include/asm/bug.h:6:0,
from include/linux/bug.h:4,
from include/linux/page-flags.h:9,
from kernel/bounds.c:9:
./arch/arm/include/asm/opcodes.h:14:52: error: unknown type name 'u32'
extern asmlinkage unsigned int arm_check_condition(u32 opcode, u32 psr);
^
./arch/arm/include/asm/opcodes.h:14:64: error: unknown type name 'u32'
extern asmlinkage unsigned int arm_check_condition(u32 opcode, u32 psr);
^
In file included from include/linux/log2.h:16:0,
from kernel/bounds.c:12:
./arch/arm/include/asm/bitops.h: In function '____atomic_set_bit':
include/linux/bitops.h:8:39: error: 'BITS_PER_LONG' undeclared (first use in this function)
#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
^
./arch/arm/include/asm/bitops.h:38:23: note: in expansion of macro 'BIT_MASK'
unsigned long mask = BIT_MASK(bit);
^
include/linux/bitops.h:8:39: note: each undeclared identifier is reported only once for each function it appears in
#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
^
./arch/arm/include/asm/bitops.h:38:23: note: in expansion of macro 'BIT_MASK'
unsigned long mask = BIT_MASK(bit);
^
./arch/arm/include/asm/bitops.h: In function '____atomic_clear_bit':
include/linux/bitops.h:8:39: error: 'BITS_PER_LONG' undeclared (first use in this function)
#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
^
The text was updated successfully, but these errors were encountered:
xukaihub:
When I use external toolchain build openwrt
--- Use external toolchain
[ ] Use host's toolchain
(arm-openwrt-linux-gnueabi) Target name
(arm-openwrt-linux-gnueabi-) Toolchain prefix
($(TOPDIR)/../toolchains/arm) Toolchain root
(glibc) Toolchain libc
(./usr/bin ./bin) Toolchain program path
(./usr/include ./include) Toolchain include path
(./usr/lib ./lib) Toolchain library path
I get build error(external_toolchain.txt log)
make -C /home/xukai/project/commit/robotos/openwrt/build_dir/target-arm-openwrt-linux-gnueabi/linux-leo_gx8010-dev-1v/linux-4.4.25 HOSTCFLAGS="-O2 -I/home/xukai/project/commit/robotos/openwrt/staging_dir/host/include -I/home/xukai/project/commit/robotos/openwrt/staging_dir/host/usr/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-gnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" CONFIG_SHELL="bash" V='' CC="arm-openwrt-linux-gnueabi-gcc" modules
make[5]: Entering directory '/home/xukai/project/commit/robotos/kernel'
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
net/sched/Kconfig:44: warning: menuconfig statement without prompt
.config:1092:warning: override: DEFAULT_NOOP changes choice state
configuration written to .config
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[6]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
In file included from ./arch/arm/include/asm/bug.h:6:0,
from include/linux/bug.h:4,
from include/linux/page-flags.h:9,
from kernel/bounds.c:9:
./arch/arm/include/asm/opcodes.h:14:52: error: unknown type name 'u32'
extern asmlinkage unsigned int arm_check_condition(u32 opcode, u32 psr);
^
./arch/arm/include/asm/opcodes.h:14:64: error: unknown type name 'u32'
extern asmlinkage unsigned int arm_check_condition(u32 opcode, u32 psr);
^
In file included from include/linux/log2.h:16:0,
from kernel/bounds.c:12:
./arch/arm/include/asm/bitops.h: In function '____atomic_set_bit':
include/linux/bitops.h:8:39: error: 'BITS_PER_LONG' undeclared (first use in this function)
#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
^
./arch/arm/include/asm/bitops.h:38:23: note: in expansion of macro 'BIT_MASK'
unsigned long mask = BIT_MASK(bit);
^
include/linux/bitops.h:8:39: note: each undeclared identifier is reported only once for each function it appears in
#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
^
./arch/arm/include/asm/bitops.h:38:23: note: in expansion of macro 'BIT_MASK'
unsigned long mask = BIT_MASK(bit);
^
./arch/arm/include/asm/bitops.h: In function '____atomic_clear_bit':
include/linux/bitops.h:8:39: error: 'BITS_PER_LONG' undeclared (first use in this function)
#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
^
The text was updated successfully, but these errors were encountered: