[MacPorts] #34275: gcc 42 failed to build
#34275: gcc 42 failed to build ------------------------------------+--------------------------------------- Reporter: jharmon@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: gcc42 ------------------------------------+--------------------------------------- The summary says it all! -- Ticket URL: <https://trac.macports.org/ticket/34275> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: gcc42 failed to build: -lgcc_s.10.4 is not an object file ------------------------------------+--------------------------------------- Reporter: jharmon@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: gcc42 ------------------------------------+--------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mww@… Comment: I see you're on OS X 10.5 Intel, but the error message is "-lgcc_s.10.4 is not an object file". At first glance, that seems weird... Do you really need gcc42? There are several newer versions of gcc available in MacPorts. -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: gcc42 failed to build: -lgcc_s.10.4 is not an object file ------------------------------------+--------------------------------------- Reporter: jharmon@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: gcc42 ------------------------------------+--------------------------------------- Comment(by jharmon@…): Thanks so much for looking into this! I suspect gcc42 is a dependency of something critical, unfortunately. So, it's kinda not up to me...! Maybe it's a variant issue somehow? I don't know why it should be referencing 10.4 at all.. Thanks again! Jeff -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: gcc42 failed to build: -lgcc_s.10.4 is not an object file ------------------------------------+--------------------------------------- Reporter: jharmon@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: gcc42 ------------------------------------+--------------------------------------- Comment(by jharmon@…): i appreciate everyone's efforts a great deal! macports is such a vital part of the community. i'm hoping someone might get to this bug, and thought it might be helpful to communicate that this still presents a problem, at least for us. thanks! -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: gcc42 failed to build: -lgcc_s.10.4 is not an object file ------------------------------------+--------------------------------------- Reporter: jharmon@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: gcc42 ------------------------------------+--------------------------------------- Comment(by hraban@…): Same problem here, just upgraded to MacPorts 2.1.0 on OSX 10.5.8 Intel. gcc42 is a dependency of pdftk in my case, but that should also build with gcc45. -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: gcc42 failed to build: -lgcc_s.10.4 is not an object file ------------------------------------+--------------------------------------- Reporter: jharmon@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: gcc42 ------------------------------------+--------------------------------------- Comment(by jharmon@…): almost two months and we're still unable to upgrade our ports because of this gcc42 problem. help! -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: gcc42 failed to build: -lgcc_s.10.4 is not an object file ------------------------------------+--------------------------------------- Reporter: jharmon@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: gcc42 ------------------------------------+--------------------------------------- Comment(by jharmon@…): i upgraded to 2.1.1 and it still happens -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: gcc42 failed to build: -lgcc_s.10.4 is not an object file ------------------------------------+--------------------------------------- Reporter: jharmon@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: gcc42 ------------------------------------+--------------------------------------- Comment(by mww@…): Several points: -The bug really seems weird -I cannot reproduce it as I do not have a machine with 10.5 -We try hard to run on the two latest version of OS X -- 10.5 is a ''legacy'' platform (and gcc42 does not even build on 10.6 anymore at all) To fix this problem the best way would be to ''fix'' '''pdfkt''' to not require gcc42; the gcc people do not develop this old branch anymore so there will be nothing coming from upstream that will fix this issue. If you supply me with a patch to fix gcc42 on 10.5 I will happily integrate it, but I am out of ressources here. -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: pdftk should not depend on gcc42 ------------------------+-------------------------- Reporter: jharmon@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: pdftk | ------------------------+-------------------------- Changes (by jeremyhu@…): * owner: mww@… => ryandesign@… * port: gcc42 => pdftk Comment: gcc42 should be removed. Please try this out: {{{ Index: Portfile =================================================================== --- Portfile (revision 97745) +++ Portfile (working copy) @@ -54,6 +54,36 @@ set versuff "" +variant gcc43 conflicts gcc44 gcc45 gcc47 description {Build using gcc43} { + configure.compiler macports-gcc-4.3 + depends_lib-append port:gcc43 + set versuff -mp-4.3 +} + +variant gcc44 conflicts gcc43 gcc45 gcc47 description {Build using gcc44} { + configure.compiler macports-gcc-4.4 + depends_lib-append port:gcc44 + set versuff -mp-4.4 +} + +variant gcc45 conflicts gcc43 gcc44 gcc47 description {Build using gcc45} { + configure.compiler macports-gcc-4.5 + depends_lib-append port:gcc45 + set versuff -mp-4.5 +} + +variant gcc47 conflicts gcc43 gcc44 gcc45 description {Build using gcc47} { + configure.compiler macports-gcc-4.7 + depends_lib-append port:gcc47 + set versuff -mp-4.7 +} + +if {${os.platform} == "darwin" && ${os.major} < 11} { + default_variants +gcc45 +} else { + default_variants +gcc47 +} + pre-configure { if {![file exists ${prefix}/bin/gcj${versuff}]} { return -code error " @@ -80,37 +110,3 @@ xinstall -m 644 -W ${worksrcpath} pdftk.1 \ ${destroot}${prefix}/share/man/man1 } - -variant gcc42 conflicts gcc45 gcc47 description {Build using gcc42} { - patchfiles-append patch-gcj-4.2-and-older.diff - configure.compiler macports-gcc-4.2 - depends_build-append port:fastjar - depends_lib-append port:gcc42 - set versuff -mp-4.2 -} - -variant gcc45 conflicts gcc42 gcc47 description {Build using gcc45} { - configure.compiler macports-gcc-4.5 - depends_lib-append port:gcc45 - set versuff -mp-4.5 -} - -variant gcc47 conflicts gcc42 gcc45 description {Build using gcc47} { - configure.compiler macports-gcc-4.7 - depends_lib-append port:gcc47 - set versuff -mp-4.7 -} - -if {![variant_isset gcc42] && ![variant_isset gcc45] && ![variant_isset gcc47]} { - if {${os.platform} == "darwin"} { - if {${os.major} < 10} { - default_variants +gcc42 - } elseif {${os.major} < 11} { - default_variants +gcc45 - } else { - default_variants +gcc47 - } - } else { - default_variants +gcc45 - } -} }}} -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: pdftk should not depend on gcc42 ------------------------+-------------------------- Reporter: jharmon@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: pdftk | ------------------------+-------------------------- Comment (by ryandesign@…): I had never been able to build pdftk with gcc43, gcc44 or gcc46; that is why the port only contains gcc42, gcc45 and gcc47 variants. See #22066 for more on this. -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: pdftk should not depend on gcc42 ------------------------+-------------------------- Reporter: jharmon@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: pdftk | ------------------------+-------------------------- Comment (by jeremyhu@…): Ok, well what about this then: {{{ Index: Portfile =================================================================== --- Portfile (revision 97759) +++ Portfile (working copy) @@ -81,36 +81,22 @@ ${destroot}${prefix}/share/man/man1 } -variant gcc42 conflicts gcc45 gcc47 description {Build using gcc42} { - patchfiles-append patch-gcj-4.2-and-older.diff - configure.compiler macports-gcc-4.2 - depends_build-append port:fastjar - depends_lib-append port:gcc42 - set versuff -mp-4.2 -} - -variant gcc45 conflicts gcc42 gcc47 description {Build using gcc45} { +variant gcc45 conflicts gcc47 description {Build using gcc45} { configure.compiler macports-gcc-4.5 depends_lib-append port:gcc45 set versuff -mp-4.5 } -variant gcc47 conflicts gcc42 gcc45 description {Build using gcc47} { +variant gcc47 conflicts gcc45 description {Build using gcc47} { configure.compiler macports-gcc-4.7 depends_lib-append port:gcc47 set versuff -mp-4.7 } -if {![variant_isset gcc42] && ![variant_isset gcc45] && ![variant_isset gcc47]} { - if {${os.platform} == "darwin"} { - if {${os.major} < 10} { - default_variants +gcc42 - } elseif {${os.major} < 11} { - default_variants +gcc45 - } else { - default_variants +gcc47 - } +if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc47]} { + if {${os.platform} == "darwin" && ${os.major} < 11} { + default_variants +gcc45 } else { - default_variants +gcc45 + default_variants +gcc47 } } }}} -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: pdftk should not depend on gcc42 ------------------------+-------------------------- Reporter: jharmon@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: pdftk | ------------------------+-------------------------- Comment (by jeremyhu@…): BTW, tracking eventual removal of gcc42 in #33919 -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: pdftk should not depend on gcc42 ------------------------+-------------------------- Reporter: jharmon@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: pdftk | ------------------------+-------------------------- Comment (by ryandesign@…): pdftk's build process has been extremely fragile in the past, and certain versions of gcc seemed to work better on certain OS versions; that is why the port's code was written the way it was. I do not know if using gcc45 to build pdftk on Leopard and Tiger works. I do know that on Lion and Mountain Lion using anything less than gcc47 seems not to work. If the gcc47 variant works for all users on all platforms I'd be happy to just leave that and remove the rest. However not too long ago it was not possible to build gcc47 on PowerPC; I'm not sure if that was ever fixed. Certainly right now would be a poor time to try to test this, since other problems have been introduced into the gcc4* ports in the past few days that need to be ironed out first, before I go spending days of CPU time trying to compile the gcc4* updates on my Power Mac. -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: pdftk should not depend on gcc42 ------------------------+-------------------------- Reporter: jharmon@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: pdftk | ------------------------+-------------------------- Comment (by jeremyhu@…): Well gcc42 doesn't build on Leopard, so we need to do something about that. I believe gcc47 still does not build on darwin/ppc, but it's a long thread in #34385. It looks like someone at the end has been able to build it, but I don't have a ppc machine available to try it out on... -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: pdftk should not depend on gcc42 ------------------------+-------------------------- Reporter: jharmon@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: pdftk | ------------------------+-------------------------- Comment (by Peter_Dyballa@…): Replying to [comment:12 ryandesign@…]:
If the gcc47 variant works for all users on all platforms I'd be happy
to just leave that and remove the rest. However not too long ago it was not possible to build gcc47 on PowerPC; I'm not sure if that was ever fixed. Certainly right now would be a poor time to try to test this, since other problems have been introduced into the gcc4* ports in the past few days that need to be ironed out first, before I go spending days of CPU time trying to compile the gcc4* updates on my Power Mac. In Fink I could build GCC 4.7.2 on Leopard, Mac OS X 10.5.8, G4. Jack Howarth, Fink's maintainer of that package, could build GCC 4.7.2 on a G5. My own success is a bit troublesome. The first two tries failed here: {{{ Comparing stages 2 and 3 warning: gcc/cc1-checksum.o differs warning: gcc/cc1obj-checksum.o differs warning: gcc/cc1objplus-checksum.o differs warning: gcc/cc1plus-checksum.o differs Bootstrap comparison failure! gcc/host-darwin.o differs }}} Such files were built then: {{{ 3084 10 Okt 20:39 gcc47-4.7.2-1000/darwin_objdir/stage1-gcc/cc1-checksum.o 3092 10 Okt 20:45 gcc47-4.7.2-1000/darwin_objdir/stage1-gcc/cc1plus- checksum.o 512 11 Okt 02:56 gcc47-4.7.2-1000/darwin_objdir/stage2-gcc/cc1-checksum.o 512 11 Okt 03:44 gcc47-4.7.2-1000/darwin_objdir/stage2-gcc/cc1plus- checksum.o 512 11 Okt 04:42 gcc47-4.7.2-1000/darwin_objdir/stage2-gcc/cc1obj- checksum.o 512 11 Okt 04:49 gcc47-4.7.2-1000/darwin_objdir/stage2-gcc/cc1objplus- checksum.o 2776 11 Okt 07:47 gcc47-4.7.2-1000/darwin_objdir/stage3-gcc/cc1-checksum.o 2784 11 Okt 07:57 gcc47-4.7.2-1000/darwin_objdir/stage3-gcc/cc1plus- checksum.o 2784 11 Okt 08:13 gcc47-4.7.2-1000/darwin_objdir/stage3-gcc/cc1obj- checksum.o 2792 11 Okt 08:14 gcc47-4.7.2-1000/darwin_objdir/stage3-gcc/cc1objplus- checksum.o 5544 10 Okt 20:37 gcc47-4.7.2-1000/darwin_objdir/stage1-gcc/host-darwin.o 1728 11 Okt 02:52 gcc47-4.7.2-1000/darwin_objdir/stage2-gcc/host-darwin.o 5876 11 Okt 07:44 gcc47-4.7.2-1000/darwin_objdir/stage3-gcc/host-darwin.o }}} Interestingly I had a disk low warning around the time when the build finished with the error message. At the time when the differing files were created the disk had enough space. I then decided to build GCC 4.7.2 on a different volume, which is used to hold the swap files and was intended to also hold virtual systems. While the original volume has HFSX with a journal, the other volume has HFS without a journal. The compilation on that volume succeeded – like that: {{{ Comparing stages 2 and 3 warning: gcc/cc1-checksum.o differs warning: gcc/cc1obj-checksum.o differs warning: gcc/cc1objplus-checksum.o differs warning: gcc/cc1plus-checksum.o differs Comparison successful. }}} And then the build process continued with: {{{ if false; then \ rm -rf stage2-*; \ echo timestamp > stage2-lean; \ fi }}} In that build I cannot find the stage2-gcc and stage3-gcc directories… Last year it succeeded to build GCC 4.7.1. -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34275: pdftk should not depend on gcc42 ------------------------+-------------------------- Reporter: jharmon@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: pdftk | ------------------------+-------------------------- Comment (by jeremyhu@…): gcc4[789] are reported to work on ppc now (see #34385). Can we get some motion on this, so we can remove gcc42? -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#34275: pdftk should not depend on gcc42 ------------------------+-------------------------- Reporter: jharmon@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: pdftk | ------------------------+-------------------------- Comment (by ryandesign@…): My uncommitted patch for updating the port to 2.0.1 (see #37580) removes PowerPC support, since I was unable to compile pdftk with gcj from gcc45 or gcc47. But if gcc48 and gcc49 should compile, I'll install them and give it a try. -- Ticket URL: <https://trac.macports.org/ticket/34275#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts