-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Build Error for ZMQ 4.2.5 #3042
Comments
What are the compiler, libc and libstdc++ versions? |
Hi bluca, Version information as below: Thank you |
Those are the ABI versions, what are the package versions? And what is the distribution and compiler? |
I have the same problem with the compiler arm-bcm2708-linux-gnueabi, from the raspberry pi tools: https://github.com/raspberrypi/tools/tree/master/arm-bcm2708/arm-bcm2708-linux-gnueabi. The problems was introduced in #2910. If ZMQ_ATOMIC_PTR_MUTEX is defined, the mutex_t in line 286 needs to be mutable (as is for VxWorks) because load() is const and passes it as non-const to atomic_cas. |
@korbes Can you send a PR to fix this? |
Fixed by #3112 |
Please use this template for reporting suspected bugs or requests for help.
Issue description
@bluca
When build ZMQ 4.2.5, I meet some errors ,
Environment
linux
Minimal test code / Steps to reproduce the issue
./configure --host=arm-brcm-linux-gnueabi --prefix=$LO_SDK_TOP_DIR
LIBS=-L$LO_SDK_LIB_DIR --with-relaxed &&
make && make install || (cat config.log && exit 1)
It stops when meet errors as below :
What's the actual result? (include assertion message & call stack if applicable)
configure: WARNING: unrecognized options: --with-relaxed
Making all in doc
make[1]: Entering directory
/tmp/src/zeromq-4.2.5/doc' make[1]: Nothing to be done for
all'.make[1]: Leaving directory
/tmp/src/zeromq-4.2.5/doc' make[1]: Entering directory
/tmp/src/zeromq-4.2.5'CC external/unity/unity.o
AR external/unity/libunity.a
CXX src/src_libzmq_la-address.lo
cc1plus: warnings being treated as errors
In file included from src/ypipe.hpp:33,
from src/mailbox.hpp:39,
from src/ctx.hpp:38,
from src/address.cpp:33:
src/atomic_ptr.hpp: In member function 'void zmq::atomic_value_t::store(int)':
src/atomic_ptr.hpp:252: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/atomic_ptr.hpp: In member function 'int zmq::atomic_value_t::load() const':
src/atomic_ptr.hpp:266: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/atomic_ptr.hpp:271: error: invalid initialization of reference of type 'zmq::mutex_t&' from expression of type 'const zmq::mutex_t'
src/atomic_ptr.hpp:123: error: in passing argument 4 of 'void* zmq::atomic_cas(void* volatile*, void*, void*, zmq::mutex_t&)'
make[1]: *** [src/src_libzmq_la-address.lo] Error 1
make: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/src/zeromq-4.2.5'
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
What's the expected result?
Complete the build with successful result.
Thank you.
The text was updated successfully, but these errors were encountered: