<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">Building this kernel on an X86_64 works like a charm, however it fails on an AMD64. You can find the output of the build at <a href="http://pastebin.com/fXTwucbg" class="">http://pastebin.com/fXTwucbg</a>.</div><div class=""><br class=""></div><div class="">To be able to build it I had to apply the attached patch. </div><div class=""><br class=""></div><div class="">=> Explanation of the issue</div><div class=""><br class=""></div><div class="">The matter is that in debian/build/tools-perarch/tools/perf/Makefile.perf I find :</div><div class=""><br class=""></div><div class=""><div class="">ifeq ($(ARCH),x86)
<div class="">LIB_OBJS += $(OUTPUT)tests/perf-time-to-tsc.o</div>
</div>
<div class="">endif</div></div><div class=""><br class=""></div><div class="">which means it's not included for ARCH=amd64. However functions stored in the file above are referred in debian/build/tools-perarch/tools/perf/tests/builtin-test.c :</div><div class=""><br class=""></div><div class=""><div class="">#if defined(__x86_64__) || defined(__i386__)</div><div class="">        {</div><div class="">                .desc = "Test converting perf time to TSC",</div><div class="">                .func = test__perf_time_to_tsc,</div><div class="">        },</div><div class="">#endif</div></div><div class=""><br class=""></div><div class="">In fact, on an AMD64,  "defined(__x86_64__)" is True while "ifeq ($(ARCH),x86") is FALSE and that's the cause of the issue. I'm amazed to see you build it on AMD64 and don't seem to get issues on launchpad ...</div><div class=""><br class=""></div><div class=""></div></body></html>