Opened 5 years ago

Closed 5 years ago

#59642 closed defect (worksforme)

Failed to build p5.28-font-freetype

Reported by: alesae77 Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: p5-font-freetype

Description (last modified by jmroot (Joshua Root))

Hi,

I failed to install auto-multiple-choice because of the dependency with p5.28-font-freetype. When I try to build p5.28-font-freetype is get the following error:

version:1
:debug:sysinfo macOS 10.15 (darwin/19.0.0) arch i386
:debug:sysinfo MacPorts 2.6.2
:debug:sysinfo Xcode 11.2
:debug:sysinfo SDK 10.15
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.15
:debug:main Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/perl/p5-font-freetype/work
:debug:main dropping privileges: euid changed to 503, egid changed to 501.
:debug:main Executing org.macports.main (p5.28-font-freetype)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Fri Nov  8 10:00:05 CET 2019
:msg:archivefetch --->  Fetching archive for p5.28-font-freetype
:debug:archivefetch Executing org.macports.archivefetch (p5.28-font-freetype)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 503/501
:info:archivefetch --->  p5.28-font-freetype-0.130.0_0.darwin_19.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch p5.28-font-freetype-0.130.0_0.darwin_19.x86_64.tbz2 from http://fco.it.packages.macports.org/mirrors/macports-packages/p5.28-font-freetype
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch p5.28-font-freetype-0.130.0_0.darwin_19.x86_64.tbz2 from http://lil.fr.packages.macports.org/p5.28-font-freetype
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch p5.28-font-freetype-0.130.0_0.darwin_19.x86_64.tbz2 from http://nue.de.packages.macports.org/p5.28-font-freetype
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Fri Nov  8 10:00:07 CET 2019
:notice:fetch --->  Fetching distfiles for p5.28-font-freetype
:debug:fetch Executing org.macports.fetch (p5.28-font-freetype)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Fri Nov  8 10:00:07 CET 2019
:notice:checksum --->  Verifying checksums for p5.28-font-freetype
:debug:checksum Executing org.macports.checksum (p5.28-font-freetype)
:info:checksum --->  Checksumming Font-FreeType-0.13.tar.gz
:debug:checksum Calculated (rmd160) is c055cd173b29fbf7db61a7fbd88b8e9fcd7ff460
:debug:checksum Correct (rmd160) checksum for Font-FreeType-0.13.tar.gz
:debug:checksum Calculated (sha256) is 27878820fd88d97d634031151868cf9fa2e5426ce4c3de84db8af772511ee7d2
:debug:checksum Correct (sha256) checksum for Font-FreeType-0.13.tar.gz
:debug:checksum Calculated (size) is 238686
:debug:checksum Correct (size) checksum for Font-FreeType-0.13.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Fri Nov  8 10:00:07 CET 2019
:notice:extract --->  Extracting p5.28-font-freetype
:debug:extract Executing org.macports.extract (p5.28-font-freetype)
:info:extract --->  Extracting Font-FreeType-0.13.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/perl5/Font-FreeType-0.13.tar.gz'
:debug:extract Environment: 
:debug:extract CC_PRINT_OPTIONS='YES'
:debug:extract CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/.CC_PRINT_OPTIONS'
:debug:extract CPATH='/opt/local/include'
:debug:extract DEVELOPER_DIR='/Applications/Xcode.app/Contents/Developer'
:debug:extract LIBRARY_PATH='/opt/local/lib'
:debug:extract MACOSX_DEPLOYMENT_TARGET='10.15'
:debug:extract SDKROOT='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk'
:info:extract Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/perl5/Font-FreeType-0.13.tar.gz' | /usr/bin/tar -xf - 
:debug:extract system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/perl5/Font-FreeType-0.13.tar.gz' | /usr/bin/tar -xf - 
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work to macports
:debug:extract euid/egid changed to: 503/501
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Fri Nov  8 10:00:07 CET 2019
:debug:patch Executing org.macports.patch (p5.28-font-freetype)
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Fri Nov  8 10:00:07 CET 2019
:notice:configure --->  Configuring p5.28-font-freetype
:debug:configure Preferred compilers: clang macports-clang-9.0 macports-clang-8.0 macports-clang-7.0 macports-clang-6.0 macports-clang-5.0
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (p5.28-font-freetype)
:debug:configure Environment: 
:debug:configure CC='/usr/bin/clang'
:debug:configure CC_PRINT_OPTIONS='YES'
:debug:configure CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/.CC_PRINT_OPTIONS'
:debug:configure CFLAGS='-pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -arch x86_64'
:debug:configure CPATH='/opt/local/include'
:debug:configure CPPFLAGS='-I/opt/local/include -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk'
:debug:configure CXX='/usr/bin/clang++'
:debug:configure CXXFLAGS='-pipe -Os -stdlib=libc++ -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -arch x86_64'
:debug:configure DEVELOPER_DIR='/Applications/Xcode.app/Contents/Developer'
:debug:configure F90FLAGS='-pipe -Os -m64'
:debug:configure FCFLAGS='-pipe -Os -m64'
:debug:configure FFLAGS='-pipe -Os -m64'
:debug:configure INSTALL='/usr/bin/install -c'
:debug:configure LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -arch x86_64'
:debug:configure LIBRARY_PATH='/opt/local/lib'
:debug:configure MACOSX_DEPLOYMENT_TARGET='10.15'
:debug:configure OBJC='/usr/bin/clang'
:debug:configure OBJCFLAGS='-pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -arch x86_64'
:debug:configure OBJCXX='/usr/bin/clang++'
:debug:configure OBJCXXFLAGS='-pipe -Os -stdlib=libc++ -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -arch x86_64'
:debug:configure PERL_AUTOINSTALL='--skipdeps'
:debug:configure SDKROOT='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk'
:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/Font-FreeType-0.13" && /opt/local/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/Font-FreeType-0.13" && /opt/local/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" 
:info:configure Build config: default
:info:configure Build flag LIB: -lfreetype
:info:configure Build flag INC: -I/usr/include/freetype2
:info:configure Can't link/include C library 'ft2build.h', 'freetype', aborting.
:debug:configure Executing proc-post-org.macports.configure-configure-0
:debug:configure Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Fri Nov  8 10:00:08 CET 2019
:notice:build --->  Building p5.28-font-freetype
:debug:build Executing org.macports.build (p5.28-font-freetype)
:debug:build Environment: 
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/.CC_PRINT_OPTIONS'
:debug:build CPATH='/opt/local/include'
:debug:build DEVELOPER_DIR='/Applications/Xcode.app/Contents/Developer'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='10.15'
:debug:build SDKROOT='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/Font-FreeType-0.13" && /usr/bin/make -j8 -w all 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/Font-FreeType-0.13" && /usr/bin/make -j8 -w all 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/Font-FreeType-0.13'
:info:build make: *** No rule to make target `all'.  Stop.
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/Font-FreeType-0.13'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/Font-FreeType-0.13" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build Failed to build p5.28-font-freetype: command execution failed
:debug:build Error code: CHILDSTATUS 81345 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/main.log for details.

Any help?

Best, Alessandro

Attachments (1)

main.log (35.3 KB) - added by dbevans (David B. Evans) 5 years ago.
Successful Catalina build

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 years ago by alesae77

Description: modified (diff)

comment:2 Changed 5 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: set to dbevans
Port: p5-font-freetype added
Status: newassigned

In future, please use the "Attach file" button instead of pasting lengthy output directly.

It looks like you don't have the Command Line Tools installed. If that's the case, please install them as per https://www.macports.org/install.php#requirements.

comment:3 Changed 5 years ago by dbevans (David B. Evans)

Status: assignedaccepted

Build works fine for me using the same Catalina build configuration. See my logfile, attached, for comparison with yours.

It does, indeed, look like you're missing the appropriate Command Line Tools. I had a similar problem when upgrading to Xcode 11.2 which was fixed by reinstalling Command Line Tools for Xcode 11.2 after the Xcode update. See https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt.

Note, however, that the first sign of trouble is in configure where your build fails to find freetype's ${prefix}/bin/freetype-config and falls back to a generic default configuration which will certainly not work. Compare your results

:debug:configure SDKROOT='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk'
:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/Font-FreeType-0.13" && /opt/local/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-font-freetype/p5.28-font-freetype/work/Font-FreeType-0.13" && /opt/local/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" 
:info:configure Build config: default
:info:configure Build flag LIB: -lfreetype
:info:configure Build flag INC: -I/usr/include/freetype2
:info:configure Can't link/include C library 'ft2build.h', 'freetype', aborting.

with mine

:debug:configure SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk'
:info:configure Executing:  cd "/opt/local/var/macports/build/_Volumes_MiniHD_opt_github.com_macports_macports-ports_perl_p5-font-freetype/p5.28-font-freetype/work/Font-FreeType-0.13" && /opt/local/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang"
:debug:configure system:  cd "/opt/local/var/macports/build/_Volumes_MiniHD_opt_github.com_macports_macports-ports_perl_p5-font-freetype/p5.28-font-freetype/work/Font-FreeType-0.13" && /opt/local/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang"
:info:configure Build config: ft_config
:info:configure Build flag LIB: -L/opt/local/lib -lfreetype
:info:configure Build flag INC: -I/opt/local/include/freetype2
:info:configure Checking if your kit is complete...
:info:configure Looks good
:info:configure Generating a Unix-style Makefile
:info:configure Writing Makefile for Font::FreeType
:info:configure Writing MYMETA.yml and MYMETA.json

Your final build error

:info:build make: *** No rule to make target `all'.  Stop.

reflects the fact that configure aborted before creating Makefile from Makefile.PL. After fixing the CLT problem, if problems persist, you might want to confirm your freetype installation using

$ port contents freetype

Hope this helps. Let us know so I can close your ticket.

Last edited 5 years ago by dbevans (David B. Evans) (previous) (diff)

Changed 5 years ago by dbevans (David B. Evans)

Attachment: main.log added

Successful Catalina build

comment:4 Changed 5 years ago by dbevans (David B. Evans)

Resolution: worksforme
Status: acceptedclosed

Since there has been no response, assuming the issue has been resolved for the reporter.

Note: See TracTickets for help on using tickets.