{"action":"opened","issue":{"url":"https://api.github.com/repos/sifive/freedom-u-sdk/issues/66","repository_url":"https://api.github.com/repos/sifive/freedom-u-sdk","labels_url":"https://api.github.com/repos/sifive/freedom-u-sdk/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/sifive/freedom-u-sdk/issues/66/comments","events_url":"https://api.github.com/repos/sifive/freedom-u-sdk/issues/66/events","html_url":"https://github.com/sifive/freedom-u-sdk/issues/66","id":344998485,"node_id":"MDU6SXNzdWUzNDQ5OTg0ODU=","number":66,"title":"linux compilation failure with latest riscv-all branch","user":{"login":"atishp04","id":3942047,"node_id":"MDQ6VXNlcjM5NDIwNDc=","avatar_url":"https://avatars3.githubusercontent.com/u/3942047?v=4","gravatar_id":"","url":"https://api.github.com/users/atishp04","html_url":"https://github.com/atishp04","followers_url":"https://api.github.com/users/atishp04/followers","following_url":"https://api.github.com/users/atishp04/following{/other_user}","gists_url":"https://api.github.com/users/atishp04/gists{/gist_id}","starred_url":"https://api.github.com/users/atishp04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atishp04/subscriptions","organizations_url":"https://api.github.com/users/atishp04/orgs","repos_url":"https://api.github.com/users/atishp04/repos","events_url":"https://api.github.com/users/atishp04/events{/privacy}","received_events_url":"https://api.github.com/users/atishp04/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-26T20:43:42Z","updated_at":"2018-07-26T20:43:42Z","closed_at":null,"author_association":"NONE","body":"I checked out the latest riscv-all branch from riscv-linux and started getting following compilation error. Here is my commit log which matches [https://github.com/riscv/riscv-linux/commits/riscv-all]\r\n``\r\n54d5353c automerging branch \"kernel.org-palmer-linux/wip-xilinx_of\" into \"riscv-all\"\r\n2665c958 automerging branch \"kernel.org-palmer-linux/wip-xilinx_32bit_dma\" into \"riscv-all\"\r\n5d5ffd76 automerging branch \"kernel.org-palmer-linux/wip-timer\" into \"riscv-all\"\r\n15460ab8 automerging branch \"kernel.org-palmer-linux/wip-sifive_serial\" into \"riscv-all\"\r\n12cb6d82 automerging branch \"kernel.org-palmer-linux/wip-seccomp\" into \"riscv-all\"\r\n5deeb826 automerging branch \"kernel.org-palmer-linux/wip-prci_clock\" into \"riscv-all\"\r\ne6a6cf2a automerging branch \"kernel.org-palmer-linux/wip-of_order\" into \"riscv-all\"\r\n58f43107 automerging branch \"kernel.org-palmer-linux/wip-is25wp256d\" into \"riscv-all\"\r\ne67cd5b7 automerging branch \"kernel.org-palmer-linux/wip-irq-3-plic\" into \"riscv-all\"\r\ne249a1b8 automerging branch \"kernel.org-palmer-linux/wip-gemgxl_clock_driver\" into \"riscv-all\"\r\n706f9467 automerging branch \"kernel.org-palmer-linux/wip-futex_cmpxchg\" into \"riscv-all\"\r\n76cf2cee automerging branch \"kernel.org-palmer-linux/wip-fespi\" into \"riscv-all\"\r\n7eacc17a automerging branch \"kernel.org-palmer-linux/wip-dt_enable\" into \"riscv-all\"\r\n30f4e8e5 automerging branch \"kernel.org-palmer-linux/wip-dma\" into \"riscv-all\"\r\nfa6f7ded automerging branch \"kernel.org-palmer-linux/wip-cleanup_generic_irq\" into \"riscv-all\"\r\n113dbaa9 automerging branch \"kernel.org-palmer-linux/wip-32bit_dma\" into \"riscv-all\"\r\n005e05ee automerging branch \"kernel.org-palmer-linux/review-intc\" into \"riscv-all\"\r\n230999e8 automerging branch \"kernel.org-palmer-linux/review-early_printk\" into \"riscv-all\"\r\na5746143 automerging branch \"kernel.org-palmer-linux/review-dt-timebase\" into \"riscv-all\"\r\n1aae169d automerging branch \"kernel.org-palmer-linux/fix-ptrace\" into \"riscv-all\"\r\n9f400bab automerging branch \"kernel.org-palmer-linux/fix-lustig\" into \"riscv-all\"\r\n9d2c75e4 automerging branch \"kernel.org-palmer-linux/fix-intc\" into \"riscv-all\"\r\n013dbd9f automerging branch \"kernel.org-palmer-linux/fix-device-init\" into \"riscv-all\"\r\nd40dc71d automerging branch \"kernel.org-palmer-linux/fix-addsub32\" into \"riscv-all\"\r\n463ab03d automerging branch \"github.com-riscv-riscv_linux/wip-perf_events\" into \"riscv-all\"\r\nd72e90f3 Linux 4.18-rc6\r\n``\r\n\r\nHere is the build error:\r\n``\r\ngcc: error: unrecognized argument in option ‘-mabi=lp64’\r\ngcc: note: valid arguments to ‘-mabi=’ are: ms sysv\r\ngcc: error: unrecognized argument in option ‘-mcmodel=medany’\r\ngcc: note: valid arguments to ‘-mcmodel=’ are: 32 kernel large medium small\r\n  CC      scripts/mod/devicetable-offsets.s\r\ngcc: error: unrecognized command line option ‘-mno-save-restore’\r\n/home/atish/workspace/freedom-u-sdk/linux/scripts/Makefile.build:317: recipe for target 'scripts/mod/empty.o' failed\r\nmake[4]: *** [scripts/mod/empty.o] Error 1\r\nmake[4]: *** Waiting for unfinished jobs....\r\ngcc: error: unrecognized argument in option ‘-mabi=lp64’\r\ngcc: note: valid arguments to ‘-mabi=’ are: ms sysv\r\ngcc: error: unrecognized argument in option ‘-mcmodel=medany’\r\ngcc: note: valid arguments to ‘-mcmodel=’ are: 32 kernel large medium small\r\ngcc: error: unrecognized command line option ‘-mno-save-restore’\r\n``\r\n\r\nHowever, if I checkout riscv-all based on 4.17, it works fine. I have not modified any other repo in between. Here is the commit history that builds fine.\r\n\r\n``\r\nf37675f7 automerging branch \"kernel.org-palmer-linux/wip-xilinx_of\" into \"riscv-all\"\r\n8538d0f4 automerging branch \"kernel.org-palmer-linux/wip-timer\" into \"riscv-all\"\r\n4b520023 automerging branch \"kernel.org-palmer-linux/wip-sifive_serial\" into \"riscv-all\"\r\nc41f4a3c automerging branch \"kernel.org-palmer-linux/wip-seccomp\" into \"riscv-all\"\r\ned547257 automerging branch \"kernel.org-palmer-linux/wip-prci_clock\" into \"riscv-all\"\r\ne6413491 automerging branch \"kernel.org-palmer-linux/wip-of_order\" into \"riscv-all\"\r\nef97dca8 automerging branch \"kernel.org-palmer-linux/wip-is25wp256d\" into \"riscv-all\"\r\n328762a3 automerging branch \"kernel.org-palmer-linux/wip-irq-3-plic\" into \"riscv-all\"\r\n438f7875 automerging branch \"kernel.org-palmer-linux/wip-irq-2-hlic\" into \"riscv-all\"\r\n50ed6521 automerging branch \"kernel.org-palmer-linux/wip-gemgxl_clock_driver\" into \"riscv-all\"\r\n2bc4cbac automerging branch \"kernel.org-palmer-linux/wip-futex_cmpxchg\" into \"riscv-all\"\r\n2b42e640 automerging branch \"kernel.org-palmer-linux/wip-fespi\" into \"riscv-all\"\r\naa059c0b automerging branch \"kernel.org-palmer-linux/wip-early_printk\" into \"riscv-all\"\r\n7f9a09bd automerging branch \"kernel.org-palmer-linux/wip-dt_enable\" into \"riscv-all\"\r\nd2e978e1 automerging branch \"kernel.org-palmer-linux/wip-dt-timebase\" into \"riscv-all\"\r\n841e320f automerging branch \"kernel.org-palmer-linux/wip-dma\" into \"riscv-all\"\r\n2b1d264b automerging branch \"kernel.org-palmer-linux/wip-cleanup_generic_irq\" into \"riscv-all\"\r\na6dbb425 automerging branch \"kernel.org-palmer-linux/review-console_defconfig\" into \"riscv-all\"\r\n250d493d automerging branch \"kernel.org-palmer-linux/next-swiotlb\" into \"riscv-all\"\r\n8015ec09 automerging branch \"kernel.org-palmer-linux/next-perf\" into \"riscv-all\"\r\n3e45350c automerging branch \"kernel.org-palmer-linux/fix-sparse\" into \"riscv-all\"\r\na7c82dbd automerging branch \"kernel.org-palmer-linux/fix-sifive_maintainers\" into \"riscv-all\"\r\n078f862c automerging branch \"kernel.org-palmer-linux/fix-r_riscv_32\" into \"riscv-all\"\r\n3ec20502 automerging branch \"kernel.org-palmer-linux/fix-module_alloc\" into \"riscv-all\"\r\nb4ee212a automerging branch \"kernel.org-palmer-linux/fix-memaccess_fixup\" into \"riscv-all\"\r\n4d0ca61c automerging branch \"kernel.org-palmer-linux/fix-mcount_ftrace\" into \"riscv-all\"\r\n8c0af6f6 automerging branch \"kernel.org-palmer-linux/fix-checkflags\" into \"riscv-all\"\r\n0ff797fb automerging branch \"github.com-riscv-riscv_linux/wip-perf_events\" into \"riscv-all\"\r\n86406d51 riscv: split the declaration of __copy_user\r\na93858bc RISC-V: Handle R_RISCV_32 in modules\r\n2f09f36b riscv/ftrace: Export _mcount when DYNAMIC_FTRACE isn't set\r\n9bf97390 riscv: no __user for probe_kernel_address()\r\n2861ae30 riscv: use NULL instead of a plain 0\r\n3b15f447 riscv: add riscv-specific predefines to CHECKFLAGS\r\n9c521764 MAINTAINERS: Update Albert's email, he's back at Berkeley\r\n3ed45d7f MAINTAINERS: Add myself as a maintainer for SiFive's drivers\r\n25d26dfc RISC-V: Load modules within relative jump range of the kernel text.\r\n12eee80b riscv: Fix the bug in memory access fixup code\r\n29dcea88 Linux 4.17\r\n``\r\n\r\n"}}
{"actor":{"display_login":"atishp04"}}