TurboParser icon indicating copy to clipboard operation
TurboParser copied to clipboard

makefile.in missing, clang build tricky

Open vene opened this issue 10 years ago • 9 comments

Hi Andre,

I tried installing the current head and ran into a few issues.

  1. I needed to run
automake --add-missing
autoreconf

because src/semantic_parser/Makefile.in is not committed.

  1. I'm running MacOS 10.9.4 with the Apple llvm-clang that comes with it. Apparently, this compiler uses libc++ rather than libstdc++ by default, and your codebase is using a non-standard feature from libstdc++:
../classifier/SparseParameterVector.h:30:10: fatal error: 'tr1/unordered_map' file not found

There's a similar error in glog

./src/glog/stl_logging.h:56:11: fatal error: 'ext/slist' file not found

How to avoid Both can be avoided by passing -stdlib=libstdc++ to the compiler and the linker, which should be easy to do through environment variables. However, the AD3 makefile completely disregards environment variables. By hardcoding this parameter in the AD3 makefiles, I managed to get a functional build.

How to fix I have a local branch where I updated the include files to conditionally import the right thing if using libc++. I managed to get a working libc++ build. I will clean this up and send a PR, but there are two blockers:

  • the development version of glog is needed
  • the AD3 makefiles still need to be changed, because they use g++ no matter what the env is (note, however, that on out-of-the-box Xcode installs, g++ is symlinked to apple clang, but that would really not be something to rely on)

vene avatar Aug 21 '14 22:08 vene

Hi Vlad,

Thanks for reporting this! I fixed (1), will look at (2) once I have some time.

André

2014-08-21 23:49 GMT+01:00 Vlad Niculae [email protected]:

Hi Andre,

I tried installing the current head and ran into a few issues.

  1. I needed to run

automake --add-missing autoreconf

because src/semantic_parser/Makefile.in is not committed.

  1. I'm running MacOS 10.9.4 with the Apple llvm-clang that comes with it. Apparently, this compiler uses libc++ rather than libstdc++ by default, and your codebase is using a non-standard feature from libstdc++:

../classifier/SparseParameterVector.h:30:10: fatal error: 'tr1/unordered_map' file not found

There's a similar error in glog

./src/glog/stl_logging.h:56:11: fatal error: 'ext/slist' file not found

How to avoid Both can be avoided by passing -stdlib=libstdc++ to the compiler and the linker, which should be easy to do through environment variables. However, the AD3 makefile completely disregards environment variables. By hardcoding this parameter in the AD3 makefiles, I managed to get a functional build.

How to fix I have a local branch where I updated the include files to conditionally import the right thing if using libc++. I managed to get a working libc++ build. I will clean this up and send a PR, but there are two blockers:

  • the development version of glog is needed
  • the AD3 makefiles still need to be changed, because they use g++ no matter what the env is (note, however, that on out-of-the-box Xcode installs, g++ is symlinked to apple clang, but that would really not be something to rely on)

— Reply to this email directly or view it on GitHub https://github.com/andre-martins/TurboParser/issues/4.

andre-martins avatar Aug 23 '14 22:08 andre-martins

Dear André,

the Makefile.in issue doesn't seem to be fixed. I just cloned the current commit 377c1b5069229611917067c4eff6d70d877aefea and ran ./install_deps.sh (without errors).

After that, ./configure returns this:

...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/tagger/Makefile
config.status: creating src/parser/Makefile
config.status: error: cannot find input file: `src/semantic_parser/Makefile.in'

After running automake --add-missing && autoreconf, configure and make ran without issues.

Best regards, Arne

arne-cl avatar Aug 26 '14 13:08 arne-cl

My bad. Forgot to push the added file to the repo. Should work now.

2014-08-26 14:40 GMT+01:00 Arne Neumann [email protected]:

Dear André,

the Makefile.in issue doesn't seem to be fixed. I just cloned the current commit 377c1b5 https://github.com/andre-martins/TurboParser/commit/377c1b5069229611917067c4eff6d70d877aefea and ran ./install_deps.sh (without errors).

After that, ./configure returns this:

... configure: creating ./config.status config.status: creating Makefile config.status: creating src/tagger/Makefile config.status: creating src/parser/Makefile config.status: error: cannot find input file: `src/semantic_parser/Makefile.in'

