Opened 18 years ago

Closed 18 years ago

#7499 closed defect (fixed)

freetype port fails to install/upgrade

Reported by: opendarwin@… Owned by: yves@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

Currently installed: freetype @2.1.9_1 (active)

sudo port upgrade freetype fails similarly to build below:

sudo port -d build freetype Password: DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/print/freetype DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/print/freetype DEBUG: Requested variant powerpc is not provided by port freetype. DEBUG: Requested variant darwin is not provided by port freetype. DEBUG: Requested variant macosx is not provided by port freetype. DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib DEBUG: Searching for dependency: zlib DEBUG: Found Dependency: receipt exists for zlib DEBUG: Skipping completed com.apple.main (freetype) DEBUG: Skipping completed com.apple.fetch (freetype) DEBUG: Skipping completed com.apple.checksum (freetype) DEBUG: setting option extract.cmd to /opt/local/bin/bzip2 DEBUG: Skipping completed com.apple.extract (freetype) DEBUG: Skipping completed com.apple.patch (freetype) DEBUG: Skipping completed com.apple.configure (freetype) ---> Building freetype with target all DEBUG: Executing com.apple.build (freetype) DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_print_freetype/work/freetype-2.1.10" && make all' config.mk:25: /unix-def.mk: No such file or directory config.mk:26: /unix-cc.mk: No such file or directory make: * No rule to make target `/unix-cc.mk'. Stop. Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_print_freetype/work/freetype-2.1.10" && make all" returned error 2 Command output: config.mk:25: /unix-def.mk: No such file or directory config.mk:26: /unix-cc.mk: No such file or directory make: * No rule to make target `/unix-cc.mk'. Stop.

Warning: the following items did not execute (for freetype): com.apple.build Error: /opt/local/bin/port: Status 1 encountered during processing.

Attachments (1)

freetype.zip (34.9 KB) - added by opendarwin@… 18 years ago.
zip of output of make all

Download all attachments as: .zip

Change History (14)

comment:1 Changed 18 years ago by blb@…

Owner: changed from darwinports-bugs@… to yves@…

Assigning to maintainer.

comment:2 Changed 18 years ago by yves@…

Status: newassigned

comment:3 Changed 18 years ago by yves@…

Can you please do

sudo port clean freetype sudo port -d build freetype

and post the output ?

comment:4 Changed 18 years ago by opendarwin@…

JSF-Mac:~ jasonsf$ sudo port clean freetype Password: ---> Cleaning freetype JSF-Mac:~ jasonsf$ sudo port -d build freetype DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/print/freetype DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/print/freetype DEBUG: Requested variant powerpc is not provided by port freetype. DEBUG: Requested variant darwin is not provided by port freetype. DEBUG: Requested variant macosx is not provided by port freetype. DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib DEBUG: Searching for dependency: zlib DEBUG: Found Dependency: receipt exists for zlib DEBUG: Executing com.apple.main (freetype) ---> Fetching freetype DEBUG: Executing com.apple.fetch (freetype) ---> Verifying checksum(s) for freetype DEBUG: Executing com.apple.checksum (freetype) ---> Checksumming freetype-2.1.10.tar.bz2 DEBUG: Correct (md5) checksum for freetype-2.1.10.tar.bz2 DEBUG: setting option extract.cmd to /opt/local/bin/bzip2 ---> Extracting freetype DEBUG: Executing com.apple.extract (freetype) ---> Extracting freetype-2.1.10.tar.bz2 DEBUG: setting option extract.args to /opt/local/var/db/dports/distfiles/freetype/freetype-2.1.10.tar.bz2 DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dpor ts_print_freetype/work" && /opt/local/bin/bzip2 -dc /opt/local/var/db/dports/distfiles/freetype/freetype-2.1.10.tar.bz2 | /usr/bin/gnuta r --no-same-owner -xf -' DEBUG: Executing com.apple.patch (freetype) ---> Applying patches to freetype ---> Applying /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/print/freetype/files/patch-ftconfig.h DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dpor ts_print_freetype/work/freetype-2.1.10" && patch -p0' patching file include/freetype/config/ftconfig.h Hunk #1 succeeded at 124 (offset 3 lines). ---> Configuring freetype DEBUG: Executing com.apple.configure (freetype) DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dpor ts_print_freetype/work/freetype-2.1.10" && CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure --prefix=/opt/local -- with-zlib=/opt/local' ./builds/unix/configure --prefix=/opt/local --with-zlib=/opt/local checking build system type... powerpc-apple-darwin8.5.0 checking host system type... powerpc-apple-darwin8.5.0 checking target system type... powerpc-apple-darwin8.5.0 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for rm... rm -f checking for rmdir... rmdir checking for a BSD-compatible install... /usr/bin/install -c checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for working mmap... yes checking whether munmap is declared... yes checking for munmap's first parameter type... void * checking for memcpy... yes checking for memmove... yes checking for gzsetparams in -lz... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for a sed that does not truncate output... /usr/bin/sed checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 196608 checking command to parse /usr/bin/nm -p output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fno-common checking if gcc PIC flag -fno-common works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin8.5.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin8.5.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool configure: creating ./config.status config.status: creating unix-cc.mk config.status: creating unix-def.mk config.status: creating freetype-config config.status: creating freetype2.pc config.status: creating ftconfig.h

