Opened 12 years ago

Closed 12 years ago

#35657 closed defect (invalid)

fortune @6.2.0-RELEASE_0 build failure if port "bsdmake" not present

Reported by: lukasz@… Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: fortune

Description (last modified by neverpanic (Clemens Lang))

  1. What I was trying to do:
    sudo port install fortune
    
  2. What I expected to happen:
    $ sudo port install fortune
    --->  Computing dependencies for fortune
    --->  Building fortune
    --->  Staging fortune into destroot
    --->  Installing fortune @6.2.0-RELEASE_0
    --->  Activating fortune @6.2.0-RELEASE_0
    --->  Cleaning fortune
    --->  Updating database of binaries: 100.0%
    --->  Scanning binaries for linking errors: 100.0%
    --->  No broken files found.
    
  3. What happens instead:
    --->  Computing dependencies for fortune
    --->  Fetching archive for fortune
    --->  Attempting to fetch fortune-6.2.0-RELEASE_0.darwin_12.x86_64.tbz2 from http://macports.packages.ionic.de/fortune
    --->  Attempting to fetch fortune-6.2.0-RELEASE_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/fortune
    --->  Fetching distfiles for fortune
    --->  Verifying checksum(s) for fortune
    --->  Extracting fortune
    --->  Applying patches to fortune
    --->  Configuring fortune
    --->  Building fortune
    Error: org.macports.build for port fortune returned: command execution failed
    Please see the log file for port fortune for details:
        /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_fortune/fortune/main.log
    To report a bug, follow the instructions in the guide:
        http://guide.macports.org/#project.tickets
    Error: Processing of port fortune failed
    

Detailed log attached to this report.

  1. Is there a workaround?

Yes.

$ sudo port install bsdmake
--->  Fetching archive for bsdmake
--->  Attempting to fetch bsdmake-24_0.darwin_12.x86_64.tbz2 from http://macports.packages.ionic.de/bsdmake
--->  Attempting to fetch bsdmake-24_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/bsdmake
--->  Fetching distfiles for bsdmake
--->  Verifying checksum(s) for bsdmake
--->  Extracting bsdmake
--->  Applying patches to bsdmake
--->  Configuring bsdmake
--->  Building bsdmake
--->  Staging bsdmake into destroot
--->  Installing bsdmake @24_0
--->  Activating bsdmake @24_0
--->  Cleaning bsdmake
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

$ sudo port install fortune
--->  Computing dependencies for fortune
--->  Building fortune
--->  Staging fortune into destroot
--->  Installing fortune @6.2.0-RELEASE_0
--->  Activating fortune @6.2.0-RELEASE_0
--->  Cleaning fortune
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

Attachments (1)

main.log (17.1 KB) - added by lukasz@… 12 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_fortune/fortune/main.log

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by lukasz@…

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_fortune/fortune/main.log

comment:1 Changed 12 years ago by neverpanic (Clemens Lang)

Description: modified (diff)
Owner: changed from macports-tickets@… to cal@…
Status: newassigned

Please remember to use WikiFormatting.

Which version of OS X and Xcode do you have? Does /usr/share/mk exist? What does pkgutil --file-info /usr/bin/bsdmake print?

comment:2 Changed 12 years ago by lukasz@…

$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: OS X 10.8 (12A269)
      Kernel Version: Darwin 12.0.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: Macaroni
      User Name: Łukasz Langa (ambv)
      Secure Virtual Memory: Enabled

It has been upgraded from Lion.

$ xcodebuild -version
Xcode 4.4.1
Build version 4F1003
$ ls -l /usr/share/mk
ls: /usr/share/mk: No such file or directory

Unfortunately, there's not much info on /usr/bin/bsdmake.

$ file /usr/bin/bsdmake
/usr/bin/bsdmake: Mach-O universal binary with 2 architectures
/usr/bin/bsdmake (for architecture x86_64):	Mach-O 64-bit executable x86_64
/usr/bin/bsdmake (for architecture i386):	Mach-O executable i386
$ pkgutil --file-info /usr/bin/bsdmake
volume: /
path: /usr/bin/bsdmake
$ ls -l /usr/bin/bsdmake
-r-xr-xr-x  1 root  wheel  249216 May 16  2011 /usr/bin/bsdmake

There are a bunch of other files installed at that date, none of them specify any pkgutil info.

$ ls -l /usr/bin | grep "May 16"
-rwxr-xr-x   1 root   wheel    329840 May 16  2011 WSMakeStubs
-r-xr-xr-x   1 root   wheel    249216 May 16  2011 bsdmake
-rwxr-xr-x   1 root   wheel    113024 May 16  2011 c++-4.2
-rwxr-xr-x   1 root   wheel    113024 May 16  2011 cpp-4.2
-rwxr-xr-x   1 root   wheel    291610 May 16  2011 glibtool
-rwxr-xr-x   1 root   wheel      1086 May 16  2011 xcodeindex

/usr/bin/glibtool says this much:

$ /usr/bin/glibtool --help
...

When reporting a bug, please describe a test case to reproduce it and
include the following information:

        host-triplet:	i386-apple-darwin11.0
        shell:		/bin/sh
        compiler:		gcc
        compiler flags:		-arch x86_64 -arch i386 -g -Os -pipe 
        linker:		/usr/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/ld (gnu? no)
        glibtool:	(GNU libtool) 2.2.10
        automake:	automake (GNU automake) 1.12.2
        autoconf:	autoconf (GNU Autoconf) 2.69

whereas /opt/local/bin/glibtool says:

$ /opt/local/bin/glibtool --help
...

When reporting a bug, please describe a test case to reproduce it and
include the following information:

        host-triplet:	x86_64-apple-darwin12.0.0
        shell:		/bin/sh
        compiler:		/usr/bin/clang
        compiler flags:		-pipe -O2 -arch x86_64
        linker:		/usr/bin/ld (gnu? no)
        glibtool:	(GNU libtool) 2.4.2
        automake:	automake (GNU automake) 1.12.2
        autoconf:	autoconf (GNU Autoconf) 2.69

comment:3 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: invalid
Status: assignedclosed

It seems you have an incomplete installation of bsdmake. Since Apple no longer ships bsdmake this is either a remnant of a previous Xcode installation which somehow didn't get cleaned up or some third party installer installed files in Apple namespace (where it should not have).

My system doesn't have any of the files you mentioned above (also 10.8 upgraded from Lion, Xcode 4.4.1).

Do you still have a previous Xcode installation left in /Developer? You could try opening Xcode 4.4, it should prompt you to clean up those directories, or you could try running /Developer/Library/uninstall-devtools, if you still have it.

Note: See TracTickets for help on using tickets.