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

FS#1477 - toolchain: use external toolchain build error #6444

Open
openwrt-bot opened this issue Apr 8, 2018 · 0 comments
Open

FS#1477 - toolchain: use external toolchain build error #6444

openwrt-bot opened this issue Apr 8, 2018 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

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))
^

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

No branches or pull requests

1 participant