LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-20-2017, 02:32 AM   #1
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Rep: Reputation: Disabled
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 .
 
Old 03-20-2017, 03:21 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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.
 
Old 03-20-2017, 03:25 AM   #3
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled
because of our business process, we just need it .

where did you saw this issue , what is their solution ?
 
Old 03-20-2017, 03:33 AM   #4
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled
did you ever meet the successful case ?
 
Old 03-20-2017, 04:18 AM   #5
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
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...
 
Old 03-20-2017, 04:28 AM   #6
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ardvark71 View Post
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 ?
 
Old 03-20-2017, 07:09 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by gbcbooks View Post
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.
 
Old 03-20-2017, 12:36 PM   #8
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by gbcbooks View Post
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...
 
Old 03-20-2017, 12:43 PM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by ardvark71 View Post
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.
 
Old 03-20-2017, 01:02 PM   #10
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by hydrurga View Post
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...

Last edited by ardvark71; 03-20-2017 at 01:06 PM. Reason: Added information.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install gcc-2.95.3 in ubuntu 10.04 luka11 Linux - Software 6 01-08-2017 11:51 AM
[SOLVED] TRYING to install gcc 4.3.6 in ubuntu 14.04 milina Linux - Newbie 2 02-27-2016 07:42 AM
install gcc 3.4 along side gcc 4 problem on ubuntu 11.10 lilmike Linux - General 1 06-28-2012 04:39 AM
Install GCC 2.9 on Ubuntu 8.10 aznium Linux - Software 3 12-26-2008 10:37 AM
Ubuntu 7.10 how do you install GCC v3.4.6 compiler and use it cctv Linux - Newbie 5 03-25-2008 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration