﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	difficulty
458	Chicken can't profile itself	sjamaan		"I tried to run this:

{{{
$ gmake PLATFORM=bsd PREFIX=~/chicken-test CHICKEN='chicken -profile' DEBUGBUILD=1
}}}

And this gives me:

{{{
Warning: reference to possibly unbound identifier `g555'

Error: module unresolved: setup-api
}}}

If I then quickly compile this file without profiling info, I get a binary which barfs that {{{##sys#error-hook}}} is undefined.

I think this indicates a deeper problem with the profiler which might also occur on some other programs.

It could be a problem in the expander, or in the code that generates  profiling info. The undefined g555 occurs somewhere in an expansion of {{{lambda}}}, so my hunch is it's a problem with {{{expand-profile-lambda}}}."	defect	closed	minor		compiler	4.6.x	wontfix	expander, profiler, self-compilation		
