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

./samples/microbit/central_eatt builds failed at v2.5.0 release #32720

Closed
kaiser-ren opened this issue Feb 28, 2021 · 1 comment
Closed

./samples/microbit/central_eatt builds failed at v2.5.0 release #32720

kaiser-ren opened this issue Feb 28, 2021 · 1 comment
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@kaiser-ren
Copy link
Contributor

Describe the bug
I'm trying to use ./samples/microbit/central_eatt sample code for eatt, but when I tried to build this project, there is a fatal error.

To Reproduce
Steps to reproduce the behavior:

  1. west build -p auto -b bbc_microbit ./

Expected behavior
Build successfully.

Impact
I can't use this sample.

Logs and console output
-- west build: making build dir /Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt/build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): /Users/renkai/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: /Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt
-- Zephyr version: 2.5.0 (/Users/renkai/zephyrproject/zephyr)
-- Found Python3: /usr/local/bin/python3.9 (found suitable exact version "3.9.1") found components: Interpreter
-- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
-- Board: bbc_microbit
-- Cache files will be written to: /Users/renkai/Library/Caches/zephyr
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/Users/renkai/gcc-arm-none-eabi-9-2019-q4-major)
-- Found BOARD.dts: /Users/renkai/zephyrproject/zephyr/boards/arm/bbc_microbit/bbc_microbit.dts
-- Generated zephyr.dts: /Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt/build/zephyr/include/generated/device_extern.h

warning: BT_EATT (defined at subsys/bluetooth/host/Kconfig.gatt:27) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: BT_L2CAP_ECRED (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_BT_EATT.html and/or look up BT_EATT in
the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.

Parsing /Users/renkai/zephyrproject/zephyr/Kconfig
Loaded configuration '/Users/renkai/zephyrproject/zephyr/boards/arm/bbc_microbit/bbc_microbit_defconfig'
Merged configuration '/Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt/prj.conf'
Configuration saved to '/Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt/build/zephyr/.config'
Kconfig header saved to '/Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /Users/renkai/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc
CMake Deprecation Warning at /Users/renkai/zephyrproject/modules/lib/civetweb/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt/build
-- west build: building application
[1/200] Preparing syscall dependency handling

[24/200] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj
ccache /Users/renkai/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc -DBUILD_VERSION=zephyr-v2.5.0 -DKERNEL -DNRF51 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/Users/renkai/zephyrproject/zephyr/samples/bluetooth -I/Users/renkai/zephyrproject/zephyr/include -Izephyr/include/generated -I/Users/renkai/zephyrproject/zephyr/soc/arm/nordic_nrf/nrf51 -I/Users/renkai/zephyrproject/zephyr/subsys/bluetooth -I/Users/renkai/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -I/Users/renkai/zephyrproject/modules/hal/nordic/nrfx -I/Users/renkai/zephyrproject/modules/hal/nordic/nrfx/drivers/include -I/Users/renkai/zephyrproject/modules/hal/nordic/nrfx/mdk -I/Users/renkai/zephyrproject/zephyr/modules/hal_nordic/nrfx/. -I/Users/renkai/zephyrproject/modules/crypto/tinycrypt/lib/include -isystem /Users/renkai/zephyrproject/zephyr/lib/libc/minimal/include -isystem /Users/renkai/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem /Users/renkai/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -Os -imacros /Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mcpu=cortex-m0 -mthumb -mabi=aapcs -imacros /Users/renkai/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt=CMAKE_SOURCE_DIR -fmacro-prefix-map=/Users/renkai/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/Users/renkai/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles/app.dir/src/main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c
../src/main.c:33:8: error: unknown type name 'u8_t'
33 | static u8_t notify_func(struct bt_conn *conn,
| ^~~~
../src/main.c:35:25: error: unknown type name 'u16_t'
35 | const void *data, u16_t length)
| ^~~~~
../src/main.c:48:8: error: unknown type name 'u8_t'
48 | static u8_t discover_func(struct bt_conn *conn,
| ^~~~
../src/main.c: In function 'discover_func':
../src/main.c:85:29: error: 'notify_func' undeclared (first use in this function)
85 | subscribe_params.notify = notify_func;
| ^~~~~~~~~~~
../src/main.c:85:29: note: each undeclared identifier is reported only once for each function it appears in
../src/main.c: In function 'eir_found':
../src/main.c:112:31: error: 'u16_t' undeclared (first use in this function)
112 | if (data->data_len % sizeof(u16_t) != 0U) {
| ^~~~~
../src/main.c:120:9: error: expected ';' before 'u16'
120 | u16_t u16;
| ^~~~
| ;
../src/main.c:123:12: error: 'u16' undeclared (first use in this function)
123 | memcpy(&u16, &data->data[i], sizeof(u16));
| ^~~
../src/main.c: At top level:
../src/main.c:149:52: error: unknown type name 's8_t'
149 | static void device_found(const bt_addr_le_t *addr, s8_t rssi, u8_t type,
| ^~~~
../src/main.c:149:63: error: unknown type name 'u8_t'
149 | static void device_found(const bt_addr_le_t *addr, s8_t rssi, u8_t type,
| ^~~~
../src/main.c: In function 'start_scan':
../src/main.c:178:38: error: 'device_found' undeclared (first use in this function); did you mean 'eir_found'?
178 | err = bt_le_scan_start(&scan_param, device_found);
| ^~~~~~~~~~~~
| eir_found
../src/main.c: At top level:
../src/main.c:187:45: error: unknown type name 'u8_t'
187 | static void connected(struct bt_conn *conn, u8_t conn_err)
| ^~~~
../src/main.c:227:48: error: unknown type name 'u8_t'
227 | static void disconnected(struct bt_conn *conn, u8_t reason)
| ^~~~
../src/main.c:246:15: error: 'connected' undeclared here (not in a function)
246 | .connected = connected,
| ^~~~~~~~~
../src/main.c:247:18: error: 'disconnected' undeclared here (not in a function)
247 | .disconnected = disconnected,
| ^~~~~~~~~~~~
../src/main.c:102:13: warning: 'eir_found' defined but not used [-Wunused-function]
102 | static bool eir_found(struct bt_data *data, void *user_data)
| ^~~~~~~~~
../src/main.c:48:13: warning: 'discover_func' defined but not used [-Wunused-function]
48 | static u8_t discover_func(struct bt_conn *conn,
| ^~~~~~~~~~~~~
[29/200] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /Users/renkai/zephyrproject/zephyr/samples/microbit/central_eatt/build

Environment (please complete the following information):

  • OS: macOS
  • Toolchain GNU Arm
  • Commit, fe7c2ef

Additional context
Add any other context about the problem here.

@kaiser-ren kaiser-ren added the bug The issue is a bug, or the PR is fixing a bug label Feb 28, 2021
@kaiser-ren
Copy link
Contributor Author

Sorry, reported by mistake, closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

1 participant