Results 1 to 10 of 12

Thread: Problems building GCC 4.5.1

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Beans
    13
    Distro
    Ubuntu

    Problems building GCC 4.5.1

    I am trying to build GCC 4.5.1 on Ubuntu

    I have a VirtualBox install of Ubuntu 10.04.1 64 bit (I use VirtualBox when developing, since I can take snapshots and easily roll back if i screw up the build env... now I am trying linux development)

    So I start with a clean Ubuntu 10.04.1 install, do a package update to bring things up to date.... I then do the following
    http://pastebin.com/dbYyKAA4
    (I keep good notes to be repeatable)

    After that I download and run the following script
    http://pastebin.com/yw0Ve6ZE

    The build process works until it gets to GCC itself and fails on the make process with the following errors
    http://pastebin.com/t1JJpktu

    it seams to be failing on the multilib section... so I tried doing a
    "sudo apt-get build-dep gcc-4.4-multilib" to see if I missed anything, and it defaulted to the normal gcc-4.4 build dependencies

    If needed I can upload the .vdi (VirtualBox drive image) if someone wants to load the machine and see what I am doing

  2. #2
    Join Date
    Dec 2004
    Location
    Manchester
    Beans
    2,086
    Distro
    Ubuntu Mate 15.10 Wily Werewolf

    Re: Problems building GCC 4.5.1

    googling "configure: error: cannot compute suffix of object files: cannot compile" gave many threads.

    one suggested looking in the config.log (as suggested in the error message), so its possible a better error message is in there.

  3. #3
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,292
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Problems building GCC 4.5.1

    Since you are doing this in a VBox, can't you just use Maverick? It has gcc 4.5 in the repositories.
    「明後日の夕方には帰ってるからね。」


  4. #4
    Join Date
    Sep 2010
    Beans
    13
    Distro
    Ubuntu

    Re: Problems building GCC 4.5.1

    Quote Originally Posted by Bachstelze View Post
    Since you are doing this in a VBox, can't you just use Maverick? It has gcc 4.5 in the repositories.
    when I use vbox and maverick, other things break... the bi directional clipboard breaks, and the video drivers break (800x600 is a pain to work in)

  5. #5
    Join Date
    Sep 2010
    Beans
    13
    Distro
    Ubuntu

    Re: Problems building GCC 4.5.1

    Quote Originally Posted by ssam View Post
    googling "configure: error: cannot compute suffix of object files: cannot compile" gave many threads.

    one suggested looking in the config.log (as suggested in the error message), so its possible a better error message is in there.
    my config.log
    http://pastebin.com/zheZQfpu

    I am looking through the threads... tried some things, not found a solution yet

  6. #6
    Join Date
    Sep 2010
    Beans
    13
    Distro
    Ubuntu

    Re: Problems building GCC 4.5.1

    ok... i even added "--disable-multilib" to the ./configure command... and the make still fails in the checking multilib configuration for libgcc

    what am I doing wrong?

    I have all of the commands I am running, all of the libraries I am using listed there

    the .vdi object is 13+ gig, so i don't think anybody wants to download it

  7. #7
    Join Date
    Sep 2010
    Beans
    13
    Distro
    Ubuntu

    Re: Problems building GCC 4.5.1

    I added "export LD_LIBRARY_PATH=$DEV_LIBDIR/lib" to the build script... and that problem went away...

    to be replaced by a new one

    "/usr/bin/ld: cannot find -lstdc++"

    http://pastebin.com/cVDRRVj7

    I tried adding libstdc++6-4.4-dev but that did not fix it...

  8. #8
    Join Date
    Sep 2010
    Beans
    13
    Distro
    Ubuntu

    Re: Problems building GCC 4.5.1

    ok... i am still stuck on the -lstdc++ issue

    I made sure libstdc++6-4.4-dev was installed via apt-get, no change

    I have tried moving to a 32 bit linux install (new VirtualBox machine, clean install), no change

    I also adjusted my build script http://pastebin.com/GDkXw5E1 to put the gcc and all the libraries in the same directory "~/dev/usr" (vs gcc being in one, and the 6 support libraries in a second), no change

    I even looked up the stdc++ library, and considered compiling it externally, but it is now part of the gcc svn download... so I have it, it should be compiled in

    I don't know what I am doing wrong... I am starting with a fresh install of Ubuntu 10.04.1, doing the package update, installing the guestOS drivers from virtual box... then doing the exact commands i have listed above...

    I am able to build gcc-4.4 from the package repository (as a test)... but i can't build gcc 4.5.1 from svn

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
  •