{"id":97,"date":"2022-10-14T19:22:13","date_gmt":"2022-10-14T10:22:13","guid":{"rendered":"https:\/\/shirakawa.weblike.jp\/blog-page\/?p=97"},"modified":"2025-09-22T11:47:56","modified_gmt":"2025-09-22T02:47:56","slug":"install_orig_gcc","status":"publish","type":"post","link":"https:\/\/shirakawa.weblike.jp\/blog-page\/2022\/10\/14\/install_orig_gcc\/","title":{"rendered":"INSTALL_ORIG_GCC"},"content":{"rendered":"<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306einstall\u4e0d\u8db3\u306e\u30c1\u30a7\u30c3\u30af https:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/%a5%e9%a5%a4%a5%d6%a5%e9%a5%ea%a4%ceinstall%c9%d4%c2%ad%a4%ce%a5%c1%a5%a7%a5%c3%a5%af<br \/>\n\u3067\u3001GCC\u3092\u5165\u308c\u306a\u3044\u3068\u3001libquadmath\u306f\u5165\u3089\u306a\u3044\u3002<br \/>\n\u5165\u308c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u306e\u306a\u3089\u3070GCC\u306e\u3046\u3061\u3001gcc\/g++\u3092\u4e2d\u5fc3\u3068\u3059\u308b\u57fa\u672c\u958b\u767a\u74b0\u5883\u307e\u3067\u5165\u308c\u308b\u3002<\/p>\n<p><p>https:\/\/seesaawiki.jp\/lifewithslackarmzaurus14_1\/d\/INSTALL%5fORIG%5fGCC &#8211; SlackwareARM-14.1 spitz,f4s GPE \u30e1\u30e2<br \/>\n\u3092\u53c2\u8003\u306b\u3001<br \/>\n$ cd \/mnt2\/slackware64\/slackware\/<br \/>\n$ sudo installpkg d\/make-4.3-x86_64-3.txz<br \/>\n$ sudo installpkg d\/gcc-11.2.0-x86_64-2.txz<br \/>\n$ sudo installpkg d\/gcc-g++-11.2.0-x86_64-2.txz<br \/>\n$ sudo installpkg d\/m4-1.4.19-x86_64-1.txz<br \/>\n$ sudo installpkg d\/pkg-config-0.29.2-x86_64-4.txz<br \/>\n$ sudo installpkg d\/perl-5.34.0-x86_64-1.tx (install\u6e08\u307f)<br \/>\n$ sudo installpkg a\/findutils-4.8.0-x86_64-3.txz (install\u6e08\u307f)<br \/>\n$ sudo installpkg d\/autoconf-2.69-noarch-4.txz<br \/>\n$ sudo installpkg d\/automake-1.16.2-noarch-4.txz<br \/>\n$ sudo installpkg d\/flex-2.6.4-x86_64-5.txz<br \/>\n$ sudo installpkg d\/bison-3.8.2-x86_64-1.txz<br \/>\n$ sudo installpkg d\/binutils-2.37-x86_64-1.txz<br \/>\n$ sudo installpkg d\/libtool-2.4.6-x86_64-18.txz<br \/>\n$ sudo installpkg d\/kernel-headers-5.15.19-x86-2.txz<br \/>\n$ sudo installpkg l\/glibc-2.33-x86_64-5.txz (install\u6e08\u307f)<br \/>\n$ sudo installpkg d\/gettext-tools-0.21-x86_64-3.txz (install\u6e08\u307f)<br \/>\n$ sudo installpkg a\/sed-4.8-x86_64-3.txz (install\u6e08\u307f)<br \/>\n$ sudo installpkg a\/gawk-5.1.1-x86_64-1.txz (install\u6e08\u307f)<br \/>\n$ sudo installpkg a\/patch-2.7.6-x86_64-5.txt (install\u6e08\u307f)<br \/>\n$ sudo installpkg l\/ncurses&#8211;6.3-x86_64-1.txz<br \/>\n$ sudo installpkg ap\/diffutils-3.8-x86_64-1.txz (install\u6e08\u307f)<br \/>\n$ sudo installpkg a\/tar-1.34-x86_64-1.txz (install\u6e08\u307f)<br \/>\n$ sudo installpkg l\/libzip-1.8.0-x86_64-1.txz (install\u6e08\u307f)<br \/>\n$ sudo installpkg a\/gzip-1.11-x86_64-1.txz (install\u6e08\u307f)<br \/>\n$ sudo installpkg a\/bzip2-1.0.8-x86_64-3.txz (install\u6e08\u307f)<br \/>\n$ sudo installpkg d\/ccache-4.5.1-x86_64-1.txz<br \/>\n$ sudo installpkg ap\/texinfo-6.8-x86_64-3.txz<br \/>\n$ sudo installpkg a\/file-5.41-x86_64-1.txz (install\u6e08\u307f)<br \/>\n$ sudo installpkg ap\/bc-1.07.1-x86_64-5.txz<br \/>\n\u4e0d\u8db3lib\u30c1\u30a7\u30c3\u30af&amp;Inst\uff1a<br \/>\nhttps:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/%a5%e9%a5%a4%a5%d6%a5%e9%a5%ea%a4%ceinstall%c9%d4%c2%ad%a4%ce%a5%c1%a5%a7%a5%c3%a5%af<br \/>\n$ sudo installpkg d\/gcc-go-11.2.0-x86_64-2.txz<br \/>\n$ grep -E &#8216;bin|lib&#8217; \/var\/log\/packages\/gcc-go-11.2.0-x86_64-2 | sed s@^@\/@ | xargs ldd | grep found<br \/>\n(\u4f9d\u5b58lib\u306e\u4e0d\u8db3\u306f\u306a\u304b\u3063\u305f)<\/p>\n<p>$ LANG=C LC_ALL=POSIX gcc -v<br \/>\nReading specs from \/usr\/lib64\/gcc\/x86_64-slackware-linux\/11.2.0\/specs<br \/>\nCOLLECT_GCC=gcc<br \/>\nCOLLECT_LTO_WRAPPER=\/usr\/libexec\/gcc\/x86_64-slackware-linux\/11.2.0\/lto-wrapper<br \/>\nTarget: x86_64-slackware-linux<br \/>\nConfigured with: ..\/configure &#8211;prefix=\/usr &#8211;libdir=\/usr\/lib64 &#8211;mandir=\/usr\/man &#8211;infodir=\/usr\/info &#8211;enable-shared &#8211;enable-bootstrap &#8211;enable-languages=ada,brig,c,c++,d,fortran,go,lto,objc,obj-c++ &#8211;enable-threads=posix &#8211;enable-checking=release &#8211;enable-objc-gc &#8211;with-system-zlib &#8211;enable-libstdcxx-dual-abi &#8211;with-default-libstdcxx-abi=new &#8211;disable-libstdcxx-pch &#8211;disable-libunwind-exceptions &#8211;enable-__cxa_atexit &#8211;disable-libssp &#8211;enable-gnu-unique-object &#8211;enable-plugin &#8211;enable-lto &#8211;disable-install-libiberty &#8211;disable-werror &#8211;with-gnu-ld &#8211;with-isl &#8211;verbose &#8211;with-arch-directory=amd64 &#8211;disable-gtktest &#8211;enable-clocale=gnu &#8211;disable-multilib &#8211;target=x86_64-slackware-linux &#8211;build=x86_64-slackware-linux &#8211;host=x86_64-slackware-linux<br \/>\nThread model: posix<br \/>\nSupported LTO compression algorithms: zlib zstd<br \/>\ngcc version 11.2.0 (GCC)<\/p>\n<p>$ echo &#8216;int main(){return 0;}&#8217; &gt; dummy.c<br \/>\n$ gcc dummy.c<br \/>\n$ file a.out<br \/>\na.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter \/lib64\/ld-linux-x86-64.so.2, with debug_info, not stripped<br \/>\n$ ldd a.out<br \/>\n\\ linux-vdso.so.1 (0x00007ffeab7dd000) &lt;- \u3053\u3093\u306a\u306espitz\u306b\u306f\u3044\u306a\u3044\u3002<br \/>\n\\ libc.so.6 =&gt; \/lib64\/libc.so.6 (0x00007fe6c2c64000)<br \/>\n\\ \/lib64\/ld-linux-x86-64.so.2 (0x00007fe6c2e5d000)<br \/>\n\\<br \/>\nlinux-vdso.so \u3068\u306f\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a<br \/>\n\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u30ab\u30fc\u30cd\u30eb\u304c\u63d0\u4f9b\u3059\u308b\u4eee\u60f3\u7684\u306a\u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30ea<br \/>\nhttps:\/\/qiita.com\/akachochin\/items\/d5d1ba84fefae2f781f3<br \/>\n\u983b\u7e41\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3092\u30ab\u30fc\u30cd\u30eb\u7a7a\u9593\u306b\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u306a\u304f\u30e6\u30fc\u30b6\u7a7a\u9593\u3067\u51e6\u7406<br \/>\n\u3055\u305b\u308b\u3053\u3068\u306b\u3088\u308a\u6027\u80fd\u3092\u5411\u4e0a\u3055\u305b\u308b<\/p>\n<p>&nbsp;<\/p>\n<p>\u53c2\u8003\u60c5\u5831\uff1a<br \/>\n\u3053\u3053\u3067\u8a00\u3063\u3066\u308bLSB\u3068\u306f\u3001MSB\/LSB(endian)\u306e\u3053\u3068\u3002Linux Standard Base\u3067\u306f\u306a\u3044\u3002(2024.08)<br \/>\n\\<br \/>\nhttps:\/\/e-words.jp\/w\/LSB-1.html<br \/>\nLSB\u3068\u306f\u3001Linux\u306e\u5404\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\uff08\u914d\u5e03\u30d1\u30c3\u30b1\u30fc\u30b8\uff09\u9593\u306e\u4e92\u63db\u6027\u3084\u76f8\u4e92\u904b\u7528\u6027\u3092\u9ad8\u3081\u308b\u305f\u3081\u3001\u4e00\u90e8\u306e\u4ed5\u69d8\u306e\u6a19\u6e96\u3092\u5b9a\u3081\u305f\u898f\u683c\u3002\u6e96\u62e0\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u9593\u3067\u306f\u57fa\u672c\u7684\u306b\u540c\u3058\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4fee\u6b63\u30fb\u8abf\u6574\u305b\u305a\u306b\u305d\u306e\u307e\u307e\u52d5\u4f5c\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002Linux Standard Base\u3002<br \/>\nhttps:\/\/linux.srad.jp\/story\/23\/03\/09\/1421247\/<br \/>\nhttps:\/\/forums.debian.net\/viewtopic.php?t=144143<br \/>\nDebian\u3068\u304b\u306b\u306fLSB\u306epkg\u304c\u3042\u308b\u3002<\/p>\n<p>Install\u307e\u305f\u306f\u5c55\u958b\u6642\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\uff1a<br \/>\n\\# gcc (Base GCC package with C support)<br \/>\n\\# GCC is the GNU Compiler Collection.<br \/>\n\\# This package contains those parts of the compiler collection needed to<br \/>\n\\# compile C code. Other packages add Ada, C++, D, Fortran, Go,<br \/>\n\\# Objective-C, and BRIG support to the compiler core.<br \/>\n\\<br \/>\n\\# gcc-go (Go support for GCC)<br \/>\n\\# Go is a compiled, garbage-collected, concurrent programming language<br \/>\n\\# developed by Google Inc. The initial design of Go was started in<br \/>\n\\# September 2007 by Robert Griesemer, Rob Pike, and Ken Thompson.<br \/>\n\\# Rob Pike has stated that Go is being used &#8220;for real stuff&#8221; at Google.<br \/>\n\\# Go&#8217;s &#8220;gc&#8221; compiler targets the Linux, Mac OS X, FreeBSD, OpenBSD and<br \/>\n\\# Microsoft Windows operating systems, and the i386, amd64, and ARM<br \/>\n\\# processor architectures.<br \/>\n\\# Homepage: http:\/\/golang.org<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306einstall\u4e0d\u8db3\u306e\u30c1\u30a7\u30c3\u30af https:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/%a5%e9%a5%a4%a5%d6%a5%e9%a5%ea%a4%ceinst [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-linux-system"],"_links":{"self":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":3,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts\/97\/revisions"}],"predecessor-version":[{"id":1688,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts\/97\/revisions\/1688"}],"wp:attachment":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/categories?post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}