How to build Sawzall under OS X?

52 views
Skip to first unread message

pr3d4t0r

unread,
Nov 27, 2010, 2:28:24 AM11/27/10
to szl-users
Greetings!

I would like to build Sawzall on OS X latest. The default build fails
because it requires objdump from binutils. Can you recommend how to
execute one of these options:

a) Provide instructions on how to build binutils on OS X so that it
doesn't fail as well?
b) Does anyone provide a binary build?

I would prefer to NOT use Macports or Darwin ports. Both tend to put
their software in odd places in the file system (well, odd in OS X
terms). In a perfect world, I prefer to make ; make test; sudo make
install and be on my way, assuming that the install target will put
the files in a standard location.

Thanks in advance and have a great wknd!

pr3d4t0r
http://eugeneciurana.com

David Hilley

unread,
Nov 27, 2010, 3:50:52 PM11/27/10
to szl-...@googlegroups.com
On Fri, Nov 26, 2010 at 11:28 PM, pr3d4t0r <ciu...@gmail.com> wrote:
> Greetings!
>
> I would like to build Sawzall on OS X latest.  The default build fails
> because it requires objdump from binutils.  Can you recommend how to
> execute one of these options:

I believe objdump is only used for native code disassembly, so you
should be able to build without it by faking the dependency.

Does it fail when you run configure with a message like:
checking for objdump... no
configure: error: no objdump utility was found (required for elfgen_unittest)
See `config.log' for more details.

If that's the case, try giving configure a dummy replacement for
objdump. For example:

$ OBJDUMP=/bin/true ./configure

After that, the elfgen_unittest will fail, and szl --print_code won't
function properly, but everything else should be okay. (I tried this
out in a chroot environment by removing objdump and building with the
above configure commandline, and all of the other regression tests
passed.)

--
D. Hilley (d...@google.com)

Reply all
Reply to author
Forward
0 new messages