|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] svn 863 make warning/error |
Date: | Sat, 28 Jan 2017 21:30:13 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi, very strange. Works for me: )wsid tt WAS CLEAR WS )save 2017-01-28 21:24:40 (GMT+1) tt )load tt SAVED 2017-01-28 21:24:40 (GMT+1) could be that your checkout is somehow broken (dependencies etc). Did you do a make clean (or even better: a fresh svn checkout into an empty directory? I normally do a 'make develop' right after ./configure to make sure that updates from SVN do not break dependencies. /// Jürgen On 01/28/2017 08:33 PM, address@hidden
wrote:
apl compiled with just configure and i hope gcc 4.4.3 is good )wsid tt WAS CLEAR WS )save 2017-01-28 12:30:12 (GMT-7) tt )load tt ============================================================================== Assertion failed: items in Function: at in file: Simple_string.hh:276 Call stack: ---------------------------------------- -- Stack trace at Simple_string.hh:276 ---------------------------------------- 0xb7382bb6 __libc_start_main 0x80867b8 main 0x822c025 Workspace::immediate_execution(bool) 0x80da7c8 Command::process_line() 0x80d9b68 Command::process_line(UCS_string&) 0x80d9360 Command::do_APL_command(std::ostream&, UCS_string&) 0x8238212 Workspace::load_WS(std::ostream&, UCS_string_vector const&, UCS_string&, bool) 0x808ec4e XML_Loading_Archive::read_Workspace(bool) 0x808e2c8 XML_Loading_Archive::read_Symbol() 0x81d7f74 SymbolTable::lookup_symbol(UCS_string const&) 0x8093ea9 do_Assert(char const*, char const*, char const*, int) ======================================== SI stack: ============================================================================== *** immediate_execution() caught other exception *** On Sat, 28 Jan 2017 19:45:47 +0100 Juergen Sauermann <address@hidden> wrote:Hi, i changed the constructor of PJob_scalar_AB in the same way as for PJob_scalar_B. SVN 866. I can't test this myself because I am not getting this warning (g++ 4.6.3). Regarding CORE_COUNT_WANTED=2 please keep in mind that parallel execution is experimental and still buggy! /// Jürgen On 01/28/2017 07:14 PM, address@hidden wrote: Hi, same basic problem but different function isn't anyone else getting this on make? this is my configure line 'configure CORE_COUNT_WANTED=2' but just 'configure' also gives same error on make g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -I sql -I/usr/local/include -rdynamic -g -O2 -MT apl-SymbolTable.o -MD -MP -MF .deps/apl-SymbolTable.Tpo -c -o apl-SymbolTable.o `test -f 'SymbolTable.cc' || echo './'`SymbolTable.cc cc1plus: warnings being treated as errors Simple_string.hh: In static member function 'static void ScalarFunction::PF_eval_scalar_AB(Thread_context&)': Simple_string.hh:133: error: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__delta' may be used uninitialized in this function ScalarFunction.cc:649: note: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__delta' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__pfn' may be used uninitialized in this function ScalarFunction.cc:649: note: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__pfn' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_AB::fun' may be used uninitialized in this function ScalarFunction.cc:649: note: 'j1.PJob_scalar_AB::fun' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__delta' may be used uninitialized in this function ScalarFunction.cc:676: note: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__delta' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__pfn' may be used uninitialized in this function ScalarFunction.cc:676: note: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__pfn' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_AB::fun' may be used uninitialized in this function ScalarFunction.cc:676: note: 'j1.PJob_scalar_AB::fun' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__delta' may be used uninitialized in this function ScalarFunction.cc:705: note: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__delta' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__pfn' may be used uninitialized in this function ScalarFunction.cc:705: note: 'j1.PJob_scalar_AB::fun2.ErrorCode (Cell::*)(Cell*, const Cell*)const::__pfn' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_AB::fun' may be used uninitialized in this function ScalarFunction.cc:705: note: 'j1.PJob_scalar_AB::fun' was declared here make[3]: *** [apl-ScalarFunction.o] Error 1 make[3]: *** Waiting for unfinished jobs.... mv -f .deps/apl-SymbolTable.Tpo .deps/apl-SymbolTable.Po mv -f .deps/apl-Svar_DB.Tpo .deps/apl-Svar_DB.Po mv -f .deps/apl-Symbol.Tpo .deps/apl-Symbol.Po make[3]: Leaving directory `/transfer/usr.src/apl/apl-865/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/transfer/usr.src/apl/apl-865/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/transfer/usr.src/apl/apl-865' make: *** [all] Error 2 On Sat, 28 Jan 2017 18:35:36 +0100 Juergen Sauermann <address@hidden> wrote: Hi, the problem is in ScalarFunction.cc. The compiler complains about a pointer which is not initialized in the constructor (which is on purpose, but the compiler seems not to like it). The pointer is initialized at a later point in time (at ScalarFunction.cc:255) but the compiler seems not to accept that. Please try SVN 865. /// Jürgen On 01/28/2017 05:16 PM, address@hidden wrote: Hi Jürgen Sorry, still getting the same 'warning->error' in 864 is the problem in Simple_string.hh or ScalarFunction.cc ?? (i see your code changes in ScalarFunction.cc) thanks g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -I sql -I/usr/local/include -rdynamic -g -O2 -MT apl-Symbol.o -MD -MP -MF .deps/apl-Symbol.Tpo -c -o apl-Symbol.o `test -f 'Symbol.cc' || echo './'`Symbol.cc cc1plus: warnings being treated as errors Simple_string.hh: In static member function 'static void ScalarFunction::PF_eval_scalar_B(Thread_context&)': Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__delta' may be used uninitialized in this function ScalarFunction.cc:339: note: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__delta' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__pfn' may be used uninitialized in this function ScalarFunction.cc:339: note: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__pfn' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun' may be used uninitialized in this function ScalarFunction.cc:339: note: 'j1.PJob_scalar_B::fun' was declared here make[3]: *** [apl-ScalarFunction.o] Error 1 make[3]: *** Waiting for unfinished jobs.... mv -f .deps/apl-StateIndicator.Tpo .deps/apl-StateIndicator.Po mv -f .deps/apl-Svar_DB.Tpo .deps/apl-Svar_DB.Po mv -f .deps/apl-Symbol.Tpo .deps/apl-Symbol.Po make[3]: Leaving directory `/transfer/usr.src/apl/apl-864/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/transfer/usr.src/apl/apl-864/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/transfer/usr.src/apl/apl-864' make: *** [all] Error 2 On Sat, 28 Jan 2017 15:01:26 +0100 Juergen Sauermann <address@hidden> wrote: Hi, thanks, hopefully fixed in SVN 864. /// Jürgen On 01/27/2017 11:51 PM, address@hidden wrote: i removed the -Werror in the src/Makefile line 680 common_CXXFLAGS = -Werror -Wall -I sql $(am__append_2) $(am__append_6) and make gave good apl *so far in my testing) On Fri, 27 Jan 2017 15:16:14 -0700 address@hidden wrote: on this computer I thought svn 863 compiled but it left 1.6 installed so didn't notice libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -I sql -I/usr/local/include -rdynamic -g -O2 -MT libapl_la-ValueHistory.lo -MD -MP -MF .deps/libapl_la-ValueHistory.Tpo -c ValueHistory.cc -o libapl_la-ValueHistory.o >/dev/null 2>&1 cc1plus: warnings being treated as errors Simple_string.hh: In static member function 'static void ScalarFunction::PF_eval_scalar_B(Thread_context&)': Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__delta' may be used uninitialized in this function ScalarFunction.cc:335: note: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__delta' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__pfn' may be used uninitialized in this function ScalarFunction.cc:335: note: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__pfn' was declared here Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun' may be used uninitialized in this function ScalarFunction.cc:335: note: 'j1.PJob_scalar_B::fun' was declared here |
[Prev in Thread] | Current Thread | [Next in Thread] |