Opened 8 years ago

Last modified 21 months ago

#50824 new defect

nspr does not compile for ppc64

Reported by: land.apfel@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: nspr

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Attachments (2)

patch-arch-ppc64.diff (415 bytes) - added by land.apfel@… 8 years ago.
log-ppc64-build.txt.txt (8.8 KB) - added by land.apfel@… 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by land.apfel@…

Attachment: patch-arch-ppc64.diff added

Changed 8 years ago by land.apfel@…

Attachment: log-ppc64-build.txt.txt added

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:2 in reply to:  description Changed 21 months ago by barracuda156

Replying to land.apfel@…:

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.

Fixed that, should work now.

Note: See TracTickets for help on using tickets.