mozart / mozart2

Mozart Programming System v2

Home Page:http://mozart.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

won't compile on OpenBSD7.1

ksilo opened this issue · comments

commented

$cmake -DCMAKE_C_COMPILER="egcc" -DCMAKE_CXX_COMPILER="eg++" -DCMAKE_CXX_LINK_FLAGS="-latomic" -DBOOST_ROOT=/home/xilo/Downloads/boost_1_65_0/ -DCMAKE_BUILD_TYPE=Release -DGTEST_SRC_DIR=../../externals/gtest -DGTEST_SRC_DIR=../../externals/gtest -DGTEST_BUILD_DIR=../gtest-debug -DLLVM_SRC_DIR=../../externals/llvm -DLLVM_BUILD_DIR=../llvm-release -DCMAKE_CXX_FLAGS="-I/usr/local/include -I/usr/local/include/c++/8.4.0 -I/usr/local/include/c++/8.4.0/x86_64-unknown-openbsd7.1 -I/usr/X11R6/include/X11/ -I/usr/X11R6/include
-pthread -O3" -DCMAKE_INSTALL_PREFIX=../../redist ../../mozart2

DCMAKE_CXX_LINK_FLAGS="-latomic" -DBOOST_ROOT=/home/xilo/Downloads/boost_1_65_0/ -DCMAKE_BUILD_TYPE=Release -DGTEST_SRC_DIR=../../externals/gtest -DGTEST_BUILD_DIR=../gte*
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Build type: Release
CMake Warning (dev) at CMakeLists.txt:10 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The following variable(s) would be set to empty:

CMAKE_PROJECT_VERSION
CMAKE_PROJECT_VERSION_MAJOR
CMAKE_PROJECT_VERSION_MINOR
CMAKE_PROJECT_VERSION_PATCH

This warning is for project developers. Use -Wno-dev to suppress it.

-- Mozart 2.0.1 (Wed, 5 Sep 2018 03:16:51 +0200)
-- Building outside the source tree: 'dist' target enabled
CMake Deprecation Warning at vm/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at vm/vm/test/gtest/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at vm/vm/test/gtest/googletest/CMakeLists.txt:53 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Found Boost: /home/xilo/Downloads/boost_1_65_0 (found version "1.65.0") found components: random system thread filesystem chrono date_time atomic
-- Found GMP: /usr/local/include/gmp.h and /usr/local/lib/libgmp.a
CMake Deprecation Warning at bootcompiler/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at boosthost/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Found Boost: /home/xilo/Downloads/boost_1_65_0 (found version "1.65.0") found components: program_options random system thread filesystem chrono date_time atomic
-- Found GMP: /usr/local/include/gmp.h and /usr/local/lib/libgmp.a
CMake Deprecation Warning at opi/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Using emacs from: /usr/local/bin/emacs
CMake Deprecation Warning at wish/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at stdlib/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/xilo/.local/apps/mozart/builds/mozart2-release
hydrone$ cmake -DCMAKE_C_COMPILER="egcc" -DCMAKE_CXX_COMPILER="eg++" -DCMAKE_CXX_LINK_FLAGS="-latomic" -DBOOST_ROOT=/home/xilo/Downloads/boost_1_65_0/ -DCMAKE_BUILD_TYPE=>
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Build type: Release
CMake Warning (dev) at CMakeLists.txt:10 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The following variable(s) would be set to empty:

CMAKE_PROJECT_VERSION
CMAKE_PROJECT_VERSION_MAJOR
CMAKE_PROJECT_VERSION_MINOR
CMAKE_PROJECT_VERSION_PATCH

This warning is for project developers. Use -Wno-dev to suppress it.

