[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cannot generate a compliable builtins.cc
From: |
Rob Mahurin |
Subject: |
Re: cannot generate a compliable builtins.cc |
Date: |
Sat, 19 Dec 2009 22:42:01 -0500 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Sat, Dec 19, 2009 at 03:47:02PM -0500, Rob Mahurin wrote:
> I am trying to get the development sources to build on OSX 10.5 using
> dependencies installed by MacPorts. Currently my build stops with
[bizarre errors around builtins.cc]
[...]
> If I change the Makefile rule for generating builtins.cc to
>
> builtins.cc: $(DEF_FILES:.ll=.cc) mkbuiltins
> $(srcdir)/mkbuiltins $(DEF_FILES:.ll=.cc) > address@hidden
> mv address@hidden $@
This was sort of the right track. It turns out the /usr/bin/sed
shipped with OSX 10.5 does not handle regular expressions like
(this|that) :
$ echo lex.ll | sed 's,.*/,,; s/\.\(cc\|yy\|ll\)$/.df/';
lex.ll
$ echo lex.ll | gsed 's,.*/,,; s/\.\(cc\|yy\|ll\)$/.df/';
lex.df
This meant that find-defun-files.sh a partially wrong list of files to
mkbuiltins, and builtins.cc contained dozens of complete source files.
I've made a symlink so that "sed" calls the better
/opt/local/bin/gsed, and am trying to build again.
An appropriate patch to submit would be a configure test that checks
whether sed works. A sexier patch would be to write
find-defun-files.sh.in and allow "./configure SED=gsed". I don't know
how to do either of these things.
Cheers,
Rob