rebuild does not work any more....

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

rebuild does not work any more....

Ernst Reissner
Hi all,

I just cloned the repository but make fails

displaying the following again and again..

../liboctave/cruft/misc/quit.h:109:5: warning: declaration of
'exit_status' shadows a member of 'this' [-Wshadow]
  CXX    
liboctave/operators/liboctave_operators_liboperators_la-mx-i64nda-fs.lo
In file included from ../liboctave/util/lo-utils.h:33:0,
                 from ../liboctave/array/Array.h:40,
                 from ../liboctave/array/Array-util.h:28,
                 from liboctave/operators/mx-i64nda-fs.cc:5:
../liboctave/cruft/misc/quit.h: In constructor
'octave_exit_exception::octave_exit_exception(int, bool)':
../liboctave/cruft/misc/quit.h:109:5: warning: declaration of
'safe_to_return' shadows a member of 'this' [-Wshadow]
     : m_exit_status (exit_status), m_safe_to_return (safe_to_return)
     ^

who can help??


Thanks,


Ernst


Reply | Threaded
Open this post in threaded view
|

Re: rebuild does not work any more....

Daniel Sebald
On 07/12/2016 05:53 PM, Ernst Reissner wrote:

> Hi all,
>
> I just cloned the repository but make fails
>
> displaying the following again and again..
>
> ../liboctave/cruft/misc/quit.h:109:5: warning: declaration of
> 'exit_status' shadows a member of 'this' [-Wshadow]
>    CXX
> liboctave/operators/liboctave_operators_liboperators_la-mx-i64nda-fs.lo
> In file included from ../liboctave/util/lo-utils.h:33:0,
>                   from ../liboctave/array/Array.h:40,
>                   from ../liboctave/array/Array-util.h:28,
>                   from liboctave/operators/mx-i64nda-fs.cc:5:
> ../liboctave/cruft/misc/quit.h: In constructor
> 'octave_exit_exception::octave_exit_exception(int, bool)':
> ../liboctave/cruft/misc/quit.h:109:5: warning: declaration of
> 'safe_to_return' shadows a member of 'this' [-Wshadow]
>       : m_exit_status (exit_status), m_safe_to_return (safe_to_return)
>       ^
>
> who can help??

Those are only warning Ernst.  Is there more displayed after these messages?

Dan

Reply | Threaded
Open this post in threaded view
|

Re: rebuild does not work any more....

LachlanA
In reply to this post by Ernst Reissner
Ernst, I'm currently test-compiling a patch that gets rid of a collection of "shadowed member" warnings, and will post the patch soon.

I also tried to get rid of the deprecation warnings for  xmax  and  xmin,  but haven't figured out the maze of templates and macros.

Cheers,
Lachlan
Reply | Threaded
Open this post in threaded view
|

Re: rebuild does not work any more....

LachlanA
I should also mention that when I compile the current tip I get:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7081041 in octave::application::interactive () at ../libinterp/octave.cc:357
357    return instance->m_interpreter->interactive ();
(gdb) bt
#0  0x00007ffff7081041 in octave::application::interactive () at ../libinterp/octave.cc:357
#1  0x00007ffff7861046 in octave_pager_buf::sync (this=0x656ef0) at ../libinterp/corefcn/pager.cc:236
#2  0x00007fffef0b988e in std::ostream::flush() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff7862056 in flush_octave_stdout () at ../libinterp/corefcn/pager.cc:466
#4  0x00007ffff75d5ae5 in vwarning(const char *, const char *, typedef __va_list_tag __va_list_tag *, const char *) (id=0x7ffff795b133 "Octave:shadowed-function",
    fmt=0x7ffff795ae88 "function %s shadows a built-in function", args=0x8136c8, args@entry=0x7fffffffbaf8, name=<optimized out>) at ../libinterp/corefcn/error.cc:356
#5  0x00007ffff75dcbb0 in warning_1(const char *, const char *, typedef __va_list_tag __va_list_tag *) (id=0x7ffff795b133 "Octave:shadowed-function",
    fmt=0x7ffff795ae88 "function %s shadows a built-in function", args=args@entry=0x7fffffffbaf8) at ../libinterp/corefcn/error.cc:717
