<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Implicit declaration of tzset and setenv in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113732/implicit-declaration-of-tzset-and-setenv-in-nrf-connect-sdk</link><description>Hi, 
 I´ve upgraded my nRF Connect SDK from version v2.6.0 to v2.7.0 and now I get this warnings: 
 
 How can I fix them?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Aug 2024 11:49:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113732/implicit-declaration-of-tzset-and-setenv-in-nrf-connect-sdk" /><item><title>RE: Implicit declaration of tzset and setenv in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/497474?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 11:49:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b99bf6f0-6fdb-4420-8633-b61d300eb90a</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was able to reproduce the issue by calling setenv() and tzset() in Zephyr&amp;#39;s Hello World sample.&lt;/p&gt;
&lt;p&gt;The issue seems to come from some changes to POSIX in Zephyr. In Zephyr 3.7.0 setenv() can be used by enabling &lt;a href="https://docs.zephyrproject.org/3.7.0/kconfig.html#CONFIG_POSIX_SINGLE_PROCESS"&gt;CONFIG_POSIX_SINGLE_PROCESS&lt;/a&gt;, but this configuration does not seem to exist in the nRF Connect SDK v2.7.0 yet.&lt;/p&gt;
&lt;p&gt;I would suggest asking about this on the &lt;a href="https://discord.com/invite/Ck7jw53nU2"&gt;Zephyr discord channel&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implicit declaration of tzset and setenv in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/497441?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 08:06:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27fbf234-5759-4508-9d11-3e0cb55d639c</guid><dc:creator>Kampino</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;Loading Zephyr default modules (Zephyr base).
-- Application: /app
-- CMake version: 3.21.0
-- Found Python3: /home/daniel/ncs/toolchains/2be090971e/usr/local/bin/python3.9 (found suitable version &amp;quot;3.9.18&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /home/daniel/.cache/zephyr
-- Zephyr version: 3.6.99 (/zephyr)
-- Found west (found suitable version &amp;quot;1.2.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: zswatch_nrf5340_cpuapp, Revision: 5
-- Found host-tools: zephyr 0.16.5 (/home/daniel/ncs/toolchains/2be090971e/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/home/daniel/ncs/toolchains/2be090971e/opt/zephyr-sdk)
-- Found Dtc: /home/daniel/ncs/toolchains/2be090971e/usr/bin/dtc (found suitable version &amp;quot;1.5.0&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp.dts
-- Found devicetree overlay: /app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_5.overlay
-- Generated zephyr.dts: /app/debug_rev5/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /app/debug_rev5/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /app/debug_rev5/zephyr/dts.cmake
CMake Deprecation Warning at /zephyr/cmake/modules/kconfig.cmake:89 (message):
  Use of &amp;#39;zswatch_nrf5340_cpuapp_5.conf&amp;#39; is deprecated, please switch to
  &amp;#39;zswatch_nrf5340_cpuapp_5_defconfig&amp;#39;
Call Stack (most recent call first):
  /nrf/cmake/modules/kconfig.cmake:29 (include)
  /zephyr/cmake/modules/zephyr_default.cmake:132 (include)
  /zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:45 (find_package)


Parsing /app/Kconfig
Loaded configuration &amp;#39;/app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_defconfig&amp;#39;
Merged configuration &amp;#39;/app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_5.conf&amp;#39;
Merged configuration &amp;#39;/app/prj.conf&amp;#39;
Merged configuration &amp;#39;/app/boards/debug.conf&amp;#39;
Merged configuration &amp;#39;/app/debug_rev5/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;/app/debug_rev5/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/app/debug_rev5/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /home/daniel/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/daniel/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Deprecation Warning at /zephyr/soc/CMakeLists.txt:15 (message):
  

            ---------------------------------------------------------------------
            --- WARNING: Functionality to describe SoCs in HWMv1 is           ---
            --- deprecated and should be replaced with HWMv2, including       ---
            --- boards. HWMv1 SoCs support remains only to ease the migration ---
            --- of out-of-tree SoCs and associated boards. It will not be     ---
            --- possible to build using HWMv1 SoCs at all in future releases. ---
            ---------------------------------------------------------------------



=== child image hci_ipc - CPUNET begin ===
loading initial cache file /app/debug_rev5/hci_ipc/child_image_preload.cmake
-- Application: /zephyr/samples/bluetooth/hci_ipc
-- CMake version: 3.21.0
Loading Zephyr default modules (Zephyr base).
-- Found Python3: /home/daniel/ncs/toolchains/2be090971e/usr/local/bin/python3.9 (found suitable version &amp;quot;3.9.18&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /home/daniel/.cache/zephyr
-- Zephyr version: 3.6.99 (/zephyr)
-- Found west (found suitable version &amp;quot;1.2.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: zswatch_nrf5340_cpunet, Revision: 5
-- Found host-tools: zephyr 0.16.5 (/home/daniel/ncs/toolchains/2be090971e/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/home/daniel/ncs/toolchains/2be090971e/opt/zephyr-sdk)
-- Found Dtc: /home/daniel/ncs/toolchains/2be090971e/usr/bin/dtc (found suitable version &amp;quot;1.5.0&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpunet.dts
-- Generated zephyr.dts: /app/debug_rev5/hci_ipc/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /app/debug_rev5/hci_ipc/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /app/debug_rev5/hci_ipc/zephyr/dts.cmake
CMake Deprecation Warning at /zephyr/cmake/modules/kconfig.cmake:89 (message):
  Use of &amp;#39;zswatch_nrf5340_cpunet_5.conf&amp;#39; is deprecated, please switch to
  &amp;#39;zswatch_nrf5340_cpunet_5_defconfig&amp;#39;
Call Stack (most recent call first):
  /nrf/cmake/modules/kconfig.cmake:29 (include)
  /zephyr/cmake/modules/zephyr_default.cmake:132 (include)
  /zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)



warning: Experimental symbol BT_LL_SW_SPLIT is enabled.

Parsing /zephyr/Kconfig
Loaded configuration &amp;#39;/app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpunet_defconfig&amp;#39;
Merged configuration &amp;#39;/app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpunet_5.conf&amp;#39;
Merged configuration &amp;#39;/zephyr/samples/bluetooth/hci_ipc/prj.conf&amp;#39;
Merged configuration &amp;#39;/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;/app/child_image/hci_ipc.conf&amp;#39;
Configuration saved to &amp;#39;/app/debug_rev5/hci_ipc/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/app/debug_rev5/hci_ipc/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /home/daniel/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/daniel/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Deprecation Warning at /zephyr/soc/CMakeLists.txt:15 (message):
  

            ---------------------------------------------------------------------
            --- WARNING: Functionality to describe SoCs in HWMv1 is           ---
            --- deprecated and should be replaced with HWMv2, including       ---
            --- boards. HWMv1 SoCs support remains only to ease the migration ---
            --- of out-of-tree SoCs and associated boards. It will not be     ---
            --- possible to build using HWMv1 SoCs at all in future releases. ---
            ---------------------------------------------------------------------


CMake Warning at /zephyr/subsys/bluetooth/controller/CMakeLists.txt:4 (message):
  

  CONFIG_BT_CTLR_ADVANCED_FEATURES=y, Advanced Features&amp;#39; default value change
  could change Zephyr Bluetooth Controller&amp;#39;s functional behavior.


-- libmetal version: 1.5.0 (/zephyr/samples/bluetooth/hci_ipc)
-- Build type:  
-- Host:    Linux/x86_64
-- Target:  Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
-- open-amp version: 1.5.0 (/modules/lib/open-amp/open-amp)
-- Host:    Linux/x86_64
-- Target:  Generic/arm
-- Machine: arm
-- C_FLAGS :  -Wall -Wextra
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Using ccache: /home/daniel/ncs/toolchains/2be090971e/usr/bin/ccache
CMake Deprecation Warning at /nrf/cmake/partition_manager.cmake:32 (message):
  

            ---------------------------------------------------------------------
            --- WARNING: Child and parent image functionality is deprecated   ---
            --- and should be replaced with sysbuild. Child and parent image  ---
            --- support remains only to allow existing customer applications  ---
            --- to build and allow porting to sysbuild, it is no longer       ---
            --- receiving updates or new features and it will not be possible ---
            --- to build using child/parent image at all in nRF Connect SDK   ---
            --- version 2.9 onwards.                                          ---
            ---------------------------------------------------------------------
Call Stack (most recent call first):
  /zephyr/cmake/modules/kernel.cmake:253 (include)
  /zephyr/cmake/modules/zephyr_default.cmake:141 (include)
  /zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring done
-- Generating done
-- Build files have been written to: /app/debug_rev5/hci_ipc
=== child image hci_ipc - CPUNET end ===

-- libmetal version: 1.5.0 (/app)
-- Looking for include file stdatomic.h
-- Build type:  
-- Host:    Linux/x86_64
-- Target:  Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h - found
-- open-amp version: 1.5.0 (/modules/lib/open-amp/open-amp)
-- Host:    Linux/x86_64
-- Target:  Generic/arm
-- Machine: arm
-- C_FLAGS :  -Wall -Wextra
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Using ccache: /home/daniel/ncs/toolchains/2be090971e/usr/bin/ccache
CMake Warning at /zephyr/CMakeLists.txt:895 (message):
  No SOURCES given to Zephyr library: drivers__display

  Excluding target from build.


CMake Warning at /zephyr/CMakeLists.txt:2027 (message):
  __ASSERT() statements are globally ENABLED


CMake Deprecation Warning at /nrf/cmake/partition_manager.cmake:32 (message):
  

            ---------------------------------------------------------------------
            --- WARNING: Child and parent image functionality is deprecated   ---
            --- and should be replaced with sysbuild. Child and parent image  ---
            --- support remains only to allow existing customer applications  ---
            --- to build and allow porting to sysbuild, it is no longer       ---
            --- receiving updates or new features and it will not be possible ---
            --- to build using child/parent image at all in nRF Connect SDK   ---
            --- version 2.9 onwards.                                          ---
            ---------------------------------------------------------------------
Call Stack (most recent call first):
  /zephyr/cmake/modules/kernel.cmake:253 (include)
  /zephyr/cmake/modules/zephyr_default.cmake:141 (include)
  /zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:45 (find_package)


-- Found partition manager static configuration: /app/partition_external.yml
Partition &amp;#39;littlefs_storage&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;settings_storage&amp;#39; is not included in the dynamic resolving since it is statically defined.
Applications
-- 2048
-- about
-- battery
-- compass
-- flashlight
-- iaq
-- info
-- music_control
-- notification
-- ppt_remote
-- qr_code
-- sensor_fusion
-- sensors_summary
-- settings
-- template
-- trivia
-- watchface
-- watchface_picker
-- weather
-- x_ray
-- zds
Watchfaces
-- 0_digital
-- 107_2_dial
-- 116_2_dial
-- 66_2_dial
-- 70_2_dial
-- 73_2_dial
-- 75_2_dial
-- 79_2_dial
-- 80_2_dial
-- 84_2_dial
-- analog
-- minimal
-- pixel
Number of external filesystem files:642
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CACHED_CONF_FILE


-- Build files have been written to: /app/debug_rev5
-- west build: building application
[1/1335] Preparing syscall dependency handling

[11/1335] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (/zephyr), build: v3.6.99-ncs2
[1/257] Preparing syscall dependency handling

[6/257] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (/zephyr), build: v3.6.99-ncs2
[255/257] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      176104 B       256 KB     67.18%
             RAM:       56596 B        64 KB     86.36%
           SRAM1:          0 GB        64 KB      0.00%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /app/debug_rev5/hci_ipc/zephyr/zephyr.elf for board: zswatch_nrf5340_cpunet
[738/1335] Building C object CMakeFiles/app.dir/src/zsw_clock.c.obj
/app/src/zsw_clock.c: In function &amp;#39;zsw_clock_set_timezone&amp;#39;:
/app/src/zsw_clock.c:115:9: warning: implicit declaration of function &amp;#39;setenv&amp;#39;; did you mean &amp;#39;getenv&amp;#39;? [-Wimplicit-function-declaration]
  115 |         setenv(&amp;quot;TZ&amp;quot;, tz, 1);
      |         ^~~~~~
      |         getenv
/app/src/zsw_clock.c:116:9: warning: implicit declaration of function &amp;#39;tzset&amp;#39; [-Wimplicit-function-declaration]
  116 |         tzset();
      |         ^~~~~
[1333/1335] Linking C executable zephyr/zephyr.elf&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implicit declaration of tzset and setenv in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/497315?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 11:12:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc2fdc9f-4a20-4579-adc9-881c95069dff</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you use setenv() and tzset() in your project?&lt;/p&gt;
&lt;p&gt;Please upload the complete build log.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>