Opened 6 years ago

Closed 2 years ago

#57755 closed defect (fixed)

libmacho @921 does not build on PPC Mac OS X 10.4.11, Tiger, because /opt/local/bin/i686-apple-darwin8-gcc-apple-4.2.4': execvp: No such file or directory

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: tiger Cc:
Port: libmacho

Description

Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libmacho/libmacho/work/cctools-921/libmacho" && /usr/bin/make -w libmacho.a libmacho.dylib CC="/opt/local/bin/gcc-apple-4.2" RC_CFLAGS="-Os -arch i386 -arch ppc" RC_ARCHS="i386 ppc" DEPENDENT_LIBS="" RC_ProjectSourceVersion=921 INSTALL_NAME="/opt/local/lib/libmacho.1.dylib" 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libmacho/libmacho/work/cctools-921/libmacho" && /usr/bin/make -w libmacho.a libmacho.dylib CC="/opt/local/bin/gcc-apple-4.2" RC_CFLAGS="-Os -arch i386 -arch ppc" RC_ARCHS="i386 ppc" DEPENDENT_LIBS="" RC_ProjectSourceVersion=921 INSTALL_NAME="/opt/local/lib/libmacho.1.dylib" 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libmacho/libmacho/work/cctools-921/libmacho'
/opt/local/bin/gcc-apple-4.2 -Os -g -Wall -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -I. -I./../include -I.  -Os -arch i386 -arch ppc  -c -o ./arch.o arch.c
gcc-apple-4.2: error trying to exec '/opt/local/bin/i686-apple-darwin8-gcc-apple-4.2.4': execvp: No such file or directory
fatal error: lipo: can't figure out the architecture type of: /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libmacho/libmacho/work/.tmp/ccbSycbD.out
make: *** [arch.o] Error 255
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libmacho/libmacho/work/cctools-921/libmacho'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libmacho/libmacho/work/cctools-921/libmacho" && /usr/bin/make -w libmacho.a libmacho.dylib CC="/opt/local/bin/gcc-apple-4.2" RC_CFLAGS="-Os -arch i386 -arch ppc" RC_ARCHS="i386 ppc" DEPENDENT_LIBS="" RC_ProjectSourceVersion=921 INSTALL_NAME="/opt/local/lib/libmacho.1.dylib" 
Exit code: 2

Attachments (1)

main.log (9.7 KB) - added by ballapete (Peter "Pete" Dyballa) 6 years ago.
Main.log from build on PowerPC 7447A Mac OS X 10.4.11, Tiger

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from build on PowerPC 7447A Mac OS X 10.4.11, Tiger

comment:1 Changed 6 years ago by ballapete (Peter "Pete" Dyballa)

/opt/local/bin/i686-apple-darwin8-gcc-apple-4.2.4 is missing on PPC.

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Cc: jeremyhu@… removed
Owner: set to jeremyhu
Status: newassigned

comment:3 Changed 6 years ago by kencu (Ken)

I haven't been using the gpl3 version of apple-gcc42, so I guess that is why you see this and I don't.

Last edited 4 years ago by kencu (Ken) (previous) (diff)

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

Summary: libmacho @921 does not build on PPC Mac OS X 10.4.11, Tiger, because execvp is missinglibmacho @921 does not build on PPC Mac OS X 10.4.11, Tiger, because /opt/local/bin/i686-apple-darwin8-gcc-apple-4.2.4': execvp: No such file or directory

comment:5 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

When I remember correctly then libmacho was needed by libunwind. The latter seems to have finished service, is not needed anymore. The recent Portfile seems to be a mess, because libmacho cannot be built apple-gcc42 @5666.3_16+gpl3 because of such reasons with:

/usr/bin/gcc-4.0 -Os -g -Wall -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -I. -I./../include -I. -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Os -arch i386 -arch ppc  -c -o ./slot_name.o slot_name.c
make: xcrun: Command not found
static -o ./libmacho.a arch.o getsecbyname.o getsegbyname.o get_end.o swap.o hppa_swap.o i386_swap.o m68k_swap.o sparc_swap.o ppc_swap.o i860_swap.o m88k_swap.o slot_name.o
make: static: Command not found
make: [libmacho.a] Error 127 (ignored)
make: xcrun: Command not found
/usr/bin/gcc-4.0 -Os -g -Wall -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -I. -I./../include -I. -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Os -arch i386 -arch ppc  -dynamiclib  \
	-o ./libmacho.dylib arch.o getsecbyname.o getsegbyname.o get_end.o swap.o hppa_swap.o i386_swap.o m68k_swap.o sparc_swap.o ppc_swap.o i860_swap.o m88k_swap.o slot_name.o \
	-install_name /opt/local/lib/libmacho.1.dylib \
	-compatibility_version 1 \
	-current_version 949.0.1 \
	
./libmacho.dylib
make: *** [libmacho.dylib] Segmentation fault (core dumped)
make: *** Deleting file `libmacho.dylib'
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_libmacho/libmacho/work/cctools-949.0.1/libmacho'

Using apple-gcc42 @5666.3_15 to build results in the same failure. So let's forget and close this ticket? (Or should I try with apple-gcc42 @5666.3_16?)

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

Resolution: fixed
Status: assignedclosed

In 942bba32d2313fcd417df395ae11591d42a332e6/macports-ports (master):

libmacho: fix build on Tiger

closes: #57755

Note: See TracTickets for help on using tickets.