mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ian Abbott <abbotti@mev.co.uk>
To: ptxdist@pengutronix.de
Subject: [ptxdist] HOST_NCURSES not building (ptxdist 2017.07.0, Debian, GNU c++ 7.2.0)
Date: Wed, 30 Aug 2017 17:34:24 +0100	[thread overview]
Message-ID: <dca425a5-a871-f1de-a7e2-1d98340fa15f@mev.co.uk> (raw)

Hi,

I get the following error when building a project on a current Debian 
"testing" system, possibly due to upgrading the host gcc from 7.1 to 
7.2, but I'm not 100% sure.  I guess ncurses 5.9 is pretty old now!

cd c++ && make DESTDIR="" all
make[2]: Entering directory 
'/mnt/lindata/work/abbotti/ptxdist/projects/dbpod-socfpga-tmp/platform-dbpod-fastpod/build-host/ncurses-5.9/c++'
compiling cursesf (objects)
In file included from ../c++/cursesw.h:36:0,
                  from ../c++/cursesp.h:39,
                  from ../c++/cursesf.h:39,
                  from ../c++/cursesf.cc:35:
../c++/etip.h:374:20: warning: dynamic exception specifications are 
deprecated in C++11 [-Wdeprecated]
  #define THROWS(s)  throw(s)
                     ^
../c++/cursesw.h:777:50: note: in expansion of macro 'THROWS'
    virtual void   err_handler(const char *) const THROWS(NCursesException);
                                                   ^~~~~~
../c++/etip.h:374:20: warning: dynamic exception specifications are 
deprecated in C++11 [-Wdeprecated]
  #define THROWS(s)  throw(s)
                     ^
../c++/cursesp.h:89:32: note: in expansion of macro 'THROWS'
    void OnError (int err) const THROWS(NCursesPanelException)
                                 ^~~~~~
In file included from ../c++/cursesf.h:39:0,
                  from ../c++/cursesf.cc:35:
../c++/cursesp.h: In member function 'T* NCursesUserPanel<T>::UserData() 
const':
../c++/cursesp.h:256:43: error: no matching function for call to 
'NCursesUserPanel<T>::get_user() const'
      return reinterpret_cast<T*>(get_user ());
                                            ^
../c++/cursesp.h:80:9: note: candidate: void* NCursesPanel::get_user() 
<near match>
    void *get_user()
          ^~~~~~~~
../c++/cursesp.h:80:9: note:   passing 'const NCursesUserPanel<T>*' as 
'this' argument discards qualifiers
In file included from ../c++/cursesw.h:36:0,
                  from ../c++/cursesp.h:39,
                  from ../c++/cursesf.h:39,
                  from ../c++/cursesf.cc:35:
../c++/cursesf.h: At global scope:
../c++/etip.h:374:20: warning: dynamic exception specifications are 
deprecated in C++11 [-Wdeprecated]
  #define THROWS(s)  throw(s)
                     ^
../c++/cursesf.h:64:38: note: in expansion of macro 'THROWS'
    inline void OnError(int err) const THROWS(NCursesFormException) {
                                       ^~~~~~
../c++/etip.h:374:20: warning: dynamic exception specifications are 
deprecated in C++11 [-Wdeprecated]
  #define THROWS(s)  throw(s)
                     ^
../c++/cursesf.h:112:39: note: in expansion of macro 'THROWS'
    inline void OnError (int err) const THROWS(NCursesFormException) {
                                        ^~~~~~
../c++/etip.h:374:20: warning: dynamic exception specifications are 
deprecated in C++11 [-Wdeprecated]
  #define THROWS(s)  throw(s)
                     ^
../c++/cursesf.h:394:39: note: in expansion of macro 'THROWS'
    inline void OnError (int err) const THROWS(NCursesFormException) {
                                        ^~~~~~
In file included from ../c++/cursesf.cc:35:0:
../c++/cursesf.h: In member function 'T* NCursesUserForm<T>::UserData() 
const':
../c++/cursesf.h:707:43: error: no matching function for call to 
'NCursesUserForm<T>::get_user() const'
      return reinterpret_cast<T*>(get_user ());
                                            ^
../c++/cursesf.h:384:16: note: candidate: void* NCursesForm::get_user() 
<near match>
    inline void *get_user() {
                 ^~~~~~~~
../c++/cursesf.h:384:16: note:   passing 'const NCursesUserForm<T>*' as 
'this' argument discards qualifiers
In file included from ../c++/cursesw.h:36:0,
                  from ../c++/cursesp.h:39,
                  from ../c++/cursesf.h:39,
                  from ../c++/cursesf.cc:35:
../c++/cursslk.h: At global scope:
../c++/etip.h:374:20: warning: dynamic exception specifications are 
deprecated in C++11 [-Wdeprecated]
  #define THROWS(s)  throw(s)
                     ^
../c++/cursslk.h:120:45: note: in expansion of macro 'THROWS'
    inline void Error (const char* msg) const THROWS(NCursesException) {
                                              ^~~~~~
Makefile:331: recipe for target '../objects/cursesf.o' failed
make[2]: *** [../objects/cursesf.o] Error 1


-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@mev.co.uk> )=-
-=(                          Web: http://www.mev.co.uk/  )=-

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2017-08-30 16:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-30 16:34 Ian Abbott [this message]
2017-08-30 19:44 ` Ladislav Michl
2017-08-31  9:40   ` Ian Abbott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dca425a5-a871-f1de-a7e2-1d98340fa15f@mev.co.uk \
    --to=abbotti@mev.co.uk \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox