{"id":152,"date":"2022-07-11T04:34:27","date_gmt":"2022-07-11T04:34:27","guid":{"rendered":"https:\/\/blogs.gentoo.org\/gsoc\/?p=152"},"modified":"2022-07-27T04:36:40","modified_gmt":"2022-07-27T04:36:40","slug":"week-4-report-for-risc-v-support-for-gentoo-prefix","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/gsoc\/2022\/07\/11\/week-4-report-for-risc-v-support-for-gentoo-prefix\/","title":{"rendered":"Week 4 Report for RISC-V Support for Gentoo Prefix"},"content":{"rendered":"<div>Hello everyone,<\/div>\n<div>So the fourth week of Google Summer of Code has come to an end and here is my weekly report for the same.<\/div>\n<div><\/div>\n<div>This week we got a working prefix with Stage 3 compiling till the end. Profile for lp64d got merged as well.<\/div>\n<div><\/div>\n<div>Earlier I use to pull my gentoo fork for testing but as the pull request for lp64d no-multilib Profile[1] got merged, I tested with the official Gentoo repository.<\/div>\n<div><\/div>\n<div>Current approach is to fix the bugs locally and see how far stage 3 goes. So after the fixes we did in previous weeks there are 2 major bugs that need fix to complete stage 3.<\/div>\n<div><\/div>\n<div>We need to add check for <code>scanelf<\/code>\u200b in bootstrap script as its needed in the host for ncurses to install during stage 2.<\/div>\n<div><code>\u00a0<\/code><\/div>\n<div><code>libfl.so.6<\/code>\u200b library is missing due to which <code>riscv64-pc-linux-gnu-ar<\/code>\u200b and <code>riscv64-pc-linux-gnu-ranlib<\/code>\u200b fails to execute.<\/div>\n<div><\/div>\n<div>I tried bootstrapping by fixing these issues locally and it continued till the end.<\/div>\n<div>It was decided that we add support to lp64d as of now and accordingly I have added the patch to Gentoo Prefix[2], other profiles are under <code>17.0<\/code>\u200b directory while RISC-V is under <code>20.0<\/code>\u200b, it has been fixed accordingly.<\/div>\n<div><\/div>\n<div>Also continued documentation on \u201cPorting Prefix to New Architecture\u201d and Setting up RISC-V environment for testing prefix.<\/div>\n<div>In upcoming weeks I plan to continue testing with the latest packages and work on <code>libfl.so.6<\/code>\u200b and <code>scanelf<\/code>\u200b issue. Post that I will work on keywording packages with RISC-V.<\/div>\n<div><\/div>\n<div>[1]<a href=\"https:\/\/github.com\/gentoo\/gentoo\/pull\/26211\" target=\"_blank\" rel=\"noreferrer nofollow noopener\">https:\/\/github.com\/gentoo\/gentoo\/pull\/26211<\/a><\/div>\n<div>[2] <a href=\"https:\/\/github.com\/gentoo\/prefix\/pull\/13\" target=\"_blank\" rel=\"noreferrer nofollow noopener\">https:\/\/github.com\/gentoo\/prefix\/pull\/13<\/a><\/div>\n<p>\u2013<br \/>\nRegards,<br \/>\nwiredhikari<\/p>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hello everyone, So the fourth week of Google Summer of Code has come to an end and here is my weekly report for the same. This week we got a working prefix with Stage 3 compiling till the end. Profile &hellip; <a href=\"https:\/\/blogs.gentoo.org\/gsoc\/2022\/07\/11\/week-4-report-for-risc-v-support-for-gentoo-prefix\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":178,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts\/152"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/users\/178"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/comments?post=152"}],"version-history":[{"count":1,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts\/152\/revisions"}],"predecessor-version":[{"id":153,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts\/152\/revisions\/153"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/media?parent=152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/categories?post=152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/tags?post=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}