[cfe-dev] Clang on Ubuntu 11.04 (natty) 32 bits

Fletcher, John P j.p.fletcher at aston.ac.uk
Fri Apr 29 01:57:55 PDT 2011


Some time ago I attempted to build conceptsGcc on Ubuntu 10.4 (64 bit).  I had done this before on various Fedora systems and this time it would not compile.  I found out with a bit of digging that the problem is that Debian and Ubuntu use a different arrangement of library locations compared to Fedora, when handling both 64 bit and 32 bit libraries.

Fedora: 32 bit: lib 64 bit lib64
Ubuntu 32 bit: lib32 64 bit lib with lib64 provided as a link.

I made some changes in the conceptGcc to get it to compile.

See here for more details: http://c2.com/cgi/wiki?UbuntuLinux

I hope this helps.

John

P.S.  I found the following comment about this:
The fact that Debian maintainers go out of their way to modify and Debianize many software packages sometimes does mean that occasionally patches are required to get upstream sources to work. This is a feature not a bug...

________________________________
From: cfe-dev-bounces at cs.uiuc.edu [cfe-dev-bounces at cs.uiuc.edu] on behalf of İsmail Dönmez [ismail at namtrac.org]
Sent: 29 April 2011 08:27
To: pageexec at freemail.hu
Cc: Óscar Fuentes; cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] Clang on Ubuntu 11.04 (natty) 32 bits



On Fri, Apr 29, 2011 at 8:53 AM, <pageexec at freemail.hu<mailto:pageexec at freemail.hu>> wrote:
On 29 Apr 2011 at 5:35, Óscar Fuentes wrote:

> Any pointers on how to configure clang for matching gcc's directory
> search list appreciated.

to avoid related problems on gentoo (i have an amd64 cross compiler installed on a i386
userland) i configure with these:

--with-cxx-include-root=/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include/g++-v4
--with-cxx-include-arch=i686-pc-linux-gnu
--with-binutils-include=/usr/lib/binutils/i686-pc-linux-gnu/2.21/include

and on an amd64 userland i use these:

--with-cxx-include-root=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4
--with-cxx-include-arch=x86_64-pc-linux-gnu
--with-cxx-include-32bit-dir=32


I do a similar setup for openSUSE FWIW.

Regards,
ismail





More information about the cfe-dev mailing list