[MacPorts] #44274: gcc47 Issue?
MacPorts
noreply at macports.org
Mon Jul 7 19:32:13 PDT 2014
#44274: gcc47 Issue?
----------------------+--------------------------------
Reporter: davidl@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.0
Keywords: compiler | Port:
----------------------+--------------------------------
Hi,
I'm getting issues compiling Opencog from source.
Is this a compiler issue?
Port had no issues installing gcc47.
MacPorts 2.3.1
port info gcc47
gcc47 @4.7.3_5 (lang)
Variants: universal
Description: The GNU compiler collection, including front ends
for C, C++, Objective-C, Objective-C++, Fortran and Java.
Homepage: http://gcc.gnu.org/
Library Dependencies: gmp, mpfr, libiconv, libmpc, ppl, cloog, libgcc
Runtime Dependencies: gcc_select, ld64, cctools
Platforms: darwin
License: GPL-3+ Permissive
Maintainers: mww at macports.org, openmaintainer at macports.org
[
{{{
44%] Building CXX object
opencog/cython/CMakeFiles/PythonModule.dir/PyMindAgent.cc.o
In file included from /opt/local/include/gcc47/c++/bits/basic_ios.h:39:0,
from /opt/local/include/gcc47/c++/ios:45,
from /opt/local/include/gcc47/c++/ostream:40,
from /opt/local/include/gcc47/c++/iostream:40,
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/gcc47/c++/bits/locale_facets.h:242:53: error: macro
"toupper" passed 2 arguments, but takes just 1
/opt/local/include/gcc47/c++/bits/locale_facets.h:271:53: error: macro
"tolower" passed 2 arguments, but takes just 1
/opt/local/include/gcc47/c++/bits/locale_facets.h:814:53: error: macro
"toupper" passed 2 arguments, but takes just 1
/opt/local/include/gcc47/c++/bits/locale_facets.h:847:53: error: macro
"tolower" passed 2 arguments, but takes just 1
In file included from /opt/local/include/gcc47/c++/bits/basic_ios.h:39:0,
from /opt/local/include/gcc47/c++/ios:45,
from /opt/local/include/gcc47/c++/ostream:40,
from /opt/local/include/gcc47/c++/iostream:40,
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/gcc47/c++/bits/locale_facets.h:2529:44: error: macro
"isspace" passed 2 arguments, but takes just 1
/opt/local/include/gcc47/c++/bits/locale_facets.h:2547:44: error: macro
"isupper" passed 2 arguments, but takes just 1
/opt/local/include/gcc47/c++/bits/locale_facets.h:2553:44: error: macro
"islower" passed 2 arguments, but takes just 1
/opt/local/include/gcc47/c++/bits/locale_facets.h:2559:44: error: macro
"isalpha" passed 2 arguments, but takes just 1
/opt/local/include/gcc47/c++/bits/locale_facets.h:2583:44: error: macro
"isalnum" passed 2 arguments, but takes just 1
/opt/local/include/gcc47/c++/bits/locale_facets.h:2595:44: error: macro
"toupper" passed 2 arguments, but takes just 1
/opt/local/include/gcc47/c++/bits/locale_facets.h:2601:44: error: macro
"tolower" passed 2 arguments, but takes just 1
In file included from /opt/local/include/gcc47/c++/bits/basic_ios.h:39:0,
from /opt/local/include/gcc47/c++/ios:45,
from /opt/local/include/gcc47/c++/ostream:40,
from /opt/local/include/gcc47/c++/iostream:40,
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/gcc47/c++/bits/locale_facets.h:227:7: error: 'btowc' is
not a type
/opt/local/include/gcc47/c++/bits/locale_facets.h:242:7: error: expected
';' at end of member declaration
/opt/local/include/gcc47/c++/bits/locale_facets.h:243:7: error: expected
unqualified-id before '{' token
/opt/local/include/gcc47/c++/bits/locale_facets.h:256:7: error: 'btowc' is
not a type
/opt/local/include/gcc47/c++/bits/locale_facets.h:271:7: error: expected
';' at end of member declaration
/opt/local/include/gcc47/c++/bits/locale_facets.h:272:7: error: expected
unqualified-id before '{' token
/opt/local/include/gcc47/c++/bits/locale_facets.h: In member function
'std::__ctype_abstract_base<_CharT>::char_type
std::__ctype_abstract_base<_CharT>::towupper(int
(*)(std::__ctype_abstract_base<_CharT>::char_type)) const':
/opt/local/include/gcc47/c++/bits/locale_facets.h:228:33: error: '__c' was
not declared in this scope
/opt/local/include/gcc47/c++/bits/locale_facets.h: In member function
'std::__ctype_abstract_base<_CharT>::char_type
std::__ctype_abstract_base<_CharT>::towlower(int
(*)(std::__ctype_abstract_base<_CharT>::char_type)) const':
/opt/local/include/gcc47/c++/bits/locale_facets.h:257:33: error: '__c' was
not declared in this scope
/opt/local/include/gcc47/c++/bits/locale_facets.h: At global scope:
/opt/local/include/gcc47/c++/bits/locale_facets.h:797:7: error: 'btowc' is
not a type
/opt/local/include/gcc47/c++/bits/locale_facets.h:814:7: error: expected
';' at end of member declaration
/opt/local/include/gcc47/c++/bits/locale_facets.h:815:7: error: expected
unqualified-id before '{' token
/opt/local/include/gcc47/c++/bits/locale_facets.h:830:7: error: 'btowc' is
not a type
/opt/local/include/gcc47/c++/bits/locale_facets.h:847:7: error: expected
';' at end of member declaration
/opt/local/include/gcc47/c++/bits/locale_facets.h:848:7: error: expected
unqualified-id before '{' token
/opt/local/include/gcc47/c++/bits/locale_facets.h: In member function
'std::ctype<char>::char_type std::ctype<char>::towupper(int
(*)(std::ctype<char>::char_type)) const':
/opt/local/include/gcc47/c++/bits/locale_facets.h:798:33: error: '__c' was
not declared in this scope
/opt/local/include/gcc47/c++/bits/locale_facets.h: In member function
'std::ctype<char>::char_type std::ctype<char>::towlower(int
(*)(std::ctype<char>::char_type)) const':
/opt/local/include/gcc47/c++/bits/locale_facets.h:831:33: error: '__c' was
not declared in this scope
In file included from /opt/local/include/gcc47/c++/bits/basic_ios.h:39:0,
from /opt/local/include/gcc47/c++/ios:45,
from /opt/local/include/gcc47/c++/ostream:40,
from /opt/local/include/gcc47/c++/iostream:40,
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/gcc47/c++/bits/locale_facets.h: At global scope:
/opt/local/include/gcc47/c++/bits/locale_facets.h:2529:5: error:
'std::isspace' declared as an 'inline' variable
/opt/local/include/gcc47/c++/bits/locale_facets.h:2529:5: error: template
declaration of 'bool std::isspace'
/opt/local/include/gcc47/c++/bits/locale_facets.h:2530:7: error: expected
primary-expression before 'return'
/opt/local/include/gcc47/c++/bits/locale_facets.h:2530:7: error: expected
'}' before 'return'
/opt/local/include/gcc47/c++/bits/locale_facets.h:2535:31: error: 'locale'
does not name a type
/opt/local/include/gcc47/c++/bits/locale_facets.h: In function 'bool
isprint(_CharT, const int&)':
/opt/local/include/gcc47/c++/bits/locale_facets.h:2536:14: error:
'use_facet' was not declared in this scope
/opt/local/include/gcc47/c++/bits/locale_facets.h:2536:14: note: suggested
alternative:
In file included from
/opt/local/include/gcc47/c++/bits/locale_classes.h:789:0,
from /opt/local/include/gcc47/c++/bits/ios_base.h:43,
from /opt/local/include/gcc47/c++/ios:43,
from /opt/local/include/gcc47/c++/ostream:40,
from /opt/local/include/gcc47/c++/iostream:40,
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/gcc47/c++/bits/locale_classes.tcc:130:5: note:
'std::use_facet'
In file included from /opt/local/include/gcc47/c++/bits/basic_ios.h:39:0,
from /opt/local/include/gcc47/c++/ios:45,
from /opt/local/include/gcc47/c++/ostream:40,
from /opt/local/include/gcc47/c++/iostream:40,
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/gcc47/c++/bits/locale_facets.h:2536:24: error: 'ctype'
was not declared in this scope
/opt/local/include/gcc47/c++/bits/locale_facets.h:2536:24: note: suggested
alternative:
In file included from /opt/local/include/gcc47/c++/string:45:0,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.h:26,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.cc:2:
/opt/local/include/gcc47/c++/bits/localefwd.h:123:11: note: 'std::ctype'
In file included from /opt/local/include/gcc47/c++/bits/basic_ios.h:39:0,
from /opt/local/include/gcc47/c++/ios:45,
from /opt/local/include/gcc47/c++/ostream:40,
from /opt/local/include/gcc47/c++/iostream:40,
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/gcc47/c++/bits/locale_facets.h:2536:36: error: expected
primary-expression before '>' token
/opt/local/include/gcc47/c++/bits/locale_facets.h:2536:38: error: expected
primary-expression before '>' token
/opt/local/include/gcc47/c++/bits/locale_facets.h:2536:47: error: request
for member 'is' in '__loc', which is of non-class type 'const int'
/opt/local/include/gcc47/c++/bits/locale_facets.h:2536:50: error:
'ctype_base' has not been declared
/opt/local/include/gcc47/c++/bits/locale_facets.h: At global scope:
/opt/local/include/gcc47/c++/bits/locale_facets.h:2541:31: error: 'locale'
does not name a type
/opt/local/include/gcc47/c++/bits/locale_facets.h: In function 'bool
iscntrl(_CharT, const int&)':
/opt/local/include/gcc47/c++/bits/locale_facets.h:2542:14: error:
'use_facet' was not declared in this scope
/opt/local/include/gcc47/c++/bits/locale_facets.h:2542:14: note: suggested
alternative:
In file included from
/opt/local/include/gcc47/c++/bits/locale_classes.h:789:0,
from /opt/local/include/gcc47/c++/bits/ios_base.h:43,
from /opt/local/include/gcc47/c++/ios:43,
from /opt/local/include/gcc47/c++/ostream:40,
from /opt/local/include/gcc47/c++/iostream:40,
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/gcc47/c++/bits/locale_classes.tcc:130:5: note:
'std::use_facet'
In file included from /opt/local/include/gcc47/c++/bits/basic_ios.h:39:0,
from /opt/local/include/gcc47/c++/ios:45,
from /opt/local/include/gcc47/c++/ostream:40,
from /opt/local/include/gcc47/c++/iostream:40,
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/gcc47/c++/bits/locale_facets.h:2542:24: error: 'ctype'
was not declared in this scope
/opt/local/include/gcc47/c++/bits/locale_facets.h:2542:24: note: suggested
alternative:
In file included from /opt/local/include/gcc47/c++/string:45:0,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.h:26,
from
/Users/davidlaxer/opencog/opencog/cython/PyMindAgent.cc:2:
/opt/local/include/gcc47/c++/bits/localefwd.h:123:11: note: 'std::ctype'
In file included from /opt/local/include/gcc47/c++/bits/basic_ios.h:39:0,
from /opt/local/include/gcc47/c++/ios:45,
from /opt/local/include/gcc47/c++/ostream:40,
from /opt/local/include/gcc47/c++/iostream:40,
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/gcc47/c++/bits/locale_facets.h:2542:36: error: expected
primary-expression before '>' token
/opt/local/include/gcc47/c++/bits/locale_facets.h:2542:38: error: expected
primary-expression before '>' token
/opt/local/include/gcc47/c++/bits/locale_facets.h:2542:47: error: request
for member 'is' in '__loc', which is of non-class type 'const int'
/opt/local/include/gcc47/c++/bits/locale_facets.h:2542:50: error:
'ctype_base' has not been declared
/opt/local/include/gcc47/c++/bits/locale_facets.h: At global scope:
/opt/local/include/gcc47/c++/bits/locale_facets.h:2547:5: error: 'isupper'
declared as an 'inline' variable
/opt/local/include/gcc47/c++/bits/locale_facets.h:2547:5: error: template
declaration of 'bool isupper'
/opt/local/include/gcc47/c++/bits/locale_facets.h:2548:7: error: expected
primary-expression before 'return'
/opt/local/include/gcc47/c++/bits/locale_facets.h:2548:7: error: expected
'}' before 'return'
/opt/local/include/gcc47/c++/bits/locale_facets.h:2548:75: error: expected
declaration before '}' token
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
}}}
--
Ticket URL: <https://trac.macports.org/ticket/44274>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list