Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22375

how to install older version of gcc -3 or gcc-4 in ubuntu 20

$
0
0

I'm trying to install an older version of gcc-4 on my Ubuntu system

  • Make a build directory (mkdir gcc-build && cd gcc-build)
  • Download the source file: wget http://www.netgull.com/gcc/releases/gcc-4.8.0/gcc-4.8.0.tar.bz2 (adjust this command to use an appropriate mirror site.
  • Unzip the file (tar -xvjf <file name>)
  • Install some additional libraries (sudo apt-get install libgmp-dev libmpfr-dev libmpc-dev libc6-dev)
  • Compile the source: ./gcc-4.8.0/configure --prefix=/app/gcc/4.8.0
  • Run make (This will take some time to complete. Go make some coffee, or bake some cookies. ;-))
  • Install the code: sudo make install

CPU architecture

lscpuArchitecture:                    aarch64CPU op-mode(s):                  32-bit, 64-bitByte Order:                      Little EndianCPU(s):                          16On-line CPU(s) list:             0-15Thread(s) per core:              1Core(s) per socket:              4Socket(s):                       4NUMA node(s):                    1Vendor ID:                       ARMModel:                           3Model name:                      Cortex-A72Stepping:                        r0p3BogoMIPS:                        166.66L1d cache:                       512 KiBL1i cache:                       768 KiBL2 cache:                        8 MiBNUMA node0 CPU(s):               0-15Vulnerability Itlb multihit:     Not affectedVulnerability L1tf:              Not affectedVulnerability Mds:               Not affectedVulnerability Meltdown:          Not affectedVulnerability Spec store bypass: Not affectedVulnerability Spectre v1:        Mitigation; __user pointer sanitizationVulnerability Spectre v2:        Mitigation; Branch predictor hardeningVulnerability Srbds:             Not affectedVulnerability Tsx async abort:   Not affectedFlags:                           fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid

and finally run the sudo make installgot this error

    make[1]: Entering directory '/home/ubuntu/gcc-build'/bin/bash ./gcc-4.8.0/mkinstalldirs /app/gcc/4.8.0 /app/gcc/4.8.0/bin/bash: line 3: cd: ./fixincludes: No such file or directorymake[1]: *** [Makefile:3405: install-fixincludes] Error 1make[1]: Leaving directory '/home/ubuntu/gcc-build'make: *** [Makefile:2196: install] Error 2

how can I fix this issue


Viewing all articles
Browse latest Browse all 22375

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>