-- Mozart 2.0.1 (Wed, 5 Sep 2018 03:16:51 +0200)
-- Building outside the source tree: 'dist' target enabled
CMake Deprecation Warning at vm/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at vm/vm/test/gtest/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at vm/vm/test/gtest/googletest/CMakeLists.txt:53 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Found Boost: /home/xilo/Downloads/boost_1_65_0 (found version "1.65.0") found components: random system thread filesystem chrono date_time atomic
-- Found GMP: /usr/local/include/gmp.h and /usr/local/lib/libgmp.a
CMake Deprecation Warning at bootcompiler/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at boosthost/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Found Boost: /home/xilo/Downloads/boost_1_65_0 (found version "1.65.0") found components: program_options random system thread filesystem chrono date_time atomic
-- Found GMP: /usr/local/include/gmp.h and /usr/local/lib/libgmp.a
CMake Deprecation Warning at opi/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Using emacs from: /usr/local/bin/emacs
CMake Deprecation Warning at wish/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at stdlib/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/xilo/.local/apps/mozart/builds/mozart2-release

`[ 29%] Building CXX object boosthost/emulator/CMakeFiles/ozemulator.dir/emulator.cc.o
In file included from /home/xilo/Downloads/boost_1_65_0/boost/mpl/aux_/na_assert.hpp:23,
from /home/xilo/Downloads/boost_1_65_0/boost/mpl/arg.hpp:25,
from /home/xilo/Downloads/boost_1_65_0/boost/mpl/placeholders.hpp:24,
from /home/xilo/Downloads/boost_1_65_0/boost/iterator/iterator_categories.hpp:17,
from /home/xilo/Downloads/boost_1_65_0/boost/iterator/advance.hpp:11,
from /home/xilo/Downloads/boost_1_65_0/boost/next_prior.hpp:25,
from /home/xilo/Downloads/boost_1_65_0/boost/thread/futures/wait_for_any.hpp:19,
from /home/xilo/Downloads/boost_1_65_0/boost/thread/future.hpp:32,
from /home/xilo/Downloads/boost_1_65_0/boost/thread.hpp:24,
from /home/xilo/.local/apps/mozart/mozart2/boosthost/emulator/../../vm/boostenv/main/boostenv-decl.hh:35,
from /home/xilo/.local/apps/mozart/mozart2/boosthost/emulator/../../vm/boostenv/main/boostenv.hh:32,
from /home/xilo/.local/apps/mozart/mozart2/boosthost/emulator/emulator.cc:26:
/home/xilo/Downloads/boost_1_65_0/boost/mpl/assert.hpp:188:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
failed ************ (Pred::************
^
/home/xilo/Downloads/boost_1_65_0/boost/mpl/assert.hpp:193:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
failed ************ (boost::mpl::not_::************
^
[ 29%] Linking CXX executable ozemulator
ld: error: undefined symbol: boost::system::system_category()

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(unsigned long boost::asio::detail::kqueue_reactor::cancel_timer<boost::asio::time_traitsboost::posix_time::ptime >(boost::asio::detail::timer_queue<boost::asio::time_traitsboost::posix_time::ptime >&, boost::asio::detail::timer_queue<boost::asio::time_traitsboost::posix_time::ptime >::per_timer_data&, unsigned long) (.constprop.2034))
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(unsigned long boost::asio::detail::kqueue_reactor::cancel_timer<boost::asio::time_traitsboost::posix_time::ptime >(boost::asio::detail::timer_queue<boost::asio::time_traitsboost::posix_time::ptime >&, boost::asio::detail::timer_queue<boost::asio::time_traitsboost::posix_time::ptime >::per_timer_data&, unsigned long) (.constprop.2034))
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::asio::detail::task_io_service::shutdown_service())
referenced 247 more times

ld: error: undefined symbol: boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >*, int)

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::program_options::typed_value<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, char>::xparse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&) const)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(void boost::program_options::validate<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, char>(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >*, int) (.constprop.2020))

ld: error: undefined symbol: boost::system::generic_category()

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::system::error_category::std_category::equivalent(std::error_code const&, int) const)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::system::error_category::std_category::equivalent(std::error_code const&, int) const)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::system::error_category::std_category::equivalent(std::error_code const&, int) const)
referenced 21 more times

ld: error: undefined symbol: boost::filesystem::path::operator/=(boost::filesystem::path const&)

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::filesystem::operator/(boost::filesystem::path const&, boost::filesystem::path const&))

ld: error: undefined symbol: boost::program_options::validation_error::get_templateabi:cxx11

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int))

ld: error: undefined symbol: boost::program_options::error_with_option_name::error_with_option_name(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int))

ld: error: undefined symbol: boost::program_options::detail::cmdline::extra_style_parser(boost::function1<std::vector<boost::program_options::basic_option, std::allocator<boost::program_options::basic_option > >, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >&>)

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::program_options::basic_command_line_parser::extra_style_parser(boost::function1<std::vector<boost::program_options::basic_option, std::allocator<boost::program_options::basic_option > >, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >&>))

ld: error: undefined symbol: boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::program_options::basic_command_line_parser::basic_command_line_parser(int, char const* const*))

ld: error: undefined symbol: boost::program_options::detail::cmdline::cmdline(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&)

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::program_options::basic_command_line_parser::basic_command_line_parser(int, char const* const*))

ld: error: undefined symbol: boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int)

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(main)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(main)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(main)
referenced 1 more times

ld: error: undefined symbol: boost::program_options::parse_environment(boost::program_options::options_description const&, boost::function1<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > const&)

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(main)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(main)

ld: error: undefined symbol: boost::program_options::operator<<(std::ostream&, boost::program_options::options_description const&)

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(main)

ld: error: undefined symbol: boost::filesystem::path::parent_path() const

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(main)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(main)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(main)
referenced 1 more times

ld: error: undefined symbol: boost::filesystem::path::filename() const

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(main)
referenced by boostenvmodules.cc
boostenvmodules.cc.o:(mozart::boostenv::builtins::ModOS::GetDir::call(mozart::VirtualMachine*, mozart::RichNode, mozart::UnstableNode&)) in archive ../../vm/boostenv/main/libmozartvmboost.a

ld: error: undefined symbol: boost::filesystem::path::compare(boost::filesystem::path const&) const

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(main)

ld: error: undefined symbol: boost::program_options::arg[abi:cxx11]

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::program_options::typed_value<unsigned long, char>::nameabi:cxx11 const)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::program_options::typed_value<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, char>::name() const)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(boost::program_options::typed_value<std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >, char>::name() const)

ld: error: undefined symbol: boost::program_options::invalid_option_value::invalid_option_value(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(void boost::program_options::validate<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, char>(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >, int) (.constprop.2020))
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(void boost::program_options::validate<unsigned long, char>(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, unsigned long
, long) (.constprop.2019))

ld: error: undefined symbol: boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(vtable for boost::exception_detail::error_info_injectorboost::program_options::invalid_option_value)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(vtable for boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::program_options::invalid_option_value >)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(vtable for boost::exception_detail::error_info_injectorboost::program_options::validation_error)
referenced 3 more times

ld: error: undefined symbol: boost::program_options::value_semantic_codecvt_helper::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, bool) const

referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(vtable for boost::program_options::typed_value<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, char>)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(vtable for boost::program_options::typed_value<unsigned long, char>)
referenced by emulator.cc
CMakeFiles/ozemulator.dir/emulator.cc.o:(vtable for boost::program_options::typed_value<std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >, char>)

ld: error: undefined symbol: boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::system::error_code*)

referenced by boostenvmodules.cc
boostenvmodules.cc.o:(mozart::boostenv::builtins::ModOS::GetDir::call(mozart::VirtualMachine*, mozart::RichNode, mozart::UnstableNode&)) in archive ../../vm/boostenv/main/libmozartvmboost.a
collect2: error: ld returned 1 exit status
*** Error 1 in . (boosthost/emulator/CMakeFiles/ozemulator.dir/build.make:108 'boosthost/emulator/ozemulator')
*** Error 2 in . (CMakeFiles/Makefile2:817 'boosthost/emulator/CMakeFiles/ozemulator.dir/all')
*** Error 2 in /home/xilo/.local/apps/mozart/builds/mozart2-release (Makefile:166 'all': make -s -f CMakeFiles/Makefile2 all)`

commented

solved it. Probably should add remarks for OpenBSD7.1 in the README