{"id":53,"date":"2022-06-26T14:06:34","date_gmt":"2022-06-26T14:06:34","guid":{"rendered":"https:\/\/blogs.gentoo.org\/gsoc\/?p=53"},"modified":"2022-07-08T14:51:45","modified_gmt":"2022-07-08T14:51:45","slug":"gentoo-soc-week-2-report-for-risc-v-support-for-gentoo-prefix","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/gsoc\/2022\/06\/26\/gentoo-soc-week-2-report-for-risc-v-support-for-gentoo-prefix\/","title":{"rendered":"Week 2 Report for RISC-V Support for Gentoo Prefix"},"content":{"rendered":"<div>The second week of coding period is over, it has been fun and quite some progress on the project has happened. To start with, I tested the new riscv profile for prefix on different riscv machines\/images, have updated the changes and rebased the pull request [1]. After adding support to packages as discussed in last week&#8217;s blog, I did testing for stage 1 and 2 on various machines and they got compiled without any trouble.<\/div>\n<div><\/div>\n<div>During testing, the major bug it was seen that pkgconf failed due to missing `CHOST`, we which will be fixed by patching it for `riscv` in bootstrap script.<\/div>\n<div><\/div>\n<div><\/div>\n<p><!--more--><\/p>\n<div><\/div>\n<div>Also, encountered portage falling back to root\/portage and user\/group in the gentoo chroot environment, similar to [2]. Host portage interfers with prefix installation. So, the current progress is that stage 3 stops towards the end as it ain&#8217;t able to run `emerge -uDNv system` on the system with gentoo host and asks for root access. Although it will continue on non-gentoo host, which we will be testing further. To test further we are working with freedom-u-sdk [3] and a fedora riscv qemu image to test prefix.<\/div>\n<div><\/div>\n<div>So, this is the brief report for the second week, for the upcoming weeks I will be working more on testing and fixing the issues during stage 3. Thanks to Kenneth Hoste for setting up the shared VM to experiment with emulated RISC-V environment. Also had a fruitful discussions with Guilherme Amadio for the current issues in stage 3 and their workarounds, we will look into them and hope we get a working stage 3 soon.<\/div>\n<div><\/div>\n<div>Regards,<\/div>\n<div>Atharva<\/div>\n<div><\/div>\n<div>[1] <a href=\"https:\/\/github.com\/gentoo\/gentoo\/pull\/25667\" target=\"_blank\" rel=\"noreferrer nofollow noopener\">https:\/\/github.com\/gentoo\/gentoo\/pull\/25667<\/a><\/div>\n<div>[2] <a href=\"https:\/\/bugs.gentoo.org\/766417\" target=\"_blank\" rel=\"noreferrer nofollow noopener\">https:\/\/bugs.gentoo.org\/766417<\/a><\/div>\n<div>[3] <a href=\"https:\/\/github.com\/sifive\/freedom-u-sdk\" target=\"_blank\" rel=\"noreferrer nofollow noopener\">https:\/\/github.com\/sifive\/freedom-u-sdk<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The second week of coding period is over, it has been fun and quite some progress on the project has happened. To start with, I tested the new riscv profile for prefix on different riscv machines\/images, have updated the changes &hellip; <a href=\"https:\/\/blogs.gentoo.org\/gsoc\/2022\/06\/26\/gentoo-soc-week-2-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\/53"}],"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=53"}],"version-history":[{"count":3,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts\/53\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}