From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9697 invoked by alias); 18 May 2011 09:06:44 -0000 Received: (qmail 9683 invoked by uid 22791); 18 May 2011 09:06:42 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 May 2011 09:06:28 +0000 Received: by pzk36 with SMTP id 36so678756pzk.20 for ; Wed, 18 May 2011 02:06:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.2.35 with SMTP id 35mr957189wfb.270.1305709588104; Wed, 18 May 2011 02:06:28 -0700 (PDT) Received: by 10.143.15.15 with HTTP; Wed, 18 May 2011 02:06:28 -0700 (PDT) In-Reply-To: <20110518064007.25140@gmx.net> References: <20110518064007.25140@gmx.net> Date: Wed, 18 May 2011 09:53:00 -0000 Message-ID: Subject: Re: can't run gcc 4.5.3/4.6.0 under ubuntu 11.04 From: Jonathan Wakely To: Klaus Rudolph Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg00231.txt.bz2 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