After running automake --add-missing && autoreconf, configure and make ran without issues.

Best regards, Arne

— Reply to this email directly or view it on GitHub https://github.com/andre-martins/TurboParser/issues/4#issuecomment-53421283 .

andre-martins avatar Aug 26 '14 13:08 andre-martins

Hi Vlad,

Would you be a bit more explicit in the changes you had to make? I came very close (I believe) to making it compile on Mavericks with these steps:

  • inside deps, extract AD3 tar -zxvf AD3-2.0.2.tar.gz
  • in the AD3 makefile adjust these lines to include -stdlib=libstdc++ CFLAGS = -stdlib=libstdc++ -O3 -Wall -Wno-sign-compare -c -fmessage-length=0 -fPIC $(INCLUDES) LFLAGS = -stdlib=libstdc++ $(LIBS) -lad3
  • recompress AD3 tar -zcvf AD3-2.0.2.tar.gz AD3-2.0.2
  • type these compiler and linker flags into bash export CFLAGS="-stdlib=libstdc++" export LFLAGS="-stdlib=libstdc++" export CXXFLAGS="-stdlib=libstdc++"
  • install dependencies ./install_deps.sh
  • During this step I receive an error this error:

"AD3::FactorGraph::RunBranchAndBound(double, std::vector<bool, std::allocator >&, int, std::vector<double, std::allocator >, std::vector<double, std::allocator >, double_, double_, double_)", referenced from: AD3::FactorGraph::SolveExactMAPWithAD3(std::vector<double, std::allocator >, std::vector<double, std::allocator >, double_) in ad3_multi.o "AD3::FactorGraph::RunAD3(double, std::vector<double, std::allocator >, std::vector<double, std::allocator >, double_, double_)", referenced from: RunAll(std::string const&, std::string const&, std::string const&, int, double, bool, double, bool, bool, std::string const&) in ad3_multi.o "AD3::FactorGraph::RunPSDD(double, std::vector<double, std::allocator >, std::vector<double, std::allocator >, double_, double_)", referenced from: RunAll(std::string const&, std::string const&, std::string const&, int, double, bool, double, bool, bool, std::string const&) in ad3_multi.o "AD3::StringSplit(std::string const&, std::string const&, std::vector<std::string, std::allocatorstd::string >)", referenced from: main in ad3_multi.o LoadGraph(std::basic_ifstream<char, std::char_traits >&, AD3::FactorGraph) in ad3_multi.o LoadGraphUAI(std::basic_ifstream<char, std::char_traits >&, AD3::FactorGraph) in ad3_multi.o "AD3::TrimComments(std::string const&, std::string_)", referenced from: LoadGraph(std::basic_ifstream<char, std::char_traits >&, AD3::FactorGraph_) in ad3_multi.o LoadGraphUAI(std::basic_ifstream<char, std::char_traits >&, AD3::FactorGraph_) in ad3_multi.o "AD3::GenericFactor::SolveQP(std::vector<double, std::allocator > const&, std::vector<double, std::allocator > const&, std::vector<double, std::allocator >, std::vector<double, std::allocator >)", referenced from: vtable for AD3::FactorGrandparentHeadAutomaton in ad3_multi.o vtable for AD3::FactorSequenceCompressor in ad3_multi.o vtable for AD3::FactorHeadAutomaton in ad3_multi.o vtable for AD3::FactorTree in ad3_multi.o vtable for AD3::FactorSequence in ad3_multi.o vtable for AD3::FactorDense in ad3_multi.o "AD3::Trim(std::string const&, std::string_)", referenced from: LoadGraphUAI(std::basic_ifstream<char, std::char_traits >&, AD3::FactorGraph_) in ad3_multi.o "std::__1::basic_string<char, std::__1::char_traits, std::_1::allocator >::compare(char const) const", referenced from: AD3::TrimLeft(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in libad3.a(Utils.o) AD3::TrimRight(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in libad3.a(Utils.o) "std::__1::__vector_base_common::_throw_length_error() const", referenced from: AD3::FactorGraph::FixMultiVariablesWithoutFactors() in libad3.a(FactorGraph.o) AD3::FactorGraph::ConvertToBinaryFactorGraph(AD3::FactorGraph) in libad3.a(FactorGraph.o) AD3::FactorGraph::AddEvidence(std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator >) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunPSDD(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunAD3(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) std::__1::enable_if<(__is_forward_iterator<std::__1::__wrap_iter<double const*> >::value) && (is_constructible<double, std::__1::iterator_traits<std::__1::__wrap_iter<double const*> >::reference>::value), std::__1::__wrap_iter<double*> >::type std::__1::vector<double, std::__1::allocator >::insert<std::__1::__wrap_iter<double const*> >(std::__1::__wrap_iter<double const*>, std::__1::__wrap_iter<double const*>, std::__1::__wrap_iter<double const*>) in libad3.a(FactorGraph.o) std::__1::vector<int, std::__1::allocator >::assign(unsigned long, int const&) in libad3.a(FactorGraph.o) ... "std::__1::locale::use_facet(std::_1::locale::id&) const", referenced from: AD3::FactorGraph::FixMultiVariablesWithoutFactors() in libad3.a(FactorGraph.o) AD3::FactorGraph::ConvertToBinaryFactorGraph(AD3::FactorGraph) in libad3.a(FactorGraph.o) AD3::FactorGraph::AddEvidence(std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator >) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunPSDD(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunBranchAndBound(double, std::__1::vector<bool, std::__1::allocator >&, int, std::_1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunAD3(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(FactorGraph.o) ... "std::_1::ios_base::getloc() const", referenced from: AD3::FactorGraph::FixMultiVariablesWithoutFactors() in libad3.a(FactorGraph.o) AD3::FactorGraph::ConvertToBinaryFactorGraph(AD3::FactorGraph) in libad3.a(FactorGraph.o) AD3::FactorGraph::AddEvidence(std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator >) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunPSDD(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunBranchAndBound(double, std::__1::vector<bool, std::__1::allocator >&, int, std::_1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunAD3(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(FactorGraph.o) ... "std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::__init(unsigned long, char)", referenced from: std::__1::ostreambuf_iterator<char, std::__1::char_traits > std::__1::__pad_and_output<char, std::__1::char_traits >(std::_1::ostreambuf_iterator<char, std::1::char_traits >, char const, char const, char const, std::__1::ios_base&, char) in libad3.a(FactorGraph.o) std::__1::ostreambuf_iterator<char, std::__1::char_traits > std::__1::__pad_and_output<char, std::__1::char_traits >(std::_1::ostreambuf_iterator<char, std::1::char_traits >, char const, char const, char const, std::__1::ios_base&, char) in libad3.a(GenericFactor.o) std::__1::ostreambuf_iterator<char, std::__1::char_traits > std::__1::__pad_and_output<char, std::__1::char_traits >(std::_1::ostreambuf_iterator<char, std::1::char_traits >, char const, char const, char const, std::__1::ios_base&, char) in libad3.a(Factor.o) "std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::basic_string(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from: AD3::StringSplit(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >) in libad3.a(Utils.o) void std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >::__push_back_slow_path<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const>(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in libad3.a(Utils.o) "std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::basic_string(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, unsigned long, unsigned long, std::__1::allocator const&)", referenced from: AD3::StringSplit(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >) in libad3.a(Utils.o) AD3::TrimComments(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in libad3.a(Utils.o) AD3::TrimLeft(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in libad3.a(Utils.o) AD3::TrimRight(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in libad3.a(Utils.o) "std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::~basic_string()", referenced from: std::__1::ostreambuf_iterator<char, std::__1::char_traits > std::__1::__pad_and_output<char, std::__1::char_traits >(std::_1::ostreambuf_iterator<char, std::1::char_traits >, char const, char const, char const, std::__1::ios_base&, char) in libad3.a(FactorGraph.o) std::__1::ostreambuf_iterator<char, std::__1::char_traits > std::__1::__pad_and_output<char, std::__1::char_traits >(std::_1::ostreambuf_iterator<char, std::1::char_traits >, char const, char const, char const, std::__1::ios_base&, char) in libad3.a(GenericFactor.o) AD3::StringSplit(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >) in libad3.a(Utils.o) AD3::TrimComments(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in libad3.a(Utils.o) AD3::TrimLeft(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in libad3.a(Utils.o) AD3::TrimRight(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in libad3.a(Utils.o) void std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >::__push_back_slow_path<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const>(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in libad3.a(Utils.o) ... "std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::operator=(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from: AD3::StringSplit(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >) in libad3.a(Utils.o) AD3::TrimComments(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in libad3.a(Utils.o) AD3::TrimLeft(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in libad3.a(Utils.o) AD3::TrimRight(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in libad3.a(Utils.o) "std::__1::basic_ostream<char, std::_1::char_traits >::put(char)", referenced from: AD3::FactorGraph::FixMultiVariablesWithoutFactors() in libad3.a(FactorGraph.o) AD3::FactorGraph::ConvertToBinaryFactorGraph(AD3::FactorGraph) in libad3.a(FactorGraph.o) AD3::FactorGraph::AddEvidence(std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator >) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunPSDD(double, std::__1::vector<double, std::__1::allocator >, std::__1::vector<double, std::_1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunBranchAndBound(double, std::__1::vector<bool, std::__1::allocator >&, int, std::_1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunAD3(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::GenericFactor::InvertAfterInsertion(std::__1::vector<void*, std::__1::allocator<void*> > const&, void* const&) in libad3.a(GenericFactor.o) ... "std::__1::basic_ostream<char, std::_1::char_traits >::flush()", referenced from: AD3::FactorGraph::FixMultiVariablesWithoutFactors() in libad3.a(FactorGraph.o) AD3::FactorGraph::ConvertToBinaryFactorGraph(AD3::FactorGraph) in libad3.a(FactorGraph.o) AD3::FactorGraph::AddEvidence(std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator >) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunPSDD(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunBranchAndBound(double, std::__1::vector<bool, std::__1::allocator >&, int, std::_1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunAD3(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::GenericFactor::InvertAfterInsertion(std::__1::vector<void*, std::__1::allocator<void*> > const&, void* const&) in libad3.a(GenericFactor.o) ... "std::__1::basic_ostream<char, std::__1::char_traits >::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits >&)", referenced from: std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(FactorGraph.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(GenericFactor.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(Factor.o) "std::__1::basic_ostream<char, std::__1::char_traits >::sentry::~sentry()", referenced from: std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(FactorGraph.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(GenericFactor.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(Factor.o) "std::__1::basic_ostream<char, std::__1::char_traits >::operator<<(double)", referenced from: AD3::FactorGraph::RunPSDD(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunBranchAndBound(double, std::__1::vector<bool, std::__1::allocator >&, int, std::_1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunAD3(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::GenericFactor::IsSingular(std::__1::vector<double, std::__1::allocator >&, std::__1::vector<double, std::__1::allocator >&, std::__1::vector<double, std::__1::allocator >) in libad3.a(GenericFactor.o) AD3::GenericFactor::SolveQP(std::__1::vector<double, std::__1::allocator > const&, std::__1::vector<double, std::__1::allocator > const&, std::__1::vector<double, std::__1::allocator >, std::__1::vector<double, std::__1::allocator >) in libad3.a(GenericFactor.o) AD3::FactorPAIR::Print(std::__1::basic_ostream<char, std::__1::char_traits >&) in libad3.a(Factor.o) "std::__1::basic_ostream<char, std::_1::char_traits >::operator<<(int)", referenced from: AD3::FactorGraph::ConvertToBinaryFactorGraph(AD3::FactorGraph) in libad3.a(FactorGraph.o) AD3::FactorGraph::AddEvidence(std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator >) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunPSDD(double, std::__1::vector<double, std::__1::allocator >, std::__1::vector<double, std::_1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunBranchAndBound(double, std::__1::vector<bool, std::__1::allocator >&, int, std::_1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunAD3(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::GenericFactor::SolveQP(std::__1::vector<double, std::__1::allocator > const&, std::__1::vector<double, std::__1::allocator > const&, std::__1::vector<double, std::__1::allocator >, std::__1::vector<double, std::__1::allocator >) in libad3.a(GenericFactor.o) AD3::Factor::Print(std::__1::basic_ostream<char, std::__1::char_traits >&) in libad3.a(GenericFactor.o) ... "std::__1::basic_ostream<char, std::__1::char_traits >::operator<<(unsigned long)", referenced from: AD3::GenericFactor::SolveQP(std::__1::vector<double, std::__1::allocator > const&, std::__1::vector<double, std::__1::allocator > const&, std::__1::vector<double, std::__1::allocator >, std::__1::vector<double, std::__1::allocator >) in libad3.a(GenericFactor.o) AD3::Factor::Print(std::__1::basic_ostream<char, std::__1::char_traits >&) in libad3.a(GenericFactor.o) AD3::Factor::Print(std::__1::basic_ostream<char, std::__1::char_traits >&) in libad3.a(Factor.o) "std::_1::cout", referenced from: AD3::FactorGraph::FixMultiVariablesWithoutFactors() in libad3.a(FactorGraph.o) AD3::FactorGraph::ConvertToBinaryFactorGraph(AD3::FactorGraph) in libad3.a(FactorGraph.o) AD3::FactorGraph::AddEvidence(std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator >) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunPSDD(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunBranchAndBound(double, std::__1::vector<bool, std::__1::allocator >&, int, std::_1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunAD3(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::GenericFactor::InvertAfterInsertion(std::__1::vector<void*, std::__1::allocator<void*> > const&, void* const&) in libad3.a(GenericFactor.o) ... "std::_1::ctype::id", referenced from: AD3::FactorGraph::FixMultiVariablesWithoutFactors() in libad3.a(FactorGraph.o) AD3::FactorGraph::ConvertToBinaryFactorGraph(AD3::FactorGraph) in libad3.a(FactorGraph.o) AD3::FactorGraph::AddEvidence(std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator >) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunPSDD(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunBranchAndBound(double, std::__1::vector<bool, std::__1::allocator >&, int, std::_1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunAD3(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(FactorGraph.o) ... "void std::__1::__sort<std::_1::less<double, double>&, double>(double, double, std::__1::less<double, double>&)", referenced from: AD3::project_onto_simplex(double, int, double) in libad3.a(Utils.o) AD3::project_onto_budget_constraint(double, int, double) in libad3.a(Utils.o) "std::_1::locale::~locale()", referenced from: AD3::FactorGraph::FixMultiVariablesWithoutFactors() in libad3.a(FactorGraph.o) AD3::FactorGraph::ConvertToBinaryFactorGraph(AD3::FactorGraph) in libad3.a(FactorGraph.o) AD3::FactorGraph::AddEvidence(std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator >) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunPSDD(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunBranchAndBound(double, std::__1::vector<bool, std::__1::allocator >&, int, std::_1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double, double) in libad3.a(FactorGraph.o) AD3::FactorGraph::RunAD3(double, std::__1::vector<double, std::1::allocator >, std::__1::vector<double, std::__1::allocator >, double, double) in libad3.a(FactorGraph.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(FactorGraph.o) ... "std::__1::ios_base::__set_badbit_and_consider_rethrow()", referenced from: std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(FactorGraph.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(GenericFactor.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(Factor.o) "std::__1::ios_base::clear(unsigned int)", referenced from: std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(FactorGraph.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(GenericFactor.o) std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::__put_character_sequence<char, std::__1::char_traits >(std::__1::basic_ostream<char, std::_1::char_traits >&, char const, unsigned long) in libad3.a(Factor.o) "std::bad_alloc::bad_alloc()", referenced from: Eigen::internal::throw_std_bad_alloc() in libad3.a(GenericFactor.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *_* [ad3_multi] Error 1

Thanks, Brett

bjnsn avatar Oct 29 '14 20:10 bjnsn

Hi Brett,

Have you solved the issue? I am having the same problem.

Thanks, Gene

hgchoe avatar Mar 05 '15 00:03 hgchoe

Unfortunately not. I'm currently using another parser instead, but would love to try TurboParser if I could get this working properly.

bjnsn avatar Mar 05 '15 16:03 bjnsn

Is there an alternative Twitter parser to use? I am looking for Twitter POS Tagger and I have not yet found a good tool to use.

hgchoe avatar Mar 06 '15 00:03 hgchoe

@hgchoe @bjnsn any chance you'd want to test my pull request if you're still interested in building this on OS X?

chelming avatar Jul 02 '16 02:07 chelming

@cwhits I tried you pull request, however it Did not change anything (it seems like):

I still get this error: ../classifier/Features.h:27:10: fatal error: 'tr1/unordered_map' file not found

ohenrik avatar Jan 22 '18 14:01 ohenrik