Opened 2 years ago

Closed 22 months ago

#64440 closed defect (duplicate)

nspr does not support darwin ppc64

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: PowerPC, ppc64 Cc:
Port: nspr

Description

The build fails on this:

/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_POINTER_LOCALTIME_R=1 -DHAVE_CRT_EXTERNS_H=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:56,
                 from ../../../pr/include/private/primpl.h:32,
                 from prfdcach.c:6:
../../../pr/include/md/_darwin.h:32:2: error: #error "Unknown CPU architecture"
fatal error: lipo: can't open input file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nspr/nspr/work/.tmp/ccNebXAW.out (No such file or directory)
make[3]: *** [prfdcach.o] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nspr/nspr/work/nspr-4.33/nspr-ppc64/pr/src/io'
make[2]: *** [export] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nspr/nspr/work/nspr-4.33/nspr-ppc64/pr/src'
make[1]: *** [export] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nspr/nspr/work/nspr-4.33/nspr-ppc64/pr'
make: *** [export] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nspr/nspr/work/nspr-4.33/nspr-ppc64'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nspr/nspr/work/nspr-4.33/nspr-ppc64" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: Failed to build nspr: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nspr/nspr/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port nspr failed

Attachments (1)

main.log (96.9 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by barracuda156

Attachment: main.log added

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

Yup, the code in that file is:

#ifdef __i386__
#define _PR_SI_ARCHITECTURE "x86"
#elif defined(__x86_64__)
#define _PR_SI_ARCHITECTURE "x86-64"
#elif defined(__ppc__)
#define _PR_SI_ARCHITECTURE "ppc"
#elif defined(__arm__)
#define _PR_SI_ARCHITECTURE "arm"
#elif defined(__aarch64__)
#define _PR_SI_ARCHITECTURE "aarch64"
#else
#error "Unknown CPU architecture"
#endif

No ppc64 listed. If you can come up with a patch that works, you can submit it to the developers of nspr, and we can add it to MacPorts.

comment:2 Changed 2 years ago by kencu (Ken)

Keywords: Leopard removed
Summary: nspr fails to build for ppc+ppc64 on 10.5.8nspr does not support darwin ppc64

comment:3 in reply to:  1 Changed 2 years ago by barracuda156

Replying to ryandesign:

No ppc64 listed. If you can come up with a patch that works, you can submit it to the developers of nspr, and we can add it to MacPorts.

I have fixed it. Will submit a PR now.

36-111:nspr svacchanda$ port -v installed nspr
The following ports are currently installed:
  nspr @4.33_0 requested_variants='-universal' platform='darwin 9' archs='ppc' date='2022-02-13T02:38:23+0800'
  nspr @4.33_1+universal (active) requested_variants='+universal' platform='darwin 9' archs='ppc ppc64' date='2022-05-07T15:33:28+0800'

comment:4 Changed 22 months ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.