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

    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

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

    Re: Problems building GCC 4.5.1

    ok, based on some help from the #gcc channel on effnet, i removed the static linking from the ./configure
    (new build script is much simpler http://pastebin.com/7yd8ZpZ7 )

    and make worked...

    but my next step in the script is a "make check" for GCC and it blew up
    http://otakuvideo.com/~quu/check.txt

    so, i seam to be able to make gcc, but it fails its test, and the make install fails also

    -_-;;;

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

    Re: Problems building GCC 4.5.1

    I have simplified this as much as possible, I am no longer downloading from SCM or anything... these are all snapshots


    I have a VirtualBox machine with Ubuntu 10.04.1 64-bit Desktop and a 32 gig hard drive image
    I let the update manager update the system, and then I install the GuestOS additions from VirtualBox

    My Linux install is then base lined (I take a snapshot)

    i log in, create a sub directory in my home directory, go into that sub directory (I named it conplay-dev but it can be anything)

    I then create an env.sh in this directory - http://pastebin.com/EjSPLmNt
    I then create an init.sh in this directory - http://pastebin.com/hLwLLTW3
    I then create a build.sh in this directory - http://pastebin.com/8i8ugG53
    Finally I make all three executable "chmod +x *.sh"

    I run "./init.sh" and then "./build.sh"

    the init runs fine (I need to put in my password for the two sudo steps)... and the build seams to run fine... until it gets to the "make check" for GCC and fails

    what am I doing wrong, why is the check for GCC failing?

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

    Re: Problems building GCC 4.5.1

    I decided to try it with GMP 4.3.2 instead of 5.0.1 and i get the same thing

    Code:
    make[3]: Leaving directory `/home/amv/dev/build/gcc/gcc'
    make[2]: *** No rule to make target `check-lto', needed by `check'.  Stop.
    make[2]: Leaving directory `/home/amv/dev/build/gcc/gcc'
    make[1]: *** [check-gcc] Error 2
    make[1]: Leaving directory `/home/amv/dev/build/gcc'
    make: *** [do-check] Error 2
    It seams that gcc itself is failing

    Code:
            === gcc Summary ===
    
    # of expected passes        72572
    # of unexpected failures    22
    # of unexpected successes    26
    # of expected failures        184
    # of unsupported tests        972
    /home/amv/dev/build/gcc/gcc/xgcc  version 4.5.1 (GCC)
    If i investigate up, I see these, which add up to the amount of unexpected results

    Code:
    Running /home/amv/dev/src/gcc/gcc/testsuite/gcc.dg/guality/guality.exp ...
    XPASS: gcc.dg/guality/example.c  -O0  execution test
    XPASS: gcc.dg/guality/example.c  -O1  execution test
    XPASS: gcc.dg/guality/example.c  -O2  execution test
    XPASS: gcc.dg/guality/example.c  -O2 -flto  execution test
    XPASS: gcc.dg/guality/example.c  -O2 -fwhopr  execution test
    XPASS: gcc.dg/guality/guality.c  -O0  execution test
    XPASS: gcc.dg/guality/guality.c  -O1  execution test
    XPASS: gcc.dg/guality/guality.c  -O2  execution test
    XPASS: gcc.dg/guality/guality.c  -O3 -fomit-frame-pointer  execution test
    XPASS: gcc.dg/guality/guality.c  -O3 -g  execution test
    XPASS: gcc.dg/guality/guality.c  -Os  execution test
    XPASS: gcc.dg/guality/guality.c  -O2 -flto  execution test
    XPASS: gcc.dg/guality/guality.c  -O2 -fwhopr  execution test
    XPASS: gcc.dg/guality/pr41353-1.c  -O0  line 28 j == 28 + 37
    XPASS: gcc.dg/guality/pr41353-1.c  -O1  line 28 j == 28 + 37
    XPASS: gcc.dg/guality/pr41353-1.c  -O2  line 28 j == 28 + 37
    XPASS: gcc.dg/guality/pr41353-1.c  -O3 -fomit-frame-pointer  line 28 j == 28 + 37
    XPASS: gcc.dg/guality/pr41353-1.c  -O3 -g  line 28 j == 28 + 37
    XPASS: gcc.dg/guality/pr41353-1.c  -Os  line 28 j == 28 + 37
    FAIL: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 28 i == 37
    FAIL: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 28 i1 == 2 * 37
    FAIL: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 28 i2 == 3 * 37
    FAIL: gcc.dg/guality/pr41353-1.c  -O2 -fwhopr  line 28 i == 37
    FAIL: gcc.dg/guality/pr41353-1.c  -O2 -fwhopr  line 28 i1 == 2 * 37
    FAIL: gcc.dg/guality/pr41353-1.c  -O2 -fwhopr  line 28 i2 == 3 * 37
    XPASS: gcc.dg/guality/pr41447-1.c  -O0  execution test
    XPASS: gcc.dg/guality/pr41616-1.c  -O0  execution test
    XPASS: gcc.dg/guality/pr41616-1.c  -O1  execution test
    XPASS: gcc.dg/guality/pr41616-1.c  -O2  execution test
    XPASS: gcc.dg/guality/pr41616-1.c  -Os  execution test
    XPASS: gcc.dg/guality/pr41616-1.c  -O2 -flto  execution test
    XPASS: gcc.dg/guality/pr41616-1.c  -O2 -fwhopr  execution test
    FAIL: gcc.dg/guality/vla-1.c  -O0  line 17 sizeof (a) == 6
    FAIL: gcc.dg/guality/vla-1.c  -O0  line 24 sizeof (a) == 17 * sizeof (short)
    FAIL: gcc.dg/guality/vla-1.c  -O1  line 17 sizeof (a) == 6
    FAIL: gcc.dg/guality/vla-1.c  -O1  line 24 sizeof (a) == 17 * sizeof (short)
    FAIL: gcc.dg/guality/vla-1.c  -O2  line 17 sizeof (a) == 6
    FAIL: gcc.dg/guality/vla-1.c  -O2  line 24 sizeof (a) == 17 * sizeof (short)
    FAIL: gcc.dg/guality/vla-1.c  -O3 -fomit-frame-pointer  line 17 sizeof (a) == 6
    FAIL: gcc.dg/guality/vla-1.c  -O3 -fomit-frame-pointer  line 24 sizeof (a) == 17 * sizeof (short)
    FAIL: gcc.dg/guality/vla-1.c  -O3 -g  line 17 sizeof (a) == 6
    FAIL: gcc.dg/guality/vla-1.c  -O3 -g  line 24 sizeof (a) == 17 * sizeof (short)
    FAIL: gcc.dg/guality/vla-1.c  -Os  line 17 sizeof (a) == 6
    FAIL: gcc.dg/guality/vla-1.c  -Os  line 24 sizeof (a) == 17 * sizeof (short)
    FAIL: gcc.dg/guality/vla-1.c  -O2 -flto  line 17 sizeof (a) == 6
    FAIL: gcc.dg/guality/vla-1.c  -O2 -flto  line 24 sizeof (a) == 17 * sizeof (short)
    FAIL: gcc.dg/guality/vla-1.c  -O2 -fwhopr  line 17 sizeof (a) == 6
    FAIL: gcc.dg/guality/vla-1.c  -O2 -fwhopr  line 24 sizeof (a) == 17 * sizeof (short)
    Running /home/amv/dev/src/gcc/gcc/testsuite/gcc.dg/ipa/ipa.exp ...
    === g++ Summary === looks fine
    === gfortran Summary === looks fine

    I don't know if the "make check" is failing due to the check-lto or all the gcc unexpected results

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

    Re: Problems building GCC 4.5.1

    I did a "make -k check" and piped it to this file
    http://otakuvideo.com/~quu/make_-k_check.txt

    a while bunch of un expected failures... but I am not using "cutting edge" builds of anything... i am just using snapshots

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
  •