I'm facing some compile error under qemu-user mode like: libtool: compile: riscv64-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./src -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -fvisi bility=hidden -pedantic -Wall -Wno-long-long -O2 -pipe -ffat-lto-objects -c src/kqueue.cpp -fPIC -DPIC -o src/.libs/libzmq_l a-kqueue.o In file included from src/precompiled.hpp:43, from src/address.cpp:30: src/platform.hpp:218:28: error: 'undefined' was not declared in this scope 218 | #define ZMQ_CACHELINE_SIZE undefined | ^~~~~~~~~ src/yqueue.hpp:60:45: note: in expansion of macro 'ZMQ_CACHELINE_SIZE' 60 | template <typename T, int N, size_t ALIGN = ZMQ_CACHELINE_SIZE> class yqueue_t | ^~~~~~~~~~~~~~~~~~ In file included from src/mailbox.hpp:39, from src/ctx.hpp:38, from src/address.cpp:33: src/ypipe.hpp:182:18: error: template argument 3 is invalid 182 | yqueue_t<T, N> _queue; | ^ src/ypipe.hpp: In constructor 'zmq::ypipe_t<T, N>::ypipe_t()': src/ypipe.hpp:53:16: error: request for member 'push' in '((zmq::ypipe_t<T, N>*)this)->zmq::ypipe_t<T, N>::_queue', which is of non-class type 'int' 53 | _queue.push (); | ^~~~ src/ypipe.hpp:57:32: error: request for member 'back' in '((zmq::ypipe_t<T, N>*)this)->zmq::ypipe_t<T, N>::_queue', which is of non-class type 'int' 57 | _r = _w = _f = &_queue.back (); | ^~~~ src/ypipe.hpp:58:25: error: request for member 'back' in '((zmq::ypipe_t<T, N>*)this)->zmq::ypipe_t<T, N>::_queue', which is of non-class type 'int' 58 | _c.set (&_queue.back ()); | ^~~~
Created attachment 856454 [details] info.txt emerge --info
Created attachment 856456 [details] build.log build.log
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d5f2daeee8249439d1c59bd3e0c6e023e2f5e5b commit 6d5f2daeee8249439d1c59bd3e0c6e023e2f5e5b Author: jinqiang zhang <peeweep@0x0.ee> AuthorDate: 2023-03-07 07:51:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-03-11 17:15:03 +0000 net-libs/zeromq: fix compile failed under riscv64 qemu-user Closes: https://bugs.gentoo.org/899986 Signed-off-by: jinqiang zhang <peeweep@0x0.ee> Closes: https://github.com/gentoo/gentoo/pull/29972 Signed-off-by: Sam James <sam@gentoo.org> net-libs/zeromq/files/zeromq-4.3.4-qemu-user.patch | 52 ++++++++++++++++++++++ net-libs/zeromq/zeromq-4.3.4-r2.ebuild | 1 + 2 files changed, 53 insertions(+)