-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What steps will reproduce the problem?
--------------------------------------------------------------
1. tar xzvf to extract files
2. cd to src directory
3. make depend; make
What is the expected output? What do you see instead?
--------------------------------------------------------------
- make depend appears to run successfully.
- make fails with following error:
- makefile:402: *** missing separator. Stop.
Attempt to fix by replacing -n ../bin/obj/\n with -n ../bin/obj/
- make returns with following error(s):
g++ -g -w -Wno-deprecated -Wall -I. -I../src/util -I../src/logic
-I../src/parser -I../src/learnwts -I../src/learnstruct -I../src/infer
-I../src/liftedinfer/bridge/includes -I../src/liftedinfer/common/includes
-I../src/liftedinfer/liftedblockedgibbs/includes
-I../src/liftedinfer/liftedimportancesampling/includes
-I../src/liftedinfer/liftedweightedmodelcounting/includes
-I../src/liftedinfer/tests -o ../bin/obj/learnwts.o -c
../src/learnwts/learnwts.cpp
In file included from ../src/learnwts/learnwts.cpp:71:
In file included from ../src/infer/inferenceargs.h:70:
In file included from ../src/infer/inferutil.h:74:
../src/util/array.h:371:30: error: call to non-static member function without
an object argument
int swapwith = Random::randomOneOf(numItems_);
~~~~~~~~^~~~~~~~~~~
In file included from ../src/learnwts/learnwts.cpp:71:
In file included from ../src/infer/inferenceargs.h:70:
In file included from ../src/infer/inferutil.h:75:
../src/util/hashint.h:69:17: error: expected namespace name
using namespace __gnu_cxx;
^
In file included from ../src/learnwts/learnwts.cpp:71:
In file included from ../src/infer/inferenceargs.h:70:
In file included from ../src/infer/inferutil.h:75:
In file included from ../src/util/hashint.h:70:
../src/util/hasharray.h:349:30: error: call to non-static member function
without an object argument
int swapwith = Random::randomOneOf(numItems_);
~~~~~~~~^~~~~~~~~~~
In file included from ../src/learnwts/learnwts.cpp:71:
In file included from ../src/infer/inferenceargs.h:70:
In file included from ../src/infer/inferutil.h:75:
../src/util/hashint.h:77:50: error: reference to 'hash' is ambiguous
size_t operator()(const int& i) const { return hash<int>()(i); }
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../include/c++/v1/memory:3062:29: note: candidate found by name lookup
is 'std::__1::hash'
template <class _Tp> struct hash;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../include/c++/v1/ext/__hash:22:54: note: candidate found by name lookup
is '__gnu_cxx::hash'
template <typename _Tp> struct _LIBCPP_TYPE_VIS_ONLY hash : public
std::hash<_Tp>
^
In file included from ../src/learnwts/learnwts.cpp:71:
In file included from ../src/infer/inferenceargs.h:70:
In file included from ../src/infer/inferutil.h:75:
../src/util/hashint.h:77:58: error: expected '(' for function-style cast or
type construction
size_t operator()(const int& i) const { return hash<int>()(i); }
~~~^
../src/util/hashint.h:77:60: error: expected expression
size_t operator()(const int& i) const { return hash<int>()(i); }
^
In file included from ../src/learnwts/learnwts.cpp:71:
In file included from ../src/infer/inferenceargs.h:70:
In file included from ../src/infer/inferutil.h:76:
In file included from ../src/logic/clause.h:76:
In file included from ../src/logic/domain.h:72:
../src/util/dualmap.h:77:36: error: reference to 'hash' is ambiguous
typedef hash_map<const char*, int, hash<const char*>, EqualStr> StrToIntMap;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../include/c++/v1/memory:3062:29: note: candidate found by name lookup
is 'std::__1::hash'
template <class _Tp> struct hash;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../include/c++/v1/ext/__hash:22:54: note: candidate found by name lookup
is '__gnu_cxx::hash'
template <typename _Tp> struct _LIBCPP_TYPE_VIS_ONLY hash : public
std::hash<_Tp>
^
In file included from ../src/learnwts/learnwts.cpp:71:
In file included from ../src/infer/inferenceargs.h:70:
In file included from ../src/infer/inferutil.h:76:
In file included from ../src/logic/clause.h:76:
In file included from ../src/logic/domain.h:72:
../src/util/dualmap.h:77:41: error: expected expression
typedef hash_map<const char*, int, hash<const char*>, EqualStr> StrToIntMap;
^
../src/util/dualmap.h:77:53: error: expected unqualified-id
typedef hash_map<const char*, int, hash<const char*>, EqualStr> StrToIntMap;
^
../src/util/dualmap.h:168:3: error: unknown type name 'StrToIntMap'
StrToIntMap* strToIntMap_;
^
../src/util/dualmap.h:85:32: error: unknown type name 'StrToIntMap'
strToIntMap_(new StrToIntMap) {}
^
../src/util/dualmap.h:169:2: error: expected '{' or ','
};
^
../src/util/dualmap.h:91:24: error: unknown type name 'StrToIntMap'
strToIntMap_ = new StrToIntMap;
^
../src/util/dualmap.h:122:5: error: use of undeclared identifier 'StrToIntMap'
StrToIntMap::iterator it;
^
../src/util/dualmap.h:122:18: error: use of class template 'iterator' requires
template arguments
StrToIntMap::iterator it;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../include/c++/v1/iterator:432:30: note: template is declared here
struct _LIBCPP_TYPE_VIS_ONLY iterator
^
In file included from ../src/learnwts/learnwts.cpp:71:
In file included from ../src/infer/inferenceargs.h:70:
In file included from ../src/infer/inferutil.h:76:
In file included from ../src/logic/clause.h:76:
In file included from ../src/logic/domain.h:72:
../src/util/dualmap.h:134:5: error: use of undeclared identifier 'StrToIntMap'
StrToIntMap::iterator it;
^
../src/util/dualmap.h:134:18: error: use of class template 'iterator' requires
template arguments
StrToIntMap::iterator it;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../include/c++/v1/iterator:432:30: note: template is declared here
struct _LIBCPP_TYPE_VIS_ONLY iterator
^
In file included from ../src/learnwts/learnwts.cpp:71:
In file included from ../src/infer/inferenceargs.h:70:
In file included from ../src/infer/inferutil.h:76:
In file included from ../src/logic/clause.h:76:
In file included from ../src/logic/domain.h:73:
In file included from ../src/util/constdualmap.h:75:
../src/util/strint.h:112:12: error: reference to 'hash' is ambiguous
return hash<char const *>()(s->str_);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../include/c++/v1/memory:3062:29: note: candidate found by name lookup
is 'std::__1::hash'
template <class _Tp> struct hash;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../include/c++/v1/ext/__hash:22:54: note: candidate found by name lookup
is '__gnu_cxx::hash'
template <typename _Tp> struct _LIBCPP_TYPE_VIS_ONLY hash : public
std::hash<_Tp>
^
In file included from ../src/learnwts/learnwts.cpp:71:
In file included from ../src/infer/inferenceargs.h:70:
In file included from ../src/infer/inferutil.h:76:
In file included from ../src/logic/clause.h:76:
In file included from ../src/logic/domain.h:73:
In file included from ../src/util/constdualmap.h:75:
../src/util/strint.h:112:22: error: expected '(' for function-style cast or
type construction
return hash<char const *>()(s->str_);
~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [../bin/obj/learnwts.o] Error 1
What version of the product are you using? On what operating system?
--------------------------------------------------------------
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
Please provide any additional information below.
--------------------------------------------------------------
Currently attempting to recompile using the following compiler (Will update
with results):
Using built-in specs.
COLLECT_GCC=g++-4.9
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/4.9.2_1/libexec/gcc/x86_64-apple-darwi
n14.0.0/4.9.2/lto-wrapper
Target: x86_64-apple-darwin14.0.0
Configured with: ../configure --build=x86_64-apple-darwin14.0.0
--prefix=/usr/local/Cellar/gcc/4.9.2_1
--libdir=/usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9
--enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-4.9
--with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr
--with-mpc=/usr/local/opt/libmpc --with-cloog=/usr/local/opt/cloog
--with-isl=/usr/local/opt/isl --with-system-zlib --enable-libstdcxx-time=yes
--enable-stage1-checking --enable-checking=release --enable-lto
--disable-werror --with-pkgversion='Homebrew gcc 4.9.2_1'
--with-bugurl=https://github.com/Homebrew/homebrew/issues --enable-plugin
--disable-nls --enable-multilib
Thread model: posix
gcc version 4.9.2 (Homebrew gcc 4.9.2_1)
Original issue reported on code.google.com by zacharia...@gmail.com on 10 Feb 2015 at 9:46