Skip to content

tests/lib/ringbuffer: build error on Xtensa ESP32 #11752

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

Closed
inakypg opened this issue Nov 29, 2018 · 2 comments
Closed

tests/lib/ringbuffer: build error on Xtensa ESP32 #11752

inakypg opened this issue Nov 29, 2018 · 2 comments
Labels
bug The issue is a bug, or the PR is fixing a bug platform: ESP32 Espressif ESP32 priority: low Low impact/importance bug

Comments

@inakypg
Copy link
Contributor

inakypg commented Nov 29, 2018

Commit ID 2b1d54e

ESP-IDF https://github.com/espressif/esp-idf.git commit dc8c33892e0 and b2ff235bd00

...
[ 65%] Building C object zephyr/CMakeFiles/zephyr.dir/arch/xtensa/core/irq_offload.c.obj
In file included from /opt/esp-idf.git/components/soc/esp32/include/soc/dport_reg.h:17:0,
                 from zephyr.git/soc/xtensa/esp32/soc.h:9,
                 from zephyr.git/arch/xtensa/core/irq_offload.c:13:
/opt/esp-idf.git/components/soc/esp32/include/soc/soc.h:128:0: error: "BIT" redefined [-Werror]
 #define BIT(nr)                 (1UL << (nr))
 ^
In file included from zephyr.git/include/sched_priq.h:9:0,
                 from zephyr.git/include/kernel_includes.h:23,
                 from zephyr.git/include/kernel.h:17,
                 from zephyr.git/arch/xtensa/core/irq_offload.c:6:
zephyr.git/include/misc/util.h:135:0: note: this is the location of the previous definition
 #define BIT(n)  (1UL << (n))
 ^
cc1: all warnings being treated as errors

Full log

$ mkdir -p /tmp/tcf.run-_lRxhf/bhdz/outdir-bhdz-ycbk-esp32
$ rm -f /tmp/tcf.run-_lRxhf/bhdz/outdir-bhdz-ycbk-esp32/.config
$ cmake -DBOARD=esp32 -DARCH=xtensa -DEXTRA_CPPFLAGS="-DTC_RUNID=ci-181129-0928-138:ycbk" -DEXTRA_CFLAGS="-Werror -Wno-error=deprecated-declarations" -DEXTRA_AFLAGS=-Wa,--fatal-warnings -DEXTRA_LDFLAGS=-Wl,--fatal-warnings  -B"/tmp/tcf.run-_lRxhf/bhdz/outdir-bhdz-ycbk-esp32" -H"zephyr.git/tests/lib/ringbuffer"
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.7", minimum required is "3.4")
-- Selected BOARD esp32
Zephyr version: 1.13.99

warning: ENTROPY_ESP32_RNG (defined at drivers/entropy/Kconfig.esp32:7) was assigned the value 'y'
but got the value 'n'. You can check symbol information (including dependencies) in the 'menuconfig'
interface (see the Application Development Primer section of the manual), or in the Kconfig
reference at http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_ENTROPY_ESP32_RNG.html
(which is updated regularly from the master branch). See the 'Setting configuration values' section
of the Board Porting Guide as well.
Parsing Kconfig tree in zephyr.git/Kconfig
Loading zephyr.git/boards/xtensa/esp32/esp32_defconfig as base
Merging zephyr.git/tests/lib/ringbuffer/prj.conf
Merging /tmp/tcf.run-_lRxhf/bhdz/outdir-bhdz-ycbk-esp32/500_boot_config.conf
-- Cache files will be written to: /home/jenkins/.cache/zephyr
CMake Warning at zephyr.git/boards/common/esp32.board.cmake:5 (message):
  Setting ESP_IDF_PATH in the environment is deprecated.  Use cmake
  -DESP_IDF_PATH=...  instead.
Call Stack (most recent call first):
  zephyr.git/boards/xtensa/esp32/board.cmake:1 (include)
  zephyr.git/cmake/app/boilerplate.cmake:316 (include)
  CMakeLists.txt:2 (include)


-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Performing Test toolchain_is_ok
-- Performing Test toolchain_is_ok - Success
CMake Warning at ../../../CMakeLists.txt:1335 (message):


        ------------------------------------------------------------
        --- WARNING:  __ASSERT() statements are globally ENABLED ---
        --- The kernel will run more slowly and use more memory  ---
        ------------------------------------------------------------


