Can't build kernel 3.16.0-26.34~14.04.1 on amd64
Cyril Scetbon
cyril.scetbon at free.fr
Wed Nov 26 16:47:53 UTC 2014
Hi,
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 http://pastebin.com/fXTwucbg <http://pastebin.com/fXTwucbg>.
To be able to build it I had to apply the attached patch.
=> Explanation of the issue
The matter is that in debian/build/tools-perarch/tools/perf/Makefile.perf I find :
ifeq ($(ARCH),x86)
LIB_OBJS += $(OUTPUT)tests/perf-time-to-tsc.o
endif
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 :
#if defined(__x86_64__) || defined(__i386__)
{
.desc = "Test converting perf time to TSC",
.func = test__perf_time_to_tsc,
},
#endif
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 ...
--
Cyril SCETBON
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20141126/8facdc20/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utopic-fix.patch
Type: application/octet-stream
Size: 510 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20141126/8facdc20/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20141126/8facdc20/attachment-0001.html>
More information about the Ubuntu-devel-discuss
mailing list