mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Koch, Alexander" <akoch@initse.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] Qt4 fails to build with GCC9 on host
Date: Fri, 9 Aug 2019 12:19:52 +0000	[thread overview]
Message-ID: <b23fcd37-2316-595c-c6be-4a841a7ab04f@initse.com> (raw)

Hi,

I just hat to a very strange problem building qt4 4.8.7 for ARMv7 using 
OSELAS-2018.12.0 as target compiler and gcc-9.1.0 x64 as host compiler 
and thought I'd share the knowledge.

The 'compile' step of qt4 yields all kinds of strange errors, most 
noticeably these:


platform-pv3/build-target/qt-everywhere-opensource-src-4.8.7/src/gui/dialogs/qpagesetupdialog_unix.cpp:276:12: 
error: 'class Ui::QPageSetupWidget' has no member named 'topMargin'
      widget.topMargin->setSuffix(suffix);
             ^~~~~~~~~
platform-pv3/build-target/qt-everywhere-opensource-src-4.8.7/src/gui/dialogs/qpagesetupdialog_unix.cpp:277:12: 
error: 'class Ui::QPageSetupWidget' has no member named 'bottomMargin'
      widget.bottomMargin->setSuffix(suffix);
             ^~~~~~~~~~~~
platform-pv3/build-target/qt-everywhere-opensource-src-4.8.7/src/gui/dialogs/qpagesetupdialog_unix.cpp:278:12: 
error: 'class Ui::QPageSetupWidget' has no member named 'leftMargin'
      widget.leftMargin->setSuffix(suffix);
             ^~~~~~~~~~
(...)


Although I didn't have any hint pointing at the host compiler I tried 
using gcc-8 there and guess what, that solved the issue.

So if you're on Arch (like me) and start facing these errors try 
installing 'gcc8' from [community] and set that as 
HOST_CC/HOST_CXX/HOST_CPP.


Best regards,

Alex



_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2019-08-09 12:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=b23fcd37-2316-595c-c6be-4a841a7ab04f@initse.com \
    --to=akoch@initse.com \
    --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