[MacPorts] #64260: icu fails to configure for ppc64

MacPorts noreply at macports.org
Fri Dec 24 14:14:28 UTC 2021


#64260: icu fails to configure 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:  icu           |
---------------------------+-------------------------------------

Comment (by barracuda156):

 Replying to [comment:4 kencu]:
 > perhaps try building a simple "hello.c" and "hello.cxx" program with
 gcc7 as ppc64, and if they can be compiled, run them both to see if they
 work at all.
 >
 > Uncharted territory. gcc7 could be totally broken building 64bit ppc
 code on darwin...

 Hmm, doesn't look good:


 {{{
 36-225:Dev svacchanda$ gcc-mp-7 -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$ gcc-mp-7 -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 -arch ppc64 HelloWorld.c -o HelloWorld
 36-225:Dev svacchanda$ /Users/svacchanda/Dev/HelloWorld
 hello, world
 36-225:Dev svacchanda$ file /Users/svacchanda/Dev/HelloWorld
 /Users/svacchanda/Dev/HelloWorld: Mach-O 64-bit executable ppc64
 36-225:Dev svacchanda$

 }}}

 64-bit file made by Apple gcc works, while the one made by Macports gcc7
 fails.

 P. S. Basic program used:


 {{{
 #include <stdio.h>
 main() {
   printf("hello, world\n");
 }
 }}}

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


More information about the macports-tickets mailing list