Opened 7 years ago

Last modified 4 years ago

#44274 assigned defect

gcc47 Issue?

Reported by: dbl001 (dbl) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.0
Keywords: Cc: larryv (Lawrence Velázquez)
Port: gcc47

Description (last modified by ryandesign (Ryan Schmidt))

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@macports.org, openmaintainer@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

Attachments (1)

PyMindAgent.cc (1.8 KB) - added by dbl001 (dbl) 7 years ago.

Download all attachments as: .zip

Change History (12)

Changed 7 years ago by dbl001 (dbl)

Attachment: PyMindAgent.cc added

comment:1 Changed 7 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Keywords: compiler removed
Owner: changed from macports-tickets@… to mww@…
Port: gcc47 added

comment:2 Changed 7 years ago by ryandesign (Ryan Schmidt)

comment:3 Changed 7 years ago by ryandesign (Ryan Schmidt)

Do you see the same problem with gcc48 or gcc49?

comment:4 in reply to:  3 Changed 7 years ago by dbl001 (dbl)

Replying to ryandesign@…:

Do you see the same problem with gcc48 or gcc49?

Same problem with gcc48:

In file included from /opt/local/include/gcc48/c++/bits/basic_ios.h:37:0,
                 from /opt/local/include/gcc48/c++/ios:44,
                 from /opt/local/include/gcc48/c++/ostream:38,
                 from /opt/local/include/gcc48/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/gcc48/c++/bits/locale_facets.h:240:53: error: macro "toupper" passed 2 arguments, but takes just 1
       toupper(char_type *__lo, const char_type* __hi) const
                                                     ^
/opt/local/include/gcc48/c++/bits/locale_facets.h:269:53: error: macro "tolower" passed 2 arguments, but takes just 1
       tolower(char_type* __lo, const char_type* __hi) const
                                                     ^
/opt/local/include/gcc48/c++/bits/locale_facets.h:812:53: error: macro "toupper" passed 2 arguments, but takes just 1
       toupper(char_type *__lo, const char_type* __hi) const
                                                     ^
/opt/local/include/gcc48/c++/bits/locale_facets.h:845:53: error: macro "tolower" passed 2 arguments, but takes just 1
       tolower(char_type* __lo, const char_type* __hi) const

gcc49 gets compiler errors much earlier on in the process (which didn’t happen with gcc47 or gcc48. E.g.

/Users/davidlaxer/opencog/opencog/util/Logger.cc:157:25: error: no matching constructor for initialization of 'std::thread'
        writer_thread = std::thread(&Logger::writingLoop, this);
Last edited 7 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:5 Changed 7 years ago by ryandesign (Ryan Schmidt)

The opencog bug report referenced above says it is a gcc bug, so someone should please retest the issue with gcc5, and if the issue remains, then please report the problem to the developers of gcc.

comment:6 in reply to:  5 Changed 7 years ago by dbl001 (dbl)

Replying to ryandesign@…:

The opencog bug report referenced above says it is a gcc bug, so someone should please retest the issue with gcc5, and if the issue remains, then please report the problem to the developers of gcc.

I just tried compiling open cog with gcc5.0 and there are numerous internal compiler errors.

E.g. -

David-Laxers-MacBook-Pro:bin davidlaxer$ make atomspace
Scanning dependencies of target opencog_atom_types
[  6%] Generating opencog types
-- Atom type name: Notype
-- Atom type name: Atom
-- Atom type name: Node
-- Atom type name: Link
-- Atom type name: ConceptNode
-- Atom type name: NumberNode
-- Atom type name: OrderedLink
-- Atom type name: UnorderedLink
-- Atom type name: SetLink
-- Atom type name: ListLink
-- Atom type name: MemberLink
-- Atom type name: SubsetLink
-- Atom type name: AndLink
-- Atom type name: OrLink
-- Atom type name: NotLink
-- Atom type name: FalseLink
-- Atom type name: TrueLink
-- Atom type name: ContextLink
-- Atom type name: VariableNode
-- Atom type name: VariableTypeNode
-- Atom type name: TypedVariableLink
-- Atom type name: QuoteLink
-- Atom type name: BindLink
-- Custom atom type name specified: "ForAllLink"
-- Atom type name: ForAllLink
-- Atom type name: ExistsLink
-- Atom type name: AverageLink
-- Atom type name: SatisfyingSetLink
-- Atom type name: ScholemLink
-- Atom type name: ImplicationLink
-- Atom type name: EquivalenceLink
-- Atom type name: EvaluationLink
-- Atom type name: AssociativeLink
-- Atom type name: InheritanceLink
-- Atom type name: SimilarityLink
-- Atom type name: AttractionLink
-- Atom type name: ProcedureNode
-- Atom type name: GroundedProcedureNode
-- Atom type name: SchemaNode
-- Atom type name: GroundedSchemaNode
-- Atom type name: PredicateNode
-- Atom type name: GroundedPredicateNode
-- Atom type name: DefinedRelationshipNode
-- Atom type name: SchemaExecutionLink
-- Atom type name: SchemaEvaluationLink
-- Atom type name: ExecutionLink
-- Atom type name: ExecutionOutputLink
-- Atom type name: AnchorNode
-- Atom type name: QuantityLink
[  6%] Built target opencog_atom_types
[  6%] Building CXX object opencog/util/CMakeFiles/cogutil.dir/Config.cc.o
/Users/davidlaxer/opencog/opencog/util/Config.cc: In member function 'virtual void boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >::_ZTv0_n32_NK5boost16exception_detail10clone_implINS0_19error_info_injectorINS_16bad_lexical_castEEEE7rethrowEv() const':
/Users/davidlaxer/opencog/opencog/util/Config.cc:310:1: error: unrecognizable insn:
 }
 ^
