{"action":"opened","issue":{"url":"https://api.github.com/repos/ucb-bar/rocket-chip/issues/681","repository_url":"https://api.github.com/repos/ucb-bar/rocket-chip","labels_url":"https://api.github.com/repos/ucb-bar/rocket-chip/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/ucb-bar/rocket-chip/issues/681/comments","events_url":"https://api.github.com/repos/ucb-bar/rocket-chip/issues/681/events","html_url":"https://github.com/ucb-bar/rocket-chip/issues/681","id":221758838,"number":681,"title":"build of emulator under windows 10 linux subsystem fails.","user":{"login":"keskella","id":5208504,"avatar_url":"https://avatars1.githubusercontent.com/u/5208504?v=3","gravatar_id":"","url":"https://api.github.com/users/keskella","html_url":"https://github.com/keskella","followers_url":"https://api.github.com/users/keskella/followers","following_url":"https://api.github.com/users/keskella/following{/other_user}","gists_url":"https://api.github.com/users/keskella/gists{/gist_id}","starred_url":"https://api.github.com/users/keskella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keskella/subscriptions","organizations_url":"https://api.github.com/users/keskella/orgs","repos_url":"https://api.github.com/users/keskella/repos","events_url":"https://api.github.com/users/keskella/events{/privacy}","received_events_url":"https://api.github.com/users/keskella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-14T07:33:40Z","updated_at":"2017-04-14T07:33:40Z","closed_at":null,"body":"On windows 10 Linux subsystem, build of emulator fails with the following\r\nSteps taken before error: followed through verilator install from git, as per chisel page.  Built riscv-tools with more luck then anything else (beats me, it was broken for a month or so, and then worked.  I'm guilty of trying all the knobs).\r\n\r\n:\r\nparabellum@DESKTOP-410PS4S:/mnt/c/Users/jchay/Documents/GitHub/rocket-chip/emulator$ make\r\nmkdir -p /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/emulator/generated-src/\r\ncd /mnt/c/Users/jchay/Documents/GitHub/rocket-chip && java -Xmx2G -Xss8M -XX:MaxPermSize=256M -jar /mnt/c/Users/jchay/Do\r\ncuments/GitHub/rocket-chip/sbt-launch.jar \"run-main rocketchip.Generator /mnt/c/Users/jchay/Documents/GitHub/rocket-chip\r\n/emulator/generated-src rocketchip TestHarness rocketchip DefaultConfig\"\r\nJava HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0\r\n[info] Loading project definition from /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/project\r\nUsing addons:\r\n[info] Set current project to rocketchip (in build file:/mnt/c/Users/jchay/Documents/GitHub/rocket-chip/)\r\n[info] Compiling 1 Scala source to /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/chisel3/target/scala-2.11/classes...\r\n[info] Packaging /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/chisel3/target/scala-2.11/chisel3_2.11-3.1-SNAPSHOT.jar\r\n ...\r\n[info] Done packaging.\r\n[info] Compiling 217 Scala sources to /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/target/scala-2.11/classes...\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/groundtest/DummyPTW.scala:33: value asTypeOf is n\r\not a member of chisel3.core.UInt\r\n[error]   val s2_resp = Wire(init = 0.U.asTypeOf(new PTWResp))\r\n[error]                                 ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/groundtest/DummyPTW.scala:49: value asTypeOf is n\r\not a member of chisel3.core.UInt\r\n[error]     requestor.status := 0.U.asTypeOf(requestor.status)\r\n[error]                             ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/CSR.scala:381: value asTypeOf is not a mem\r\nber of chisel3.core.UInt\r\n[error]     val read_sstatus = Wire(init = 0.U.asTypeOf(new MStatus))\r\n[error]                                        ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/CSR.scala:425: value asTypeOf is not a mem\r\nber of chisel3.core.UInt\r\n[error]     val read_pmp = reg_pmp.padTo(CSR.maxPMPs, 0.U.asTypeOf(new PMP))\r\n[error]                                                   ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/CSR.scala:611: value asTypeOf is not a mem\r\nber of chisel3.core.UInt\r\n[error]       val new_mip = readModifyWriteCSR(io.rw.cmd, reg_mip.asUInt, io.rw.wdata).asTypeOf(new MIP)\r\n[error]                                                                                ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/PMP.scala:123: value asTypeOf is not a mem\r\nber of chisel3.core.UInt\r\n[error]     ((true.B, 0.U.asTypeOf(new PMP)) /: pmps) { case ((h, prev), pmp) =>\r\n[error]                   ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/PMP.scala:142: value asTypeOf is not a mem\r\nber of chisel3.core.UInt\r\n[error]   val pmp0 = Wire(init = 0.U.asTypeOf(new PMP))\r\n[error]                              ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/Rocket.scala:7: object withReset is not a\r\nmember of package chisel3.core\r\n[error] import chisel3.core.withReset\r\n[error]        ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/Rocket.scala:176: not found: value withRes\r\net\r\n[error]   ibuf.io.imem <> (if (usingCompressed) withReset(reset || take_pc) { Queue(io.imem.resp, 1, flow = true) } else\r\n io.imem.resp)\r\n[error]                                         ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:79: value asTypeOf is not a memb\r\ner of Chisel.UInt\r\n[error]   val entries = reg_entries.map(_.asTypeOf(new Entry))\r\n[error]                                   ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:98: value ppn is not a member of\r\n Nothing\r\n[error]                 Mux(vm_enabled, entries.last.ppn, vpn(ppnBits-1, 0)))\r\n[error]                                              ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:119: value level is not a member\r\n of Nothing\r\n[error]       tagMatch = tagMatch && (entries(i).level < j || entries(i).tag(base + pgLevelBits - 1, base) === vpn(base\r\n+ pgLevelBits - 1, base))\r\n[error]                                          ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:119: value tag is not a member o\r\nf Nothing\r\n[error]       tagMatch = tagMatch && (entries(i).level < j || entries(i).tag(base + pgLevelBits - 1, base) === vpn(base\r\n+ pgLevelBits - 1, base))\r\n[error]                                                                  ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:124: value level is not a member\r\n of Nothing\r\n[error]   val level = Mux1H(hitsVec.init, entries.map(_.level))\r\n[error]                                                 ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:125: value ppn is not a member o\r\nf Nothing\r\n[error]   val partialPPN = Mux1H(hitsVec.init, entries.map(_.ppn))\r\n[error]                                                      ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:162: value ae is not a member of\r\n Nothing\r\n[error]   val priv_ok = entries.map(_.ae).asUInt | Mux(priv_s, ~Mux(io.ptw.status.sum, UInt(0), entries.map(_.u).asUInt)\r\n, entries.map(_.u).asUInt)\r\n[error]                               ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:162: value u is not a member of\r\nNothing\r\n[error]   val priv_ok = entries.map(_.ae).asUInt | Mux(priv_s, ~Mux(io.ptw.status.sum, UInt(0), entries.map(_.u).asUInt)\r\n, entries.map(_.u).asUInt)\r\n[error]                                                                                                       ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:162: value u is not a member of\r\nNothing\r\n[error]   val priv_ok = entries.map(_.ae).asUInt | Mux(priv_s, ~Mux(io.ptw.status.sum, UInt(0), entries.map(_.u).asUInt)\r\n, entries.map(_.u).asUInt)\r\n[error]\r\n                ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:166: value pr is not a member of\r\n Nothing\r\n[error]   val pr_array = Cat(Fill(2, prot_r), entries.init.map(_.pr).asUInt)\r\n[error]                                                          ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:167: value pw is not a member of\r\n Nothing\r\n[error]   val pw_array = Cat(Fill(2, prot_w), entries.init.map(_.pw).asUInt)\r\n[error]                                                          ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:168: value px is not a member of\r\n Nothing\r\n[error]   val px_array = Cat(Fill(2, prot_x), entries.init.map(_.px).asUInt)\r\n[error]                                                          ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:169: value c is not a member of\r\nNothing\r\n[error]   val c_array = Cat(Fill(2, cacheable), entries.init.map(_.c).asUInt)\r\n[error]                                                            ^\r\n[error] /mnt/c/Users/jchay/Documents/GitHub/rocket-chip/src/main/scala/rocket/TLB.scala:224: value g is not a member of\r\nNothing\r\n[error]                Mux(io.req.bits.sfence.bits.rs2, valid & entries.map(_.g).asUInt, 0))\r\n[error]                                                                       ^\r\n[error] 23 errors found\r\n[error] (rocketchip/compile:compileIncremental) Compilation failed\r\n[error] Total time: 141 s, completed Apr 14, 2017 7:25:07 AM\r\nMakefrag-verilator:12: recipe for target '/mnt/c/Users/jchay/Documents/GitHub/rocket-chip/emulator/generated-src/rocketc\r\nhip.DefaultConfig.fir' failed\r\nmake: *** [/mnt/c/Users/jchay/Documents/GitHub/rocket-chip/emulator/generated-src/rocketchip.DefaultConfig.fir] Error 1"}}
{"actor":{"display_login":"keskella"}}