Skip to content

Build Error for ZMQ 4.2.5 #3042

Closed
Closed
@Chris-Castles

Description

@Chris-Castles

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

  • libzmq version (4.2.5):
  • OS:
    linux

Minimal test code / Steps to reproduce the issue

  1. When build it using command :

./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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions