Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#37050 closed defect (invalid)

Xft2 @2.3.1 +universal build failure

Reported by: billmerkel@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: Xft2

Description (last modified by jmroot (Joshua Root))

Computer literate newbie here. Programmed back in the day from Assembly to Pascal/Fortran and early C. During "Building Xft2" I get the following in terminal:

--->  Building Xft2
Error: org.macports.build for port Xft2 returned: command execution failed
Error: Failed to install Xft2
Please see the log file for port Xft2 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_Xft2/Xft2/main.log
Error: The following dependencies were not installed: gst-plugins-base gnome-vfs gconf gtk2 pango Xft2 shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto intltool p5.12-getopt-long perl5.12 gdbm p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser orbit2 libidl policykit eggdbus gnome-mime-data gstreamer bison flex libtheora libvorbis libogg orc lcms mesa makedepend xorg-dri2proto xorg-glproto xorg-libXmu xorg-libXxf86vm xorg-xf86vidmodeproto
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port wine failed

Looking at the log file for port Xft2 using Textedit and starting where the first warning occurs:

:info:build ld: warning: ignoring file /opt/local/lib/libX11.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/local/lib/libX11.dylib
:info:build ld: warning: ignoring file /opt/local/lib/libXau.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/local/lib/libXau.dylib
:info:build ld: warning: ignoring file /opt/local/lib/libXdmcp.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/local/lib/libXdmcp.dylib
:info:build Undefined symbols for architecture i386:
:info:build   "_XAddExtension", referenced from:
:info:build       __XftDisplayInfoGet in xftdpy.o
:info:build   "_XAllocColor", referenced from:
:info:build       _XftColorAllocValue in xftcolor.o
:info:build   "_XAllocNamedColor", referenced from:
:info:build       _XftColorAllocName in xftcolor.o
:info:build   "_XCopyArea", referenced from:
:info:build       _XftGlyphCore in xftcore.o
:info:build       _XftGlyphSpecCore in xftcore.o
:info:build       _XftGlyphFontSpecCore in xftcore.o
:info:build   "_XCreateGC", referenced from:
:info:build       _XftGlyphCore in xftcore.o
:info:build       _XftGlyphSpecCore in xftcore.o
:info:build       _XftGlyphFontSpecCore in xftcore.o
:info:build       __XftDrawCorePrepare in xftdraw.o
:info:build   "_XCreatePixmap", referenced from:
:info:build       _XftGlyphCore in xftcore.o
:info:build       _XftGlyphSpecCore in xftcore.o
:info:build       _XftGlyphFontSpecCore in xftcore.o
:info:build       _XftDrawSrcPicture in xftdraw.o
:info:build   "_XCreateRegion", referenced from:
:info:build       _XftDrawSetClip in xftdraw.o
:info:build   "_XDestroyRegion", referenced from:
:info:build       _XftDrawDestroy in xftdraw.o
:info:build       _XftDrawSetClip in xftdraw.o
:info:build       _XftDrawSetClipRectangles in xftdraw.o
:info:build   "_XESetCloseDisplay", referenced from:
:info:build       __XftDisplayInfoGet in xftdpy.o
:info:build   "_XEqualRegion", referenced from:
:info:build       _XftDrawSetClip in xftdraw.o
:info:build   "_XFillRectangle", referenced from:
:info:build       _XftRectCore in xftcore.o
:info:build       __XftSharpGlyphMono in xftcore.o
:info:build       __XftSharpGlyphRgba in xftcore.o
:info:build       __XftSharpGlyphGray in xftcore.o
:info:build       _XftDrawRect in xftdraw.o
:info:build   "_XFree", referenced from:
:info:build       _XftDrawBitsPerPixel in xftdraw.o
:info:build       __XftDrawScreen in xftdraw.o
:info:build   "_XFreeColors", referenced from:
:info:build       _XftColorFree in xftcolor.o
:info:build   "_XFreeGC", referenced from:
:info:build       _XftGlyphCore in xftcore.o
:info:build       _XftGlyphSpecCore in xftcore.o
:info:build       _XftGlyphFontSpecCore in xftcore.o
:info:build       _XftDrawChange in xftdraw.o
:info:build       _XftDrawDestroy in xftdraw.o
:info:build   "_XFreePixmap", referenced from:
:info:build       _XftGlyphCore in xftcore.o
:info:build       _XftGlyphSpecCore in xftcore.o
:info:build       _XftGlyphFontSpecCore in xftcore.o
:info:build       _XftDrawSrcPicture in xftdraw.o
:info:build   "_XGetDefault", referenced from:
:info:build       __XftDefaultGet in xftdpy.o
:info:build       __XftDefaultInitInteger in xftdpy.o
:info:build   "_XGetGeometry", referenced from:
:info:build       _XftDrawDepth in xftdraw.o
:info:build       _XftDrawBitsPerPixel in xftdraw.o
:info:build       __XftDrawScreen in xftdraw.o
:info:build       __XftDrawRenderPrepare in xftdraw.o
:info:build   "_XGetImage", referenced from:
:info:build       _XftGlyphCore in xftcore.o
:info:build       _XftGlyphSpecCore in xftcore.o
:info:build       _XftGlyphFontSpecCore in xftcore.o
:info:build   "_XGetVisualInfo", referenced from:
:info:build       __XftDrawScreen in xftdraw.o
:info:build   "_XListPixmapFormats", referenced from:
:info:build       _XftDrawBitsPerPixel in xftdraw.o
:info:build   "_XPutImage", referenced from:
:info:build       _XftGlyphCore in xftcore.o
:info:build       _XftGlyphSpecCore in xftcore.o
:info:build       _XftGlyphFontSpecCore in xftcore.o
:info:build   "_XSetClipMask", referenced from:
:info:build       _XftDrawSetClip in xftdraw.o
:info:build   "_XSetClipRectangles", referenced from:
:info:build       __XftDrawCorePrepare in xftdraw.o
:info:build       _XftDrawSetClipRectangles in xftdraw.o
:info:build   "_XSetErrorHandler", referenced from:
:info:build       _XftGlyphCore in xftcore.o
:info:build       _XftGlyphSpecCore in xftcore.o
:info:build       _XftGlyphFontSpecCore in xftcore.o
:info:build   "_XSetForeground", referenced from:
:info:build       _XftRectCore in xftcore.o
:info:build       __XftDrawCorePrepare in xftdraw.o
:info:build       _XftDrawRect in xftdraw.o
:info:build   "_XSetRegion", referenced from:
:info:build       __XftDrawCorePrepare in xftdraw.o
:info:build       _XftDrawSetClip in xftdraw.o
:info:build   "_XSetSubwindowMode", referenced from:
:info:build       _XftDrawSetSubwindowMode in xftdraw.o
:info:build   "_XUnionRegion", referenced from:
:info:build       _XftDrawSetClip in xftdraw.o
:info:build ld: symbol(s) not found for architecture i386
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [libXft.la] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_Xft2/Xft2/work/libXft-2.3.1/src'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_Xft2/Xft2/work/libXft-2.3.1'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_Xft2/Xft2/work/libXft-2.3.1'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_Xft2/Xft2/work/libXft-2.3.1" && /usr/bin/make -j2 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port Xft2 returned: command execution failed
:debug:build Error code: CHILDSTATUS 90980 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for Xft2: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install Xft2
:debug:build could not read "/opt/local/share/icons/hicolor/index.theme": no such file or directory
    while executing
