Opened 11 years ago

Closed 7 years ago

#40956 closed defect (invalid)

ocaml: ld: unknown option: -no_compact_unwind

Reported by: iwm@… Owned by: pmetzger (Perry E. Metzger)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: tiger leopard Cc: avysk (Alexey Vyskubov)
Port: ocaml

Description (last modified by ryandesign (Ryan Carsten Schmidt))

in build /usr/bin/make coldstart

:info:build /usr/bin/gcc-4.2 -Wl,-no_compact_unwind  -o ocamlrun \
:info:build       prims.o libcamlrun.a -lcurses -lpthread
:info:build ld: unknown option: -no_compact_unwind
:info:build collect2: ld returned 1 exit status

Change History (9)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: tiger leopard added
Owner: changed from macports-tickets@… to mww@…
Port: ocaml added
Summary: Error building port ocaml ocaml-4.01.0 on PPC Leopard 10.5.8ocaml: ld: unknown option: -no_compact_unwind

As far as I can tell, -no_compact_unwind is only supported as of the version of ld in Snow Leopard.

I wonder if using the ld64 port instead would help. Or if the flag can be removed from ocaml that would be simpler.

comment:2 Changed 11 years ago by avysk (Alexey Vyskubov)

Cc: tascafoo@… added

Cc Me!

comment:3 Changed 11 years ago by michipili (Michael Grünewald)

Cc: michipili@… added

Cc Me!

comment:4 Changed 11 years ago by michipili (Michael Grünewald)

Cc: michipili@… removed

Cc Me!

comment:5 Changed 10 years ago by heegard@…

It would be nice to fix this. While trying to install unison on my PPC MacMini, I ran into this bug. I edited it out of the affected Makefiles and it installed fine. Had to figure this out myself. Can't we remove the -no_compact_unwind from the configure file in this case?

Thanx, -Chris

comment:6 Changed 8 years ago by mf2k (Frank Schima)

Owner: mww@… deleted
Status: newassigned

See #53012.

comment:7 Changed 7 years ago by mojca (Mojca Miklavec)

Owner: set to pmetzger

comment:8 Changed 7 years ago by pmetzger (Perry E. Metzger)

This has apparently been an issue of quite long standing.

If it builds fine without no_compact_unwind on old PPC versions of OS X, is someone willing to provide a patch that only kicks in for those versions to do this? I'm in support of that.

comment:9 Changed 7 years ago by pmetzger (Perry E. Metzger)

Resolution: invalid
Status: assignedclosed
Note: See TracTickets for help on using tickets.