public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Klaus Rudolph <lts-rudolph@gmx.de>
Cc: gcc-help@gcc.gnu.org
Subject: Re: can't run gcc 4.5.3/4.6.0 under ubuntu 11.04
Date: Wed, 18 May 2011 09:53:00 -0000	[thread overview]
Message-ID: <BANLkTikBHRygWo6EgoS2z9pzE=_SenSXZg@mail.gmail.com> (raw)
In-Reply-To: <20110518064007.25140@gmx.net>

On 18 May 2011 07:40, Klaus Rudolph wrote:
> Hi all,
>
> after I update my ubuntu system to 11.04 I got some strange errors.
>
> Under 10.04 I compiled 4.5.3 and 4.6.0 without any problems and both versions work as expected.
>
> After update to ubuntu 11.04 I got always errors while linking with these compilers:
> krud@mauersegler:~/test/c++/compile_ubuntu_11.04$ /opt/_linux-gnu_4.5.3/bin/g++ main.cpp
> /opt/_linux-gnu_4.5.3/bin/../lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lm
> /opt/_linux-gnu_4.5.3/bin/../lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status

Those compilers were configured and built for your 10.04 system so
they don't know the correct paths for your 11.04 system

> Also a new compilation from gcc sources on ubuntu 11.04 fails with the same problem: cannot find lc and other libs

You might be able to make the old compilers work by providing the
correct library paths, but if not you could install the Ubuntu gcc
package then use that to rebuild gcc 4.5 and 4.6

  parent reply	other threads:[~2011-05-18  9:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-18  8:22 Klaus Rudolph
2011-05-18  9:06 ` Axel Freyn
2011-05-18  9:43 ` Marc Glisse
2011-05-18 10:20   ` Klaus Rudolph
2011-05-18 10:41     ` Marc Glisse
2011-05-18 12:18       ` Klaus Rudolph
2011-05-18 13:25         ` Marc Glisse
2011-05-19  7:59           ` Klaus Rudolph
2011-05-19 10:39             ` Kai Ruottu
2011-05-18  9:53 ` Jonathan Wakely [this message]
2011-05-18 10:05   ` Klaus Rudolph
2011-05-18 20:52   ` kevin diggs
2011-05-19  0:11     ` Jonathan Wakely
2011-05-18 10:23 Klaus Rudolph
2011-05-19  0:26 ` Ian Lance Taylor
2011-05-19  4:48   ` Jeffrey Walton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTikBHRygWo6EgoS2z9pzE=_SenSXZg@mail.gmail.com' \
    --to=jwakely.gcc@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=lts-rudolph@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).