andreasgal/B2G — Issue #42: Build error in frameworks/base/libs/utils/RefBase.cpp: passing const android::RefBase::weakref_impl as 'this' ‘void android::RefBase::weakref_impl::trackMe(bool, bool)’ discards qualifiers
Author: jlebar
Created: 2011-10-17 21:47:28+00:00
State: open

I get the following, (during Gecko |make package|?) which I presume is unrelated:

printf "manifest components/interfaces.manifest\nmanifest components/components.manifest\nmanifest chrome/nonlocalized.manifest\nmanifest chrome/localized.manifest\n" > ../../dist/b2g//chrome.manifest
/usr/bin/python2.7 /home/jlebar/code/moz/B2G/gecko/config/optimizejars.py --optimize /home/jlebar/code/moz/B2G/gecko/objdir-prof-android/b2g/installer/../../jarlog//en-US ../../dist/bin/chrome ../../dist/b2g/chrome
Stripping package directory...
signing nss libraries
../../dist/bin/shlibsign: 1: Syntax error: word unexpected (expecting ")")
../../dist/bin/shlibsign: 1: Syntax error: word unexpected (expecting ")")
../../dist/bin/shlibsign: 1: Syntax error: word unexpected (expecting ")")

Then I later get the following build error:

frameworks/base/libs/utils/RefBase.cpp: In member function ‘void android::RefBase::weakref_type::trackMe(bool, bool)’:
frameworks/base/libs/utils/RefBase.cpp:507:67: error: passing ‘const android::RefBase::weakref_impl’ as ‘this’ argument of ‘void android::RefBase::weakref_impl::trackMe(bool, bool)’ discards qualifiers [-fpermissive]

It says "Host C++" -- could this be happening because I'm using GCC 4.6 (Ubuntu 11.10)?