[MacPorts] #50824: nspr does not compile for ppc64

MacPorts noreply at macports.org
Sun Mar 6 11:33:02 PST 2016


#50824: nspr does not compile for ppc64
---------------------------+--------------------------------
  Reporter:  land.apfel@…  |      Owner:  macports-tickets@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.3.4
Resolution:                |   Keywords:
      Port:  nspr          |
---------------------------+--------------------------------
Description changed by ryandesign@…:

Old description:

> When installing nspr +universal (with universal_archs = ppc ppc64), the
> ppc build runs through, but the ppc64 build fails at:
>
> {{{
> make[3]: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nspr/nspr/work/nspr-4.12
> /nspr-ppc64/pr/src/io'
> ccache /usr/bin/gcc-4.2 -arch ppc -o prfdcach.o -c
> -I/opt/local/include -pipe -Os -arch ppc64 -Wall -fno-common -pthread -Os
> -fPIC  -UDEBUG -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DPACKAGE_URL=\"\" -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1
> -DHAVE_SOCKLEN_T=1 -DHAVE_CRT_EXTERNS_H=1 -DXP_MACOSX=1 -DHAVE_DLADDR=1
> -DHAVE_LCHOWN=1 -DHAVE_SETPRIORITY=1 -DHAVE_STRERROR=1 -DHAVE_SYSCALL=1
> -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_
> -I../../../dist/include/nspr -I../../../pr/include
> -I../../../pr/include/private  prfdcach.c
> In file included from ../../../pr/include/md/prosdep.h:62,
>                  from ../../../pr/include/private/primpl.h:44,
>                  from prfdcach.c:6:
> ../../../pr/include/md/_darwin.h:32:2: error: #error "Unknown CPU
> architecture"
> lipo: can't open input file:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nspr/nspr/work/.tmp/cc72DDO4.out
> (No such file or directory)
> make[3]: *** [prfdcach.o] Error 1
> }}}
>
> If I apply the attachment:patch-arch-ppc64.diff, it continues building
> but fails again with attachment:log-ppc64-build.txt
>
> Unless someone has an idea how this could be fixed, I think building for
> ppc64 should be disabled.

New description:

 When installing nspr +universal (with universal_archs = ppc ppc64), the
 ppc build runs through, but the ppc64 build fails at:

 {{{
 make[3]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nspr/nspr/work/nspr-4.12
 /nspr-ppc64/pr/src/io'
 ccache /usr/bin/gcc-4.2 -arch ppc -o prfdcach.o -c    -I/opt/local/include
 -pipe -Os -arch ppc64 -Wall -fno-common -pthread -Os -fPIC  -UDEBUG
 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
 -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"
 -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1
 -DHAVE_CRT_EXTERNS_H=1 -DXP_MACOSX=1 -DHAVE_DLADDR=1 -DHAVE_LCHOWN=1
 -DHAVE_SETPRIORITY=1 -DHAVE_STRERROR=1 -DHAVE_SYSCALL=1 -DFORCE_PR_LOG
 -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_
 -I../../../dist/include/nspr -I../../../pr/include
 -I../../../pr/include/private  prfdcach.c
 In file included from ../../../pr/include/md/prosdep.h:62,
                  from ../../../pr/include/private/primpl.h:44,
                  from prfdcach.c:6:
 ../../../pr/include/md/_darwin.h:32:2: error: #error "Unknown CPU
 architecture"
 lipo: can't open input file:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nspr/nspr/work/.tmp/cc72DDO4.out
 (No such file or directory)
 make[3]: *** [prfdcach.o] Error 1
 }}}

 If I apply the attachment:patch-arch-ppc64.diff, it continues building but
 fails again with attachment:log-ppc64-build.txt.txt

 Unless someone has an idea how this could be fixed, I think building for
 ppc64 should be disabled.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/50824#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list