[MacPorts] #61732: gmp fails to compile due to nm issues on 10.5

MacPorts noreply at macports.org
Thu Dec 3 11:51:51 UTC 2020


#61732: gmp fails to compile due to nm issues on 10.5
-------------------------------+--------------------
 Reporter:  rmottola           |      Owner:  (none)
     Type:  defect             |     Status:  new
 Priority:  Normal             |  Milestone:
Component:  ports              |    Version:
 Keywords:  leopard legacy nm  |       Port:  gmp
-------------------------------+--------------------
 while compiling on 10.5 I get the error below.

 {{{
 checking for assembler local label prefix... configure: WARNING:
 "/usr/bin/nm -p" failure
 configure: WARNING: cannot determine local label, using default L
 L
 checking for assembler byte directive... .byte
 checking how to define a 32-bit word... /usr/bin/nm: object: conftest.o
 malformed object (unknown load command 1)
 /usr/bin/nm: object: conftest.o malformed object (unknown load command 1)
 }}}


 I added this part to the portfile:

 {{{
 if {${os.platform} eq "darwin" && ${os.major} < 10} {
     depends_build-append port:cctools
     configure.env-append NM=${prefix}/bin/nm
     configure.args-append lt_cv_path_NM=${prefix}/bin/nm
 }
 }}}

 And configure passes and gmp compiles !

-- 
Ticket URL: <https://trac.macports.org/ticket/61732>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list