New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33355 (closed defect: fixed)

Opened 15 months ago

Last modified 15 months ago

bsdmake not available in Xcode 4.3

Reported by: michael@… Owned by: akitada@…
Priority: Normal Milestone: MacPorts 2.1.0
Component: base Version: 2.0.3
Keywords: Cc: dports@…, raimue@…
Port: proctools

Description (last modified by ryandesign@…) (diff)

Here's the make log for building proctools.
My Xcode: 4.3
My Lion: 10.7.2
My macports 2.0.3

I'm more than happy to edit any makefiles and retry if someone could point me in the right direction:

notice:build --->  Building proctools
:debug:build Executing org.macports.build (proctools)
:error:build Target org.macports.build returned: can't read "build.cmd": Failed to locate 'bsdmake' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
:debug:build Backtrace: Failed to locate 'bsdmake' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
    invoked from within
"findBinary bsdmake $portutil::autoconf::bsdmake_path"
    (procedure "portbuild::build_getmaketype" line 8)
    invoked from within
"portbuild::build_getmaketype"
    invoked from within
"set build.cmd [portbuild::build_getmaketype]"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 set $optionName $option_defaults($optionName)"
    (procedure "default_check" line 11)
    invoked from within
"default_check build.cmd {} r"
    (read trace on "build.cmd")
    invoked from within
"set $option"
    (procedure "option" line 10)
    invoked from within
"option build.cmd"
    (procedure "build_getjobsarg" line 9)
    invoked from within
"build_getjobsarg"
    (procedure "portbuild::build_main" line 4)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for proctools): org.macports.activate org.macports.build org.macports.destroot org.macports.install

Attachments

main.log (17.6 KB) - added by michael@… 15 months ago.
use-bmake-instead-of-bsdmake.patch (502 bytes) - added by cal@… 15 months ago.

Change History

Changed 15 months ago by michael@…

comment:1 Changed 15 months ago by ryandesign@…

  • Owner changed from macports-tickets@… to akitada@…
  • Description modified (diff)
  • Port set to proctools

comment:2 Changed 15 months ago by ryandesign@…

MacPorts 2.0.3 is not compatible with Xcode 4.3. See wiki:ProblemHotlist#xcode43. Downgrade to Xcode 4.2.1 or wait for MacPorts 2.0.4.

Also ensure you have installed the command line tools. These are now optional with Xcode 4.3, but as always are still required by MacPorts.

comment:3 Changed 15 months ago by dports@…

  • Cc dports@… added

Xcode 4.3 doesn't include bsdmake, even with the command line tools installed.

comment:4 Changed 15 months ago by michael@…

Thanks! I'll wait for the next version of macports, then.

comment:5 Changed 15 months ago by cal@…

I can confirm this with Xcode 4.3 and trunk. We should probably add a build dependency on bmake.

Changed 15 months ago by cal@…

comment:6 Changed 15 months ago by cal@…

Attached patch makes proctools build with Xcode 4.3 by using bmake as a replacement for the no longer available bsdmake. However, we should probably fix this in base, because this will happen for all ports setting build.type bsd (see source:/trunk/base/src/port1.0/portbuild.tcl@79593:68-76#L70).

comment:7 Changed 15 months ago by cal@…

  • Milestone set to MacPorts 2.0.4
  • Component changed from ports to base
  • Summary changed from cannot build proctools on Lion to bsdmake not available in Xcode 4.3

comment:8 Changed 15 months ago by barry.allard@…

Applying the Portfile patch and patching portbuild.tcl to use bmake creates a working proctools @0.4pre1_2

MacPorts 2.0.4 Xcode 4.3 + CLT + 10.7.3.

comment:9 Changed 15 months ago by cal@…

As a quickfix, you can install proctools using port install proctools build.cmd=bmake with bmake installed.

comment:10 Changed 15 months ago by michael@…

Worked great. Thanks, guys!

comment:11 Changed 15 months ago by raimue@…

  • Cc raimue@… added

I have ported the old bsdmake including the mk files in the new bsdmake port (see r90611). Since MacPorts already has a fallback to look for bsdmake in PATH, it should only be necessary to add dependencies on bsdmake to make broken ports work again.

As the bsdmake port ships the same mk-files as used previously with Xcode <= 4.2, I expect more compatibility than using bmake.

comment:12 Changed 15 months ago by cal@…

  • Status changed from new to closed
  • Resolution set to fixed

r90650 automatically adds a bin:bsdmake:bsdmake build-dependency to ports setting build.type bsd.

comment:13 Changed 15 months ago by ryandesign@…

  • Milestone changed from MacPorts Future to MacPorts 2.0.5
Note: See TracTickets for help on using tickets.