[MacPorts] #64260: gcc7: cannot create executables for ppc64

MacPorts noreply at macports.org
Sat Dec 25 16:38:51 UTC 2021


#64260: gcc7: cannot create executables for ppc64
---------------------------+-------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  PowerPC, Leopard, ppc64
      Port:  gcc7          |
---------------------------+-------------------------------------

Comment (by barracuda156):

 Replying to [comment:7 kencu]:
 > first thing I would do is build gcc7 in an isolated way outside
 macports, with the default multilib left enabled, and see if it is broken
 building 64 bit then.
 >
 > If it is, complain to gcc.
 >
 > If that one works, then it's a macports issue of some kind...

 I will try that. In the meanwhile I have built gcc6 with Macports (no
 custom patches), and it fails for ppc64 alike:


 {{{
 36-225:~ svacchanda$ cd /Users/svacchanda/Dev
 36-225:Dev svacchanda$ gcc-mp-6 -arch ppc64 HelloWorld.c -o HelloWorld
 HelloWorld.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
  main() {
  ^~~~
 36-225:Dev svacchanda$ /Users/svacchanda/Dev/HelloWorld
 Segmentation fault
 36-225:Dev svacchanda$ file /Users/svacchanda/Dev/HelloWorld
 /Users/svacchanda/Dev/HelloWorld: Mach-O 64-bit executable ppc64
 36-225:Dev svacchanda$ gcc-mp-6 -arch ppc HelloWorld.c -o HelloWorld
 HelloWorld.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
  main() {
  ^~~~
 36-225:Dev svacchanda$ /Users/svacchanda/Dev/HelloWorld
 hello, world
 36-225:Dev svacchanda$

 }}}

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


More information about the macports-tickets mailing list