(call_insn/j 4 3 5 (call (mem/u/c:DI (const:DI (unspec:DI [
                        (symbol_ref/i:DI ("_ZNK5boost16exception_detail10clone_implINS0_19error_info_injectorINS_16bad_lexical_castEEEE7rethrowEv") [flags 0x1] <function_decl 0x10fad4d00 rethrow>)
                    ] UNSPEC_GOTPCREL)) [0  S8 A8])
        (const_int 0 [0])) /usr/local/include/boost/exception/exception.hpp:470 -1
     (nil)
    (nil))
/Users/davidlaxer/opencog/opencog/util/Config.cc:310:1: internal compiler error: in insn_min_length, at config/i386/i386.md:1760

/Users/davidlaxer/opencog/opencog/util/Config.cc:310:1: internal compiler error: Abort trap: 6
g++-mp-5: internal compiler error: Abort trap: 6 (program cc1plus)
/bin/sh: line 1: 72778 Abort trap: 6           /opt/local/bin/g++-mp-5 -DBOOST_PARAMETER_MAX_ARITY=7 -DHAVE_CYTHON -DHAVE_EXPAT -DHAVE_GSL -DHAVE_GTK -DHAVE_LAPACK -DHAVE_MPI -DHAVE_PROTOBUF -DHAVE_SQL_STORAGE -DHAVE_UBIGRAPH -DHAVE_VALGRIND -DHAVE_ZMQ -Dcogutil_EXPORTS -Wall -Wno-long-long -Wno-conversion -Wno-variadic-macros -fopenmp -std=gnu++0x -O2 -g0 -fPIC -I/usr/local/include -I/Users/davidlaxer/opencog -I/Users/davidlaxer/opencog/bin -DPROJECT_SOURCE_DIR=\"/Users/davidlaxer/opencog\" -DPROJECT_BINARY_DIR=\"/Users/davidlaxer/opencog/bin\" -DCONFDIR=\"/usr/local/etc\" -DDATADIR=\"/usr/local/share/opencog\" -DCMAKE_INSTALL_PREFIX="\"/usr/local\"" -o CMakeFiles/cogutil.dir/Config.cc.o -c /Users/davidlaxer/opencog/opencog/util/Config.cc
make[3]: *** [opencog/util/CMakeFiles/cogutil.dir/Config.cc.o] Error 134
make[2]: *** [opencog/util/CMakeFiles/cogutil.dir/all] Error 2
make[1]: *** [opencog/atomspace/CMakeFiles/atomspace.dir/rule] Error 2
make: *** [atomspace] Error 2
Last edited 6 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:7 Changed 7 years ago by dbl001 (dbl)

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$ 
Last edited 6 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:8 Changed 7 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

comment:9 Changed 6 years ago by ryandesign (Ryan Schmidt)

When writing in Trac, please use WikiFormatting.

I have no suggestions to resolve this problem. You should speak with the developers of gcc.

comment:10 in reply to:  description Changed 5 years ago by abhinavmoudgil95@…

Replying to davidl@…:

Any updates on this? I am compiling with gcc5 but still facing the same issue. See here.

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@macports.org, openmaintainer@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

comment:11 Changed 4 years ago by kurthindenburg (Kurt Hindenburg)

Owner: changed from mww@… to macports-tickets@…
Status: newassigned
Note: See TracTickets for help on using tickets.