{"action":"created","issue":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/1767","repository_url":"https://api.github.com/repos/raspberrypi/linux","labels_url":"https://api.github.com/repos/raspberrypi/linux/issues/1767/labels{/name}","comments_url":"https://api.github.com/repos/raspberrypi/linux/issues/1767/comments","events_url":"https://api.github.com/repos/raspberrypi/linux/issues/1767/events","html_url":"https://github.com/raspberrypi/linux/issues/1767","id":196330442,"number":1767,"title":"Can not compile successfully","user":{"login":"eeyrw","id":2088817,"avatar_url":"https://avatars.githubusercontent.com/u/2088817?v=3","gravatar_id":"","url":"https://api.github.com/users/eeyrw","html_url":"https://github.com/eeyrw","followers_url":"https://api.github.com/users/eeyrw/followers","following_url":"https://api.github.com/users/eeyrw/following{/other_user}","gists_url":"https://api.github.com/users/eeyrw/gists{/gist_id}","starred_url":"https://api.github.com/users/eeyrw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeyrw/subscriptions","organizations_url":"https://api.github.com/users/eeyrw/orgs","repos_url":"https://api.github.com/users/eeyrw/repos","events_url":"https://api.github.com/users/eeyrw/events{/privacy}","received_events_url":"https://api.github.com/users/eeyrw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-19T04:44:23Z","updated_at":"2016-12-19T14:02:49Z","closed_at":null,"body":"I just follow the [official cross build instruction](https://www.raspberrypi.org/documentation/linux/kernel/building.md) and met the error like this: \r\n\r\n\r\n```\r\n...\r\n*** No rule to make target `fs/cachefiles/xattr.o', needed by `fs/cachefiles/cachefiles.o'.  Stop\r\n...\r\ndrivers/char/hw_random/core.c:35:29: fatal error: linux/hw_random.h: No such file or directory\r\n #include <linux/hw_random.h>\r\n                             ^\r\ncompilation terminated.\r\n...\r\nnet/netfilter/xt_DSCP.c:20:37: fatal error: linux/netfilter/xt_DSCP.h: No such file or directory\r\n #include <linux/netfilter/xt_DSCP.h>\r\n...                                    ^\r\n\r\n```\r\n\r\nMy host linux is ubuntu 14.04 LTS 64bit.\r\n\r\nPath:\r\n```\r\nyuan@yuan-VirtualBox ~> echo $PATH\r\n/opt/xtensa-lx106-elf/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /home/yuan/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin\r\n```\r\n\r\nMy steps:\r\n\r\n1. \r\nDownload git repo as zip directly due to my poor network.\r\n```\r\nDesktop/          firmware/             minicom.log  Templates/ \r\nDocuments/        firmware-master.zip*  Music/       tools/\r\nDownloads/        linux/                Pictures/    tools-master.zip*\r\nexamples.desktop  linux-rpi-4.4.y.zip*  Public/      Videos/\r\n```\r\n\r\nI extract (with gui tool) linux-rpi-4.4.y.zip to linux, tools-master.zip to tools, firmware-master.zip to firmware.\r\n\r\n2. \r\n```\r\ncd linux \r\nKERNEL=kernel7\r\n```\r\nWhich result this:\r\n```\r\nyuan@yuan-VirtualBox ~/linux> KERNEL=kernel7\r\nfish: Unknown command “KERNEL=kernel7”. Did you mean “set KERNEL kernel7”? For\r\ninformation on assigning values to variables, see the help section on the set\r\ncommand by typing “help set”.\r\nKERNEL=kernel7: command not found\r\n```\r\n\r\nI tried command \"set KERNEL kernel7\". So it create a var call KERNEL with has val of  kernel7. Is it the problem caused by fish?\r\n\r\n```\r\nmake ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig\r\n  HOSTCC  scripts/basic/fixdep\r\n  HOSTCC  scripts/kconfig/conf.o\r\n  SHIPPED scripts/kconfig/zconf.tab.c\r\n  SHIPPED scripts/kconfig/zconf.lex.c\r\n  SHIPPED scripts/kconfig/zconf.hash.c\r\n  HOSTCC  scripts/kconfig/zconf.tab.o\r\n  HOSTLD  scripts/kconfig/conf\r\n#\r\n# configuration written to .config\r\n#\r\n```\r\n\r\nIt seems working fine.\r\n\r\n3. \r\n\r\n`make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs -j 2`\r\n...\r\nI wait for a long time it throws some error mentioned before and compilation stopped.\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/comments/267971055","html_url":"https://github.com/raspberrypi/linux/issues/1767#issuecomment-267971055","issue_url":"https://api.github.com/repos/raspberrypi/linux/issues/1767","id":267971055,"user":{"login":"pelwell","id":8911409,"avatar_url":"https://avatars.githubusercontent.com/u/8911409?v=3","gravatar_id":"","url":"https://api.github.com/users/pelwell","html_url":"https://github.com/pelwell","followers_url":"https://api.github.com/users/pelwell/followers","following_url":"https://api.github.com/users/pelwell/following{/other_user}","gists_url":"https://api.github.com/users/pelwell/gists{/gist_id}","starred_url":"https://api.github.com/users/pelwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelwell/subscriptions","organizations_url":"https://api.github.com/users/pelwell/orgs","repos_url":"https://api.github.com/users/pelwell/repos","events_url":"https://api.github.com/users/pelwell/events{/privacy}","received_events_url":"https://api.github.com/users/pelwell/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T14:02:49Z","updated_at":"2016-12-19T14:02:49Z","body":"Please close the issue if you feel it is resolved."}}
{"actor":{"display_login":"pelwell"}}