[Bug 832178] [NEW] Can not build gcc using gcc 4.6.x shipped with oneiric

Khem Raj 832178 at bugs.launchpad.net
Tue Aug 23 16:59:08 UTC 2011


Public bug reported:

I am trying to build upstream gcc-4.6.1 from downloaded tarball but it
fails to compile as it ends with following error

/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/home/kraj/work/gcc-4.6.1/x86_64-unknown-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/kraj/work/gcc-4.6.1'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/kraj/work/gcc-4.6.1'
make: *** [all] Error 2

My configure command is

./configure --enable-languages=c --disable-werror --disable-multilib

The reason seems to be that the newly generated driver is not able to
find crt* files w.r.t. the libdir and seaches them in current obj dir
itself proabably due to libdir in oneiric has moved into /usr/lib/<arch
>-linux-gnu/

If I use --libdir=/usr/lib/x86_64-linux-gnu then it compiles ok but that
should not be required.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gcc 4:4.6.1-2ubuntu5
ProcVersionSignature: Ubuntu 3.0.0-7.9-server 3.0.0
Uname: Linux 3.0.0-7-server x86_64
Architecture: amd64
Date: Tue Aug 23 09:52:59 2011
InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Alpha amd64 (20110802.1)
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
SourcePackage: gcc-defaults
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gcc-defaults (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug oneiric

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/832178

Title:
  Can not build gcc using gcc 4.6.x shipped with oneiric

Status in “gcc-defaults” package in Ubuntu:
  New

Bug description:
  I am trying to build upstream gcc-4.6.1 from downloaded tarball but it
  fails to compile as it ends with following error

  /usr/bin/ld: cannot find crti.o: No such file or directory
  collect2: ld returned 1 exit status
  make[3]: *** [libgcc_s.so] Error 1
  make[3]: Leaving directory `/home/kraj/work/gcc-4.6.1/x86_64-unknown-linux-gnu/libgcc'
  make[2]: *** [all-stage1-target-libgcc] Error 2
  make[2]: Leaving directory `/home/kraj/work/gcc-4.6.1'
  make[1]: *** [stage1-bubble] Error 2
  make[1]: Leaving directory `/home/kraj/work/gcc-4.6.1'
  make: *** [all] Error 2

  My configure command is

  ./configure --enable-languages=c --disable-werror --disable-multilib

  The reason seems to be that the newly generated driver is not able to
  find crt* files w.r.t. the libdir and seaches them in current obj dir
  itself proabably due to libdir in oneiric has moved into
  /usr/lib/<arch>-linux-gnu/

  If I use --libdir=/usr/lib/x86_64-linux-gnu then it compiles ok but
  that should not be required.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: gcc 4:4.6.1-2ubuntu5
  ProcVersionSignature: Ubuntu 3.0.0-7.9-server 3.0.0
  Uname: Linux 3.0.0-7-server x86_64
  Architecture: amd64
  Date: Tue Aug 23 09:52:59 2011
  InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Alpha amd64 (20110802.1)
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, user)
   LANG=en_US.UTF-8
  SourcePackage: gcc-defaults
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/832178/+subscriptions




More information about the foundations-bugs mailing list