[MacPorts] #53471: Failed to build qhull

MacPorts noreply at macports.org
Sat Feb 4 22:30:23 UTC 2017


#53471: Failed to build qhull
---------------------+----------------------
  Reporter:  gchinn  |      Owner:  mamoll
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.0
Resolution:          |   Keywords:  powerpc
      Port:  qhull   |
---------------------+----------------------

Comment (by kencu):

 >ld: half word text relocs not supported in _main for architecture ppc

 this is another common error on PPC. the solution is usually to use a flag
 that my memory tells me is  `-no-text-relocs`. You'll need to google that
 a bit to make sure that I have it exactly correct. Also, you need to see
 where to add it -- in cflags, cxxflags, or ldflags -- or several or all of
 those.

 making things work on 10.5 PPC is without doubt sometimes a bit of a
 project, but you have found the two most common simple errors to fix, I
 think.

 This page: [wiki:UsingTheRightCompiler] will give you a list of the
 available compilers for macports. After that, it's a matter of some trial
 and error.

 I see in the qhull portfile
 {{{
 bbedit `port file qhull`
 }}}
 that all gcc compilers <4.7 have been blacklisted, and a bunch of clangs
 as well. So there's a clue that you'll need at a minimum gcc-4.7.

 for a start, I'd try something like gcc 4.7 or 4.8
 {{{
 sudo port install qhull configure.compiler=macports-gcc-4.7
 }}}
 and see what happens.

 At the moment, there are problems building some versions of gcc due to
 textinfo incompatibilities (there are workarounds on trac). If you go past
 gcc-4.7 then you might run into libstdc++ incompatability (long
 discussions on trac or on the mailing list).

 So you see, in the end, to use 10.5 PPC with the current modern software
 will usually take a bit of work, and also some time, and some more-than-
 basic macports knowledge. But it's rewarding, and if you succeed, please
 share your knowledge so that others may benefit.

--
Ticket URL: <https://trac.macports.org/ticket/53471#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list