LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   install gcc-4.4.2 on ubuntu 16.04 (https://www.linuxquestions.org/questions/linux-general-1/install-gcc-4-4-2-on-ubuntu-16-04-a-4175602171/)

gbcbooks 03-20-2017 02:32 AM

install gcc-4.4.2 on ubuntu 16.04
 
hi all

ubuntu 16.04 's apt source provide gcc-5

we need gcc-4.4.2 , i have to compile gcc-4.4.2 from source code. but it is not easy thing to do, here is what i stop for ,

Code:

collect2: error: ld returned 1 exit status
Makefile:1666: recipe for target 'cc1-dummy' failed
make[3]: *** [cc1-dummy] Error 1
make[3]: Leaving directory '/root/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc'
Makefile:5146: recipe for target 'all-stage1-gcc' failed
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory '/root/gcc-4.4.2'
Makefile:19885: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/root/gcc-4.4.2'
Makefile:743: recipe for target 'all' failed
make: *** [all] Error 2

i search google , there is little materials about ubuntu 16.04 install gcc-4.4.2 .

ondoho 03-20-2017 03:21 AM

i've seen a similar thread recently, and the gist of it in the end was:
it is not an easy thing to do, because of the central role a compiler plays in a linux system.
you should think about other ways of solving your problem.
1) why do you need that specific version?
2) if you really really need it, maybe a virtual machine just for compiling is abetter way?
3) maybe current compilers have some sort of "backwards compatibility" mode?
etc.
these are just uninformed ideas.

gbcbooks 03-20-2017 03:25 AM

because of our business process, we just need it .

where did you saw this issue , what is their solution ?

gbcbooks 03-20-2017 03:33 AM

did you ever meet the successful case ?

ardvark71 03-20-2017 04:18 AM

Hi...

I saw some Ubuntu .deb packages for gcc-4.4.2 here, however, dependency issues may make installing these an impossibility, including breaking other software. :(

It might be easier (if feasible) to use a separate system that can run an older version of Ubuntu that uses this version of gcc natively. Just make sure not to connect this system to any network. ;)

Regards...

gbcbooks 03-20-2017 04:28 AM

Quote:

Originally Posted by ardvark71 (Post 5685824)
Hi...

I saw some Ubuntu .deb packages for gcc-4.4.2 here, however, dependency issues may make installing these an impossibility, including breaking other software. :(

It might be easier (if feasible) to use a separate system that can run an older version of Ubuntu that uses this version of gcc natively. Just make sure not to connect this system to any network. ;)

Regards...

do you mean compile gcc-4.4.2 in a older version of ubuntut ?

hydrurga 03-20-2017 07:09 AM

Quote:

Originally Posted by gbcbooks (Post 5685805)
because of our business process, we just need it.

Unfortunately this answer provides zero technical information required to solve the issue.

As another poster pointed out, installing an older version of gcc on your Ubuntu 16.04 systems is very liable to create problems, even if using update-alternatives. Creating a VM with an older version of Ubuntu that supports the particular gcc version might work but then would probably result in an insecure unsupported version of Ubuntu (therefore unable to be network-faced).

You should therefore examine, on a technical level, exactly why you think you need that version of gcc, with the aim of finding a solution which means that you do not in fact need that version of gcc.

ardvark71 03-20-2017 12:36 PM

Quote:

Originally Posted by gbcbooks (Post 5685825)
do you mean compile gcc-4.4.2 in a older version of ubuntut ?

Hi...

Ubuntu 10.04 or an older version might have these packages installed already, I'm not sure. However, I would have to repeat my previous warning, as well as to direct you to hydrurga's advice. The more information we have the better we can help you possibly find an alternative.

Regards...

hydrurga 03-20-2017 12:43 PM

Quote:

Originally Posted by ardvark71 (Post 5686024)
Hi...

Ubuntu 10.04 or an older version might have these packages installed already, I'm not sure. However, I would have to repeat my previous warning, as well as to direct you to hydrurga's advice. The more information we have the better we can help you possibly find an alternative.

Regards...

According to Distrowatch (https://distrowatch.com/table.php?distribution=ubuntu), Ubuntu 9.10 was distributed with gcc 4.4.1, Ubuntu 10.04 with 4.4.3.

ardvark71 03-20-2017 01:02 PM

Quote:

Originally Posted by hydrurga (Post 5686027)
According to Distrowatch (https://distrowatch.com/table.php?distribution=ubuntu), Ubuntu 9.10 was distributed with gcc 4.4.1, Ubuntu 10.04 with 4.4.3.

Hi...

Thanks for looking that up, I wasn't sure. Although, I wonder why the packages I linked to were for 10.04? :)

EDIT: I just remembered there was more than one version of 10.04, the OP may have to go for the earliest (or one of the earliest) release.

Regards...


All times are GMT -5. The time now is 04:57 AM.