"::file type $file"
:notice:build Please see the log file for port Xft2 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_Xft2/Xft2/main.log

I got past an earlier crash in the build but this one has me stumped.

Attachments (1)

main.log (23.4 KB) - added by billmerkel@… 12 years ago.
Main Log attachment as requested

Download all attachments as: .zip

Change History (13)

comment:1 Changed 12 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: Xft2 removed
Owner: changed from macports-tickets@… to jeremyhu@…
Port: Xft2 added
Summary: Error: org.macports.build for port Xft2 returned: command execution failedXft2 @2.3.1 build failure

Please attach the complete main.log and show the output of these commands:

port -v installed xorg-libX11 xorg-libXau xorg-libXdmcp
lipo -info /opt/local/lib/libX11.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib

Please provide information about your system: CPU architecture, OS version, Xcode version. Are you using the universal variant?

Changed 12 years ago by billmerkel@…

Attachment: main.log added

Main Log attachment as requested

comment:2 Changed 12 years ago by billmerkel@…

Results of: port -v installed xorg-libX11 xorg-libXau xorg-libXdmcp

The following ports are currently installed:
  xorg-libX11 @1.3.3_0 (active)
  xorg-libXau @1.0.5_0 (active)
  xorg-libXdmcp @1.0.3_0 (active)