FreeType build system -- automatic system detection

The following settings are used:

platform unix compiler cc configuration directory ./builds/unix configuration rules ./builds/unix/unix.mk

If this does not correspond to your system or settings please remove the file `config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type `make' again to build the library, or `make refdoc' to build the API reference (the latter needs python).

make: Nothing to be done for `unix'. ---> Building freetype with target all DEBUG: Executing com.apple.build (freetype) DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dpor ts_print_freetype/work/freetype-2.1.10" && make all' config.mk:25: /unix-def.mk: No such file or directory config.mk:26: /unix-cc.mk: No such file or directory make: * No rule to make target `/unix-cc.mk'. Stop. Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.d arwinports.org_dpupdate_dports_print_freetype/work/freetype-2.1.10" && make all" returned error 2 Command output: config.mk:25: /unix-def.mk: No such file or directory config.mk:26: /unix-cc.mk: No such file or directory make: * No rule to make target `/unix-cc.mk'. Stop.

Warning: the following items did not execute (for freetype): com.apple.build Error: /opt/local/bin/port: Status 1 encountered during processing.

comment:5 Changed 18 years ago by yves@…

this is kind of weird, what does "make --version" gives ?

comment:6 Changed 18 years ago by opendarwin@…

JSF-Mac:~ jasonsf$ make --version GNU Make 3.80 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

comment:7 Changed 18 years ago by yves@…

Well, then, I really don't get it.

If you want to get through the dirty way, try fiddling with config.mk in

/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_print_freetype/work/freetype-2.1.10

replace

have_mk := $(strip $(wildcard $(BUILD_DIR)/unix-def.mk)) ifneq ($(have_mk),)

include $(BUILD_DIR)/unix-def.mk include $(BUILD_DIR)/unix-cc.mk

else

# we are building FT2 not in the src tree include $(OBJ_DIR)/unix-def.mk include $(OBJ_DIR)/unix-cc.mk

endif

with

include $(BUILD_DIR)/unix-def.mk include $(BUILD_DIR)/unix-cc.mk

if that still does not work, replace

BUILD_DIR := $(TOP_DIR)/builds/unix

with

BUILD_DIR := ./builds/unix

please tell me about the results

comment:8 Changed 18 years ago by opendarwin@…

After removing "IF" statement:

sudo port -d build freetype DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/print/freetype DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/print/freetype DEBUG: Requested variant powerpc is not provided by port freetype. DEBUG: Requested variant darwin is not provided by port freetype. DEBUG: Requested variant macosx is not provided by port freetype. DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib DEBUG: Searching for dependency: zlib DEBUG: Found Dependency: receipt exists for zlib DEBUG: Skipping completed com.apple.main (freetype) DEBUG: Skipping completed com.apple.fetch (freetype) DEBUG: Skipping completed com.apple.checksum (freetype) DEBUG: setting option extract.cmd to /opt/local/bin/bzip2 DEBUG: Skipping completed com.apple.extract (freetype) DEBUG: Skipping completed com.apple.patch (freetype) DEBUG: Skipping completed com.apple.configure (freetype) ---> Building freetype with target all DEBUG: Executing com.apple.build (freetype) DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dpor ts_print_freetype/work/freetype-2.1.10" && make all' config.mk:20: builds/unix/unix-def.mk: No such file or directory config.mk:21: builds/unix/unix-cc.mk: No such file or directory make: * No rule to make target `builds/unix/unix-cc.mk'. Stop. Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.d arwinports.org_dpupdate_dports_print_freetype/work/freetype-2.1.10" && make all" returned error 2 Command output: config.mk:20: builds/unix/unix-def.mk: No such file or directory config.mk:21: builds/unix/unix-cc.mk: No such file or directory make: * No rule to make target `builds/unix/unix-cc.mk'. Stop.

Warning: the following items did not execute (for freetype): com.apple.build Error: /opt/local/bin/port: Status 1 encountered during processing.

After editing BUILD_DIR:

