[MacPorts] #44607: apple-gcc42: don't warn about /usr/lib/crt1.o on Tiger ppc
#44607: apple-gcc42: don't warn about /usr/lib/crt1.o on Tiger ppc ---------------------------+------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: tiger powerpc | Port: apple-gcc42 ---------------------------+------------------------- See comment:ticket:44268:6 for an interesting problem with apple-gcc42 on Tiger PowerPC. It seems that when doing even quite simple compiles such as those a configure script does, it produces this warning: {{{ ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /usr/lib/crt1.o }}} This warning, printed on stderr, in turn can cause an otherwise successful compilation to be interpreted by the configure script as a failure. I am assuming that the directive to "recompile without `-mlong-branch`" is supposed to be taken to mean "recompile ''/usr/lib/crt1.o'' without `-mlong-branch`", and is not talking about the small program the configure script compiled, since that compilation did not include the `-mlong- branch` flag to begin with. Is there a way that apple-gcc42 could ''not'' print that warning, at least not for system libraries like /usr/lib/crt1.o which it's not our bailiwick to fix? -- Ticket URL: <https://trac.macports.org/ticket/44607> MacPorts <http://www.macports.org/> Ports system for OS X
#44607: apple-gcc42: don't warn about /usr/lib/crt1.o on Tiger ppc ---------------------------+--------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: tiger powerpc Port: apple-gcc42 | ---------------------------+--------------------------- Comment (by jeremyhu@…): That warning is coming from the linker, not the compiler. Is this with the +bootstrap variant (and thus using /usr/bin/ld) or the normal variant (thus using the ld64 port)? -- Ticket URL: <https://trac.macports.org/ticket/44607#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#44607: apple-gcc42: don't warn about /usr/lib/crt1.o on Tiger ppc ---------------------------+--------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: tiger powerpc Port: apple-gcc42 | ---------------------------+--------------------------- Comment (by ryandesign@…): Oh I see. {{{ $ port -v installed apple-gcc42 ld64 The following ports are currently installed: apple-gcc42 @5666.3_14 (active) platform='darwin 8' archs='ppc' ld64 @97.17_2 (active) platform='darwin 8' archs='ppc' }}} -- Ticket URL: <https://trac.macports.org/ticket/44607#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#44607: apple-gcc42: don't warn about /usr/lib/crt1.o on Tiger ppc ---------------------------+--------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: tiger powerpc Port: apple-gcc42 | ---------------------------+--------------------------- Comment (by jeremyhu@…): Can you give that patch a try? -- Ticket URL: <https://trac.macports.org/ticket/44607#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44607: ld64: don't warn about /usr/lib/crt1.o on Tiger ppc ---------------------------+------------------------------------ Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: tiger powerpc haspatch Port: ld64 | ---------------------------+------------------------------------ Changes (by ryandesign@…): * keywords: tiger powerpc => tiger powerpc haspatch * port: apple-gcc42 => ld64 Comment: Works great, thanks! -- Ticket URL: <https://trac.macports.org/ticket/44607#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#44607: ld64: don't warn about /usr/lib/crt1.o on Tiger ppc ---------------------------+------------------------------------ Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: fixed | Keywords: tiger powerpc haspatch Port: ld64 | ---------------------------+------------------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => fixed Comment: r123756 -- Ticket URL: <https://trac.macports.org/ticket/44607#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts