bugLordsAWar! - Bugs: bug #32898, compilation error on OpenBSD

 
 

bug #32898: compilation error on OpenBSD

Submitted by:  Ben Asselstine <benasselstine>
Submitted on:  Thu 24 Mar 2011 11:26:49 AM UTC  
 
Category: building/compilationSeverity: 3 - Normal
Item Group: 0.2.0Status: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Wed 15 Jun 2011 04:46:37 PM UTC, comment #6:

I have exactly the same compile issue, with the same error, compiling on a MacBook Pro OSX 10.5.8. After reading the link, which suggested my gcc is out of date, I changed the symbolic link in my /usr/bin so gcc and g++ use the (OSX developer tools) version 4.2.1. However, the same compile error results, namely:

player.cpp: In member function 'void Player::initTurn()':
player.cpp:301: warning: format '%d' expects type 'int', but argument 2 has type 'size_t'
player.cpp: In member function 'bool Player::setPathOfStackToPreviousDestination(Stack*)':
player.cpp:4401: error: no match for 'operator!=' in 'it != std::list<_Tp, _Alloc>::rend() [with _Tp = Action, _Alloc = std::allocator<Action>]()'
rectangle.h:54: note: candidates are: bool operator!=(const Rectangle&, const Rectangle&)

To be explicit: g++ --version returns

i686-apple-darwin9-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5564)

Anonymous
Mon 28 Mar 2011 02:56:31 PM UTC, comment #5:

I have no idea what's happening on your system. Maybe libtool works a little better on your system than mine.

Ben Asselstine <benasselstine>
Project Administrator
Mon 28 Mar 2011 01:26:53 PM UTC, comment #4:

I have no issues with compiling LordsAWar! 0.2.0 on OpenBSD.

By the way, for me the unpacked source + build files + fake install = 213M. What am I doing wrong?

Dmitrij D. Czarkoff <czarkoff>
Mon 28 Mar 2011 01:17:32 PM UTC, comment #3:

Can I close this bug?

Ben Asselstine <benasselstine>
Project Administrator
Thu 24 Mar 2011 11:42:25 AM UTC, comment #2:

The source + build files is 1.3G on my system.

I think there's a lot of copying going on between object files and various libtool archives.

Ben Asselstine <benasselstine>
Project Administrator
Thu 24 Mar 2011 11:30:10 AM UTC, comment #1:

The bug is further described here:

http://www.velocityreviews.com/forums/t541890-compilation-error-with-const_reverse_iterator.html

TL;DR
It suggests that your version of gcc is out of date.

It's a problem with the reverse_const_iterator trying to match against the value returned from .rend(). rend() returns a reverse_iterator, and the != operator doesn't support that in some earlier versions of gcc.

Ben Asselstine <benasselstine>
Project Administrator
Thu 24 Mar 2011 11:26:49 AM UTC, original submission:

player.cpp: In member function `void Player::initTurn()':
player.cpp:301: warning: int format, size_t arg (arg 2)
player.cpp: In member function `bool
Player::setPathOfStackToPreviousDestination(Stack*)':
player.cpp:4401: error: no match for 'operator!=' in 'it != std::list<_Tp,
_Alloc>::rend() [with _Tp = Action, _Alloc = std::allocator<Action>]()'
rectangle.h:55: error: candidates are: bool operator!=(const Rectangle&, const
Rectangle&)

I hope that error message makes sense to you...

BTW, the build generates some really big files, but maybe that's normal:
$ du -sh /home/build/lordsawar-0.2.0/
681M /home/build/lordsawar-0.2.0/

Ben Asselstine <benasselstine>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by czarkoff (Posted a comment)
  • -unavailable- added by benasselstine (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Mar 2011 02:56:31 PM UTCbenasselstineOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1