{"id":1368,"date":"2015-03-10T17:46:44","date_gmt":"2015-03-10T17:46:44","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1368"},"modified":"2015-03-10T17:46:44","modified_gmt":"2015-03-10T17:46:44","slug":"arm-x86_64-a-more-recent-cross-compiler","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1368","title":{"rendered":"ARM \/ x86_64 &#8211; A More Recent Cross-Compiler.."},"content":{"rendered":"<p>I had been using the <strong><em>armv7hl-mandriva-linux-gnueabi-<\/em><\/strong> cross-compiler, but that gcc version is a bit out-of-date now (version 4.6.1).<\/p>\n<p>I found a more recent version, for Fedora, here:\u00a0 <a title=\"http:\/\/rpmfind.net\/\/linux\/RPM\/fedora\/updates\/testing\/21\/x86_64\/g\/gcc-arm-linux-gnu-4.9.2-3.fc21.x86_64.html\" href=\"http:\/\/rpmfind.net\/\/linux\/RPM\/fedora\/updates\/testing\/21\/x86_64\/g\/gcc-arm-linux-gnu-4.9.2-3.fc21.x86_64.html\" target=\"_blank\">http:\/\/rpmfind.net\/\/linux\/RPM\/fedora\/updates\/testing\/21\/x86_64\/g\/gcc-arm-linux-gnu-4.9.2-3.fc21.x86_64.html<\/a><\/p>\n<p>Using yum, this will also install <strong>binutils-arm-linux-gnu-2.25-3.fc21.x86_64<\/strong> and <strong>cross-gcc-common-4.9.2-3.fc21.noarch<\/strong> and <strong>cross-binutils-common-2.25-3.fc21.noarch<\/strong>, to prvide the rest of the cross-compile environment.<\/p>\n<p>It should be noted that this is only suitable for cross-compiling kernels, and does <span style=\"text-decoration: underline;\">not<\/span> provide an environment for cross-compiling userland source rpms etc.. which would require a substantial number of additional cross-compile rpm packages..<\/p>\n<p>The gcc version is now <strong>4.9.2<\/strong>, and can be accessed by substituting <span style=\"font-family: terminal,monaco;\"><strong>export CROSS_COMPILE=arm-linux-gnu-<\/strong><\/span> in the recent examples for <a title=\"https:\/\/rglinuxtech.com\/?p=1328\" href=\"https:\/\/rglinuxtech.com\/?p=1328\" target=\"_blank\">Raspberry Pi<\/a> and <a title=\"https:\/\/rglinuxtech.com\/?p=1354\" href=\"https:\/\/rglinuxtech.com\/?p=1354\" target=\"_blank\">DreamPlug<\/a>.<\/p>\n<p><em>Robert Gadsdon.\u00a0 March 10, 2015<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had been using the armv7hl-mandriva-linux-gnueabi- cross-compiler, but that gcc version is a bit out-of-date now (version 4.6.1). I found a more recent version, for Fedora, here:\u00a0 http:\/\/rpmfind.net\/\/linux\/RPM\/fedora\/updates\/testing\/21\/x86_64\/g\/gcc-arm-linux-gnu-4.9.2-3.fc21.x86_64.html Using yum, this will also install binutils-arm-linux-gnu-2.25-3.fc21.x86_64 and cross-gcc-common-4.9.2-3.fc21.noarch and cross-binutils-common-2.25-3.fc21.noarch, to prvide the rest of the cross-compile environment. It should be noted that this is only suitable for <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1368\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,10,14,15,16],"tags":[1174,132,1042,1044,1043,242,1175,423],"class_list":["post-1368","post","type-post","status-publish","format-standard","hentry","category-compilation","category-fedora","category-kernel","category-linux-2","category-linux-arm","tag-arm","tag-cross-compiler","tag-gcc","tag-gcc-4-9-2","tag-gnueabi","tag-linux","tag-success","tag-x86_64"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1368"}],"version-history":[{"count":2,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1368\/revisions"}],"predecessor-version":[{"id":1370,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1368\/revisions\/1370"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}