yperess / zds2023

3 stars 1 forks source link

Undefined symbol PIGWEED_POLYFILL_OVERRIDES when building #20

Open daniel-james-sherwood opened 1 year ago

daniel-james-sherwood commented 1 year ago

Hi - followed instructions in README and get the following resultr...

$ west build -p -b native_posix app
-- west build: making build dir /home/djs2/zds2023/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/djs2/zds2023/app
-- CMake version: 3.26.4
-- Found Python3: /home/djs2/zds2023/.venv/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
-- Cache files will be written to: /home/djs2/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/djs2/zds2023/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: native_posix
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.16.1 (/home/djs2/zephyr-sdk-0.16.1)
-- Found toolchain: host (gcc/ld)
-- Found Dtc: /home/djs2/zephyr-sdk-0.16.1/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/djs2/zds2023/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /home/djs2/zds2023/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/djs2/zds2023/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/djs2/zds2023/build/zephyr/dts.cmake

warning: The choice symbol PIGWEED_LOG_TOKENIZED_RPC (defined at
/home/djs2/zds2023/pigweed/pw_log_zephyr/Kconfig:55) was selected (set =y), but PIGWEED_LOG_ZEPHYR
(defined at /home/djs2/zds2023/pigweed/pw_log_zephyr/Kconfig:23) ended up as the choice selection.
See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_PIGWEED_LOG_TOKENIZED_RPC and/or look
up PIGWEED_LOG_TOKENIZED_RPC 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.

warning: The choice symbol CONSOLE_GETCHAR (defined at subsys/console/Kconfig:16) was selected (set
=y), but no symbol ended up as the choice selection. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_CONSOLE_GETCHAR and/or look up
CONSOLE_GETCHAR 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.

warning: Deprecated symbol CPP_MAIN is enabled.

/home/djs2/zds2023/app/prj.conf:23: warning: attempt to assign the value 'y' to the undefined symbol PIGWEED_POLYFILL_OVERRIDES
Parsing /home/djs2/zds2023/app/Kconfig
Loaded configuration '/home/djs2/zds2023/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/home/djs2/zds2023/app/prj.conf'

error: Aborting due to Kconfig warnings

CMake Error at /home/djs2/zds2023/zephyr/cmake/modules/kconfig.cmake:343 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  /home/djs2/zds2023/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
  /home/djs2/zds2023/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/djs2/zds2023/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:6 (find_package)

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /home/djs2/zds2023/pigweed/environment/cipd/packages/cmake/bin/cmake -DWEST_PYTHON=/home/djs2/zds2023/.venv/bin/python3 -B/home/djs2/zds2023/build -GNinja -DBOARD=native_posix -S/home/djs2/zds2023/app
daniel-james-sherwood commented 1 year ago

If I comment out this line in prj.cnf then I get another error...

$ west build -p -b native_posix app
-- west build: making build dir /home/djs2/zds2023/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/djs2/zds2023/app
-- CMake version: 3.26.4
-- Found Python3: /home/djs2/zds2023/.venv/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
-- Cache files will be written to: /home/djs2/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/djs2/zds2023/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: native_posix
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.16.1 (/home/djs2/zephyr-sdk-0.16.1)
-- Found toolchain: host (gcc/ld)
-- Found Dtc: /home/djs2/zephyr-sdk-0.16.1/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/djs2/zds2023/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /home/djs2/zds2023/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/djs2/zds2023/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/djs2/zds2023/build/zephyr/dts.cmake

warning: The choice symbol PIGWEED_LOG_TOKENIZED_RPC (defined at
/home/djs2/zds2023/pigweed/pw_log_zephyr/Kconfig:55) was selected (set =y), but PIGWEED_LOG_ZEPHYR
(defined at /home/djs2/zds2023/pigweed/pw_log_zephyr/Kconfig:23) ended up as the choice selection.
See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_PIGWEED_LOG_TOKENIZED_RPC and/or look
up PIGWEED_LOG_TOKENIZED_RPC 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.

warning: The choice symbol CONSOLE_GETCHAR (defined at subsys/console/Kconfig:16) was selected (set
=y), but no symbol ended up as the choice selection. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_CONSOLE_GETCHAR and/or look up
CONSOLE_GETCHAR 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.

warning: Deprecated symbol CPP_MAIN is enabled.

Parsing /home/djs2/zds2023/app/Kconfig
Loaded configuration '/home/djs2/zds2023/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/home/djs2/zds2023/app/prj.conf'
Configuration saved to '/home/djs2/zds2023/build/zephyr/.config'
Kconfig header saved to '/home/djs2/zds2023/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /usr/bin/ld.bfd (found version "2.38") 
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
CMake Warning (dev) at /home/djs2/zds2023/modules/lib/nanopb/CMakeLists.txt:10 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'BUILD_SHARED_LIBS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/djs2/zds2023/pigweed/environment/cipd/packages/cmake/share/cmake-3.26/Modules/GNUInstallDirs.cmake:243 (message):
  Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
  target architecture is known.  Please enable at least one language before
  including GNUInstallDirs.
Call Stack (most recent call first):
  /home/djs2/zds2023/modules/lib/nanopb/CMakeLists.txt:26 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Python: /home/djs2/zds2023/.venv/bin/python3.10 (found version "3.10.6") found components: Interpreter 
-- Found Nanopb: /home/djs2/zds2023/modules/lib/nanopb  
-- Configuring done (11.4s)
CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
  "database_binary" of type UTILITY
    depends on "zephyr_pre0" (strong)
  "zephyr_pre0" of type EXECUTABLE
    depends on "database_binary" (strong)
At least one of these targets is not a STATIC_LIBRARY.  Cyclic dependencies are allowed only among static libraries.
CMake Generate step failed.  Build files cannot be regenerated correctly.
FATAL ERROR: command exited with status 1: /home/djs2/zds2023/pigweed/environment/cipd/packages/cmake/bin/cmake -DWEST_PYTHON=/home/djs2/zds2023/.venv/bin/python3 -B/home/djs2/zds2023/build -GNinja -DBOARD=native_posix -S/home/djs2/zds2023/app
daniel-sherwood commented 1 year ago

Ignore this issue - I wasn't following the instructions correctly - feel free to close