From: Junio C Hamano <gitster@pobox.com>
To: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Cc: GIT Mailing-list <git@vger.kernel.org>, bebarino@gmail.com
Subject: Re: [PATCH 7/9] sparse: Fix errors due to missing target-specific variables
Date: Thu, 07 Apr 2011 16:18:23 -0700 [thread overview]
Message-ID: <7vfwpt6474.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <4D9E06EE.9090803@ramsay1.demon.co.uk> (Ramsay Jones's message of "Thu, 07 Apr 2011 19:48:14 +0100")
Ramsay Jones <ramsay@ramsay1.demon.co.uk> writes:
> In particular, sparse issues the following errors:
>
> attr.c:472:43: error: undefined identifier 'ETC_GITATTRIBUTES'
> config.c:821:43: error: undefined identifier 'ETC_GITCONFIG'
> exec_cmd.c:14:37: error: undefined identifier 'PREFIX'
> exec_cmd.c:83:28: error: undefined identifier 'GIT_EXEC_PATH'
> builtin/help.c:328:46: error: undefined identifier 'GIT_MAN_PATH'
> builtin/help.c:374:40: error: undefined identifier 'GIT_INFO_PATH'
> builtin/help.c:382:45: error: undefined identifier 'GIT_HTML_PATH'
> git.c:96:42: error: undefined identifier 'GIT_HTML_PATH'
> git.c:241:35: error: invalid initializer
> http.c:293:43: error: undefined identifier 'GIT_HTTP_USER_AGENT'
>
> which is caused by not passing the target-specific additions to
> the EXTRA_CPPFLAGS variable to cgcc.
>
> In order to fix the problem, we define a new sparse target which
> depends on an a set of non-existent "sparse object" files (*.sp)
> which correspond to the set of C source files. In addition to the
> new target, we also provide a new pattern rule for "creating" the
> sparse object files from the source files by running cgcc. This
> allows us to add '*.sp' to the rules setting the target-specific
> EXTRA_CPPFLAGS variable, which is then included in the new pattern
> rule to run cgcc.
Hmm, shouldn't this be part of [1/9]? I don't think I saw these with
"make check" before applying that patch.
Also shouldn't you be marking .sp suffix as .PHONY?
next prev parent reply other threads:[~2011-04-07 23:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-07 18:48 [PATCH 7/9] sparse: Fix errors due to missing target-specific variables Ramsay Jones
2011-04-07 23:18 ` Junio C Hamano [this message]
2011-04-11 18:04 ` Ramsay Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vfwpt6474.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=bebarino@gmail.com \
--cc=git@vger.kernel.org \
--cc=ramsay@ramsay1.demon.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).