Volker:

Yes, your suggested 'fix' works.

My standard CFLAGS and CXXFLAGS that was failing on zeromq:
CFLAGS=-march=native -O2 -fomit-frame-pointer -pipe -W -Wall
CXXFLAGS=-march=native -O2 -fomit-frame-pointer -pipe -W -Wall

The following work:
CFLAGS=-march=native -O2 -fomit-frame-pointer -pipe
-Wno-error=unused-parameter
CXXFLAGS=-march=native -O2 -fomit-frame-pointer -pipe
-Wno-error=unused-parameter

Thank you.

Richard

On 02/22/15 00:45, Volker Braun wrote:
> Seems to be fixed in the next zeromq
> version: https://github.com/zeromq/libzmq/tree/master/tests
> 
> Can you try
> 
> CXXFLAGS="-Wno-error=unused-parameter"  make
> 
> or maybe just CFLAGS. If it works we can add it as a workaround.
> 
> 
> 
> 
> On Sunday, February 22, 2015 at 4:07:13 AM UTC+1, rich...@pacbell.net wrote:
> 
>     I'm trying to compile Sage-6.5 on 64-bit Linux (Gentoo using gcc-4.8.3)
> 
>     export MAKE="make -j16"
>     make ssl > make.out 2>&1 &
> 
>     from the end of make:
> 
>     ========================
>     Successfully installed gf2x-1.1.p1
>     Deleting temporary build directory
>     /dev/shm/sage-6.5/local/var/tmp/sage/build/gf2x-1.1.p1
>     Finished installing gf2x-1.1.p1.spkg
>     make[2]: Leaving directory '/dev/shm/sage-6.5/build'
>     Makefile:391: recipe for target 'all' failed
>     make[1]: *** [all] Error 2
>     make[1]: Leaving directory '/dev/shm/sage-6.5/build'
> 
>     real  7m47.094s
>     user  32m54.476s
>     sys   1m4.133s
>     ***************************************************************
>     Error building Sage.
> 
>     The following package(s) may have failed to build:
> 
>     package: zeromq-4.0.5
>     log file: /dev/shm/sage-6.5/logs/pkgs/zeromq-4.0.5.log
>     build directory:
>     /dev/shm/sage-6.5/local/var/tmp/sage/build/zeromq-4.0.5
>     ==========================
> 
>     and from the end of zeromq-4.0.5.log:
> 
>     ==========================
>       CXX    libzmq_la-mailbox.lo
>       CXX    libzmq_la-mechanism.lo
>     In file included from mechanism.cpp:22:0:
>     mechanism.hpp:49:21: error: unused parameter 'msg_'
>     [-Werror=unused-parameter]
>              virtual int encode (msg_t *msg_) { return 0; }
>                          ^
>     mechanism.hpp:51:21: error: unused parameter 'msg_'
>     [-Werror=unused-parameter]
>              virtual int decode (msg_t *msg_) { return 0; }
>                          ^
>     mechanism.cpp:126:5: error: unused parameter 'name_'
>     [-Werror=unused-parameter]
>      int zmq::mechanism_t::property (const std::string name_,
>          ^
>     mechanism.cpp:126:5: error: unused parameter 'value_'
>     [-Werror=unused-parameter]
>     mechanism.cpp:126:5: error: unused parameter 'length_'
>     [-Werror=unused-parameter]
>     cc1plus: all warnings being treated as errors
>     Makefile:799: recipe for target 'libzmq_la-mechanism.lo' failed
>     make[5]: *** [libzmq_la-mechanism.lo] Error 1
>     make[5]: Leaving directory
>     '/dev/shm/sage-6.5/local/var/tmp/sage/build/zeromq-4.0.5/src/src'
>     Makefile:485: recipe for target 'all' failed
>     make[4]: *** [all] Error 2
>     make[4]: Leaving directory
>     '/dev/shm/sage-6.5/local/var/tmp/sage/build/zeromq-4.0.5/src/src'
>     Makefile:331: recipe for target 'all-recursive' failed
>     make[3]: *** [all-recursive] Error 1
>     make[3]: Leaving directory
>     '/dev/shm/sage-6.5/local/var/tmp/sage/build/zeromq-4.0.5/src'
>     Failed to build zeromq
> 
>     real    0m18.111s
>     user    0m12.670s
>     sys     0m1.183s
>     ************************************************************************
> 
>     Error installing package zeromq-4.0.5
>     ************************************************************************
> 
>     =====================
> 
>     This is an Intel core i7 based system.
> 
>     If any more information about my system or build attempt would be
>     helpful in fixing this issue, please ask.
> 
>     R
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to