[eq-dev] Compilation problem with Equalizer 1.0 alpha and gcc 4.4.5

6 views
Skip to first unread message

Juan Hernando

unread,
Jan 10, 2011, 1:41:25 PM1/10/11
to Equalizer Developer List
Dear all,
I want to port and test an application working with Equalizer 0.9 to 1.0
and I'm having some troubles compiling the source code. The default
version of gcc shipped with Ubuntu 10.10 (4.4.5) complains about
strict-aliasing rules being broken. The full error message is quite
meaningless:

[ 0%] Building CXX object
libs/client/CMakeFiles/Equalizer.dir/__/collage/rspConnection.cpp.o
cc1plus: warnings being treated as errors
In member function ‘virtual bool co::RSPConnection::listen()’:
cc1plus: error: dereferencing pointer ‘pretmp.23799’ does break
strict-aliasing rules
cc1plus: note: initialized from here
cc1plus: error: dereferencing pointer ‘pretmp.23799’ does break
strict-aliasing rules
cc1plus: note: initialized from here
cc1plus: error: dereferencing pointer ‘pretmp.23803’ does break
strict-aliasing rules
cc1plus: note: initialized from here
cc1plus: error: dereferencing pointer ‘pretmp.23803’ does break
strict-aliasing rules
cc1plus: note: initialized from here
make[2]: ***
[libs/client/CMakeFiles/Equalizer.dir/__/collage/rspConnection.cpp.o]
Error 1
make[1]: *** [libs/client/CMakeFiles/Equalizer.dir/all] Error 2
make: *** [all] Error 2

Trying to nail down the error I was able to obtain a clean compilation
by commenting out lines 249-250 and replacing line 226 with: const
ip::udp::endpoint writeEndpoint;
My guess is that there is something wrong going on with
boost::asio::ip::udp::resolver::iterator (my boost version is 1.42 by
the way). Has anyone encountered this problem before? Is there a workaround?

Since I'm coming from 0.9.0 where RSP connections weren't still
available, should I just remove the -Werror flag from the CMakeLists.txt
and ignore this problem?

Thanks and best regards,
Juan

_______________________________________________
eq-dev mailing list
eq-...@equalizergraphics.com
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

CristiM

unread,
Feb 3, 2011, 4:51:59 AM2/3/11
to eq-...@equalizergraphics.com

Hello,

I have the same problem Juan. I am using Ubuntu 10.04, gcc version: 4.4.3
and boost version is 1.40

Waiting for an answer to resolve this issue...

Thank you in advance !

Cheers,
Cristi
--
View this message in context: http://software.1713.n2.nabble.com/Compilation-problem-with-Equalizer-1-0-alpha-and-gcc-4-4-5-tp5908081p5988167.html
Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.

Stefan Eilemann

unread,
Feb 3, 2011, 5:03:06 AM2/3/11
to Equalizer Developer List
Juan,

I only just now saw this message thanks to Christi's email. It want straight into GMail's spam. I tweaked my filters, so hopefully it won't happen again.

On 10. Jan 2011, at 19:41, Juan Hernando wrote:
> Since I'm coming from 0.9.0 where RSP connections weren't still available, should I just remove the -Werror flag from the CMakeLists.txt and ignore this problem?

Yes, or you could disable Boost in the CMakeCache, which disables RSP altogether. I'll reproduce your issue locally and will submit a fix later.


Cheers,

Stefan.

Juan Hernando

unread,
Feb 9, 2011, 4:25:29 AM2/9/11
to Equalizer Developer List
Hi Stefan,
Thanks for you answer. I was so long ago and I've been so busy with
other things that I didn't realized that this mail was actually
answering my question! I don't know what happens with the mail server I
use but this is not the first time my mail end up in the spam folder.

I managed to compile by disabling -Werror.

Cheers,
Juan

Reply all
Reply to author
Forward
0 new messages