{"id":162,"date":"2015-03-11T13:22:18","date_gmt":"2015-03-11T19:22:18","guid":{"rendered":"http:\/\/blogs.gentoo.org\/calchan\/?p=162"},"modified":"2021-03-03T03:08:24","modified_gmt":"2021-03-03T10:08:24","slug":"binsh-argument-list-too-long","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/calchan\/2015\/03\/11\/binsh-argument-list-too-long\/","title":{"rendered":"\/bin\/sh: Argument list too long"},"content":{"rendered":"<p>I tried building binutils-2.25 in a qemu chroot and I got the following error during the build process:<\/p>\n<p><code>\/bin\/sh: Argument list too long<\/code><\/p>\n<p>Google wasn&#8217;t helpful. So I looked at the code for qemu-2.2.0, which is where my static qemu binary comes from. At some point I stumbled on this line in <a href=\"http:\/\/git.qemu.org\/?p=qemu.git;a=blob;f=linux-user\/qemu.h\" title=\"&lt;code&gt;linux-user\/qemu.h&lt;\/code&gt;\" target=\"_blank\" rel=\"noopener noreferrer\"><code>linux-user\/qemu.h<\/code><\/a>:<\/p>\n<p><code>#define MAX_ARG_PAGES 33<\/code><\/p>\n<p>I changed that 33 to a 64, rebuilt, replaced the approriate static binary in my chroot, and the error went away.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I tried building binutils-2.25 in a qemu chroot and I got the following error during the build process: \/bin\/sh: Argument list too long Google wasn&#8217;t helpful. So I looked at the code for qemu-2.2.0, which is where my static qemu binary comes from. At some point I stumbled on this line in linux-user\/qemu.h: #define MAX_ARG_PAGES &hellip; <a href=\"https:\/\/blogs.gentoo.org\/calchan\/2015\/03\/11\/binsh-argument-list-too-long\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\/bin\/sh: Argument list too long<\/span><\/a><\/p>\n","protected":false},"author":72,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[3],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/calchan\/wp-json\/wp\/v2\/posts\/162"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/calchan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/calchan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/calchan\/wp-json\/wp\/v2\/users\/72"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/calchan\/wp-json\/wp\/v2\/comments?post=162"}],"version-history":[{"count":6,"href":"https:\/\/blogs.gentoo.org\/calchan\/wp-json\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":224,"href":"https:\/\/blogs.gentoo.org\/calchan\/wp-json\/wp\/v2\/posts\/162\/revisions\/224"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/calchan\/wp-json\/wp\/v2\/media?parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/calchan\/wp-json\/wp\/v2\/categories?post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/calchan\/wp-json\/wp\/v2\/tags?post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}