bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Build of svn r876 failed on OSX


From: Alexey Veretennikov
Subject: Re: [Bug-apl] Build of svn r876 failed on OSX
Date: Sat, 04 Feb 2017 13:56:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin)

Thanks, this is solved for me, it looks like I was using gcc5 as well
So adding 
CXX=g++-mp-4.9 CXXFLAGS="-std=c++98"
before configure solved the build problem.

Juergen Sauermann <address@hidden> writes:

> Hi Alexey,
>
> looks like you are building for C++ version 2011 where man g++ says:
> "Support is incomplete and experimental."
>
> I suppose you can do something like:
>
> CXXFLAGS="-std=c++98" ./configure ...
>
> to force an older C++ version.
>
> /// J├╝rgen
>
> On 02/03/2017 08:20 PM, Alexey Veretennikov wrote:
>
>  Hi,
>
> I've decided to checkout the SVN latest: r876 and build but got a
> strange error which I didn't expecierce before(last version I've built
> successfully was 833), see below:
>
>
> libtool: link: g++ -Werror -Wall -I sql -I/usr/include -g -O2 -o apl 
> apl-main.o apl-Archive.o apl-ArrayIterator.o apl-Assert.o apl-Avec.o 
> apl-Backtrace.o apl-Bif_F12_FORMAT.o apl-Bif_F12_SORT.o 
> apl-Bif_OPER1_COMMUTE.o apl-Bif_OPER1_EACH.o apl-Bif_OPER2_POWER.o 
> apl-Bif_OPER2_INNER.o apl-Bif_OPER2_OUTER.o apl-Bif_OPER2_RANK.o 
> apl-Bif_OPER1_REDUCE.o apl-Bif_OPER1_SCAN.o apl-CDR.o apl-Cell.o 
> apl-CharCell.o apl-Command.o apl-Common.o apl-ComplexCell.o 
> apl-configure_args.o apl-DiffOut.o apl-DynamicObject.o apl-Error.o 
> apl-Executable.o apl-FloatCell.o apl-Function.o apl-DerivedFunction.o 
> apl-Id.o apl-IndexExpr.o apl-IndexIterator.o apl-InputFile.o apl-IntCell.o 
> apl-LApack.o apl-LibPaths.o apl-LineInput.o apl-Logging.o apl-LvalCell.o 
> apl-Malloc_hooks.o apl-Nabla.o apl-Macro.o apl-NamedObject.o 
> apl-NativeFunction.o apl-NumericCell.o apl-Output.o apl-Parser.o apl-Prefix.o 
> apl-PointerCell.o apl-PrimitiveFunction.o apl-PrimitiveOperator.o 
> apl-PrintBuffer.o apl-QuadFunction.o apl-ProcessorID.o apl-Quad_CR.o 
> apl-Quad_DLX.o apl-Quad_FIO.o apl-Quad_FX.o apl-Quad_RL.o apl-Quad_SQL.o 
> apl-Quad_SVx.o apl-Quad_TF.o apl-Parallel.o apl-Performance.o apl-RealCell.o 
> apl-sbrk.o apl-Shape.o apl-ScalarFunction.o apl-StateIndicator.o 
> apl-Svar_DB.o apl-Svar_record.o apl-Symbol.o apl-SymbolTable.o 
> apl-SystemVariable.o apl-IO_Files.o apl-Token.o apl-Tokenizer.o 
> apl-UCS_string.o apl-UCS_string_vector.o apl-UserFunction.o 
> apl-UserFunction_header.o apl-UserPreferences.o apl-UTF8_string.o apl-Value.o 
> apl-ValueHistory.o apl-Workspace.o apl-static_Objects.o 
> sql/apl-SqliteArgListBuilder.o sql/apl-SqliteConnection.o 
> sql/apl-SqliteResultValue.o sql/apl-SqliteProvider.o sql/apl-Connection.o 
> -Wl,-bind_at_load  -L/usr/lib -lsqlite3 -ldl -lpthread -lm -lncurses
> Undefined symbols for architecture x86_64:
>   "std::ctype<char>::_M_widen_init() const", referenced from:
>       signal_USR1_handler(int)   in apl-main.o
>       signal_SEGV_handler(int)   in apl-main.o
>       init_apl(int, char const**) in apl-main.o
>       XML_Saving_Archive::save_UCS(UCS_string const&)  in apl-Archive.o
>       XML_Saving_Archive::save_shape(XML_Saving_Archive::Vid) in apl-Archive.o
>       XML_Saving_Archive::save_Ravel(XML_Saving_Archive::Vid) in apl-Archive.o
>       XML_Saving_Archive::save_Function(Function const&)  in apl-Archive.o
>       ...
>   "std::__cxx11::basic_stringbuf<char, std::char_traits<char>, 
> std::allocator<char> >::str() const", referenced from:
>       Workspace::save_WS(std::basic_ostream<char, std::char_traits<char> >&, 
> UCS_string_vector&) in apl-Workspace.o
>       SqliteConnection::raise_sqlite_error(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&) in 
> apl-SqliteConnection.o
>       create_sqlite_connection(Value_P)      in apl-SqliteProvider.o
>   "std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::resize(unsigned long, char)", referenced from:
>       Quad_SVx::is_executable(char const*) in apl-Quad_SVx.o
>   "std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::reserve(unsigned long)", referenced from:
>       Sig_item_string::Sig_item_string(unsigned char const*&) in apl-Svar_DB.o
>       Sig_item_string::Sig_item_string(unsigned char const*&) in apl-Symbol.o
>   "std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::_M_append(char const*, unsigned long)", referenced 
> from:
>       ProcessorID::read_network_profile()       in apl-ProcessorID.o
>   "std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&)", referenced from:
>       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> > > 
> >::_M_insert_aux(__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char,
>  std::char_traits<char>, std::allocator<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> > > > >, 
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> 
> > const&) in apl-SqliteConnection.o
>       Connection::replace_bind_args(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&) in apl-Connection.o
>   "std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::_M_create(unsigned long&, unsigned long)", referenced 
> from:
>       void std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::_M_construct<char const*>(char const*, char const*, 
> std::forward_iterator_tag) [clone .isra.37] in apl-ProcessorID.o
>       void std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::_M_construct<char const*>(char const*, char const*, 
> std::forward_iterator_tag) [clone .isra.70] in apl-Quad_SQL.o
>       Quad_SVx::is_executable(char const*) in apl-Quad_SVx.o
>       void std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::_M_construct<char const*>(char const*, char const*, 
> std::forward_iterator_tag) [clone .isra.35] in apl-Svar_DB.o
>       void std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::_M_construct<char const*>(char const*, char const*, 
> std::forward_iterator_tag) [clone .isra.80] in apl-Symbol.o
>       void std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::_M_construct<char*>(char*, char*, 
> std::forward_iterator_tag) [clone .isra.68] in apl-SqliteArgListBuilder.o
>       void std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::_M_construct<char*>(char*, char*, 
> std::forward_iterator_tag) [clone .isra.52] in apl-SqliteConnection.o
>       ...
>   "std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, 
> unsigned long)", referenced from:
>       ProcessorID::init(bool)  in apl-ProcessorID.o
>       REGISTER_PROCESSOR_c::store(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >&) const in apl-ProcessorID.o
>       Svar_record_P::Svar_record_P(unsigned long long) in apl-Svar_DB.o
>       Svar_DB::match_or_make(unsigned int const*, AP_num3 const&, 
> Svar_partner const&) in apl-Svar_DB.o
>       Svar_DB::get_events(Svar_event&, AP_num3)      in apl-Svar_DB.o
>       Svar_DB::clear_all_events(AP_num3)      in apl-Svar_DB.o
>       Svar_DB::set_control(unsigned long long, Svar_Control) in apl-Svar_DB.o
>       ...
>   "std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> >::push_back(char)", referenced from:
>       IS_REGISTERED_ID_c::store(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >&) const in apl-Symbol.o
>       OFFERING_ID_IS_c::store(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >&) const in apl-Symbol.o
>       GET_EVENTS_c::store(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >&) const in apl-Symbol.o
>       CLEAR_ALL_EVENTS_c::store(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >&) const in apl-Symbol.o
>       ADD_EVENT_c::store(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >&) const in apl-Symbol.o
>       YES_NO_c::store(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >&) const in apl-Symbol.o
>       SET_CONTROL_c::store(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >&) const in apl-Symbol.o
>       ...
>   "std::__cxx11::basic_stringstream<char, std::char_traits<char>, 
> std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)", referenced 
> from:
>       SqliteConnection::raise_sqlite_error(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&) in 
> apl-SqliteConnection.o
>       create_sqlite_connection(Value_P)      in apl-SqliteProvider.o
>   "std::__cxx11::basic_stringstream<char, std::char_traits<char>, 
> std::allocator<char> >::~basic_stringstream()", referenced from:
>       SqliteConnection::raise_sqlite_error(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&) in 
> apl-SqliteConnection.o
>       create_sqlite_connection(Value_P)      in apl-SqliteProvider.o
>       Connection::replace_bind_args(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&) in apl-Connection.o
>   "std::__cxx11::basic_ostringstream<char, std::char_traits<char>, 
> std::allocator<char> >::~basic_ostringstream()", referenced from:
>       Workspace::save_WS(std::basic_ostream<char, std::char_traits<char> >&, 
> UCS_string_vector&) in apl-Workspace.o
>   "VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, 
> std::allocator<char> >", referenced from:
>       Connection::replace_bind_args(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&) in apl-Connection.o
>   "VTT for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, 
> std::allocator<char> >", referenced from:
>       Workspace::save_WS(std::basic_ostream<char, std::char_traits<char> >&, 
> UCS_string_vector&) in apl-Workspace.o
>   "vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, 
> std::allocator<char> >", referenced from:
>       Workspace::save_WS(std::basic_ostream<char, std::char_traits<char> >&, 
> UCS_string_vector&) in apl-Workspace.o
>       Connection::replace_bind_args(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&) in apl-Connection.o
>   NOTE: a missing vtable usually means the first non-inline virtual member 
> function has no definition.
>   "vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, 
> std::allocator<char> >", referenced from:
>       Connection::replace_bind_args(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&) in apl-Connection.o
>   NOTE: a missing vtable usually means the first non-inline virtual member 
> function has no definition.
>   "vtable for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, 
> std::allocator<char> >", referenced from:
>       Workspace::save_WS(std::basic_ostream<char, std::char_traits<char> >&, 
> UCS_string_vector&) in apl-Workspace.o
>   NOTE: a missing vtable usually means the first non-inline virtual member 
> function has no definition.
> ld: symbol(s) not found for architecture x86_64
> collect2: error: ld returned 1 exit status
>
>

-- 
Br,
/Alexey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]