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

[Bug] Compilation fails for espidf and platform io #376

Closed
vortex314 opened this issue Mar 19, 2024 · 1 comment
Closed

[Bug] Compilation fails for espidf and platform io #376

vortex314 opened this issue Mar 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vortex314
Copy link
Contributor

Describe the bug

Latest version doesn´t compile any more for espidf and the below settings

[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = espidf
lib_deps = zenoh-pico
build_flags=
	-DZENOH_DEBUG=0
	-DZENOH_COMPILER_GCC=1
	-DZENOH_ESPIDF=1
	-DZ_TRANSPORT_LEASE=1000
	-DZ_FEATURE_PUBLICATION=1
	-DZ_FEATURE_SUBSCRIPTION=1
	-DZ_FEATURE_QUERY=0
	-DZ_FEATURE_LINK_SERIAL=1 
	-DZ_FEATURE_MULTI_THREAD=1
	-DZ_FEATURE_MULTICAST_TRANSPORT=0
	-DZ_FEATURE_LINK_UDP_MULTICAST=0
	-DZ_FEATURE_LINK_UDP_UNICAST=0
	-DZ_FEATURE_SCOUTING_UDP=0
	-DZ_FEATURE_LINK_TCP=0
	-DZ_FEATURE_DYNAMIC_MEMORY_ALLOCATION=1
	-DZ_FEATURE_FRAGMENTATION=0
	-DZ_BATCH_UNICAST_SIZE=1600
	-DZ_FEATURE_UNICAST_TRANSPORT=1
	-DZ_FRAG_MAX_SIZE=4096
monitor_speed = 115200
monitor_port = /dev/ttyUSB0
monitor_filters = esp32_exception_decoder
upload_port = /dev/ttyUSB0

To reproduce

Compiler error messages

lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h: In function '_z_query_rc_t _z_query_rc_clone(_z_query_rc_t*)':
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:47:97: error: no matching function for call to 'atomic_fetch_add_explicit(std::atomic<unsigned int>*, int, std::memory_order)'
 #define _ZP_RC_OP_INCR_CNT _z_atomic_fetch_add_explicit(&p->in->_cnt, 1, _z_memory_order_relaxed);
                                                                                                 ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:116:9: note: in expansion of macro '_ZP_RC_OP_INCR_CNT'
         _ZP_RC_OP_INCR_CNT                                                                \
         ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1214:5: note: candidate: 'template<class _ITp> _ITp std::atomic_fetch_add_explicit(std::__atomic_base<_ITp>*, _ITp, std::memory_order)'
     atomic_fetch_add_explicit(__atomic_base<_ITp>* __a, _ITp __i,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1214:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:47:97: note:   deduced conflicting types for parameter '_ITp' ('unsigned int' and 'int')
 #define _ZP_RC_OP_INCR_CNT _z_atomic_fetch_add_explicit(&p->in->_cnt, 1, _z_memory_order_relaxed);
                                                                                                 ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:116:9: note: in expansion of macro '_ZP_RC_OP_INCR_CNT'
         _ZP_RC_OP_INCR_CNT                                                                \
         ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1220:5: note: candidate: 'template<class _ITp> _ITp std::atomic_fetch_add_explicit(volatile std::__atomic_base<_ITp>*, _ITp, std::memory_order)'
     atomic_fetch_add_explicit(volatile __atomic_base<_ITp>* __a, _ITp __i,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1220:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:47:97: note:   deduced conflicting types for parameter '_ITp' ('unsigned int' and 'int')
 #define _ZP_RC_OP_INCR_CNT _z_atomic_fetch_add_explicit(&p->in->_cnt, 1, _z_memory_order_relaxed);
                                                                                                 ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:116:9: note: in expansion of macro '_ZP_RC_OP_INCR_CNT'
         _ZP_RC_OP_INCR_CNT                                                                \
         ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1326:5: note: candidate: 'template<class _ITp> _ITp* std::atomic_fetch_add_explicit(std::atomic<_Tp*>*, std::ptrdiff_t, std::memory_order)'
     atomic_fetch_add_explicit(atomic<_ITp*>* __a, ptrdiff_t __d,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1326:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:47:97: note:   mismatched types '_Tp*' and 'unsigned int'
 #define _ZP_RC_OP_INCR_CNT _z_atomic_fetch_add_explicit(&p->in->_cnt, 1, _z_memory_order_relaxed);
                                                                                                 ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:116:9: note: in expansion of macro '_ZP_RC_OP_INCR_CNT'
         _ZP_RC_OP_INCR_CNT                                                                \
         ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1332:5: note: candidate: 'template<class _ITp> _ITp* std::atomic_fetch_add_explicit(volatile std::atomic<_Tp*>*, std::ptrdiff_t, std::memory_order)'
     atomic_fetch_add_explicit(volatile atomic<_ITp*>* __a, ptrdiff_t __d,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1332:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:47:97: note:   mismatched types '_Tp*' and 'unsigned int'
 #define _ZP_RC_OP_INCR_CNT _z_atomic_fetch_add_explicit(&p->in->_cnt, 1, _z_memory_order_relaxed);
                                                                                                 ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:116:9: note: in expansion of macro '_ZP_RC_OP_INCR_CNT'
         _ZP_RC_OP_INCR_CNT                                                                \
         ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h: In function '_z_query_rc_t* _z_query_rc_clone_as_ptr(_z_query_rc_t*)':
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:47:97: error: no matching function for call to 'atomic_fetch_add_explicit(std::atomic<unsigned int>*, int, std::memory_order)'
 #define _ZP_RC_OP_INCR_CNT _z_atomic_fetch_add_explicit(&p->in->_cnt, 1, _z_memory_order_relaxed);
                                                                                                 ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:123:13: note: in expansion of macro '_ZP_RC_OP_INCR_CNT'
             _ZP_RC_OP_INCR_CNT                                                            \
             ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1214:5: note: candidate: 'template<class _ITp> _ITp std::atomic_fetch_add_explicit(std::__atomic_base<_ITp>*, _ITp, std::memory_order)'
     atomic_fetch_add_explicit(__atomic_base<_ITp>* __a, _ITp __i,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1214:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:47:97: note:   deduced conflicting types for parameter '_ITp' ('unsigned int' and 'int')
 #define _ZP_RC_OP_INCR_CNT _z_atomic_fetch_add_explicit(&p->in->_cnt, 1, _z_memory_order_relaxed);
                                                                                                 ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:123:13: note: in expansion of macro '_ZP_RC_OP_INCR_CNT'
             _ZP_RC_OP_INCR_CNT                                                            \
             ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1220:5: note: candidate: 'template<class _ITp> _ITp std::atomic_fetch_add_explicit(volatile std::__atomic_base<_ITp>*, _ITp, std::memory_order)'
     atomic_fetch_add_explicit(volatile __atomic_base<_ITp>* __a, _ITp __i,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1220:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:47:97: note:   deduced conflicting types for parameter '_ITp' ('unsigned int' and 'int')
 #define _ZP_RC_OP_INCR_CNT _z_atomic_fetch_add_explicit(&p->in->_cnt, 1, _z_memory_order_relaxed);
                                                                                                 ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:123:13: note: in expansion of macro '_ZP_RC_OP_INCR_CNT'
             _ZP_RC_OP_INCR_CNT                                                            \
             ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1326:5: note: candidate: 'template<class _ITp> _ITp* std::atomic_fetch_add_explicit(std::atomic<_Tp*>*, std::ptrdiff_t, std::memory_order)'
     atomic_fetch_add_explicit(atomic<_ITp*>* __a, ptrdiff_t __d,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1326:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:47:97: note:   mismatched types '_Tp*' and 'unsigned int'
 #define _ZP_RC_OP_INCR_CNT _z_atomic_fetch_add_explicit(&p->in->_cnt, 1, _z_memory_order_relaxed);
                                                                                                 ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:123:13: note: in expansion of macro '_ZP_RC_OP_INCR_CNT'
             _ZP_RC_OP_INCR_CNT                                                            \
             ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1332:5: note: candidate: 'template<class _ITp> _ITp* std::atomic_fetch_add_explicit(volatile std::atomic<_Tp*>*, std::ptrdiff_t, std::memory_order)'
     atomic_fetch_add_explicit(volatile atomic<_ITp*>* __a, ptrdiff_t __d,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1332:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:47:97: note:   mismatched types '_Tp*' and 'unsigned int'
 #define _ZP_RC_OP_INCR_CNT _z_atomic_fetch_add_explicit(&p->in->_cnt, 1, _z_memory_order_relaxed);
                                                                                                 ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:123:13: note: in expansion of macro '_ZP_RC_OP_INCR_CNT'
             _ZP_RC_OP_INCR_CNT                                                            \
             ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h: In function 'bool _z_query_rc_drop(_z_query_rc_t*)':
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:48:101: error: no matching function for call to 'atomic_fetch_sub_explicit(std::atomic<unsigned int>*, int, std::memory_order)'
 #define _ZP_RC_OP_DECR_AND_CMP _z_atomic_fetch_sub_explicit(&p->in->_cnt, 1, _z_memory_order_release) > 1
                                                                                                     ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:134:13: note: in expansion of macro '_ZP_RC_OP_DECR_AND_CMP'
         if (_ZP_RC_OP_DECR_AND_CMP) {                                                     \
             ^~~~~~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1226:5: note: candidate: 'template<class _ITp> _ITp std::atomic_fetch_sub_explicit(std::__atomic_base<_ITp>*, _ITp, std::memory_order)'
     atomic_fetch_sub_explicit(__atomic_base<_ITp>* __a, _ITp __i,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1226:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:48:101: note:   deduced conflicting types for parameter '_ITp' ('unsigned int' and 'int')
 #define _ZP_RC_OP_DECR_AND_CMP _z_atomic_fetch_sub_explicit(&p->in->_cnt, 1, _z_memory_order_release) > 1
                                                                                                     ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:134:13: note: in expansion of macro '_ZP_RC_OP_DECR_AND_CMP'
         if (_ZP_RC_OP_DECR_AND_CMP) {                                                     \
             ^~~~~~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1232:5: note: candidate: 'template<class _ITp> _ITp std::atomic_fetch_sub_explicit(volatile std::__atomic_base<_ITp>*, _ITp, std::memory_order)'
     atomic_fetch_sub_explicit(volatile __atomic_base<_ITp>* __a, _ITp __i,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1232:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:48:101: note:   deduced conflicting types for parameter '_ITp' ('unsigned int' and 'int')
 #define _ZP_RC_OP_DECR_AND_CMP _z_atomic_fetch_sub_explicit(&p->in->_cnt, 1, _z_memory_order_release) > 1
                                                                                                     ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:134:13: note: in expansion of macro '_ZP_RC_OP_DECR_AND_CMP'
         if (_ZP_RC_OP_DECR_AND_CMP) {                                                     \
             ^~~~~~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1348:5: note: candidate: 'template<class _ITp> _ITp* std::atomic_fetch_sub_explicit(volatile std::atomic<_Tp*>*, std::ptrdiff_t, std::memory_order)'
     atomic_fetch_sub_explicit(volatile atomic<_ITp*>* __a,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1348:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:48:101: note:   mismatched types '_Tp*' and 'unsigned int'
 #define _ZP_RC_OP_DECR_AND_CMP _z_atomic_fetch_sub_explicit(&p->in->_cnt, 1, _z_memory_order_release) > 1
                                                                                                     ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:134:13: note: in expansion of macro '_ZP_RC_OP_DECR_AND_CMP'
         if (_ZP_RC_OP_DECR_AND_CMP) {                                                     \
             ^~~~~~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
In file included from lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:34,
                 from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1354:5: note: candidate: 'template<class _ITp> _ITp* std::atomic_fetch_sub_explicit(std::atomic<_Tp*>*, std::ptrdiff_t, std::memory_order)'
     atomic_fetch_sub_explicit(atomic<_ITp*>* __a, ptrdiff_t __d,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/lieven/.platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/atomic:1354:5: note:   template argument deduction/substitution failed:
In file included from lib/zenoh-pico/include/zenoh-pico/session/session.h:23,
                 from lib/zenoh-pico/include/zenoh-pico/net/session.h:24,
                 from lib/zenoh-pico/include/zenoh-pico/net/publish.h:18,
                 from lib/zenoh-pico/include/zenoh-pico/api/types.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/primitives.h:21,
                 from lib/zenoh-pico/include/zenoh-pico/api/macros.h:17,
                 from lib/zenoh-pico/include/zenoh-pico.h:25,
                 from src/main.cpp:16:
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:48:101: note:   mismatched types '_Tp*' and 'unsigned int'
 #define _ZP_RC_OP_DECR_AND_CMP _z_atomic_fetch_sub_explicit(&p->in->_cnt, 1, _z_memory_order_release) > 1
                                                                                                     ^
lib/zenoh-pico/include/zenoh-pico/collections/refcount.h:134:13: note: in expansion of macro '_ZP_RC_OP_DECR_AND_CMP'
         if (_ZP_RC_OP_DECR_AND_CMP) {                                                     \
             ^~~~~~~~~~~~~~~~~~~~~~
lib/zenoh-pico/include/zenoh-pico/net/query.h:36:1: note: in expansion of macro '_Z_REFCOUNT_DEFINE'
 _Z_REFCOUNT_DEFINE(_z_query, _z_query)
 ^~~~~~~~~~~~~~~~~~
Compiling .pio/build/esp32doit-devkit-v1/lib6e1/zenoh-pico/link/multicast/bt.o
Compiling .pio/build/esp32doit-devkit-v1/lib6e1/zenoh-pico/link/multicast/udp.o
Compiling .pio/build/esp32doit-devkit-v1/lib6e1/zenoh-pico/link/unicast/serial.o
Compiling .pio/build/esp32doit-devkit-v1/lib6e1/zenoh-pico/link/unicast/tcp.o
Compiling .pio/build/esp32doit-devkit-v1/lib6e1/zenoh-pico/link/unicast/udp.o
Compiling .pio/build/esp32doit-devkit-v1/lib6e1/zenoh-pico/link/unicast/ws.o
*** [.pio/build/esp32doit-devkit-v1/src/main.o] Error 1
Compiling .pio/build/esp32doit-devkit-v1/lib6e1/zenoh-pico/net/config.o
===================================================== [FAILED] Took 15.22 seconds =====================================================

 *  The terminal process "platformio 'run'" terminated with exit code: 1. 

System info

PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

@jean-roland
Copy link
Contributor

Related to #353
Solved in #382

@Mallets Mallets closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants