Opened 11 years ago
Last modified 2 years ago
#39967 assigned defect
qt4-creator-mac 2.8.0_1 fails building on 10.5.8 PPC
Reported by: | udbraumann | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.0 |
Keywords: | Cc: | macports@…, cooljeanius (Eric Gallager), chrstphrchvz (Christopher Chavez) | |
Port: | qt4-creator-mac |
Description
While building buildgraph/automoc.cpp the compiler mode "warnings being treated as errors" is switched on, unfortunately a few warnings of the type "... has virtual functions but non-virtual destructor" or "... has virtual functions but non-virtual destructor" do follow, and consequently do stop further compiling.
Attachments (2)
Change History (16)
Changed 11 years ago by udbraumann
comment:1 follow-up: 2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | macports@… removed |
---|---|
Keywords: | "warnings being treated as errors" ppc removed |
Owner: | changed from macports-tickets@… to macports@… |
Are you really running MacPorts 2.2? Run "port version
" to find out. The log shows you are on Leopard and are using gcc 4.0, but as of MacPorts 2.2, the default compiler on Leopard should be gcc 4.2. If you're not on MacPorts 2.2 yet, please update by running "sudo port selfupdate
" twice.
comment:2 Changed 11 years ago by udbraumann
Yes, I run macports version 2.2:
$ sudo port version Version: 2.2.0
And I have run
sudo port selfupdate
more than twice since it was released a few days before.
If my memory serves me right, yesterday I was also testing gcc 4.2 for building qt4-creator-mac using the configure.compiler in the command line, but got the same problem with the "warnings being treated as errors" issue.
Here is what a check for gcc versions gives on my PowerBook G4:
$ sudo port select --list gcc Available versions for gcc: gcc33 gcc40 (active) gcc42 llvm-gcc42 mp-gcc45 none
comment:3 Changed 11 years ago by macports@…
Could you also append the build log of your attempt using gcc42
?
Changed 11 years ago by udbraumann
Attachment: | main.2.log added |
---|
udo port upgrade qt4-creator-mac configure.compiler=gcc-4.2
comment:4 Changed 11 years ago by macports@…
Cc: | macports@… added |
---|
Trac somehow failed to notify me by mail that a new file was added to this ticket. Sorry for the late response.
comment:5 follow-up: 6 Changed 11 years ago by macports@…
Hmm, the log shows that it keeps using g++-4.0... you may have to rebuild qt4-mac as well.
comment:6 Changed 11 years ago by udbraumann
Hmm, to my surprise you were right, once I had rebuild qt4-mac setting gcc42 as compiler calling
sudo port install qt4-mac configure.compiler=gcc-4.2
then I again called
sudo port upgrade qt4-creator-mac configure.compiler=gcc-4.2
and - voilà - qt4-creator-mac 2.8.1 could be built.
For some unknown reason during the building of qt4-creator-mac that compiler setting is used which was previously taken for building qt4-mac, other settings might be ignored (see above). So I suggest to modify the portfile of qt4-mac in order to obligatory select gcc42 there. And maybe the mechanism of building qt4-creator-mac also needs some repair, I would have expected that a compiler setting using configure.compiler is strictly accepted.
gcc40 anyway is not sufficient for qt4-creator-mac 2.8.1
comment:7 follow-up: 8 Changed 11 years ago by macports@…
Well, Qt-based applications are expected to be built with the same toolchain (so-called mkspecs
) that was used to build the Qt libraries. This makes sense because different compilers may use different, incompatible ABIs.
To be honest, I don't know if gcc40 and gcc42 are 100 % ABI-compatible or if we might run into trouble when building qt4-creator-mac with a different toolchain than qt4-mac. So I guess the best fix for PowerPC would indeed be to force qt4-mac to be built with gcc42.
comment:8 Changed 11 years ago by udbraumann
Thanks, so I think this ticket could be closed as soon as the maintainer of qt4-mac has adopted our proposition to require gcc42 for building qt4-mac? Could you please draw a ticket there in order to let him do the fix? I think, also this port qt4-creator-mac could default to a gcc42 usage - even though we now know that implicitly that compiler is taken for qt4-creator-mac which was previously used for qt4-mac.
comment:11 follow-up: 14 Changed 5 years ago by chrstphrchvz (Christopher Chavez)
Current maintainer is michaelld.
qt4-creator-mac
is now at 2.8.1. Is this issue still present?
comment:12 Changed 5 years ago by chrstphrchvz (Christopher Chavez)
Cc: | chrstphrchvz added |
---|
comment:13 Changed 5 years ago by mf2k (Frank Schima)
Owner: | changed from macports@… to michaelld |
---|---|
Status: | new → assigned |
comment:14 Changed 2 years ago by barracuda156
Replying to chrstphrchvz:
Current maintainer is michaelld.
qt4-creator-mac
is now at 2.8.1. Is this issue still present?
At least on 10.6 PPC and 10.6.8 Rosetta it does build. Cannot say for sure about Leopard, need to check.
error report refers to r108753