Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#33355 closed defect (fixed)

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: drkp (Dan Ports), raimue (Rainer Müller)
Port: proctools

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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 (2)

main.log (17.6 KB) - added by michael@… 12 years ago.
use-bmake-instead-of-bsdmake.patch (502 bytes) - added by neverpanic (Clemens Lang) 12 years ago.

Download all attachments as: .zip

Change History (15)

Changed 12 years ago by michael@…

Attachment: main.log added

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

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

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

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 12 years ago by drkp (Dan Ports)

Cc: dports@… added

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

comment:4 Changed 12 years ago by michael@…

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

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

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

Changed 12 years ago by neverpanic (Clemens Lang)

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

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 12 years ago by neverpanic (Clemens Lang)

Component: portsbase
Milestone: MacPorts 2.0.4
Summary: cannot build proctools on Lionbsdmake not available in Xcode 4.3

comment:8 Changed 12 years 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 12 years ago by neverpanic (Clemens Lang)

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

comment:10 Changed 12 years ago by michael@…

Worked great. Thanks, guys!

comment:11 Changed 12 years ago by raimue (Rainer Müller)

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 12 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

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

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

Milestone: MacPorts FutureMacPorts 2.0.5
Note: See TracTickets for help on using tickets.