Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 899986 - net-libs/zeromq-4.3.4-r2: riscv failed to build under qemu-user
Summary: net-libs/zeromq-4.3.4-r2: riscv failed to build under qemu-user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-03-07 07:38 UTC by jinqiang zhang
Modified: 2023-03-11 17:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
info.txt (info.txt,6.42 KB, text/plain)
2023-03-07 07:40 UTC, jinqiang zhang
Details
build.log (build.log,162.33 KB, text/plain)
2023-03-07 07:40 UTC, jinqiang zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jinqiang zhang 2023-03-07 07:38:59 UTC
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 ());
      |                         ^~~~
Comment 1 jinqiang zhang 2023-03-07 07:40:32 UTC
Created attachment 856454 [details]
info.txt

emerge --info
Comment 2 jinqiang zhang 2023-03-07 07:40:35 UTC
Created attachment 856456 [details]
build.log

build.log
Comment 3 Larry the Git Cow gentoo-dev 2023-03-11 17:15:33 UTC
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(+)