sudo port -d build freetype DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/print/freetype DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/print/freetype DEBUG: Requested variant powerpc is not provided by port freetype. DEBUG: Requested variant darwin is not provided by port freetype. DEBUG: Requested variant macosx is not provided by port freetype. DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/archivers/zlib DEBUG: Searching for dependency: zlib DEBUG: Found Dependency: receipt exists for zlib DEBUG: Skipping completed com.apple.main (freetype) DEBUG: Skipping completed com.apple.fetch (freetype) DEBUG: Skipping completed com.apple.checksum (freetype) DEBUG: setting option extract.cmd to /opt/local/bin/bzip2 DEBUG: Skipping completed com.apple.extract (freetype) DEBUG: Skipping completed com.apple.patch (freetype) DEBUG: Skipping completed com.apple.configure (freetype) ---> Building freetype with target all DEBUG: Executing com.apple.build (freetype) DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dpor ts_print_freetype/work/freetype-2.1.10" && make all' config.mk:20: builds/unix/unix-def.mk: No such file or directory config.mk:21: builds/unix/unix-cc.mk: No such file or directory make: * No rule to make target `builds/unix/unix-cc.mk'. Stop. Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.d arwinports.org_dpupdate_dports_print_freetype/work/freetype-2.1.10" && make all" returned error 2 Command output: config.mk:20: builds/unix/unix-def.mk: No such file or directory config.mk:21: builds/unix/unix-cc.mk: No such file or directory make: * No rule to make target `builds/unix/unix-cc.mk'. Stop.

Warning: the following items did not execute (for freetype): com.apple.build Error: /opt/local/bin/port: Status 1 encountered during processing.

Here is the contents of my ./build/unix folder:

-rw-r--r-- 1 root admin 219293 Jun 8 2005 aclocal.m4 -rwxr-xr-x 1 root admin 44251 Jun 8 2005 config.guess -rwxr-xr-x 1 root admin 31552 Jun 8 2005 config.sub -rwxr-xr-x 1 root admin 731990 Jun 8 2005 configure -rw-r--r-- 1 root admin 4034 Jun 4 2005 configure.ac -rw-r--r-- 1 root admin 2501 Apr 13 2004 detect.mk -rw-r--r-- 1 root admin 3695 Jun 4 2005 freetype-config.in -rw-r--r-- 1 root admin 263 Jun 1 2003 freetype2.in -rw-r--r-- 1 root admin 6049 Jun 4 2005 freetype2.m4 -rw-r--r-- 1 root admin 872 Jun 4 2005 ft-munmap.m4 -rw-r--r-- 1 root admin 3890 Nov 9 2003 ft2unix.h -rw-r--r-- 1 root admin 11850 Apr 16 2004 ftconfig.in -rw-r--r-- 1 root admin 14254 Dec 28 2004 ftsystem.c -rwxr-xr-x 1 root admin 9233 Feb 8 2005 install-sh -rw-r--r-- 1 root admin 4041 Dec 6 2004 install.mk -rw-r--r-- 1 root admin 185918 Jun 8 2005 ltmain.sh -rwxr-xr-x 1 root admin 3423 Feb 8 2005 mkinstalldirs -rw-r--r-- 1 root admin 2250 Nov 9 2003 unix-cc.in -rw-r--r-- 1 root admin 2549 Apr 13 2004 unix-def.in -rw-r--r-- 1 root admin 688 Jun 8 2003 unix-dev.mk -rw-r--r-- 1 root admin 652 Jun 8 2003 unix-lcc.mk -rw-r--r-- 1 root admin 1619 Apr 13 2004 unix.mk -rw-r--r-- 1 root admin 1144 Jun 8 2003 unixddef.mk

comment:9 Changed 18 years ago by yves@…

That's exaxctly what I thought ... I really don't get it :-\

you can try to do

cd /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_print_freetype/work/freetype-2.1.10 sudo make -d all

or

sudo make --debug all

And you are in for a very fun ride ! You can post the output, I'll have a look at it, but it is a rather rough process and I cn't promise anything

Changed 18 years ago by opendarwin@…

Attachment: freetype.zip added

zip of output of make all

comment:10 Changed 18 years ago by opendarwin@…

No luck. Pretty much the same error. I added the output as an attachment.

comment:11 Changed 18 years ago by troy@…

I've had this problem on my box with every version of freetype i've tried, wherever i've found it packaged (with fink, now with ports, with other packages as well) and I have no idea what causes it either.

I do have a workaround though:

after the first 'port install freetype' breaks:

cd to /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_print_freetype/work/freetype-2.1.10/builds/unix

(careful with that path, it's the build dir plus "builds/unix", where you should see a "configure" script)

./configure

(which should create a makefile two levels up) cd ../.. make

then it's ready for install, try 'port install freetype' again.

And this darwinports thing rocks. It flagged all kinds of other freetype install files that were hanging around (and now I wonder if that was perhaps the problem), like

Error: Target com.apple.activate returned: Image error: /usr/local/bin/freetype-config already exists and does not belong to a registered port. Unable to activate port freetype.

That's some tasty engineering.

comment:12 Changed 18 years ago by opendarwin@…

Troy's workaround worked. Thanks!

comment:13 Changed 18 years ago by yves@…

Resolution: fixed
Status: assignedclosed

thanks for chiming in !

Note: See TracTickets for help on using tickets.