openfst-1.6.5 cross compile failed - linux

I have been working on the cross compilation of openfst-1.6.5.My cross compiler is gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu.
Every time I excute the order as below:
./configure --prefix=`pwd` --enable-static --enable-shared --enable-far --enable-ngram-fsts --build=armv8 --host=aarch64-linux-gnu
make -j 4
The result is always as below:
/data/jiachen/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld: warning: libfstfar.so.8, needed by ./.libs/libfstfarscript.so/, datanot/ jiachenfound/ gcc(-trylinaro -using6.3.1 --2017.02rpath- x86_64_aarch64or- linux--rpathgnu-/linkbin)/
...//.liblibs//gcclibfstfarscript.so/:aarch64 -undefinedlinux -referencegnu /to6.3.1 /`.fst.:/:.IsSTList.(/std.:.:/__cxx11.:.:/basic_stringaarch64<-charlinux,- gnustd/:bin:/char_traitsld<:char >warning,: stdlibfstfar.so.8:,: allocatorneeded< charby> .>/ .constlibs&/)libfstfarscript.so',
.not/ .foundlibs /(libfstfarscript.sotry: usingundefined -referencerpath toor `-fstrpath:-:linkIsSTTable)(
std.:/:.__cxx11libs:/:libfstfarscript.sobasic_string:< charundefined, referencestd :to: char_traits`<fstchar:>:,IsSTList (stdstd::::allocator__cxx11<:char:>basic_string <>char ,const &std):':
char_traits<char>, std::allocator<char> > const&)'
./.libs/libfstfarscript.so: undefined reference to `fst::IsSTTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[4]: *** [farcreate] Error 1
make[4]: *** [farprintstrings] Error 1
/data/jiachen/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld: warning: libfstfar.so.8, needed by ./.libs/libfstfarscript.so, not found (try using -rpath or -rpath-link)
./.libs/libfstfarscript.so: undefined reference to `fst::IsSTList(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
./.libs/libfstfarscript.so: undefined reference to `fst::IsSTTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make[4]: *** [farcompilestrings] Error 1
/data/jiachen/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld: warning: libfstfar.so.8, needed by ./.libs/libfstfarscript.so, not found (try using -rpath or -rpath-link)
./.libs/libfstfarscript.so: undefined reference to `fst::IsSTList(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
./.libs/libfstfarscript.so: undefined reference to `fst::IsSTTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
/data/jiachen/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld: warning: libfstfar.so.8, needed by ./.libs/libfstfarscript.so, not found (try using -rpath or -rpath-link)
./.libs/libfstfarscript.so: undefined reference to `fst::IsSTList(std::__cxx11::basic_string<char, stdmake[4]: :*** [farinfo] Error 1:
char_traits<char>, std::allocator<char> > const&)'
./.libs/libfstfarscript.so: undefined reference to `fst::IsSTTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make[4]: *** [farisomorphic] Error 1
/data/jiachen/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld: warning: libfstfar.so.8, needed by ./.libs/libfstfarscript.so, not found (try using -rpath or -rpath-link)
./.libs/libfstfarscript.so: undefined reference to `fst::IsSTList(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
./.libs/libfstfarscript.so: undefined reference to `fst::IsSTTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make[4]: *** [farextract] Error 1
make[4]: Leaving directory `/data/jiachen/kaldi-aarch64/tools/openfst-1.6.5/src/extensions/far'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/data/jiachen/kaldi-aarch64/tools/openfst-1.6.5/src/extensions'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/data/jiachen/kaldi-aarch64/tools/openfst-1.6.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/jiachen/kaldi-aarch64/tools/openfst-1.6.5'
make: *** [all] Error 2
The far extension cross compile failed.How can I solve this problem?

Faced the same issue while compiling kaldi. I had to remove --enable-far option from the line OPENFST_CONFIGURE in MakeFile. Source: here

Related

Undefined reference to mariadb::account::create()

I want to code an app by C++ and using MySQL database in it. I used mariadbclientpp library. So I cloned it and compiled it in windows vs 2019 and it worked fine. But when I want do this in Raspbian, I got below linking error:
/usr/bin/ld: /tmp/ccJjO2Jo.o: in function `main':
sqltest.cpp:(.text+0xd8): undefined reference to `mariadb::account::create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
I'm completely new in Linux so I did search a lot and I tried some fixes but none of them help me. I tried this ways to compile my code:
1
g++ mysqltest.cpp -I/usr/include/mariadb -L/usr/lib/arm-linux-gnueabihf/ -lmariadb -I/usr/local/include/mariadb++/ -L/usr/local/lib/libmariadbclientpp.a
2
g++ -o mysqltest sqltest.cpp -lstdc++ -I/usr/include/mariadb/ $(mariadb_config --libs)
Any idea, Please?
I found out the problem. I was about static library. The static library add without -L option so I changed command to this:
g++ mysqltest.cpp /usr/local/lib/libmariadbclientpp.a -I/usr/include/mysql
and ti's done.

Linker errors even though CMake correctly locates the relevant .so file

Note: I am using a shared system running RedHat Linux, so I cannot use apt-get nor sudo
I am attempting to compile a program (OpenMVS) via a makefile generated by CMake. First I run:
cmake . ../openMVS -DCMAKE_INSTALL_PREFIX=/u/llipson/ -DCMAKE_BUILD_TYPE=RELEASE -DVCG_ROOT="$HOME/vcglib"
Then, I run make to execute the makefiles generated by CMake. However, make fails during the linking step due to the following "undefined reference to" errors:
[[llipson#head openMVS_build]$ make
[ 18%] Built target Common
[ 26%] Built target Math
[ 49%] Built target IO
[ 77%] Built target MVS
[ 79%] Linking CXX executable ../../bin/InterfaceCOLMAP
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: In function `boost::program_options::typed_value<bool, char>::xparse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) const':
InterfaceCOLMAP.cpp:(.text._ZNK5boost15program_options11typed_valueIbcE6xparseERNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISB_EE[_ZNK5boost15program_options11typed_valueIbcE6xparseERNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISB_EE]+0x17): undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool*, int)'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: In function `boost::program_options::typed_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::xparse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) const':
InterfaceCOLMAP.cpp:(.text._ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE6xparseERNS_3anyERKSt6vectorIS7_SaIS7_EE[_ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE6xparseERNS_3anyERKSt6vectorIS7_SaIS7_EE]+0x17): undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: In function `boost::program_options::typed_value<int, char>::name() const':
InterfaceCOLMAP.cpp:(.text._ZNK5boost15program_options11typed_valueIicE4nameEv[_ZNK5boost15program_options11typed_valueIicE4nameEv]+0x1d): undefined reference to `boost::program_options::arg[abi:cxx11]'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: In function `boost::program_options::typed_value<unsigned int, char>::name() const':
InterfaceCOLMAP.cpp:(.text._ZNK5boost15program_options11typed_valueIjcE4nameEv[_ZNK5boost15program_options11typed_valueIjcE4nameEv]+0x1d): undefined reference to `boost::program_options::arg[abi:cxx11]'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: In function `boost::program_options::typed_value<bool, char>::name() const':
InterfaceCOLMAP.cpp:(.text._ZNK5boost15program_options11typed_valueIbcE4nameEv[_ZNK5boost15program_options11typed_valueIbcE4nameEv]+0x1d): undefined reference to `boost::program_options::arg[abi:cxx11]'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: In function `boost::program_options::typed_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::name() const':
InterfaceCOLMAP.cpp:(.text._ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE4nameEv[_ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE4nameEv]+0x1d): undefined reference to `boost::program_options::arg[abi:cxx11]'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: In function `boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int, char const* const*)':
InterfaceCOLMAP.cpp:(.text._ZN5boost15program_options25basic_command_line_parserIcEC2EiPKPKc[_ZN5boost15program_options25basic_command_line_parserIcEC5EiPKPKc]+0x200): undefined reference to `boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
InterfaceCOLMAP.cpp:(.text._ZN5boost15program_options25basic_command_line_parserIcEC2EiPKPKc[_ZN5boost15program_options25basic_command_line_parserIcEC5EiPKPKc]+0x298): undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: In function `Initialize(unsigned long, char const**)':
InterfaceCOLMAP.cpp:(.text._Z10InitializemPPKc+0x1e4): undefined reference to `boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
InterfaceCOLMAP.cpp:(.text._Z10InitializemPPKc+0x758): undefined reference to `boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
InterfaceCOLMAP.cpp:(.text._Z10InitializemPPKc+0x151b): undefined reference to `boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)':
InterfaceCOLMAP.cpp:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKNSt7__cxx1112basic_stringIT_St11char_traitsIS5_ESaIS5_EEERKSt6vectorIS9_SaIS9_EEb[_ZN5boost15program_options10validators17get_single_stringIcEERKNSt7__cxx1112basic_stringIT_St11char_traitsIS5_ESaIS5_EEERKSt6vectorIS9_SaIS9_EEb]+0x6f): undefined reference to `boost::program_options::validation_error::get_template[abi:cxx11](boost::program_options::validation_error::kind_t)'
InterfaceCOLMAP.cpp:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKNSt7__cxx1112basic_stringIT_St11char_traitsIS5_ESaIS5_EEERKSt6vectorIS9_SaIS9_EEb[_ZN5boost15program_options10validators17get_single_stringIcEERKNSt7__cxx1112basic_stringIT_St11char_traitsIS5_ESaIS5_EEERKSt6vectorIS9_SaIS9_EEb]+0x83): undefined reference to `boost::program_options::error_with_option_name::error_with_option_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
InterfaceCOLMAP.cpp:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKNSt7__cxx1112basic_stringIT_St11char_traitsIS5_ESaIS5_EEERKSt6vectorIS9_SaIS9_EEb[_ZN5boost15program_options10validators17get_single_stringIcEERKNSt7__cxx1112basic_stringIT_St11char_traitsIS5_ESaIS5_EEERKSt6vectorIS9_SaIS9_EEb]+0x144): undefined reference to `boost::program_options::validation_error::get_template[abi:cxx11](boost::program_options::validation_error::kind_t)'
InterfaceCOLMAP.cpp:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKNSt7__cxx1112basic_stringIT_St11char_traitsIS5_ESaIS5_EEERKSt6vectorIS9_SaIS9_EEb[_ZN5boost15program_options10validators17get_single_stringIcEERKNSt7__cxx1112basic_stringIT_St11char_traitsIS5_ESaIS5_EEERKSt6vectorIS9_SaIS9_EEb]+0x158): undefined reference to `boost::program_options::error_with_option_name::error_with_option_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: In function `void boost::program_options::validate<int, char>(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, int*, long)':
InterfaceCOLMAP.cpp:(.text._ZN5boost15program_options8validateIicEEvRNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIT0_St11char_traitsIS7_ESaIS7_EEESaISB_EEPT_l[_ZN5boost15program_options8validateIicEEvRNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIT0_St11char_traitsIS7_ESaIS7_EEESaISB_EEPT_l]+0x1af): undefined reference to `boost::program_options::invalid_option_value::invalid_option_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: In function `void boost::program_options::validate<unsigned int, char>(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, unsigned int*, long)':
InterfaceCOLMAP.cpp:(.text._ZN5boost15program_options8validateIjcEEvRNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIT0_St11char_traitsIS7_ESaIS7_EEESaISB_EEPT_l[_ZN5boost15program_options8validateIjcEEvRNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIT0_St11char_traitsIS7_ESaIS7_EEESaISB_EEPT_l]+0x176): undefined reference to `boost::program_options::invalid_option_value::invalid_option_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o:(.rodata._ZTVN5boost15program_options16validation_errorE[_ZTVN5boost15program_options16validation_errorE]+0x30): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o:(.rodata._ZTVN5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEE[_ZTVN5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEE]+0x38): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o:(.rodata._ZTVN5boost15program_options11typed_valueIjcEE[_ZTVN5boost15program_options11typed_valueIjcEE]+0x38): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o:(.rodata._ZTVN5boost15program_options11typed_valueIicEE[_ZTVN5boost15program_options11typed_valueIicEE]+0x38): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const'
CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o:(.rodata._ZTVN5boost15program_options11typed_valueIbcEE[_ZTVN5boost15program_options11typed_valueIbcEE]+0x38): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/InterfaceCOLMAP] Error 1
make[1]: *** [apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/all] Error 2
make: *** [all] Error 2
Evidently, the makefile for the particular executable can't find the object file containing the boost::program_options methods, which is /u/llipson/lib/libboost_program_options.so. However, I set LD_LIBRARY_PATH, so CMake correctly identifies the location of the boost library as /u/llipson/lib/ (as confirmed by printing the Boost_LIBRARY_DIRS variable in CMakeLists.txt), and the generated makefile even has the correct path to the .so file as a prerequisite for building the target:
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.15
# Delete rule output on recipe failure.
.DELETE_ON_ERROR:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /n/fs/pvl/llipson/cmake-3.15.0-rc1-Linux-x86_64/bin/cmake
# The command to remove a file.
RM = /n/fs/pvl/llipson/cmake-3.15.0-rc1-Linux-x86_64/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /u/llipson/openMVS
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /u/llipson/openMVS_build
# Include any dependencies generated for this target.
include apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/depend.make
# Include the progress variables for this target.
include apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/progress.make
# Include the compile flags for this target's objects.
include apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/flags.make
apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/flags.make
apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o: /u/llipson/openMVS/apps/InterfaceCOLMAP/InterfaceCOLMAP.cpp
#$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/u/llipson/openMVS_build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o"
cd /u/llipson/openMVS_build/apps/InterfaceCOLMAP && /u/llipson/gcc-5.3.0/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o -c /u/llipson/openMVS/apps/InterfaceCOLMAP/InterfaceCOLMAP.cpp
apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.i: cmake_force
#$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.i"
cd /u/llipson/openMVS_build/apps/InterfaceCOLMAP && /u/llipson/gcc-5.3.0/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /u/llipson/openMVS/apps/InterfaceCOLMAP/InterfaceCOLMAP.cpp > CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.i
apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.s: cmake_force
#$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.s"
cd /u/llipson/openMVS_build/apps/InterfaceCOLMAP && /u/llipson/gcc-5.3.0/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /u/llipson/openMVS/apps/InterfaceCOLMAP/InterfaceCOLMAP.cpp -o CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.s
# Object files for target InterfaceCOLMAP
InterfaceCOLMAP_OBJECTS = \
"CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o"
# External object files for target InterfaceCOLMAP
InterfaceCOLMAP_EXTERNAL_OBJECTS =
bin/InterfaceCOLMAP: apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/InterfaceCOLMAP.cpp.o
bin/InterfaceCOLMAP: apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/build.make
bin/InterfaceCOLMAP: lib/libMVS.a
bin/InterfaceCOLMAP: lib/libMath.a
bin/InterfaceCOLMAP: lib/libIO.a
bin/InterfaceCOLMAP: lib/libCommon.a
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_iostreams.so
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_program_options.so
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_serialization.so
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_regex.so
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_dnn.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_gapi.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_ml.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_objdetect.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_photo.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_stitching.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_video.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_calib3d.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_features2d.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_flann.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_highgui.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_videoio.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_imgcodecs.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_imgproc.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib64/libopencv_core.so.4.0.1
bin/InterfaceCOLMAP: /u/llipson/lib/libpng.so
bin/InterfaceCOLMAP: /usr/lib64/libz.so
bin/InterfaceCOLMAP: /u/llipson/lib/libtiff.so
bin/InterfaceCOLMAP: /n/fs/pvl/llipson/CGAL-4.13.1/lib/libCGAL.so.13.0.2
bin/InterfaceCOLMAP: /u/llipson/lib/libgmp.so
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_thread.so
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_chrono.so
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_date_time.so
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_atomic.so
bin/InterfaceCOLMAP: /n/fs/pvl/llipson/CGAL-4.13.1/lib/libCGAL_Core.so.13.0.2
bin/InterfaceCOLMAP: /n/fs/pvl/llipson/CGAL-4.13.1/lib/libCGAL_ImageIO.so.13.0.2
bin/InterfaceCOLMAP: /u/llipson/lib/libgmp.so
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_thread.so
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_chrono.so
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_date_time.so
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_atomic.so
bin/InterfaceCOLMAP: /n/fs/pvl/llipson/CGAL-4.13.1/lib/libCGAL_Core.so.13.0.2
bin/InterfaceCOLMAP: /n/fs/pvl/llipson/CGAL-4.13.1/lib/libCGAL_ImageIO.so.13.0.2
bin/InterfaceCOLMAP: /u/llipson/lib/libboost_system.so
bin/InterfaceCOLMAP: /usr/lib64/libcuda.so
bin/InterfaceCOLMAP: apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/link.txt
#$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/u/llipson/openMVS_build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable ../../bin/InterfaceCOLMAP"
cd /u/llipson/openMVS_build/apps/InterfaceCOLMAP && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/InterfaceCOLMAP.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/build: bin/InterfaceCOLMAP
.PHONY : apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/build
apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/clean:
cd /u/llipson/openMVS_build/apps/InterfaceCOLMAP && $(CMAKE_COMMAND) -P CMakeFiles/InterfaceCOLMAP.dir/cmake_clean.cmake
.PHONY : apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/clean
apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/depend:
cd /u/llipson/openMVS_build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /u/llipson/openMVS /u/llipson/openMVS/apps/InterfaceCOLMAP /u/llipson/openMVS_build /u/llipson/openMVS_build/apps/InterfaceCOLMAP /u/llipson/openMVS_build/apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : apps/InterfaceCOLMAP/CMakeFiles/InterfaceCOLMAP.dir/depend
I am using GNU compiler version 5.3.0
Is there any other way to resolve these linker errors, or perhaps other things I should try?
Please let me know if there is any other information I can provide. Thanks!
EDIT:
Included the full error message. Also included the makefile generated by CMake

make command error: undefined reference to `pthread_create

I was trying to run the codes from sourceforge.net, but when I was trying to run the "make" command in linux, I got the following error message:
make all-recursive
make[1]: Entering directory `/home/lliu/MyDoc/rsvp-agent/trunk/agent_rsvp'
Making all in src
make[2]: Entering directory `/home/lliu/MyDoc/rsvp-agent/trunk/agent_rsvp/src'
/bin/sh ../libtool --mode=link --tag=CXX g++ -g -O2 -o agent_rsvp agent_rsvp.o configuration.o floatformat.o generic_interface.o ip_mask.o ip_route.o mgmt_interface.o mgmt_packet.o mpls_ioctl.o rsvp_configuration.o rsvp_connection.o rsvp_dispatcher.o rsvp_error.o rsvp_packet.o rsvp_socket.o semaphore.o tools.o verbose.o
g++ -g -O2 -o agent_rsvp agent_rsvp.o configuration.o floatformat.o generic_interface.o ip_mask.o ip_route.o mgmt_interface.o mgmt_packet.o mpls_ioctl.o rsvp_configuration.o rsvp_connection.o rsvp_dispatcher.o rsvp_error.o rsvp_packet.o rsvp_socket.o semaphore.o tools.o verbose.o
mgmt_interface.o: In function `mgmt_interface::init()':
/home/lliu/MyDoc/rsvp-agent/trunk/agent_rsvp/src/mgmt_interface.cpp:108: undefined reference to `pthread_create'
/home/lliu/MyDoc/rsvp-agent/trunk/agent_rsvp/src/mgmt_interface.cpp:109: undefined reference to `pthread_create'
rsvp_connection.o: In function `rsvp_connection::create_refresh_thread()':
/home/lliu/MyDoc/rsvp-agent/trunk/agent_rsvp/src/rsvp_connection.cpp:136: undefined reference to `pthread_create'
rsvp_dispatcher.o: In function `rsvp_dispatcher::init(unsigned int)':
/home/lliu/MyDoc/rsvp-agent/trunk/agent_rsvp/src/rsvp_dispatcher.cpp:72: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make[2]: *** [agent_rsvp] Error 1
make[2]: Leaving directory `/home/lliu/MyDoc/rsvp-agent/trunk/agent_rsvp/src'
make[1 ]: * ** [all-recursive] Error 1
make[1 ]: Leaving directory `/home/lliu/MyDoc/rsvp-agent/trunk/agent_rsvp'
make: *** [all] Error 2

Build mono for fedora 20 no xbuild

I'm currently trying to update my mono, gtk-sharp and monodevelop environment, since I need to build with gstreamer-sharp 0.99.x which needs the new bindings.
So no problem I thought. Downloaded mono, unpacked it and started the normal toolchain.
But mono doesn't build xbuild for me. mono is build and has the correct version, but I couldn't test it, since I would say, something is missing, if xbuild is not build.
How can this happen?
config.log (errors only mentioned):
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
conftest.c:58:24: fatal error: sys/sockio.h: No such file or directory
#include <sys/sockio.h>
conftest.c:27:23: fatal error: sys/utime.h: No such file or directory
#include <sys/utime.h>
conftest.c:64:23: fatal error: sys/mkdev.h: No such file or directory
#include <sys/mkdev.h>
conftest.c:31:23: fatal error: sys/mkdev.h: No such file or directory
#include <sys/mkdev.h>
conftest.c:66:21: fatal error: libproc.h: No such file or directory
#include <libproc.h>
conftest.c:94:20: fatal error: ieeefp.h: No such file or directory
#include <ieeefp.h>
/home/sven/Downloads/mono-3.4.0/conftest.c:96: undefined reference to `_finite'
collect2: error: ld returned 1 exit status
conftest.c:71:4: error: #error "FAILED"
#error "FAILED"
^
conftest.c:101:31: fatal error: nacl/nacl_dyncode.h: No such file or
directory #include <nacl/nacl_dyncode.h>
/home/sven/Downloads/mono-3.4.0/conftest.c:102: undefined reference to `dlopen'
collect2: error: ld returned 1 exit status
/home/sven/Downloads/mono-3.4.0/conftest.c:111: undefined reference to `kqueue'
collect2: error: ld returned 1 exit status
conftest.c:95:13: error: too few arguments to function 'sched_setaffinity'
sched_setaffinity(0, &mask);
/usr/bin/ld: cannot find -lsocket
collect2: error: ld returned 1 exit status
conftest.c:101:15: error: 'SOL_TCP' undeclared (first use in this function)
int level = SOL_TCP;
conftest.c:98:22: fatal error: Ws2ipdef.h: No such file or directory
#include <Ws2ipdef.h>
conftest.c:106:20: error: 'NULL' undeclared (first use in this function)
gethostbyname2_r(NULL,0,NULL,NULL,0,NULL,NULL);
conftest.c:138:24: fatal error: pthread_np.h: No such file or directory
#include <pthread_np.h>
/home/sven/Downloads/mono-3.4.0/conftest.c:141: undefined reference to `pthread_attr_get_np'
collect2: error: ld returned 1 exit status
/home/sven/Downloads/mono-3.4.0/conftest.c:125: undefined reference to `shm_open'
collect2: error: ld returned 1 exit status
/home/sven/Downloads/mono-3.4.0/conftest.c:127: undefined reference to `sqrtf'
collect2: error: ld returned 1 exit status
conftest.c:156:23: fatal error: sys/event.h: No such file or directory
#include <sys/event.h>
conftest.c:134:8: error: 'struct sockaddr_in' has no member named 'sin_len'
saddr.sin_len = sizeof (saddr);
conftest.c:134:9: error: 'struct sockaddr_in6' has no member named 'sin6_len'
saddr6.sin6_len = sizeof (saddr6);
conftest.c:161:23: fatal error: checklist.h: No such file or directory
#include <checklist.h>
conftest.c:161:22: fatal error: pathconf.h: No such file or directory
#include <pathconf.h>
conftest.c:129:24: fatal error: attr/xattr.h: No such file or directory
#include <attr/xattr.h>
conftest.c:162:25: fatal error: sys/extattr.h: No such file or directory
#include <sys/extattr.h>
conftest.c:165:24: fatal error: sys/vfstab.h: No such file or directory
#include <sys/vfstab.h>
conftest.c:194:24: error: expected expression before ')' token
if (sizeof ((blksize_t)))
conftest.c:253:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory
#include <CommonCrypto/CommonDigest.h>
conftest.c:253:20: fatal error: curses.h: No such file or directory
#include <curses.h>
conftest.c:225:18: fatal error: term.h: No such file or directory
#include <term.h>
/usr/bin/ld: cannot find -lsunmath
collect2: error: ld returned 1 exit status
Greeting
Sven

Boost libraries installation with thread

I've been having some trouble installing a program called tophat on linux (here is a link to the installation guide http://tophat.cbcb.umd.edu/tutorial.html) and I was hoping you could help. It requires the boost libraries and another program called samtools to run, but both seemed to install fine, yet I'm getting an error from boost here. From what I see it seems to be that the boost libraries are not installed properly, specifically one to do with threads, I did some googling and went back and reinstalled them specifically stating to include the thread library but still no dice. Can anyone help?
This is the output of me running make.
make all-recursive
make[1]: Entering directory `/home/tuxedo/tophat-2.0.6'
Making all in src
make[2]: Entering directory `/home/tuxedo/tophat-2.0.6/src'
g++ -Wall -Wno-strict-aliasing -g -gdwarf-2 -Wuninitialized -O3 -DNDEBUG -pthread - I../boost_1_52_0/boost.1.52.0//include -I../samtools_0.1.18//include -I./SeqAn-1.3 -o segment_juncs -L../boost_1_52_0/boost.1.52.0//lib -L../samtools_0.1.18//lib segment_juncs.o ../src/libtophat.a -lbam -lz
segment_juncs.o: In function `driver(std::basic_istream<char, std::char_traits<char> >&, _IO_FILE*, _IO_FILE*, _IO_FILE*, _IO_FILE*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
/home/tuxedo/tophat-2.0.6/src/segment_juncs.cpp:4949: undefined reference to `boost::thread::join()'
/home/tuxedo/tophat-2.0.6/src/segment_juncs.cpp:4950: undefined reference to `boost::thread::~thread()'
/home/tophat-2.0.6/src/segment_juncs.cpp:5026: undefined reference to `boost::thread::join()'
/home/tuxedo/tophat-2.0.6/src/segment_juncs.cpp:5027: undefined reference to `boost::thread::~thread()'
/home/tuxedo/tophat-2.0.6/src/segment_juncs.cpp:4942: undefined reference to `boost::thread::thread(boost::function0<void, std::allocator<boost::function_base> > const&)'
/home/tuxedo/tophat-2.0.6/src/segment_juncs.cpp:5019: undefined reference to `boost::thread::thread(boost::function0<void, std::allocator<boost::function_base> > const&)'
collect2: ld returned 1 exit status
make[2]: *** [segment_juncs] Error 1
make[2]: Leaving directory `/home/tuxedo/tophat-2.0.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tuxedo/tophat-2.0.6'
make: *** [all] Error 2
Thanks in advance for any help you can give!! This has been driving me crazy for hours now!!

Resources