[MacPorts] #44274: gcc47 Issue?
MacPorts
noreply at macports.org
Fri Oct 31 06:29:26 PDT 2014
#44274: gcc47 Issue?
-----------------------+-------------------
Reporter: davidl@… | Owner: mww@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.0
Resolution: | Keywords:
Port: gcc47 |
-----------------------+-------------------
Comment (by davidl@…):
Same macro problems (e.g. isupper, tolower, toupper) with gcc49.
One of the lead developers with Opencog wrote this:
“For the first bug, something, somewhere, is incorrectly declaring toupper
to be a macro (#define toupper(...)) The opencog code is not doing this --
something on your macos system is. You have to find it and disable it.
toupper should not be a macro, its a part of standard c/c++"
Any suggestions on what to try?
E.g.
/opt/local/include/gcc49/c++/bits/locale_facets.h:2543:14: note: suggested
alternative:
In file included from
/opt/local/include/gcc49/c++/bits/locale_classes.h:787:0,
from /opt/local/include/gcc49/c++/bits/ios_base.h:41,
from /opt/local/include/gcc49/c++/ios:42,
from /opt/local/include/gcc49/c++/ostream:38,
from /opt/local/include/gcc49/c++/iostream:39,
from
/Users/davidlaxer/opencog/opencog/atomspace/AtomTable.h:28,
from
/Users/davidlaxer/opencog/opencog/atomspace/AtomSpaceImpl.h:33,
from
/Users/davidlaxer/opencog/opencog/atomspace/AtomSpace.h:32,
from /Users/davidlaxer/opencog/opencog/server/Agent.h:32,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.h:30,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.cc:2:
/opt/local/include/gcc49/c++/bits/locale_classes.tcc:132:5: note:
'std::use_facet'
use_facet(const locale& __loc)
^
In file included from /opt/local/include/gcc49/c++/bits/basic_ios.h:37:0,
from /opt/local/include/gcc49/c++/ios:44,
from /opt/local/include/gcc49/c++/ostream:38,
from /opt/local/include/gcc49/c++/iostream:39,
from
/Users/davidlaxer/opencog/opencog/atomspace/AtomTable.h:28,
from
/Users/davidlaxer/opencog/opencog/atomspace/AtomSpaceImpl.h:33,
from
/Users/davidlaxer/opencog/opencog/atomspace/AtomSpace.h:32,
from /Users/davidlaxer/opencog/opencog/server/Agent.h:32,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.h:30,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.cc:2:
/opt/local/include/gcc49/c++/bits/locale_facets.h:2543:24: error: 'ctype'
was not declared in this scope
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c);
}
^
/opt/local/include/gcc49/c++/bits/locale_facets.h:2543:24: note: suggested
alternative:
In file included from /opt/local/include/gcc49/c++/string:43:0,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.h:26,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.cc:2:
/opt/local/include/gcc49/c++/bits/localefwd.h:121:11: note: 'std::ctype'
class ctype;
^
In file included from /opt/local/include/gcc49/c++/bits/basic_ios.h:37:0,
from /opt/local/include/gcc49/c++/ios:44,
from /opt/local/include/gcc49/c++/ostream:38,
from /opt/local/include/gcc49/c++/iostream:39,
from
/Users/davidlaxer/opencog/opencog/atomspace/AtomTable.h:28,
from
/Users/davidlaxer/opencog/opencog/atomspace/AtomSpaceImpl.h:33,
from
/Users/davidlaxer/opencog/opencog/atomspace/AtomSpace.h:32,
from /Users/davidlaxer/opencog/opencog/server/Agent.h:32,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.h:30,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.cc:2:
/opt/local/include/gcc49/c++/bits/locale_facets.h:2543:36: error: expected
primary-expression before '>' token
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c);
}
^
/opt/local/include/gcc49/c++/bits/locale_facets.h:2543:38: error: expected
primary-expression before '>' token
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c);
}
^
/opt/local/include/gcc49/c++/bits/locale_facets.h:2543:47: error: request
for member 'is' in '__loc', which is of non-class type 'const int'
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c);
}
^
/opt/local/include/gcc49/c++/bits/locale_facets.h:2543:50: error:
'ctype_base' has not been declared
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c);
}
^
/opt/local/include/gcc49/c++/bits/locale_facets.h: At global scope:
/opt/local/include/gcc49/c++/bits/locale_facets.h:2548:5: error: 'isupper'
declared as an 'inline' variable
isupper(_CharT __c, const locale& __loc)
^
/opt/local/include/gcc49/c++/bits/locale_facets.h:2548:5: error: template
declaration of 'bool isupper'
/opt/local/include/gcc49/c++/bits/locale_facets.h:2549:7: error: expected
primary-expression before 'return'
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::upper, __c);
}
^
/opt/local/include/gcc49/c++/bits/locale_facets.h:2549:7: error: expected
'}' before 'return'
/opt/local/include/gcc49/c++/bits/locale_facets.h:2549:75: error: expected
declaration before '}' token
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::upper, __c);
}
^
make[2]: *** [opencog/cython/CMakeFiles/PythonModule.dir/PyMindAgent.cc.o]
Error 1
make[1]: *** [opencog/cython/CMakeFiles/PythonModule.dir/all] Error 2
make: *** [all] Error 2
David-Laxers-MacBook-Pro:bin davidlaxer$
--
Ticket URL: <https://trac.macports.org/ticket/44274#comment:7>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list