Results of: lipo -info /opt/local/lib/libX11.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib

Non-fat file: /opt/local/lib/libX11.dylib is architecture: x86_64
Non-fat file: /opt/local/lib/libXau.dylib is architecture: x86_64
Non-fat file: /opt/local/lib/libXdmcp.dylib is architecture: x86_64
Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 12 years ago by billmerkel@…

Mac OS X version 10.7.5 running on 2GHz Intel Core 2 Duo, just installed Xcode today from the App store. Had an earlier (3 years ago?) version prior. I do not know how to tell if I am using a universal variant.

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Summary: Xft2 @2.3.1 build failureXft2 @2.3.1 +universal build failure

Have you installed the current Command Line Tools in Xcode's preferences?

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

After you ensure your Command Line Tools are OK, please follow FAQ.

comment:6 Changed 12 years ago by billmerkel@…

Command Line Tools were installed in Xcode preferences before installation was attempted. Will Follow the FAQ now.

comment:7 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: invalid
Status: newclosed

It looks like you're trying to build Xft2 as i386 but its dependencies are all x86_64.

comment:8 Changed 12 years ago by billmerkel@…

How do I configure the correct dependencies?

Results of: sudo port selfupdate

--->  Updating MacPorts base sources using rsync
MacPorts base version 2.1.2 installed,
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version


The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

I did not run port upgrade outdated as that is step 3.

Results of: sudo port clean macports

--->  Cleaning MacPorts

Results of: sudo port upgrade outdated included errors as shown:

