Opened 3 years ago

Closed 2 years ago

#64980 closed defect (fixed)

python38 @3.8.13 does not build on PPC Tiger, Mac OS X 10.4.11, because: No such file or directory: '/opt/local/include/copyfile.h'

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: tiger Cc: evanmiller (Evan Miller)
Port: python38

Description

/opt/local/bin/gcc-apple-4.2 -c  -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc   -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration  -I./Include/internal  -I. -I./Include -I/opt/local/include   -DPy_BUILD_CORE -o Modules/_math.o Modules/_math.c
DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_python38/python38/work/Python-3.8.13 CC='/opt/local/bin/gcc-apple-4.2' LDSHARED='/opt/local/bin/gcc-apple-4.2 -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc   ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall'  _TCLTK_INCLUDES='' _TCLTK_LIBS=''  ./python -E ./setup.py --no-user-cfg  build
running build
running build_ext
error: [Errno 2] No such file or directory: '/opt/local/include/copyfile.h'
make: *** [sharedmods] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_python38/python38/work/Python-3.8.13'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_python38/python38/work/Python-3.8.13" && /usr/bin/make -j1 -w all 
Exit code: 2
Error: Failed to build python38: command execution failed
DEBUG: Error code: CHILDSTATUS 13767 2

Attachments (1)

main.log (126.1 KB) - added by ballapete (Peter "Pete" Dyballa) 3 years ago.
Main.log from PPC Tiger

Download all attachments as: .zip

Change History (7)

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

Attachment: main.log added

Main.log from PPC Tiger

comment:2 Changed 3 years ago by evanmiller (Evan Miller)

Cc: evanmiller added

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

The real problem is that I removed the source of a symbolic link

lrwxr-xr-x 1 root admin 112 10. Nov 2018  /opt/local/include/copyfile.h -> /opt/local/var/macports/sources/lil.fr.rsync.macports.org/release/tarballs/ports/net/rsync-lart/files/copyfile.h

It seems to be part of rsync-lart which is not installed since many years. Anyway, it does not install copyfile.h and neither provides legacy-support this file:

pete 276 /\ port contents legacy-support
Port legacy-support contains:
  /opt/local/bin/which
  /opt/local/include/LegacySupport/Availability.h
  /opt/local/include/LegacySupport/AvailabilityInternal.h
  /opt/local/include/LegacySupport/MacportsLegacySupport.h
  /opt/local/include/LegacySupport/MacportsLegacyWrappers/sysconf_support.h
  /opt/local/include/LegacySupport/MacportsLegacyWrappers/wrapper_macros.h
  /opt/local/include/LegacySupport/OpenGL/gliDispatch.h
  /opt/local/include/LegacySupport/TargetConditionals.h
  /opt/local/include/LegacySupport/cmath
  /opt/local/include/LegacySupport/dirent.h
  /opt/local/include/LegacySupport/math.h
  /opt/local/include/LegacySupport/net/if.h
  /opt/local/include/LegacySupport/netdb.h
  /opt/local/include/LegacySupport/pthread.h
  /opt/local/include/LegacySupport/pthread_impl.h
  /opt/local/include/LegacySupport/stdio.h
  /opt/local/include/LegacySupport/stdlib.h
  /opt/local/include/LegacySupport/string.h
  /opt/local/include/LegacySupport/strings.h
  /opt/local/include/LegacySupport/sys/aio.h
  /opt/local/include/LegacySupport/sys/fcntl.h
  /opt/local/include/LegacySupport/sys/fsgetpath.h
  /opt/local/include/LegacySupport/sys/mman.h
  /opt/local/include/LegacySupport/sys/queue.h
  /opt/local/include/LegacySupport/sys/random.h
  /opt/local/include/LegacySupport/sys/spawn.h
  /opt/local/include/LegacySupport/sys/stat.h
  /opt/local/include/LegacySupport/sys/time.h
  /opt/local/include/LegacySupport/sys/unistd.h
  /opt/local/include/LegacySupport/time.h
  /opt/local/include/LegacySupport/unistd.h
  /opt/local/include/LegacySupport/wchar.h
  /opt/local/include/LegacySupport/xlocale/_wchar.h
  /opt/local/lib/libMacportsLegacySupport.a
  /opt/local/lib/libMacportsLegacySupport.dylib
  /opt/local/lib/libMacportsLegacySystem.B.dylib

comment:4 in reply to:  3 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

This is true on (PPC) Tiger, Mac OS X 10.4.11.

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

I added copyfile.h to legacysupport more than six months ago.

https://github.com/macports/macports-legacy-support/blob/master/tiger_only/include/copyfile.h

but I guess you are waiting for the new release of legacysupport, which has a PR already waiting

https://github.com/macports/macports-ports/pull/14587

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

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

Resolution: fixed
Status: newclosed

python38 installs on Tiger PPC now without intervention:

$ port -v installed python38
The following ports are currently installed:
  python38 @3.8.15_0 (active) requested_variants='' platform='darwin 8' archs='ppc' date='2022-12-05T16:19:18-0800'
Note: See TracTickets for help on using tickets.