Results 1 to 1 of 1

Thread: 12.04 and gcc 4.1.x

Threaded View

  1. #1
    Join Date
    Oct 2012
    Beans
    1

    12.04 and gcc 4.1.x

    A bit of background: I'm a software developer, been doing linux dev since the mid-90's. I recently inherited the tasks of "build machine guy", and I want to move us off Centos 5.x and into Ubuntu 12.04.

    But I have a problem: we use Bitbake to generate our solid-image for the embedded target, and it turns out the infrastructure of the bitbake version we use is closely coupled with gcc 4.1.2. That doesn't leave many options: If I am to migrate to Ubuntu 12.x, I must have gcc 4.1.2. Moving us into the present bitbake and gcc would require an significant effort that is beyond what I have budgeted for time, today.

    So in my attempts at making this happen, I added the following lines to /etc/apt/sources.list:

    Code:
    deb     http://archive.ubuntu.com/ubuntu/ lucid universe
    deb-src http://archive.ubuntu.com/ubuntu/ lucid universe
    I did an apt-get update; then tried to install:

    Code:
    # apt-get install gcc-4.1  
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     gcc-4.1 : Depends: binutils (>= 2.17cvs20070426) but it is not going to be installed
     kubuntu-docs : Depends: khelpcenter but it is not going to be installed or
                             www-browser or
                             x-www-browser but it is not installable
     libasound2-plugins : Depends: libjack-jackd2-0 (>= 1.9.5~dfsg-14) but it is not going to be installed or
                                   libjack-0.116
     libgcc1 : Breaks: gcc-4.1 but 4.1.2-27ubuntu1 is to be installed
    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
    I had assumed I could install the package, then use something like

    Code:
    update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.1 10
    to control which compiler was answering when I invoke "gcc".

    Is it possible to get gcc 4.1 installed on Ubuntu 12.04?

    An alternative: is it possible to install gcc 4.1 somewhere on /opt so that the toolchain knows its installed in /opt (libs, headers, etc)? If so, what would the specific steps be for 12.04?
    Last edited by dwycoff; October 17th, 2012 at 01:18 AM.

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
  •