--->  Fetching archive for aquaterm
--->  Attempting to fetch aquaterm-1.1.1_0+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/aquaterm
--->  Attempting to fetch aquaterm-1.1.1_0+universal.darwin_11.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/aquaterm
--->  Attempting to fetch aquaterm-1.1.1_0+universal.darwin_11.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/aquaterm
--->  Fetching distfiles for aquaterm
--->  Attempting to fetch AquaTerm-1.1.1.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/aquaterm
--->  Verifying checksum(s) for aquaterm
--->  Extracting aquaterm
--->  Configuring aquaterm
--->  Building aquaterm
--->  Staging aquaterm into destroot
--->  Installing aquaterm @1.1.1_0+universal
--->  Cleaning aquaterm
--->  Deactivating aquaterm @1.0.1_5
--->  Activating aquaterm @1.1.1_0+universal
--->  Cleaning aquaterm
--->  Computing dependencies for gdbm
--->  Fetching archive for gdbm
--->  Attempting to fetch gdbm-1.10_2+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/gdbm
--->  Attempting to fetch gdbm-1.10_2+universal.darwin_11.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/gdbm
--->  Attempting to fetch gdbm-1.10_2+universal.darwin_11.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gdbm
--->  Fetching distfiles for gdbm
--->  Attempting to fetch gdbm-1.10.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/gdbm
--->  Verifying checksum(s) for gdbm
--->  Extracting gdbm
--->  Configuring gdbm
--->  Building gdbm
--->  Staging gdbm into destroot
--->  Installing gdbm @1.10_2+universal
--->  Activating gdbm @1.10_2+universal
--->  Cleaning gdbm
--->  Computing dependencies for perl5.12
--->  Fetching archive for perl5.12
--->  Attempting to fetch perl5.12-5.12.4_1+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/perl5.12
--->  Attempting to fetch perl5.12-5.12.4_1+universal.darwin_11.i386-x86_64.tbz2.rmd160 from http://packages.macports.org/perl5.12
--->  Installing perl5.12 @5.12.4_1+universal
--->  Activating perl5.12 @5.12.4_1+universal
--->  Cleaning perl5.12
--->  Computing dependencies for perl5
--->  Fetching archive for perl5
--->  Attempting to fetch perl5-5.12.4_0+perl5_12.darwin_11.noarch.tbz2 from http://packages.macports.org/perl5
--->  Attempting to fetch perl5-5.12.4_0+perl5_12.darwin_11.noarch.tbz2.rmd160 from http://packages.macports.org/perl5
--->  Installing perl5 @5.12.4_0+perl5_12
--->  Cleaning perl5
--->  Computing dependencies for perl5
--->  Deactivating perl5 @5.8.9_0
--->  Activating perl5 @5.12.4_0+perl5_12
Error: org.macports.activate for port perl5 returned: Image error: /opt/local/bin/a2p is being used by the active perl5.8 port.  Please deactivate this port first, or use 'port -f activate perl5' to force the activation.
Please see the log file for port perl5 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5/perl5/main.log
--->  Fetching archive for m4
--->  Attempting to fetch m4-1.4.16_0+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/m4
--->  Attempting to fetch m4-1.4.16_0+universal.darwin_11.i386-x86_64.tbz2.rmd160 from http://packages.macports.org/m4
--->  Installing m4 @1.4.16_0+universal
--->  Cleaning m4
--->  Deactivating m4 @1.4.14_0
--->  Activating m4 @1.4.16_0+universal
--->  Cleaning m4
--->  Computing dependencies for p5.12-locale-gettext
--->  Fetching archive for p5.12-locale-gettext
--->  Attempting to fetch p5.12-locale-gettext-1.50.0_7+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/p5.12-locale-gettext
--->  Attempting to fetch p5.12-locale-gettext-1.50.0_7+universal.darwin_11.i386-x86_64.tbz2.rmd160 from http://packages.macports.org/p5.12-locale-gettext
--->  Installing p5.12-locale-gettext @1.50.0_7+universal
--->  Activating p5.12-locale-gettext @1.50.0_7+universal
--->  Cleaning p5.12-locale-gettext
--->  Computing dependencies for help2man
--->  Fetching archive for help2man
--->  Attempting to fetch help2man-1.40.10_0+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/help2man
--->  Attempting to fetch help2man-1.40.10_0+universal.darwin_11.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/help2man
--->  Attempting to fetch help2man-1.40.10_0+universal.darwin_11.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/help2man
--->  Fetching distfiles for help2man
--->  Attempting to fetch help2man-1.40.10.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/help2man
--->  Verifying checksum(s) for help2man
--->  Extracting help2man
--->  Configuring help2man
--->  Building help2man
--->  Staging help2man into destroot
--->  Installing help2man @1.40.10_0+universal
--->  Cleaning help2man
--->  Computing dependencies for help2man
--->  Deactivating help2man @1.37.1_1
--->  Activating help2man @1.40.10_0+universal
--->  Cleaning help2man
--->  Computing dependencies for autoconf
--->  Dependencies to be installed: perl5
--->  Activating perl5 @5.12.4_0+perl5_12
Error: org.macports.activate for port perl5 returned: Image error: /opt/local/bin/a2p is being used by the active perl5.8 port.  Please deactivate this port first, or use 'port -f activate perl5' to force the activation.
Error: Failed to install perl5
Please see the log file for port perl5 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5/perl5/main.log
Error: The following dependencies were not installed: perl5
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

I will wait your advise regarding errors before attempt to install again.

Thank you for the assistance!

Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:9 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Please use wiki-formatting. Your comments are difficult to read because of that.

The last comment has nothing to do with the original topic, and the error message tells you what to do:

/opt/local/bin/a2p is being used by the active perl5.8 port.  Please deactivate this port first, or use 'port -f activate perl5' to force the activation.

comment:10 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Ie, you need to deactivate the perl5.8 port.

comment:11 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

I have corrected the WikiFormatting in the preceding comments.

comment:12 Changed 12 years ago by jmroot (Joshua Root)

The perl problem is covered in ProblemHotlist. It looks like you hadn't selfupdated for quite some time.

Note: See TracTickets for help on using tickets.