[MacPorts] #39967: qt4-creator-mac 2.8.0_1 fails building on 10.5.8 PPC
#39967: qt4-creator-mac 2.8.0_1 fails building on 10.5.8 PPC -------------------------------------------------+------------------------- Reporter: braumann@… | Owner: macports- Type: defect | tickets@… Priority: Normal | Status: new Component: ports | Milestone: Keywords: "warnings being treated as errors", | Version: 2.2.0 ppc | Port: qt4 | -creator-mac -------------------------------------------------+------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/39967> MacPorts <http://www.macports.org/> Ports system for OS X
#39967: qt4-creator-mac 2.8.0_1 fails building on 10.5.8 PPC ------------------------------+------------------------ Reporter: braumann@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: qt4-creator-mac | ------------------------------+------------------------ Changes (by ryandesign@…): * keywords: "warnings being treated as errors", ppc => * cc: macports@… (removed) * owner: macports-tickets@… => macports@… Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/39967#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39967: qt4-creator-mac 2.8.0_1 fails building on 10.5.8 PPC ------------------------------+------------------------ Reporter: braumann@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: qt4-creator-mac | ------------------------------+------------------------ Comment (by braumann@…): 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/39967#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39967: qt4-creator-mac 2.8.0_1 fails building on 10.5.8 PPC ------------------------------+------------------------ Reporter: braumann@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: qt4-creator-mac | ------------------------------+------------------------ Comment (by macports@…): Could you also append the build log of your attempt using {{{gcc42}}}? -- Ticket URL: <https://trac.macports.org/ticket/39967#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#39967: qt4-creator-mac 2.8.0_1 fails building on 10.5.8 PPC ------------------------------+------------------------ Reporter: braumann@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: qt4-creator-mac | ------------------------------+------------------------ Comment (by macports@…): Hmm, the log shows that it keeps using g++-4.0... you may have to rebuild qt4-mac as well. -- Ticket URL: <https://trac.macports.org/ticket/39967#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#39967: qt4-creator-mac 2.8.0_1 fails building on 10.5.8 PPC ------------------------------+------------------------ Reporter: braumann@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: qt4-creator-mac | ------------------------------+------------------------ Comment (by braumann@…): 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 -- Ticket URL: <https://trac.macports.org/ticket/39967#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#39967: qt4-creator-mac 2.8.0_1 fails building on 10.5.8 PPC ------------------------------+------------------------ Reporter: braumann@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: qt4-creator-mac | ------------------------------+------------------------ Comment (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. -- Ticket URL: <https://trac.macports.org/ticket/39967#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#39967: qt4-creator-mac 2.8.0_1 fails building on 10.5.8 PPC ------------------------------+------------------------ Reporter: braumann@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: qt4-creator-mac | ------------------------------+------------------------ Comment (by braumann@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/39967#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#39967: qt4-creator-mac 2.8.0_1 fails building on 10.5.8 PPC ------------------------------+------------------------ Reporter: braumann@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: qt4-creator-mac | ------------------------------+------------------------ Comment (by macports@…): Reported in ticket #40422. -- Ticket URL: <https://trac.macports.org/ticket/39967#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts