Opened 15 years ago
Closed 15 years ago
#24373 closed defect (invalid)
freetype +universal cannot run C compiled x86_64 programs on 32-bit Mac
Reported by: | simon@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | ||
Port: | freetype |
Description
After upgrading from Mac OS 10.6.2 to 10.6.3, I did a clean install of MacPorts (sudo rm -rf /opt) and followed David Baumgold's directions to install wine-devel (http://davidbaumgold.com/tutorials/wine-mac/) which resulted in freetype failing to build.
David's instructions had worked fine a few days ago with 10.6.2. I thought perhaps upgrading XCode from 3.2.1 to 3.2.2 might help, but it gave the same error:
$ sudo port -d install freetype DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/print/freetype DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/freetype DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/archcheck-1.0.tcl DEBUG: universal variant already exists, so not adding the default one DEBUG: Requested variant darwin is not provided by port freetype. DEBUG: Requested variant i386 is not provided by port freetype. DEBUG: Executing variant universal provides universal DEBUG: Executing variant macosx provides macosx DEBUG: Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_freetype/work /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/freetype/work DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib DEBUG: epoch: in tree: 0 installed: 0 DEBUG: zlib 1.2.4_1 exists in the ports tree DEBUG: zlib 1.2.4_1 +universal is the latest installed DEBUG: zlib 1.2.4_1 +universal is active DEBUG: Merging existing variants universal into variants DEBUG: new fully merged portvariants: universal + DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib DEBUG: OS Platform: darwin DEBUG: OS Version: 10.3.0 DEBUG: Mac OS X Version: 10.6 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Requested variant darwin is not provided by port zlib. DEBUG: Requested variant i386 is not provided by port zlib. DEBUG: Requested variant macosx is not provided by port zlib. DEBUG: Executing variant universal provides universal DEBUG: No need to upgrade! zlib 1.2.4_1 >= zlib 1.2.4_1 ---> Computing dependencies for freetype DEBUG: Searching for dependency: zlib DEBUG: Found Dependency: receipt exists for zlib DEBUG: Executing org.macports.main (freetype) ---> Fetching freetype DEBUG: Executing org.macports.fetch (freetype) ---> Verifying checksum(s) for freetype DEBUG: Executing org.macports.checksum (freetype) ---> Checksumming freetype-2.3.12.tar.bz2 DEBUG: Correct (md5) checksum for freetype-2.3.12.tar.bz2 DEBUG: Correct (sha1) checksum for freetype-2.3.12.tar.bz2 DEBUG: Correct (rmd160) checksum for freetype-2.3.12.tar.bz2 ---> Checksumming freetype-doc-2.3.12.tar.bz2 DEBUG: Correct (md5) checksum for freetype-doc-2.3.12.tar.bz2 DEBUG: Correct (sha1) checksum for freetype-doc-2.3.12.tar.bz2 DEBUG: Correct (rmd160) checksum for freetype-doc-2.3.12.tar.bz2 DEBUG: setting option extract.cmd to /usr/bin/bzip2 ---> Extracting freetype DEBUG: Executing org.macports.extract (freetype) ---> Extracting freetype-2.3.12.tar.bz2 DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/freetype/freetype-2.3.12.tar.bz2 DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_freetype/work" && /usr/bin/bzip2 -dc /opt/local/var/macports/distfiles/freetype/freetype-2.3.12.tar.bz2 | /usr/bin/gnutar --no-same-owner -xf -' ---> Extracting freetype-doc-2.3.12.tar.bz2 DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/freetype/freetype-doc-2.3.12.tar.bz2 DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_freetype/work" && /usr/bin/bzip2 -dc /opt/local/var/macports/distfiles/freetype/freetype-doc-2.3.12.tar.bz2 | /usr/bin/gnutar --no-same-owner -xf -' DEBUG: Executing org.macports.patch (freetype) ---> Applying patches to freetype ---> Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/freetype/files/patch-detect.mk.diff DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_freetype/work/freetype-2.3.12" && /usr/bin/patch -p0' patching file builds/unix/detect.mk ---> Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/freetype/files/patch-src_base_ftrfork.c.diff DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_freetype/work/freetype-2.3.12" && /usr/bin/patch -p0' patching file src/base/ftrfork.c ---> Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/freetype/files/patch-modules.cfg.diff DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_freetype/work/freetype-2.3.12" && /usr/bin/patch -p0' patching file modules.cfg ---> Configuring freetype DEBUG: Using compiler 'Mac OS X gcc 4.2' DEBUG: Executing proc-pre-org.macports.configure-configure-0 DEBUG: Executing org.macports.configure (freetype) ---> Configuring freetype for architecture x86_64 DEBUG: Environment: CFLAGS='-O2 -arch x86_64' CPPFLAGS='-isystem/opt/local/include' CXXFLAGS='-O2 -arch x86_64' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' F90FLAGS='-O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch x86_64' FFLAGS='-O2 -m64' CC='/usr/bin/gcc-4.2' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_freetype/work/freetype-2.3.12-x86_64" && ./configure --prefix=/opt/local --disable-dependency-tracking --disable-dependency-tracking ' FreeType build system -- automatic system detection The following settings are used: platform unix compiler /usr/bin/gcc-4.2 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). Generating modules list in ./objs/ftmodule.h... * module: truetype (Windows/Mac font files with extension *.ttf or *.ttc) * module: type1 (Postscript font files with extension *.pfa or *.pfb) * module: cff (OpenType fonts with extension *.otf) * module: cid (Postscript CID-keyed fonts, no known extension) * module: pfr (PFR/TrueDoc font files with extension *.pfr) * module: type42 (Type 42 font files with no known extension) * module: winfnt (Windows bitmap fonts with extension *.fnt or *.fon) * module: pcf (pcf bitmap fonts) * module: bdf (bdf bitmap fonts) * module: sfnt (helper module for TrueType & OpenType formats) * module: autofit (automatic hinting module) * module: pshinter (Postscript hinter module) * module: raster (monochrome bitmap renderer) * module: smooth (anti-aliased bitmap renderer) * module: smooth (anti-aliased bitmap renderer for LCDs) * module: smooth (anti-aliased bitmap renderer for vertical LCDs) * module: otvalid (OpenType validation module) * module: psaux (Postscript Type 1 & Type 2 helper module) * module: psnames (Postscript & Unicode Glyph name handling) done. cd builds/unix; ./configure '--prefix=/opt/local' '--disable-dependency-tracking' '--disable-dependency-tracking' configure: WARNING: unrecognized options: --disable-dependency-tracking, --disable-dependency-tracking checking build system type... i386-apple-darwin10.3.0 checking host system type... i386-apple-darwin10.3.0 checking for gcc... /usr/bin/gcc-4.2 checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_freetype/work/freetype-2.3.12-x86_64/builds/unix': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make: *** [setup] Error 1 Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_freetype/work/freetype-2.3.12-x86_64" && ./configure --prefix=/opt/local --disable-dependency-tracking --disable-dependency-tracking " returned error 2 DEBUG: Backtrace: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_freetype/work/freetype-2.3.12-x86_64" && ./configure --prefix=/opt/local --disable-dependency-tracking --disable-dependency-tracking " returned error 2 while executing "$procedure $targetname" Warning: the following items did not execute (for freetype): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
Change History (4)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Keywords: | freetype universal removed |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
comment:2 follow-up: 3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | freetype-2.3.12 +universal Configure error - build failure → freetype +universal cannot run C compiled x86_64 programs |
---|
It looks like it could not run a compiled x86_64 executable. Do you have a 64-bit Mac? I'm guessing not, in which case, don't use the +universal variant.
comment:3 Changed 15 years ago by simon@…
Replying to ryandesign@…:
It looks like it could not run a compiled x86_64 executable. Do you have a 64-bit Mac? I'm guessing not, in which case, don't use the +universal variant.
You're right, this is a 32-bit Mac. Turning off +universal resulted in freetype compiling just fine. Thanks.
comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Summary: | freetype +universal cannot run C compiled x86_64 programs → freetype +universal cannot run C compiled x86_64 programs on 32-bit Mac |
Great, glad you got it working.
Please remember to cc the maintainer.