-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tcf.run-_lRxhf/bhdz/outdir-bhdz-ycbk-esp32
$ make -C /tmp/tcf.run-_lRxhf/bhdz/outdir-bhdz-ycbk-esp32 config-sanitycheck' @tcf.git/tcfl/app_zephyr.py:310
Scanning dependencies of target config-sanitycheck
Built target config-sanitycheck
Scanning dependencies of target kobj_types_h_target
Scanning dependencies of target syscall_macros_h_target
[  1%] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h
[  2%] Generating include/generated/syscall_macros.h
Scanning dependencies of target driver_validation_h_target
[  3%] Generating include/generated/driver-validation.h
[  3%] Built target syscall_macros_h_target
Scanning dependencies of target syscall_list_h_target
[  3%] Built target kobj_types_h_target
[  4%] Generating misc/generated/syscalls.json
[  4%] Built target driver_validation_h_target
[  5%] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[  7%] Built target syscall_list_h_target
Scanning dependencies of target offsets
[  8%] Building C object zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj
[  9%] Linking C static library liboffsets.a
[  9%] Built target offsets
Scanning dependencies of target offsets_h
[ 10%] Generating include/generated/offsets.h
[ 10%] Built target offsets_h
Scanning dependencies of target app
[ 12%] Building C object CMakeFiles/app.dir/src/main.c.obj
Scanning dependencies of target kernel
[ 13%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/alert.c.obj
[ 14%] Linking C static library libapp.a
[ 14%] Built target app
[ 15%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[ 16%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[ 17%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[ 18%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[ 19%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
[ 20%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[ 21%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[ 23%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
[ 24%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
[ 25%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/pipes.c.obj
[ 26%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
[ 27%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
Scanning dependencies of target linker_script
[ 28%] Generating linker.cmd
[ 28%] Built target linker_script
Scanning dependencies of target zephyr
[ 29%] Building C object zephyr/CMakeFiles/zephyr.dir/arch/common/isr_tables.c.obj
[ 30%] Building C object zephyr/CMakeFiles/zephyr.dir/arch/common/sw_isr_common.c.obj
[ 31%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj
[ 32%] Building C object zephyr/CMakeFiles/zephyr.dir/arch/xtensa/core/cpu_idle.c.obj
[ 34%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj
[ 35%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj
[ 36%] Building C object zephyr/CMakeFiles/zephyr.dir/arch/xtensa/core/fatal.c.obj
[ 37%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
Scanning dependencies of target lib__libc__minimal
[ 39%] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
[ 39%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread_abort.c.obj
[ 40%] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
[ 41%] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
[ 42%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[ 43%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work_q.c.obj
[ 45%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/smp.c.obj
[ 46%] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[ 47%] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
[ 48%] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
[ 49%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[ 50%] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
[ 51%] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[ 52%] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/prf.c.obj
[ 53%] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
[ 54%] Building ASM object zephyr/CMakeFiles/zephyr.dir/arch/xtensa/core/window_vectors.S.obj
[ 56%] Linking C static library libkernel.a
[ 57%] Building ASM object zephyr/CMakeFiles/zephyr.dir/arch/xtensa/core/xtensa-asm2-util.S.obj
[ 57%] Built target kernel
[ 58%] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
Scanning dependencies of target drivers__gpio
[ 59%] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_esp32.c.obj
[ 60%] Linking C static library libdrivers__gpio.a
[ 60%] Built target drivers__gpio
[ 61%] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
[ 62%] Linking C static library liblib__libc__minimal.a
[ 62%] Built target lib__libc__minimal
[ 63%] Building C object zephyr/CMakeFiles/zephyr.dir/arch/xtensa/core/xtensa-asm2.c.obj
[ 64%] Building ASM object zephyr/CMakeFiles/zephyr.dir/arch/xtensa/core/atomic.S.obj
[ 65%] Building C object zephyr/CMakeFiles/zephyr.dir/arch/xtensa/core/irq_offload.c.obj
In file included from /opt/esp-idf.git/components/soc/esp32/include/soc/dport_reg.h:17:0,
                 from zephyr.git/soc/xtensa/esp32/soc.h:9,
                 from zephyr.git/arch/xtensa/core/irq_offload.c:13:
/opt/esp-idf.git/components/soc/esp32/include/soc/soc.h:128:0: error: "BIT" redefined [-Werror]
 #define BIT(nr)                 (1UL << (nr))
 ^
In file included from zephyr.git/include/sched_priq.h:9:0,
                 from zephyr.git/include/kernel_includes.h:23,
                 from zephyr.git/include/kernel.h:17,
                 from zephyr.git/arch/xtensa/core/irq_offload.c:6:
zephyr.git/include/misc/util.h:135:0: note: this is the location of the previous definition
 #define BIT(n)  (1UL << (n))
 ^
cc1: all warnings being treated as errors
make[3]: *** [zephyr/CMakeFiles/zephyr.dir/build.make:143: zephyr/CMakeFiles/zephyr.dir/arch/xtensa/core/irq_offload.c.obj] Error 1
make[2]: *** [CMakeFiles/Makefile2:537: zephyr/CMakeFiles/zephyr.dir/all] Error 2
make[1]: *** [Makefile:84: all] Error 2
@inakypg inakypg added bug The issue is a bug, or the PR is fixing a bug platform: ESP32 Espressif ESP32 labels Nov 29, 2018
@galak galak added the priority: low Low impact/importance bug label Dec 4, 2018
@spoorthik
Copy link
Contributor

spoorthik commented Dec 11, 2018

The issue #11077 complains the same. Either of these must be marked duplicate.

@nashif
Copy link
Member

nashif commented Jan 11, 2019

duplicate of #11077

@nashif nashif closed this as completed Jan 11, 2019
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 platform: ESP32 Espressif ESP32 priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants