Mir

[regression] Mir FTBFS with g++-4.8 [error: ISO C++ forbids casting between pointer-to-function and pointer-to-object]

Bug #1366134 reported by Cemil Azizoglu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
High
Daniel van Vugt
0.7
Fix Released
High
Daniel van Vugt
mir (Ubuntu)
Fix Released
Undecided
Unassigned
mir (Ubuntu RTM)
Fix Released
High
Unassigned

Bug Description

/home/camako/workspace/mir-dev/src/platform/options/default_configuration.cpp: In function ‘void {anonymous}::ensure_loaded_with_rtld_global()’:
/home/camako/workspace/mir-dev/src/platform/options/default_configuration.cpp:77:67: error: ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Werror]
     dladdr(reinterpret_cast<void*>(&ensure_loaded_with_rtld_global), &info);

...

/home/camako/workspace/mir-dev/src/client/default_connection_configuration.cpp: In function ‘void {anonymous}::ensure_loaded_with_rtld_global()’:
/home/camako/workspace/mir-dev/src/client/default_connection_configuration.cpp:57:67: error: ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Werror]
     dladdr(reinterpret_cast<void*>(&ensure_loaded_with_rtld_global), &info);

Tags: regression

Related branches

Revision history for this message
Kevin DuBois (kdub) wrote :

with rev1893 and a fresh partial chroot, ./cross-compile-chroot.sh seemed to work okay for me.

Changed in mir:
milestone: none → 0.8.0
importance: Undecided → Critical
summary: - FTBFS: Cross-compile script no longer works
+ FTBFS: Cross-compile script no longer works [error: ISO C++ forbids
+ casting between pointer-to-function and pointer-to-object]
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: FTBFS: Cross-compile script no longer works [error: ISO C++ forbids casting between pointer-to-function and pointer-to-object]

I can't reproduce the error either (using a fully updated utopic system). Although it looks like something easy enough to fix regardless.

What platform/compiler are you getting the error from?

Changed in mir:
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Reproduced. You just have to try building Mir on trusty.

Changed in mir:
importance: Critical → High
status: Incomplete → Triaged
summary: - FTBFS: Cross-compile script no longer works [error: ISO C++ forbids
- casting between pointer-to-function and pointer-to-object]
+ Mir FTBFS on trusty [error: ISO C++ forbids casting between pointer-to-
+ function and pointer-to-object]
summary: - Mir FTBFS on trusty [error: ISO C++ forbids casting between pointer-to-
- function and pointer-to-object]
+ [regression] Mir FTBFS on trusty [error: ISO C++ forbids casting between
+ pointer-to-function and pointer-to-object]
tags: added: regression
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [regression] Mir FTBFS on trusty [error: ISO C++ forbids casting between pointer-to-function and pointer-to-object]

Setting to High, not because trusty is important for Mir, but because it's quite realistic to expect other distros (which we want to support) to have a similar compiler with the same problems.

summary: - [regression] Mir FTBFS on trusty [error: ISO C++ forbids casting between
- pointer-to-function and pointer-to-object]
+ [regression] Mir FTBFS with g++-4.8 [error: ISO C++ forbids casting
+ between pointer-to-function and pointer-to-object]
Changed in mir:
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in mir:
status: Triaged → In Progress
Changed in mir:
milestone: 0.8.0 → 0.9.0
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir/devel at revision None, scheduled for release in mir, milestone Unknown

Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
milestone: 0.9.0 → 0.8.0
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mir - 0.7.2+14.10.20140912-0ubuntu1

---------------
mir (0.7.2+14.10.20140912-0ubuntu1) utopic; urgency=medium

  [ Alexandros Frantzis ]
  * New upstream release 0.7.2 (https://launchpad.net/mir/+milestone/0.7.2)
    - Bug fixes
      . Restore support for gcc-4.8/trusty (LP: #1366134)
 -- Ubuntu daily release <email address hidden> Fri, 12 Sep 2014 09:07:49 +0000

Changed in mir (Ubuntu):
status: New → Fix Released
Changed in mir:
status: Fix Committed → Fix Released
Changed in mir (Ubuntu RTM):
importance: Undecided → High
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.