Results 1 to 9 of 9

Thread: installing gcc-3.4 problem

  1. #1
    Join Date
    Aug 2012
    Beans
    166

    installing gcc-3.4 problem

    Hello everyone,

    I have installed gcc-4.6 at /usr/bin. I am trying to install gcc-3.4 at /usr/local/bin. I downloaded gcc-3.4.6.tar.gz from gnu.org and "detarred" the file. I can configure the file without any error using --prefix =-/usr/local/3.4.6 . However, when I run make bootstrap-lean all I get is a stream of errors that indicate problems with the installed gcc-4.6 include files.

    I don't know how to deal with this problem. Perhaps someone can suggest a solution.

    Regards,
    Mark Allyn

  2. #2
    Join Date
    Jan 2011
    Beans
    1,151

    Re: installing gcc-3.4 problem

    Quote Originally Posted by mark allyn View Post
    Hello everyone,

    I have installed gcc-4.6 at /usr/bin. I am trying to install gcc-3.4 at /usr/local/bin. I downloaded gcc-3.4.6.tar.gz from gnu.org and "detarred" the file. I can configure the file without any error using --prefix =-/usr/local/3.4.6 . However, when I run make bootstrap-lean all I get is a stream of errors that indicate problems with the installed gcc-4.6 include files.

    I don't know how to deal with this problem. Perhaps someone can suggest a solution.

    Regards,
    Mark Allyn

    yikes. you installed it at /usr/bin

    Reinstall the gcc and libraries from the ubuntu repostory

    Try to install it on your gcc4.6 /usr/local/bin

    breaking essential packages is not easy to fix.
    (\ /)
    (O.o)
    (> <)
    This is Bunny. Copy Bunny into your signature to help him on his way to world domination.

  3. #3
    Join Date
    Aug 2012
    Beans
    166

    Re: installing gcc-3.4 problem

    Hi Idoitprone.

    Nice name. Well, as a matter of fact, I didn't install gcc4.6 in /usr/bin. sudo dpkg -i did it. But, I'm glad you responded, because I have been trying to figure out how to force sudo dpkg to install in /usr/local/bin. What options need setting?

    Regards,
    Mark

  4. #4
    Join Date
    Aug 2012
    Beans
    166

    Re: installing gcc-3.4 problem

    Hello again, Idoitprone,

    I owe an apology to sudo dpkg. It didn't do the install at /usr/bin. When I first installed ubuntu 12.04, gcc turned up in the /usr/bin directory.

    But, I'd still like to know how to get sudo dpkg to install in a directory of my choosing, for example, /usr/local/bin.

    My original question still stands, by the way.

    Regards,
    Mark

  5. #5
    Join Date
    Jan 2011
    Beans
    1,151

    Re: installing gcc-3.4 problem

    i dont think your need a hypen

    Code:
    -prefix =-/usr/local/3.4.6

    Code:
    make clean
    ./configure --prefix=/usr/local/3.4.6
    (\ /)
    (O.o)
    (> <)
    This is Bunny. Copy Bunny into your signature to help him on his way to world domination.

  6. #6
    Join Date
    Aug 2012
    Beans
    166

    Re: installing gcc-3.4 problem

    Hi Idoitprone,

    Thanks. I'll give it a try. I'll report back tomorrow morning (US EDT).

    Mark

  7. #7
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,661
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: installing gcc-3.4 problem

    Non expert advice:
    There are toolchain ppa..these let you have multiple compiler versions & switch between using the concept of alternatives..
    You use couple scripts & symlinks etc..
    I have 4.3 & 4.6 on same install by using the link below..

    But I doubt there are any easy toolchain ppa for 12.04 with older gcc versions.
    You might find a solution by looking at or using alternatives.
    http://askubuntu.com/questions/26498...on/26518#26518
    Note the comment about CC environ variable.

    Could be easier to load up/install old ubuntu in VirtualBox..
    Your app will only run (outside VirtBox) if it is compiled statically.
    VirtualBox will mask/hide the CPU architecture etc.

  8. #8
    Join Date
    Aug 2012
    Beans
    166

    Re: installing gcc-3.4 problem

    Hi BicyclerBoy,

    Thanks for your input on this. I will investigate the link you sent.

    According to the GNU GCC project it should be possible to have different versions of GCC on the same system. This at least is their claim at gcc.gnu.org/faq.html. That faq states that the versions must be in different directories. In their example, for my case the directories would be /usr/local/bin/gcc-3.4.6 and /usr/bin/gcc-4.6.3 (this is where Ubuntu 12.04 installed GCC on my system).

    When I attempt to install gcc-3.4.6 at the aforementioned location, in the "make all" step a bunch of errors get generated due to problems with include files in /usr/include.

    To be continued. But, I will indeed look into your link and read it over.

    Regards,
    Mark

  9. #9
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,661
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: installing gcc-3.4 problem

    As I said I have multiple gcc versions on same install.

    Your problem is that much more complicated by trying to compile the compiler..
    This is referred to as bootstrapping.
    It may not be possible to build gcc-3.4 using a later compiler without code changes.

    If you can find the gcc-3.4 as a deb package you could have more luck.
    This does not seem likely.

    A virtualbox install of 8.04 (or older?) is a tidy soln, you need to make the application completely self contained because any shared libraries will be out-dated/abi changed.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •