Opened 10 years ago
Closed 10 years ago
#44607 closed defect (fixed)
ld64: don't warn about /usr/lib/crt1.o on Tiger ppc
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.1 |
Keywords: | tiger powerpc haspatch | Cc: | |
Port: | ld64 |
Description
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?
Attachments (1)
Change History (6)
comment:1 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
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'
Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Attachment: | PR-44607.patch added |
---|
PR-44607.patch
comment:3 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Can you give that patch a try?
comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|---|
Port: | ld64 added; apple-gcc42 removed |
Summary: | apple-gcc42: don't warn about /usr/lib/crt1.o on Tiger ppc → ld64: don't warn about /usr/lib/crt1.o on Tiger ppc |
Works great, thanks!
comment:5 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
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)?