#6  0x00007ffff75dd095 in vwarning_with_id (id=<optimized out>, fmt=<optimized out>, args=args@entry=0x7fffffffbaf8) at ../libinterp/corefcn/error.cc:761
#7  0x00007ffff75dd127 in warning_with_id (id=id@entry=0x7ffff795b133 "Octave:shadowed-function",
    fmt=fmt@entry=0x7ffff795ae88 "function %s shadows a built-in function") at ../libinterp/corefcn/error.cc:769
#8  0x00007ffff779dcd0 in load_path::loader::add_to_fcn_map (this=this@entry=0x7b7d20, di=..., at_end=at_end@entry=true, updating=updating@entry=false)
    at ../libinterp/corefcn/load-path.cc:1943
#9  0x00007ffff779e387 in add (updating=false, at_end=true, di=..., this=0x7b7d20) at ../libinterp/corefcn/load-path.h:531
#10 load_path::add (this=this@entry=0x7b7cf0, di=..., at_end=at_end@entry=true, pname=..., updating=updating@entry=false) at ../libinterp/corefcn/load-path.cc:1867
#11 0x00007ffff779e80e in load_path::do_add (this=0x7b7cf0, dir_arg=..., at_end=at_end@entry=true, warn=warn@entry=false) at ../libinterp/corefcn/load-path.cc:773
#12 0x00007ffff779e97d in load_path::do_append (this=this@entry=0x7b7cf0, dir=..., warn=warn@entry=false) at ../libinterp/corefcn/load-path.cc:713
#13 0x00007ffff779eb99 in load_path::do_set (this=this@entry=0x7b7cf0, p=..., warn=warn@entry=false, is_init=is_init@entry=true)
    at ../libinterp/corefcn/load-path.cc:692
#14 0x00007ffff779f019 in load_path::do_initialize (this=0x7b7cf0, set_initial_path=set_initial_path@entry=false) at ../libinterp/corefcn/load-path.cc:610
#15 0x00007ffff778c493 in initialize (set_initial_path=false) at ../libinterp/corefcn/load-path.h:55
#16 initialize_load_path (set_initial_path=false) at ../libinterp/corefcn/interpreter.cc:447
#17 octave::interpreter::interpreter (this=0x6551c0, app_context=0x7fffffffd000, embedded=<optimized out>) at ../libinterp/corefcn/interpreter.cc:654
#18 0x00007ffff7080e3a in octave::application::create_interpreter (this=0x7fffffffd000) at ../libinterp/octave.cc:370
#19 0x00007ffff7080d8a in octave::cli_application::execute (this=0x7fffffffd000) at ../libinterp/octave.cc:411
#20 0x0000000000401144 in main (argc=8, argv=0x7fffffffd1d8) at ../src/main-cli.cc:90


Does anyone else see that?

Lachaln
Reply | Threaded
Open this post in threaded view
|

AW: Re: rebuild does not work any more....

Ernst Reissner
In reply to this post by Daniel Sebald
There is no after: the process seems not to terminate.
So IT is more than a warning: i just cannot build.

Any ideas to solve the problem?

Ernst

Von meinem Sony Xperia™-Smartphone gesendet

---- Daniel J Sebald schrieb ----

On 07/12/2016 05:53 PM, Ernst Reissner wrote:

> Hi all,
>
> I just cloned the repository but make fails
>
> displaying the following again and again..
>
> ../liboctave/cruft/misc/quit.h:109:5: warning: declaration of
> 'exit_status' shadows a member of 'this' [-Wshadow]
>    CXX
> liboctave/operators/liboctave_operators_liboperators_la-mx-i64nda-fs.lo
> In file included from ../liboctave/util/lo-utils.h:33:0,
>                   from ../liboctave/array/Array.h:40,
>                   from ../liboctave/array/Array-util.h:28,
>                   from liboctave/operators/mx-i64nda-fs.cc:5:
> ../liboctave/cruft/misc/quit.h: In constructor
> 'octave_exit_exception::octave_exit_exception(int, bool)':
> ../liboctave/cruft/misc/quit.h:109:5: warning: declaration of
> 'safe_to_return' shadows a member of 'this' [-Wshadow]
>       : m_exit_status (exit_status), m_safe_to_return (safe_to_return)
>       ^
>
> who can help??

Those are only warning Ernst.  Is there more displayed after these messages?

Dan
Reply | Threaded
Open this post in threaded view
|

Re: rebuild does not work any more....

PhilipNienhuis
In reply to this post by Ernst Reissner
Ernst Reissner wrote
Hi all,

I just cloned the repository but make fails

displaying the following again and again..

../liboctave/cruft/misc/quit.h:109:5: warning: declaration of
'exit_status' shadows a member of 'this' [-Wshadow]
  CXX    
liboctave/operators/liboctave_operators_liboperators_la-mx-i64nda-fs.lo
In file included from ../liboctave/util/lo-utils.h:33:0,
                 from ../liboctave/array/Array.h:40,
                 from ../liboctave/array/Array-util.h:28,
                 from liboctave/operators/mx-i64nda-fs.cc:5:
../liboctave/cruft/misc/quit.h: In constructor
'octave_exit_exception::octave_exit_exception(int, bool)':
../liboctave/cruft/misc/quit.h:109:5: warning: declaration of
'safe_to_return' shadows a member of 'this' [-Wshadow]
     : m_exit_status (exit_status), m_safe_to_return (safe_to_return)
     ^

who can help??
Independently of you I posted the same question, sorry.
In spite of the warnings my builds (on / for Linux and later cross-build for Windows) worked afterwards.
So I can help you.
Hopefully Lachlan's in statu nascendi patch will help

Philip
Reply | Threaded
Open this post in threaded view
|

Re: Re: rebuild does not work any more....

Mike Miller-4
In reply to this post by Ernst Reissner
On Wed, Jul 13, 2016 at 22:45:58 +0200, Rei3ner wrote:
> There is no after: the process seems not to terminate.
> So IT is more than a warning: i just cannot build.
>
> Any ideas to solve the problem?

I think you'll have to tell us a little more information. It sounds like
you are saying when you run "make all" that the build process spews out
a bunch of warnings like these, and *something* is running and not
returning control to your shell prompt. Is that correct?

Or is the build returning control to your shell but the exit status is
failure?

If the former:

* Can you open another shell and use ps to tell us what the *something*
  is that is running in the build and never returning?

* Can you try "make V=1 all" without any "-j" options to get verbose
  output and maybe show what the last command that continues running is?

If the latter:

* Can you try "make V=1 all" without any "-j" options and tell us what
  is the last command that ran and what error message it produced?

--
mike

Reply | Threaded
Open this post in threaded view
|

Re: rebuild does not work any more....

Ernst Reissner
In reply to this post by LachlanA
On 07/13/2016 12:50 AM, LachlanA wrote:
> Ernst, I'm currently test-compiling a patch that gets rid of a collection of
> "shadowed member" warnings, and will post the patch soon.
>
> I also tried to get rid of the deprecation warnings for  xmax  and  xmin,
> but haven't figured out the maze of templates and macros.
>
> Cheers,
> Lachlan
Thank you Lachlan,
you did not yet finish work, right? I am still seeing my warnings...
seems as if compilation does never terminate.. ;-)

ERnst



Reply | Threaded
Open this post in threaded view
|

Re: rebuild does not work any more....

LachlanA
Ernst Reissner wrote
On 07/13/2016 12:50 AM, LachlanA wrote:
> Ernst, I'm currently test-compiling a patch that gets rid of a collection of
> "shadowed member" warnings, and will post the patch soon.
>
> I also tried to get rid of the deprecation warnings for  xmax  and  xmin,
> but haven't figured out the maze of templates and macros.

Thank you Lachlan,
you did not yet finish work, right? I am still seeing my warnings...
seems as if compilation does never terminate.. ;-)
The patch is at [https://savannah.gnu.org/bugs/download.php?file_id=37834].  When I said I'd post it, I meant on Savannah, not on the list.  Sorry to leave you waiting.

JWE suggested a more major change (renaming members instead of arguments) so it won't be applied any time soon.  Still, you can use it for your own builds.

Cheers,
Lachlan